]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
typeck.c (build_class_member_access_expr): Do not return error_mark_node when no...
[gcc.git] / gcc / ChangeLog
CommitLineData
3b85fe5f
JJ
12002-08-08 Jakub Jelinek <jakub@redhat.com>
2
3 * config/rs6000/rs6000.h, config/rs6000/aix.h,
4 config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
5 two patches.
6 * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
7
e10c79fe
LB
82002-08-08 Lars Brinkhoff <lars@nocrew.org>
9 Richard Henderson <rth@redhat.com>
10
11 * emit-rtl.c (gen_rtx_REG): After reload, only return
12 frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
13
aa2a83dc
JJ
142002-08-08 Jakub Jelinek <jakub@redhat.com>
15
16 * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
17 * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
18 * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
19 macro.
20
aeaf4d25
AN
212002-08-08 Adam Nemet <anemet@lnxw.com>
22
23 * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
24 register.
25 (thumb_expand_prologue): Likewise.
26 (thumb_output_function_prologue): Likewise.
27 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
28 the additional push of the PIC register.
29
22aa533e
NS
302002-08-08 Nathan Sidwell <nathan@codesourcery.com>
31
32 * configure.in (enable_coverage): New enable switch.
33 * configure: Rebuilt.
34 * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
35 (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
36 (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
37 (mostlyclean): Remove coverage files.
38 * doc/install.texi: Document enable_coverage.
39
40 * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
41 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
42 * f/Make-lang.in (f.mostlyclean): Remove coverage files.
43 * java/Make-lang.in (java.mostlyclean): Remove coverage files.
44 * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
45 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
46 files.
47
18bdccaa
NB
482002-08-08 Neil Booth <neil@daikokuya.co.uk>
49
50 * c-opts.c (cpp_opts): New.
51 (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
52 (c_common_decode_options): Handle cpplib switches.
53 (c_common_init_options): Set cpp_opts.
54 * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
55 (cpp_handle_option): Similarly.
56
774b5662
DE
572002-08-08 David Edelsohn <edelsohn@gnu.org>
58
59 * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
60 (TARGET_ALTIVEC_ABI): Same.
61 (TARGET_ALTIVEC_VRSAVE): Same.
62
63 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
64 icode not CODE_FOR_nothing. Change switch to if.
65
957e9e48
AM
662002-08-08 Alan Modra <amodra@bigpond.net.au>
67
68 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
69
daf06049
JJ
702002-08-08 Jakub Jelinek <jakub@redhat.com>
71
72 * stor-layout.c (place_union_field): For bitfields if
73 PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
74 TYPE_USER_ALIGN.
75
043d39a6
JDA
762002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
77
78 * pa.c (struct deferred_plabel): Constify name field.
79
34bb92e3
NB
802002-08-07 Neil Booth <neil@daikokuya.co.uk>
81
82 * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
83
3ec5d64d
JDA
842002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
85
86 * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
87 local_prefix are the same.
88 * configure: Rebuilt.
89
ad9335eb
JJ
902002-08-07 Jakub Jelinek <jakub@redhat.com>
91 Richard Henderson <rth@redhat.com>
92
93 * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
94 to type_align when PCC_BITFIELD_TYPE_MATTERS. Only apply
95 ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
96 (place_field): Likewise.
97 * config/i386/i386.c (x86_field_alignment): Don't check
98 DECL_USER_ALIGN here.
99 * config/rs6000/rs6000.c (rs6000_field_alignment): New.
100 * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
101 prototype.
102 * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
103 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
104 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
105 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
106 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
107 * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
108
0b6f2917
NB
1092002-08-07 Neil Booth <neil@daikokuya.co.uk>
110
111 * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
112 * c-common.c: Don't include tree-inline.h.
113 (c_common_init_options, c_common_post_options): Move to c-opts.c.
114 * c-common.h (c_common_decode_option): New.
115 * c-decl.c (c_decode_option): Remove.
116 * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
117 * c-opts.c: New file.
118 * c-tree.h (c_decode_option): Remove.
119 * doc/passes.texi: Update.
120 * objc/objc-act.c (objc_decode_option): Remove.
121 * objc/objc-act.h (objc_decode_option): Remove.
122 * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
123 c_common_decode_option.
124
e49ec17d
CD
1252002-08-07 Chris Demetriou <cgd@broadcom.com>
126
127 * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
128 dependency on TARGET_DOUBLE_FLOAT.
129
ac1ca451
SC
1302002-08-07 Stephen Clarke <stephen.clarke@superh.com>
131
132 * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
133 overwrite callee-save registers. Fix comment.
134
af34e51e
CD
1352002-08-06 Chris Demetriou <cgd@broadcom.com>
136
137 * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
138 in target_flags based on ISA, if it was not set on the command
139 line. Warn if MASK_BRANCHLIKLEY is set but the ISA does not
140 support Branch Likely instructions.
141 * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
142 (TARGET_BRANCHLIKELY): Likewise.
143 (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
144 (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
145 ISA_HAS_BRANCHLIKELY.
146 (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
147 * doc/invoke.texi: Document new MIPS -mbranch-likely and
148 -mno-branch-likely options.
149
2631af95
KG
1502002-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
151
f538618e
KG
152 * ip2k.c (ip2k_set_compare): Add missing iteration variable.
153
2631af95
KG
154 * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
155 $(GCONFIG_H).
156
1ae0ccb6
AH
1572002-08-06 Aldy Hernandez <aldyh@redhat.com>
158
159 * c-decl.c (duplicate_decls): Error out for incompatible TLS
160 declarations.
161
162 * testsuite/gcc.dg/tls/diag-3.c: New.
163
f1a044c7
JM
1642002-08-06 Jason Merrill <jason@redhat.com>
165
166 * c-common.c (c_expand_expr) [STMT_EXPR]: If the last expression is
167 a VAR_DECL with RTL that matches the target, just return that RTL.
168
8d3e27d1
DJ
1692002-08-06 Dale Johannesen <dalej@apple.com>
170 * c-common.c (fname_decl): Use line number 0 for
171 __func__, to avoid confusing debuggers.
172
8b219a76
NS
1732002-08-06 Nathan Sidwell <nathan@codesourcery.com>
174
175 * gcov.c: Tidy.
176 (struct line_info, struct coverage): New structures.
177 (gcov_file_name, gcov_file): Remove globals.
178 (output_data): Take source file parameter. Fix memory leak. Break
179 up into ...
180 (init_line_info, output_line_info, make_gcov_file_name,
181 accumulate_branch_counts): ... here.
182 (calculate_branch_probs, function_summary): Adjust.
183 (main): Adjust.
184 (function_*): Remove global variables.
185
317e98c0
NB
1862002-08-06 Neil Booth <neil@daikokuya.co.uk>
187
188 * dwarf2out.c: Remove unused macros.
189
81d41e74
NB
1902002-08-06 Neil Booth <neil@daikokuya.co.uk>
191
192 * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
193
58551c23
NB
1942002-08-06 Neil Booth <neil@daikokuya.co.uk>
195
196 * cppinit.c (struct lang_flags): Rename trigraphs std.
197 (set_lang): Update.
198 * cpplib.h (struct cpp_options): New member std.
199 * cppmacro.c (_cpp_builtin_macro_text): Use std.
200 (collect_args): Flag whether to swallow a possible future
201 comma pasted with varargs.
202 (replace_args): Use this flag.
203 * doc/cpp.texi: Update varargs extension documentation.
204
daeabcd0
JJ
2052002-08-06 Jakub Jelinek <jakub@redhat.com>
206
207 * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
208
39e3a681
JJ
2092002-08-06 Jakub Jelinek <jakub@redhat.com>
210
9812691e
JJ
211 * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
212 and MODE_CLASS_INT modes.
39e3a681 213
609a87f3
JJ
2142002-08-06 Jakub Jelinek <jakub@redhat.com>
215
216 * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
217 --{enable,disable}-threads is given to configure.
218 (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
219 x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
220 powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
221 s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
222 Remove thread_file setting here.
223
ff4c5e7b
DE
2242002-08-06 David Edelsohn <edelsohn@gnu.org>
225
226 * doc/install.texi (Binaries): Update Bull Freeware URL.
227
54f3aa9e
GP
2282002-08-06 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
229
230 * doc/gcc.texi (Top): Rename Index to Keyword Index.
231
d19202ba
NS
2322002-08-05 Nathan Sidwell <nathan@codesourcery.com>
233
234 * gcov.c (output_data): Round to % to nearest, tweak formatting.
235
1bed5ee3
JJ
2362002-08-05 Jakub Jelinek <jakub@redhat.com>
237
238 * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
239 of the operands into MINUS_EXPR if code is PLUS_EXPR.
240
84512347
DR
2412002-08-05 Douglas B Rupp <rupp@gnat.com>
242
243 * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
244 * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
245 drectve_section): Define.
246 * config/i386/t-interix: Replace interix.o rule with winnt.o.
247 * config/i386/interix.c: Remove.
248
b835f6f1
GK
2492002-08-05 Geoffrey Keating <geoffk@redhat.com>
250
251 * attribs.c: Don't include obstack.h.
252 * builtins.c: Likewise.
253 * cfganal.c: Likewise.
254 * cfgbuild.c: Likewise.
255 * cfgcleanup.c: Likewise.
256 * emit-rtl.c: Likewise.
257 * loop.c: Likewise.
258 * stmt.c: Likewise.
259
260 * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
261
fd291392
GDR
2622002-08-05 Gabriel Dos Reis <gdr@nerim.net>
263
264 * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
265
054b7507
CD
2662002-08-04 Chris Demetriou <cgd@broadcom.com>
267
268 * doc/invoke.texi: Remove duplicated paragraph describing
269 TARGET_SWITCHES.
270
6d9f628e
GK
2712002-08-04 Geoffrey Keating <geoffk@redhat.com>
272
273 * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
274 * collect2.h (permanent_obstack): Delete declaration.
275 * collect2.c (permanent_obstack): Delete definition.
276 (main): Don't initialise permanent_obstack. Use xstrdup instead.
277 * expr.c: Don't include obstack.h.
278 (permanent_obstack): Delete declaration.
279 * function.c: Don't include obstack.h.
280 (permanent_obstack): Delete declaration.
281 * integrate.c: Don't include obstack.h.
282 (function_maybepermanent_obstack): Delete declaration.
283 * print-tree.c (debug_tree): Use x*alloc not permalloc.
284 * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
285 * tlink.c (pfgets): Use xstrdup not permanent_obstack.
286 * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
287 * tree.h: Rename init_obstacks to init_ttree. Remove declarations
288 of permalloc, expralloc, perm_calloc.
289 * tree.c (permanent_obstack): Delete definition.
290 (init_ttree): Rename from init_obstacks.
291 (permalloc): Delete.
292 (perm_calloc): Delete.
293 (dump_tree_statistics): Don't print information about
294 permanent_obstack.
295 * varasm.c (assemble_start_function): Use xstrdup instead of
296 permalloc/strcpy.
297 (assemble_variable): Likewise.
298 * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
299 permalloc.
300 (unicosmk_add_extern): Likewise.
301 * config/c4x/c4x.c (c4x_external_ref): Likewise.
302 (c4x_global_label): Likewise.
303 * config/frv/frv.c (frv_encode_section_info): Likewise.
304 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
305 (i386_pe_record_exported_symbol): Likewise.
306 * config/mips/mips.c (mips_output_external): Likewise.
307 (mips_output_external_libcall): Likewise.
308 * config/pa/pa.c: (permanent_obstack): Delete declaration.
309 (output_call): Use ggc_strdup instead of allocating on
310 permanent_obstack.
311 * config/romp/romp.c: Include ggc.h.
312 (get_symref): Don't declare permanent_obstack, use ggc_strdup
313 intead of permanent_obstack.
314 * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
315 instead of permalloc.
316 * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
317 instead of permalloc
318 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
319 instead of permalloc.
320 * config/vax/vax.c (vms_check_external): Use xmalloc instead of
321 permalloc.
322
36a05131
BS
3232002-08-04 Bernd Schmidt <bernds@redhat.com>
324
325 Contribute a port developed primarily by Michael Meissner,
326 Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
327 * config.gcc: Add frv-elf target.
328 * config/frv/cmovd.c: New file.
329 * config/frv/cmovh.c: New file.
330 * config/frv/cmovw.c: New file.
331 * config/frv/frv-abi.h: New file.
332 * config/frv/frv-asm.h: New file.
333 * config/frv/frv-modes.def: New file.
334 * config/frv/frv-protos.h: New file.
335 * config/frv/frv.c: New file.
336 * config/frv/frv.h: New file.
337 * config/frv/frv.md: New file.
338 * config/frv/frvbegin.c: New file.
339 * config/frv/frvend.c: New file.
340 * config/frv/lib1funcs.asm: New file.
341 * config/frv/media.h: New file.
342 * config/frv/modi.c: New file.
343 * config/frv/t-frv: New file.
344 * config/frv/uitod.c: New file.
345 * config/frv/uitof.c: New file.
346 * config/frv/ulltod.c: New file.
347 * config/frv/ulltof.c: New file.
348 * config/frv/umodi.c: New file.
349 * config/frv/xm-frv.h: New file.
86a0cbcb
BS
350
351 * config/frv/media.h: Removed again.
352
37b8715b
NS
3532002-08-04 Nathan Sidwell <nathan@codesourcery.com>
354
355 * gcov.c (bb_file_time): New static variable.
356 (object_directory): May also be object file.
357 (preserve_paths): New static variable.
358 (print_usage): Adjust.
359 (options): Adjust.
360 (process_args): Adjust.
361 (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
362 file. Find modification date on bb file.
363 (read_profile): Don't rewind a NULL file.
364 (format_hwint): New static function.
365 (function_summary): Use format_hwint.
366 (output_data): SOURCE_FILE_NAME is never relative to
367 OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
368 mangling. Adjust output format to make it more machine readable.
369 * doc/gcov.texi: Document & clarify semantics.
370
d500c5d7
JM
3712002-08-04 Joseph S. Myers <jsm@polyomino.org.uk>
372
373 * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
374
ea67fe71
NS
3752002-08-04 Nathan Sidwell <nathan@codesourcery.com>
376
377 * gcc.c (cc1_options): Pass output file as auxbase when
378 appropriate.
379 * profile.c (init_branch_prob): FILENAME has already had ending
380 stripped.
381 * final.c (end_final): Likewise.
382 * toplev.c (aux_base_name): New global.
383 (compile_file): Pass aux_base_name to init init_branch_prob and
384 end_final.
385 (independent_decode_option, case 'a'): New auxinfo options.
386 (case 'd'): Protect against mising basename.
387 (do_compile): Initialize aux_base_name.
388 * toplev.h (aux_base_name): New global.
389 * doc/invoke.texi: Adjust documentation.
390
b23c054d
NS
3912002-08-04 Nathan Sidwell <nathan@codesourcery.com>
392
393 * config/i386/i386.c (x86_field_alignment): Remove duplicate test
394 of TARGET_ALIGN_DOUBLE.
395
04c1334c
GDR
3962002-08-04 Gabriel Dos Reis <gdr@nerim.net>
397
398 * diagnostic.c (inform): New function.
399 * diagnostic.h (inform): Declare.
400
e34eaae5
DE
4012002-08-03 David Edelsohn <edelsohn@gnu.org>
402
403 * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
404 (movhi_internal): Same.
405 (movqi_internal): Same.
406 (movdi_internal64): Same.
407
408 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
409
410 * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
411 (ASM_OUTPUT_SKIP): Use it. SIZE unsigned.
412 (COMMON_ASM_OP): Define.
413 (ASM_OUTPUT_ALIGNED_COMMON): Use it. SIZE unsigned.
414 Use ALIGN parameter.
415 (LOCAL_COMMON_ASM_OP): Define.
416 (ASM_OUTPUT_LOCAL): Use it. SIZE unsigned.
417
e7b489c8
RS
4182002-08-03 Roger Sayle <roger@eyesopen.com>
419
420 * builtins.def: Define new builtin functions exp, expf, expl,
421 log, logf and logl (and their __builtin_* variants).
422 * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
423 Define exp_optab and log_optab.
424 * optabs.c (init_optans): Initialize exp_optab and log_optab.
425 * genopinit.c (optabs): Implement exp_optab and log_optab
426 using exp?f2 and log?f2 patterns.
427 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
428 and BUILT_IN_LOG* using exp_optab and log_optab respectively.
429 (expand_builtin): Ignore the new builtins (and all cos and
430 sin variants) when not optimizing. Expand new builtins via
431 expand_builtin_mathfn when flag_unsafe_math_optimizations.
432
433 * doc/extend.texi: Document new exp and log builtins.
434 * doc/md.texi: Document new exp?f2 and log?f2 patterns
435 (and previously undocumented cos?f2 and sin?f2 patterns).
436
de8920be
JM
4372002-08-03 Jason Merrill <jason@redhat.com>
438
439 * explow.c (int_expr_size): New fn.
440 * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
441 * expr.h: Declare it.
442
ba462c8e
KW
4432002-08-02 Krister Walfridsson <cato@df.lth.se>
444
445 * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
446 gengtype-* dependencies.
447
2017ed61
EC
4482002-08-02 Eric Christopher <echristo@redhat.com>
449
450 * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
451 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
452 #ifndef to #undef.
453 (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
454
055dd007
DE
4552002-08-02 David Edelsohn <edelsohn@gnu.org>
456
457 PR optimize/7067
458 * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
459 small if optimizing for size.
460
771a2a66
DJ
4612002-08-02 Daniel Jacobowitz <drow@mvista.com>
462
463 * configure.in (FORBUILD): Use $build_alias.
464 * configure: Regenerated.
465
ac8ab9fe
RS
4662002-08-02 Richard Sandiford <rsandifo@redhat.com>
467
468 * config.gcc: Don't include mips/abi64.h in $tm_file.
469 * hard-reg-set.h (call_really_used_regs): Declare.
470 * config/mips/abi64.h: Remove file.
471 * config/mips/linux.h,
472 * config/mips/iris6.h: Don't include it.
473 * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
474 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
475 (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
476 FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
477 FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
478 Bring across definitions from abi64.h.
479 (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
480 (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
481 (struct mips_args): Use it.
482 * config/mips/mips.c (mips_conditional_register_usage): Define.
483
a77a9a18
JM
4842002-08-02 Jason Merrill <jason@redhat.com>
485
486 * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
487 * langhooks.c (lhd_expr_size): Define default.
488 * langhooks.h (struct lang_hooks): Add expr_size.
489 * explow.c (expr_size): Call it.
490 * expr.c (store_expr): Don't copy an expression of size zero.
491 (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
492 to store.
493 * Makefile.in (builtins.o): Depend on langhooks.h.
494
a6be5aee
KG
4952002-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
496
497 * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
498 * ra-debug.c: Include "tm_p.h".
499 * ra-rewrite.c (is_partly_live_1): Change return type to bool.
500
e3e16ee3
TM
5012002-08-02 Toon Moene <toon@moene.indiv.nluug.nl>
502
503 * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
504 when not honoring signalling NaNs.
505 (simplify_ternary_operation): a == b has a definite value
506 when not honoring NaNs.
507
b9d8832d
JM
5082002-08-02 Jason Merrill <jason@redhat.com>
509
510 * gdbinit.in (pct): New macro.
511
825abef4
SS
5122002-08-01 Stan Shebs <shebs@apple.com>
513 Andreas Tobler <toa@pop.agri.ch>
514
515 * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
516 plays nice with Darwin headers.
bf2e488f 517 (_BSD_RUNE_T_DEFINED_): Likewise.
825abef4 518
56da7207
ZW
5192002-08-01 Zack Weinberg <zack@codesourcery.com>
520
521 * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
522 * cppinit.c (cpp_post_options): Likewise.
523
524 * cppexp.c (cpp_classify_number): Suppress -Wtraditional
525 warning about 'LL' suffix (but not 'ULL' etc) when
526 -Wno-long-long is in effect.
527
528 * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
529 Check for failing time()/localtime(), issue a warning, and
530 make __TIME__ and __DATE__ expand to fallback strings.
531
532 * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
533 and __TIME__ when the date and time cannot be determined.
534
f4857b9b
AM
5352002-08-02 Alan Modra <amodra@bigpond.net.au>
536
537 * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
538
77ca7b2e
DJ
5392002-08-01 Daniel Jacobowitz <drow@mvista.com>
540
541 * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
542
5b552f76
CD
5432002-08-01 Chris Demetriou <cgd@broadcom.com>
544
545 * config.gcc (mipsisa64sb1-*-elf*): New configuration.
546 (mipsisa64sb1el-*-elf*): Likewise.
547 * config/mips/mips.c (mips_cpu_info_table): Add sb1.
548 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
549 (TARGET_SB1, TUNE_SB1): New macros.
550 * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
551 -mtune flags.
552
54fbf6a1
DE
5532002-08-01 David Edelsohn <edelsohn@gnu.org>
554
555 * varasm.c (asm_emit_uninitialized): Return false if global BSS
556 and ASM_EMIT_BSS not supported by target.
557 (assemble_variable): Do not duplicate uninitialized logic.
558 Fall through if asm_emit_uninitialized failed.
559
3d16b407
CD
5602002-08-01 Chris Demetriou <cgd@broadcom.com>
561
562 * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
563
fb52d8de
AM
5642002-08-02 Alan Modra <amodra@bigpond.net.au>
565
80926cc1
AM
566 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
567 (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
568
fb52d8de
AM
569 * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
570 HOST_BITS_PER_WIDE_INT == 64.
571
a4b5414c
KG
5722002-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
573
574 * df.c (df_insn_table_realloc): Change parameter to unsigned.
575 * optabs.c (expand_binop): Make variable unsigned.
576 * simplify-rtx.c (simplify_subreg): Likewise.
577 * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
578
a03e67c3
FS
5792002-08-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
580
581 * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
582
de273d3f
RH
5832002-08-01 Richard Henderson <rth@redhat.com>
584
56da7207 585 * toplev.c (parse_options_and_default_flags): Don't set
de273d3f
RH
586 flag_reorder_blocks for -Os.
587
588 * config/avr/avr.c (avr_optimization_options): Remove.
589 * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
590 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
591 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
592
4e4d733e
L
5932002-08-01 H.J. Lu <hjl@gnu.org>
594 Richard Henderson <rth@redhat.com>
595
596 * output.h (DECL_READONLY_SECTION): Remove.
597 (decl_readonly_section): Declare.
598 * varasm.c (decl_readonly_section): New.
599 (default_section_type_flags, default_select_section): Use it.
600 * config/arm/pe.c (arm_pe_unique_section): Likewise.
601 * config/i386/interix.c (i386_pe_unique_section): Likewise.
602 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
603 * config/mcore/mcore.c (mcore_unique_section): Likewise.
604 * config/mips/mips.c (mips_unique_section): Likewise.
605
32e9b960
RH
6062002-08-01 Richard Henderson <rth@redhat.com>
607
608 * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
609 refers to a subroutine parameter.
610
81e602b5
JJ
6112002-08-01 Jakub Jelinek <jakub@redhat.com>
612
613 * varasm.c (assemble_visibility): Strip name encoding.
614
ac14c725
ID
6152002-08-01 Ian Dall <ian@sibyl.beware.dropbear.id.au>
616
617 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
618 (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
619 when there is no frame pointer.
620 (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
621 registers properly.
622 * config/ns32k/__unorddf2.c: New file.
623 * config/ns32k/__unordsf2.c: New file.
624 * config/ns32k/t-ns32k: New file.
625 * config.gcc (ns32k-*-netbsd*): Use it.
626
17072732
AH
6272002-08-01 Aldy Hernandez <aldyh@redhat.com>
628
629 * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
630
c288218a
NB
6312002-08-01 Neil Booth <neil@daikokuya.co.uk>
632
633 * c-common.c (__GXX_ABI_VERSION): Correct spelling.
634
43bfc248
BK
6352002-08-01 Benjamin Kosnik <bkoz@redhat.com>
636
637 * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
638
479f2cea
RS
6392002-08-01 Richard Sandiford <rsandifo@redhat.com>
640
641 * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
642
02280659
ZD
6432002-08-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
644
645 * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
646 n_sets): Removed.
647 (expr_hash_table, set_hash_table): Type changed to ...
648 (struct hash_table): New type.
649 (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
650 insert_expr_in_table, insert_set_in_table, compute_hash_table,
651 dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
652 compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
653 (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
654 (alloc_hash_table): New.
655 (free_set_hash_table, free_expr_hash_table): Merged to ...
656 (free_hash_table): New.
657 (compute_set_hash_table, compute_expr_hash_table): Merged to ...
658 (compute_hash_table_work): New.
659 (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
660 find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
661 pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
662 one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
663 hoist_code, one_code_hoisting_pass,
664 trim_ld_motion_mems): Altered due to changed type of hash tables.
665
905173eb
ZW
6662002-08-01 Zack Weinberg <zack@codesourcery.com>
667
668 * final.c (output_alternate_entry_point):
669 If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
670
83321d36
KG
6712002-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
672
ad0f1765
KG
673 * objc/objc-act.c (encode_complete_bitfield): Add prototype and
674 avoid ISO C style function definition.
675
83321d36
KG
676 * expr.c (expand_assignment): Delete unused variable.
677
73e42cf3
TM
6782002-08-01 Toon Moene <toon@moene.indiv.nluug.nl>
679
680 * c-common.c (cb_register_builtins): Set
681 __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
682 is given, and to 0 otherwise.
683 * combine.c (simplify_if_then_else): HONOR_NANS
684 implies FLOAT_MODE_P.
685
78df51fe
NB
6862002-08-01 Neil Booth <neil@daikokuya.co.uk>
687
688 * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
689 (cpp_handle_option): Don't handle it.
690 (print_help): Update.
691 * doc/cppopts.texi: Update.
692
abecfc8f
NB
6932002-08-01 Neil Booth <neil@daikokuya.co.uk>
694
695 * c-common.c (cb_register_builtins): If C++, define
696 __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
697 * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
698cp:
699 * lang-specs.h: Simplify in accordance with new code in
700 c-common.c.
701
4078b403
NB
7022002-08-01 Neil Booth <neil@daikokuya.co.uk>
703
704 * c-common.c: Define all C/ObjC/C++ warning and flag variables.
705 * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
706 * c-decl.c: Move all warning and flag variables to c-common.c.
707 * c-format.c: Move all warning variables to c-common.c.
708 * c-tree.h: Move all warning and flag declarations to c-common.h.
709 * objc/objc-act.c: Move all warning variables to c-common.c.
710 (flag_warn_protocol): Rename warn_protocol.
711
692f5611
JDA
7122002-07-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
713
714 * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
715
480e7ded
GS
7162002-07-31 Graham Stott <grahams@btinternet.com>
717
905173eb 718 * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
480e7ded
GS
719 .section prefix.
720
b069de3b
SS
7212002-07-31 Stan Shebs <shebs@apple.com>
722
723 * config.gcc (i[34567]86-*-darwin*): New configuration.
724 * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
725 defining.
726 (TARGET_ENCODE_SECTION_INFO): Ditto.
727 (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
728 * config/darwin.c (machopic_indirect_data_reference): Remove
729 setting of RTX_UNCHANGING_P.
730 (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
731 not to be applied to sums.
732 * config/i386/t-darwin: New file.
733 * config/i386/darwin.h: New file.
734 * config/i386/i386.h (TARGET_MACHO): Add default definition.
735 * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
736 * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
737 label and not the GOT add.
738 (constant_address_p): For Mach-O, seeing a CONST is enough.
739 (legitimate_pic_address_disp_p): Add a Mach-O case.
740 (legitimate_address_p): Also test machopic_operand_p if Mach-O.
741 (legitimize_pic_address): Use generic Mach-O code to legitimize.
742 (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
743 if outputting a difference.
744 (ix86_output_addr_diff_elt): Add Mach-O case.
745 (ix86_expand_move): Similarly.
746 (ix86_expand_call): Similarly.
747 (current_machopic_label_num): New global.
748 (machopic_output_stub): New function.
749 (ix86_value_regno): New function.
750 (ix86_function_value): Use it instead of VALUE_REGNO.
751 (ix86_libcall_value): Ditto.
752 * config/i386/unix.h (VALUE_REGNO): Remove.
753
1de4ecb6
GS
7542002-07-31 Graham Stott <grahas@btinternet.com>
755
756 * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
905173eb 757 hash for LABEL_REF's.
1de4ecb6 758
23368455
GS
7592002-07-31 Graham Stott <grahams@btinternet.com>
760
761 * config/rs6000/rs6000.c (spe_init_builtins,
762 altivec_init_builtins, rs6000_common_init_builtins):
905173eb 763 Replace ANSI with K&R function def.
23368455 764
ad72b533
DE
7652002-07-31 David Edelsohn <edelsohn@gnu.org>
766
767 * rs6000.c (validate_condition_mode): Test flag_finite_math_only
768 for CCFPmode.
769
302359da
RS
7702002-07-31 Richard Sandiford <rsandifo@redhat.com>
771
772 * config/mips/crtn.asm: Don't use __mips16 to determine the
773 return-address offset. Define RA to a suitable temporary
774 register for the return address.
775
ead0c1d5
RS
7762002-07-31 Richard Sandiford <rsandifo@redhat.com>
777
778 * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
779 constraints to 'd'.
780
3fb9d48a
CD
7812002-07-30 Chris Demetriou <cgd@broadcom.com>
782
783 * config/mips/elf.h (STARTFILE_SPEC): Define differently if
784 default ABI is MEABI. (Undoes incorrect change in Eric Christopher's
785 patch on 2002-07-29.)
786 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
787
072cdaed
KG
7882002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
789
506a61b1
KG
790 * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
791 fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
792 ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
793 openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
794 s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
795 (ASM_GLOBALIZE_LABEL): Delete.
796 (GLOBAL_ASM_OP): Define.
797
072cdaed 798 * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
905173eb 799
072cdaed
KG
800 * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
801 * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
802
6fd14075
GK
8032002-07-30 Geoffrey Keating <geoffk@redhat.com>
804
805 * doc/extend.texi (Hints implementation): Document that GCC
806 mostly ignores `register'.
807
2e8f2e8f
TM
8082002-07-30 Toon Moene <toon@moene.indiv.nluug.nl>
809
810 * flags.h: Declare flag_finite_math_only.
811 Use it in definition of HONOR_NANS and
812 HONOR_INFINITIES.
813 * c-common.c (cb_register_builtins): Emit
814 __FINITE_MATH_ONLY__ when flag_finite_math_only
815 is set.
816 * combine.c (simplify_if_then_else): If
817 flag_finite_math_only is set, a == b has a
818 definite value.
819 * toplev.c: Initialize flag_finite_math_only.
820 (set_flags_fast_math): Set it on -ffast-math.
821 (flag_fast_math_set_p): Test it.
822 * doc/invoke.texi: Document -ffinite-math-only.
823
a538e580
RH
8242002-07-30 Richard Henderson <rth@redhat.com>
825
826 * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
827 (noce_process_if_block): Likewise.
828
26e20555
BS
8292002-07-30 Bernd Schmidt <bernds@redhat.com>
830
831 * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
832 Bail out early if false_expr is NULL and we'd crash due to this.
79cbc1f7
BS
833 * genemit.c (gen_expand): Recognize return insns even if the return
834 appears in a parallel.
d8088c6f
BS
835 * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
836 * config/fp-bit.c: Likewise.
837 * doc/tm.texi: Document it.
905173eb 838
0559cc77
DE
8392002-07-30 David Edelsohn <edelsohn@gnu.org>
840 Zack Weinberg <zack@codesourcery.com>
841
842 * rs6000.c (rs6000_expand_unop_builtin): Check icode not
843 CODE_FOR_nothing. Change switch to if.
844 (rs6000_expand_binop_builtin): Same.
845 (rs6000_expand_builtin): Expand builtin if target support enabled.
846 (rs6000_init_builtins): Init builtin if target support enabled.
847 (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
848
60b8aa94
FS
8492002-07-30 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
850
851 * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
852
714fb710
RS
8532002-07-30 Richard Sandiford <rsandifo@redhat.com>
854
855 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
856
c608a684
R
857Tue Jul 30 18:31:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
858
859 * sh.md (cond_delay_slot): New attribute.
860 (cbranch delay): Use it for anulled-true case.
861 (stuff_delay_slot): New pattern.
862 * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
863 delay slot insn.
864 (gen_far_branch): Emit stuff_delay_slot pattern.
865
0a756401
R
866Tue Jul 30 11:21:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
867
868 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
869
68e82b83
KH
8702002-07-30 Kazu Hirata <kazu@cs.umass.edu>
871
872 * fold-const.c: Fix comment typos.
873 * gcse.c: Likewise.
874 * reload1.c: Likewise.
875
fe6b547a
AH
8762002-07-29 Aldy Hernandez <aldyh@redhat.com>
877
878 * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
879 for TARGET_SPE.
880
7ff4a7ef
GDR
8812002-07-30 Gabriel Dos Reis <gdr@nerim.net>
882
883 * c-pretty-print.h (pp_c_statement): Declare.
884 * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
885 (pp_c_statement): Define.
886
4ad5e05d
KG
8872002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
888
889 * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
890 darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
891 ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
892 mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
893 rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
894 v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
895
896 * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
897 * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
898
1e6a3e1e
GDR
8992002-07-30 Gabriel Dos Reis <gdr@nerim.net>
900
901 * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
902 (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
903 COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
904 (pp_c_expression): Update.
905
1dcd444b
KG
9062002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
907
908 * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
909 concat in lieu of xmalloc/strcpy/memcpy/sprintf.
910 * alpha/vms-ld.c (main): Likewise.
911 * dsp16xx.c (double_reg_to_memory): Likewise.
912 * mcore.c (mcore_expand_prolog): Likewise.
913 * cppfiles.c (read_name_map): Likewise.
914 * gensupport.c (process_rtx, identify_predicable_attribute,
915 alter_test_for_insn): Likewise.
916 * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
917
e62f4abc
RS
9182002-07-29 Roger Sayle <roger@eyesopen.com>
919
920 * builtins.c (expand_builtin): Change the default behavior to
905173eb 921 only issue an error if the builtin function doesn't have a
e62f4abc
RS
922 fallback library call. Remove several cases handled by the
923 new default.
924
0cd2fb44
JDA
9252002-07-29 John David Anglin <dave@hiauly1.hia.nrc>
926
927 * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
928 floating point format of the target is IEEE.
929 * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
930 format of the target is DEC.
931
b642261e
RH
9322002-07-29 Richard Henderson <rth@redhat.com>
933
934 * unroll.c (verify_addresses): Remove.
935 (find_splittable_givs): Never split DEST_ADDR givs.
936
cba57c9d
GK
9372002-07-29 Geoffrey Keating <geoffk@redhat.com>
938
939 * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
940 is exhaustive.
941 (Files): Improve documentation on generated source files.
942
943 * doc/extend.texi (Translation implementation): Document what
944 diagnostics look like.
945 (Identifiers implementation): Document that there's normally no
946 limit on identifier names.
947 (Integers implementation): Document two's complement.
948 (Hints implementation): Document that GCC honours 'inline', mostly.
949 (Preprocessing directives implementation): Document that GCC
950 requires the current time.
951
76a8ecba
GDR
9522002-07-30 Gabriel Dos Reis <gdr@nerim.net>
953
954 * c-pretty-print.h (struct c_pretty_print_info): Add new member.
955 (pp_initializer): New macro.
956 (pp_c_initializer): Declare.
957 * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
958 (pp_c_initializer): Define.
959 (pp_c_initializer_list): New function.
960 (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
961 VECTOR_CST, CONSTRUCTOR.
962 (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
905173eb 963 IMAGPART_EXPR.
76a8ecba
GDR
964 (pp_c_cast_expression): Handle FLOAT_EXPR.
965 (pp_c_assignment_expression): Handle INIT_EXPR.
966 (pp_c_expression): Update.
967
4307be72
NB
9682002-07-30 Neil Booth <neil@daikokuya.co.uk>
969
970 * objc/objc-act.c (objc_init): Return immediately if filename
971 is NULL.
972
6d439235
EC
9732002-07-29 Eric Christopher <echristo@redhat.com>
974
905173eb
ZW
975 * config/mips/elf.h: Remove ecoff.h and gofast includes.
976 (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
977 (SDB_DEBUGGING_INFO): Undefine.
978 (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
6d439235
EC
979 (PUT_SDB_SIZE): Remove.
980 (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
905173eb
ZW
981 (STARTFILE_SPEC): Add isa3264 define.
982 * config/mips/elf64.h: Ditto. Move TARGET_MEM_FUNCTIONS from here...
983 * config/mips/ecoff.h: Remove. and here...
984 * config/mips/iris3.h: and here...
985 * config/mips/sni-svr4.h: and here...
986 * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
6d439235
EC
987 Add assembler -mmdebug options for non-dwarf debugging.
988 * config/mips/r3900.h: Remove debug info defines.
905173eb
ZW
989 * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
990 * config/mips/isa3264.h: Ditto.
991 * config/mips/t-isa3264: Fix up for file removal and gofast configure
992 change.
993 * config/mips/t-elf: Ditto.
994 * config/mips/t-ecoff: Ditto.
995 * config/mips/t-r3900: Ditto.
996 * config/mips/t-iris5-6: Ditto.
997 * config/mips/t-isa3264: Ditto.
998 * config/mips/t-linux: Remove.
999 * config/mips/t-netbsd: Remove.
1000 * config/mips/t-mips: New file.
1001 * config/mips/t-gofast: Ditto.
1002 * config/mips/netbsd.h: Remove unnecessary undefines.
1003 * config/mips/linux.h: Remove #include of mips.h.
1004 * config.gcc: Add mips.h include for elf targets. Remove tm_file
1005 for ecoff. Add gofast configure option for mips.
6d439235 1006
4357a6c3
CD
10072002-07-29 Chris Demetriou <cgd@broadcom.com>
1008
1009 * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
1010 linker scripts use STARTUP directives consistently.
1011 * configure: Regenerate.
1012 * config.in: Regenerate.
1013 * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
1014 on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
1015 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
1016 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
1017 HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
1018 will be the same.
1019
9a5cd606
AH
10202002-07-29 Aldy Hernandez <aldyh@redhat.com>
1021
1022 * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
1023
a23acaa6
AH
10242002-07-29 Aldy Hernandez <aldyh@redhat.com>
1025
1026 * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
1027
10ed84db
AH
10282002-07-29 Aldy Hernandez <aldy@quesejoda.com>
1029
1030 * config/rs6000/rs6000.md: Move altivec patterns from here...
1031
1032 * config/rs6000/altivec.md: ...to here.
1033
c3021e5d
AH
10342002-07-29 Aldy Hernandez <aldyh@redhat.com>
1035
1036 * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
1037
6f1087be
RH
10382002-07-29 Richard Henderson <rth@redhat.com>
1039
1040 * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
1041 set_mem_attributes and add BITPOS argument. Subtract it from
1042 OFFSET when same is adjusted.
1043 (set_mem_attributes): New wrapper function.
1044 * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
1045 remove offset adjustment hack.
1046 * expr.h (set_mem_attributes_minus_bitpos): Declare.
1047
61ccbcfd
GDR
10482002-07-29 Gabriel Dos Reis <gdr@nerim.net>
1049
1050 * Makefile.in (C_OBJS): Include c-pretty-print.o
1051 (c-pretty-print.o): Add depency rule.
1052 * pretty-print.h: Add more macros.
1053 * c-pretty-print.c: New file.
1054 * c-pretty-print.h: Likewise.
1055
09101f56
AH
10562002-07-29 Aldy Hernandez <aldyh@redhat.com>
1057
1058 * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
1059 constants to __ev64_s32__.
1060 (__internal_ev_mwhgsmian): Same.
1061 (__internal_ev_mwhgsmfan): Same.
1062 (__internal_ev_mwhgssfan): Same.
1063 (__internal_ev_mwhgumiaa): Same.
1064 (__internal_ev_mwhgsmiaa): Same.
1065 (__internal_ev_mwhgsmfaa): Same.
1066 (__internal_ev_mwhgssfaa): Same.
1067
af673a52
DE
10682002-07-29 David Edelsohn <edelsohn@gnu.org>
1069
1070 * varasm.c (assemble_variable): Narrow test for uninitialized
1071 without BSS target support.
1072
6c208acd
NS
10732002-07-29 Nathan Sidwell <nathan@codesourcery.com>
1074
1075 * profile.c: Add file comment describing the overall algorithm and
1076 structures.
1077 (struct edge_info): Add comments.
1078 (struct bb_info): Add comments.
1079 * basic-block.h (EDGE_*): Add comments.
1080 * doc/gcov.texi (Gcov Data Files): Document bit flags.
1081
624f0d60
BW
10822002-07-29 Bob Wilson <bob.wilson@acm.org>
1083
1084 * config/xtensa/elf.h, config/xtensa/linux.h
1085 (TARGET_OS_CPP_BUILTINS): Define.
1086 (CPP_PREDEFINES): Remove.
1087 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
1088 (CPP_SPEC): Remove.
1089
2199e5fa
ZW
10902002-07-29 Zack Weinberg <zack@codesourcery.com>
1091
1092 * gensupport.c: Include hashtab.h.
1093 (insn_elision, condition_table, hash_c_test, cmp_c_test,
1094 maybe_eval_c_test): New routines and data structures to
1095 support insn elision.
1096 (init_md_reader): Read and initialize the condition_table.
1097 (read_md_rtx): Discard insn patterns whose C test is provably
1098 always false.
1099 * gensupport.h: Declare new functions and data structures.
1100
1101 * genconditions.c, dummy-conditions.c: New files.
1102 * Makefile.in: Build genconditions; run it to construct
1103 insn-conditions.c; build that and link it into most gen*
1104 programs.
1105 (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
1106 (GEN): Delete, unused.
1107 (STAGESTUFF): Update.
1108
1109 * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
1110 CODE_FOR_nothing for all elided patterns.
1111 (main): Tweaked to support this.
1112 * genflags.c (gen_proto): Emit a static inline generator
1113 function here for all elided patterns, which simply returns
1114 NULL_RTX.
1115 (gen_insn): Do not define HAVE_xxx for elided patterns.
1116 (main): Tweaked to support this. No need to forward-declare
1117 struct rtx_def.
1118 * genrecog.c: Do not bother emitting the C test if it's known
1119 to be true at compile time.
1120
6ab185d6
MS
11212002-07-29 Mike Stump <mrs@apple.com>
1122
6d439235 1123 * config.gcc (target_gtfiles): Initialize, as otherwise cross
2199e5fa 1124 compilers hosted on powerpc-apple-darwin6.0 won't even build.
6ab185d6 1125
72b075d1
RE
11262002-07-29 Richard Earnshaw <rearnsha@arm.com>
1127
1128 * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
1129 remove clobber of LR.
1130 (sibcall_insn, sibcall_value_insn): Update accordingly.
1131 (sibcall_epilogue): Remove debugging comment from assembler stream.
1132
f63c45ec
GDR
11332002-07-29 Gabriel Dos Reis <gdr@nerim.net>
1134
1135 * pretty-print.h: Define more macros.
1136 * diagnostic.h (output_formatted_integer): Moved from...
1137 * diagnostic.c: ... here.
1138
c27c15db
KG
11392002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1140
1141 * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
1142
99086d59
ZW
11432002-07-28 Zack Weinberg <zack@codesourcery.com>
1144
1145 * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
1146 arguments. Always use ".-symbol" as expression argument.
1147 * doc/tm.texi: Update to match. Document requirement for
1148 ".size symbol, .-symbol" to be acceptable to assembler.
1149
1150 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
1151 config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
1152 config/i386/freebsd-aout.h, config/i386/sco5.h,
1153 config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
1154 config/xtensa/linux.h: Update uses of ASM_OUTPUT_MEASURED_SIZE.
1155
dd86aabf
KG
11562002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1157
6fd327e9
KG
1158 * Makefile.in (gengtype-lex.c): Fix error in last change.
1159
8155cedd
KG
1160 * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
1161 backslash.
1162
dd86aabf
KG
1163 * Makefile.in (vmsdbgout.o): Depend on function.h.
1164
1165 * vmsdbgout.c: Include function.h.
1166
d4348177
AM
11672002-07-28 Alan Modra <amodra@bigpond.net.au>
1168
1169 * prefix.c (update_path): Don't strip single `.' path components
1170 unless stripping a later `..' component. Exit loop as soon as
1171 a valid path is found.
1172
c2ef6d34
RS
11732002-07-27 Roger Sayle <roger@eyesopen.com>
1174
1175 * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
1176 argument. Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
1177 BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
1178 floating point unordered comparisons (e.g. __builtin_isgreater)
1179 as const, and leave the remaining GCC_BUILTINs unchanged.
1180
1181 * c-decl.c (builtin_function): No need to explicitly mark
1182 BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
1183
52bfebf0
RS
11842002-07-27 Roger Sayle <roger@eyesopen.com>
1185
1186 * Makefile.in: rtlanal.o now depends upon real.h.
1187
1188 * flags.h [flag_signaling_nans]: New flag.
1189 [HONOR_SNANS]: New macro.
1190
1191 * toplev.c [flag_signaling_nans]: Initialize to false.
99086d59 1192 (f_options): Add processing for "-fsignaling-nans".
52bfebf0
RS
1193 (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
1194 (process_options): flag_signaling_nans implies flag_trapping_math.
1195
1196 * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
1197 when -fsignaling-nans. First step to implementing WG14's N965.
1198
1199 * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
1200 1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
1201 [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
1202
1203 * simplify-rtx.c (simplify_relational_operation): Conditionalize
1204 transforming abs(x) < 0.0 into false on !HONOR_SNANS.
1205
1206 * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
1207 required by HONOR_SNANS. (may_trap_p): Floating point DIV, MOD,
99086d59
ZW
1208 UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
1209 -fsignaling_nans. EQ and NE only trap for flag_signaling_nans
52bfebf0
RS
1210 not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
1211
1212 * doc/invoke.texi: Document new -fsignaling-nans compiler option.
1213
e66f55b8
KG
12142002-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1215
1216 * Makefile.in (gengtype-lex.c): Work around a bug in flex.
1217 * gengtype-lex.l (YY_USE_PROTOS): Undef.
1218 (YY_DECL): Define.
1219
a3926fe1
RS
12202002-07-27 Roger Sayle <roger@eyesopen.com>
1221
1222 * doc/invoke.texi: Document that both -fno-builtin-foo and
1223 -fno-builtin are supported by the g++ front-end.
1224
ef69da62
SS
12252002-07-27 Stan Shebs <shebs@apple.com>
1226
1227 * configure.in: Rename config_gtfiles to target_gtfiles.
1228 * configure: Regenerate.
1229 * doc/gty.texi: Update reference.
1230 * config.gcc (powerpc-*-darwin*): Set target_gtfiles
1231 instead of appending to it.
1232
a4b0320c
AH
12332002-07-25 Aldy Hernandez <aldyh@redhat.com>
1234
1235 * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
1236 vectors are split into two registers.
1237 (function_arg): Same.
1238
c427db5d
R
1239Thu Jul 26 23:00:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
1240
1241 * pa.md (extv): Check predicates before emitting extv_32.
1242
57ac7be9
AM
12432002-07-27 Alan Modra <amodra@bigpond.net.au>
1244
1245 * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
1246 (rs6000_traceback): New var.
1247 (rs6000_override_options): Set rs6000_traceback.
1248 (rs6000_output_function_epilogue): Implement traceback options.
1249 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
1250 (rs6000_traceback_name): Declare.
1251
1252 * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
1253 label reference when NO_PROFILE_COUNTERS.
1254
8e51619a
JM
12552002-07-26 Jason Merrill <jason@redhat.com>
1256
1257 * function.c (assign_parms): Handle frontend-directed pass by
1258 invisible reference.
1259
b41f25cf
NB
12602002-07-26 Neil Booth <neil@daikokuya.co.uk>
1261
1262 * doc/cppopts.texi: Update.
1263
c2734e05
NB
12642002-07-26 Neil Booth <neil@daikokuya.co.uk>
1265
1266 * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
1267 warnings on assertions.
1268
c372b0fa
NB
12692002-07-26 Neil Booth <neil@daikokuya.co.uk>
1270
1271 * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
1272 RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
1273 RID_COMPL): Remove.
1274 * c-parse.in (rid_to_yy): Similarly.
1275
558ee214
JM
12762002-07-26 Jason Merrill <jason@redhat.com>
1277
1278 * c-dump.c: Resurrect.
1279 * tree-dump.c: Move C-specific stuff to c-dump.c.
1280 * c-common.h: Declare c_dump_tree.
1281 * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
1282 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
1283 (c-dump.o): New rule.
1284
ce71f754
AM
12852002-07-26 Alan Modra <amodra@bigpond.net.au>
1286
1287 * config/rs6000/rs6000.md: Enable patterns using rlwinm for
1288 PowerPC64. Replace "T" and "S" constraints with "n" when the
1289 predicate will do. Formatting fixes.
1290 (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
1291 as for extzvsi_internal1.
1292
e179e7d7
NB
12932002-07-25 Neil Booth <neil@daikokuya.co.uk>
1294
1295 * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
1296 DERIV_END_LABEL_FMT): Remove.
1297 (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
1298
a2056183
NB
12992002-07-25 Neil Booth <neil@daikokuya.co.uk>
1300
1301 * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
1302 Remove.
1303
308c142a
SS
13042002-07-25 Stan Shebs <shebs@apple.com>
1305
1306 * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
1307 local var dwarfp.
1308 (output_compiler_stub): Remove unused locals.
1309 (output_call): Always initialize line number.
1310
59324685
R
1311Thu Jul 25 20:34:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
1312
1313 * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
1314 * sh.md (truncdiqi2, movqi_media): Likewise.
1315
77bbd421
NB
13162002-07-25 Neil Booth <neil@daikokuya.co.uk>
1317
1318 * gcse.c (obstack_chunk_alloc): Remove.
1319 (gcse_alloc): Fix to count allocated bytes.
1320 * collect2.c (SYMBOL__MAIN): Remove.
1321
7bad45b0
NB
13222002-07-25 Neil Booth <neil@daikokuya.co.uk>
1323
1324 * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
1325 HAVE_TARGET_EXECUTABLE_SUFFIX.
1326
184166b5
R
1327Thu Jul 25 18:57:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
1328
1329 * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
1330 SIZE, EXPR and OFFSET.
1331
40cb04f1
RH
13322002-07-25 Richard Henderson <rth@redhat.com>
1333
1334 * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
1335 in ARRAY_REF of DECL_P case.
1336
a27fb29b
RS
13372002-07-25 Richard Sandiford <rsandifo@redhat.com>
1338
1339 * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
1340 description. Document -mips32, -mips64, and the associated -march
1341 values. Describe the "mipsN" arguments to -march. Say that the
1342 -mipsN options are equivalent to -march. Reword the description
1343 of default type sizes.
1344 * toplev.h (target_flags_explicit): Declare.
1345 * toplev.c (target_flags_explicit): New var.
1346 (set_target_switch): Update target_flags_explicit.
1347 * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
1348 * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
1349 * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
1350 * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
1351 * config/mips/mips.h (mips_cpu_info): New struct.
1352 (mips_cpu_string, mips_explicit_type_size_string): Remove.
1353 (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
1354 (MIPS_CPP_SET_PROCESSOR): New macro.
1355 (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
1356 Define _MIPS_ARCH and _MIPS_TUNE.
1357 (MIPS_ISA_DEFAULT): Don't provide a default value. Instead...
1358 (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
1359 MIPS_ISA_DEFAULT were already defined.
1360 (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
1361 (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
1362 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
1363 (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
1364 (ABI_GAS_ASM_SPEC): Remove.
1365 (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
1366 (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
1367 Invoke %(asm_abi_default_spec) if no ABI was specified.
1368 (CC1_SPEC): Remove ISA -> register-size rules.
1369 (EXTRA_SPECS): Remove abi_gas_asm_spec. Add asm_abi_default_spec.
1370 * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
1371 (mips_cpu_string, mips_explicit_type_size_string): Remove.
1372 (mips_cpu_info_table): New array.
1373 (mips_set_architecture, mips_set_tune): New fns.
1374 (override_options): Rework to make -mipsN equivalent to -march.
1375 Detect more erroneous cases, including those removed from CC1_SPEC.
1376 Don't change the ABI based on architecture, or vice versa.
1377 Unify logic with GAS.
1378 (mips_asm_file_start): Get architecture name from mips_arch_info.
1379 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
1380 (mips_parse_cpu): Take the name of the option as argument. Handle
1381 'from-abi'. Raise an error if the option is wrong.
1382 (mips_cpu_info_from_isa): New fn.
1383
6bbdc759
RS
13842002-07-25 Richard Sandiford <rsandifo@redhat.com>
1385
1386 * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
1387 (tablejump_mips162): Likewise.
1388
80a62484
R
1389Thu Jul 25 10:23:41 2002 J"orn Rennecke <joern.rennecke@superh.com>
1390
1391 * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
1392 int_mode_for_mode.
1393
ea793912
GDR
13942002-07-25 Gabriel Dos Reis <gdr@nerim.net>
1395
1396 * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
99086d59 1397 complaining.
ea793912
GDR
1398 * c-common.h (c_sizeof): Adjust definition.
1399 (c_alignof): Likewise.
1400 * c-tree.h (c_sizeof_nowarn): Now macro.
1401 * c-typeck.c (c_sizeof_nowarn): Remove definition.
1402
2d615444
NB
14032002-07-25 Neil Booth <neil@daikokuya.co.uk>
1404
1405 * c-decl.c (c_decode_option): No need to handle switches
1406 cpplib handles.
1407
2be2ac70
ZW
14082002-07-24 Zack Weinberg <zack@codesourcery.com>
1409
1410 * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
1411 ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
1412 * doc/tm.texi: Document them. Also document SIZE_ASM_OP,
1413 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
1414
1415 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
1416 config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
1417 config/cris/aout.h, config/i386/freebsd-aout.h,
1418 config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
1419 config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
1420 config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
1421 config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
1422 config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
1423 config/xtensa/elf.h, config/xtensa/linux.h:
1424 Use the new macros.
1425 Where possible, remove redundant definitions of SIZE_ASM_OP,
1426 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
1427
518878e1
AH
14282002-07-24 Aldy Hernandez <aldyh@redhat.com>
1429
1430 * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
1431 TARGET_ISEL, and TARGET_FPRS.
99086d59 1432
518878e1
AH
1433 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1434 -mabi=spe, -mabi=no-spe, and -misel=.
1435
1436 * config/rs6000/rs6000-protos.h: Add output_isel.
1437 Move vrsave_operation prototype here.
1438
1439 * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
1440 (smaxsi3): Same.
1441 (uminsi3): Same.
1442 (umaxsi3): Same.
1443 (abssi2_nopower): Disallow when TARGET_ISEL.
1444 (*ne0): Same.
1445 (negsf2): Change to expand and rename old pattern to *negsf2.
1446 (abssf2): Change to expand and rename old pattern to *abssf2.
99086d59 1447
518878e1
AH
1448 New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
1449 fixunssfsi2.
1450
1451 Change patterns that check for TARGET_HARD_FLOAT or
1452 TARGET_SOFT_FLOAT to also check TARGET_FPRS.
1453
1454 * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
1455 rs6000_isel, rs6000_fprs, rs6000_isel_string.
1456 (rs6000_override_options): Add 8540 case to
1457 processor_target_table.
1458 Set rs6000_isel for the 8540.
1459 Call rs6000_parse_isel_option.
1460 (enable_mask_for_builtins): New.
1461 (rs6000_parse_isel_option): New.
1462 (rs6000_parse_abi_options): Add spe and no-spe.
1463 (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
1464 (rs6000_legitimize_address): Check for TARGET_FPRS when checking
1465 for TARGET_HARD_FLOAT.
1466 Add case for SPE_VECTOR_MODE.
1467 (rs6000_legitimize_reload_address): Handle SPE vector modes.
1468 (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
1469 vector modes.
1470 Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
1471 (rs6000_emit_move): Check for TARGET_FPRS.
1472 Add cases for SPE vector modes.
1473 (function_arg_boundary): Return 64 for SPE vector modes.
1474 (function_arg_advance): Check for TARGET_FPRS and
1475 Handle SPE vectors.
1476 (function_arg): Same.
1477 (setup_incoming_varargs): Check for TARGET_FPRS.
1478 (rs6000_va_arg): Same.
1479 (struct builtin_description): Un-constify mask field. Move up in
1480 file.
1481 (bdesc_2arg): Un-constify and add SPE builtins.
1482 (bdesc_1arg): Same.
1483 (bdesc_spe_predicates): New.
1484 (bdesc_spe_evsel): New.
1485 (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
1486 (rs6000_expand_binop_builtin): Same.
1487 (bdesc_2arg_spe): New.
1488 (spe_expand_builtin): New.
1489 (spe_expand_predicate_builtin): New.
1490 (spe_expand_evsel_builtin): New.
1491 (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
1492 (rs6000_init_builtins): Initialize SPE builtins. Call
1493 rs6000_common_init_builtins.
1494 (altivec_init_builtins): Move all non-altivec builtin code to...
1495 (rs6000_common_init_builtins): ...here. New function.
1496 (branch_positive_comparison_operator): Allow NE code for SPE.
1497 (ccr_bit): Return correct ccr bit for SPE fp.
1498 (print_operand): Emit crnor in 'D' case for SPE.
1499 New case 't'.
1500 Add SPE code for 'y' case.
1501 (rs6000_generate_compare): Generate rtl for SPE fp.
1502 (output_cbranch): Handle SPE hard floats.
1503 (rs6000_emit_cmove): Handle isel.
1504 (rs6000_emit_int_cmove): New.
1505 (output_isel): New.
1506 (rs6000_stack_info): Adjust stack frame so GPRs are saved in
1507 64-bits for SPE.
1508 (debug_stack_info): Add SPE info.
1509 (gen_frame_mem_offset): New.
1510 (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
1511 Change mode of frame pointer, when saving it, to Pmode.
1512 (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
1513 Misc cleanups and use gen_frame_mem_offset when appropriate.
1514
1515 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
1516 (TARGET_SPE_ABI): New.
1517 (TARGET_SPE): New.
1518 (TARGET_ISEL): New.
1519 (TARGET_FPRS): New.
1520 (FIXED_SCRATCH): New.
1521 (RTX_COSTS): Add PROCESSOR_PPC8540.
1522 (ASM_CPU_SPEC): Add case for 8540.
1523 (TARGET_OPTIONS): Add isel= case.
1524 (rs6000_spe_abi): New.
1525 (rs6000_isel): New.
1526 (rs6000_fprs): New.
1527 (rs6000_isel_string): New.
1528 (UNITS_PER_SPE_WORD): New.
1529 (LOCAL_ALIGNMENT): Adjust for SPE.
1530 (HARD_REGNO_MODE_OK): Same.
1531 (DATA_ALIGNMENT): Same.
1532 (MEMBER_TYPE_FORCES_BLK): New.
1533 (FIRST_PSEUDO_REGISTER): Set to 113.
1534 (FIXED_REGISTERS): Add SPE registers.
1535 (reg_class): Same.
1536 (REG_CLASS_NAMES): Same.
1537 (REG_CLASS_CONTENTS): Same.
1538 (REGNO_REG_CLASS): Same.
1539 (REGISTER_NAMES): Same.
1540 (DEBUG_REGISTER_NAMES): Same.
1541 (ADDITIONAL_REGISTER_NAMES): Same.
1542 (CALL_USED_REGISTERS): Same.
1543 (CALL_REALLY_USED_REGISTERS): Same.
1544 (SPE_ACC_REGNO): New.
1545 (SPEFSCR_REGNO): New.
1546 (SPE_SIMD_REGNO_P): New.
1547 (HARD_REGNO_NREGS): Adjust for SPE.
1548 (VECTOR_MODE_SUPPORTED_P): Same.
1549 (REGNO_REG_CLASS): Same.
1550 (FUNCTION_VALUE): Same.
1551 (LIBCALL_VALUE): Same.
1552 (LEGITIMATE_OFFSET_ADDRESS_P): Same.
1553 (SPE_VECTOR_MODE): New.
1554 (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
1555 the GPRs. Set FIXED_SCRATCH fixed in SPE case.
1556 (rs6000_stack): Add spe_gp_size, spe_padding_size,
1557 spe_gp_save_offset.
1558 (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
1559 (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
1560 (SPE_CONST_OFFSET_OK): New.
1561 (rs6000_builtins): Add SPE builtins.
1562
1563 * testsuite/gcc.dg/ppc-spe.c: New.
99086d59 1564
518878e1
AH
1565 * config/rs6000/eabispe.h: New.
1566
1567 * config/rs6000/spe.h: New.
1568
1569 * config/rs600/spe.md: New.
1570
1571 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1572 __SIMD__ for TARGET_SPE.
1573
1574 * config.gcc: Add powerpc-*-eabispe* case.
1575 Add spe.h to user headers for powerpc.
1576
8d1b7ba1
CD
15772002-07-24 Chris Demetriou <cgd@broadcom.com>
1578
1579 * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
1580 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
1581 * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
1582
8ad8135a
RH
15832002-07-24 Richard Henderson <rth@redhat.com>
1584
1585 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
1586 form when not optimizing.
1587
dc44a4d8
DM
15882002-07-24 David Mosberger <davidm@hpl.hp.com>
1589
1590 * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
1591 thread_pointer_rtx as unchanging.
1592
c5605318
MM
15932002-07-24 Michael Matz <matz@suse.de>
1594
1595 * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
1596 (free_reg): Use it.
1597
3ade30ea
RE
15982002-07-24 Richard Earnshaw <rearnsha@arm.com>
1599
1600 * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
1601 pattern.
1602 (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
1603 (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
1604
8a3ad737
CD
16052002-07-24 Chris Demetriou <cgd@broadcom.com>
1606
1607 * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
1608 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
1609 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
1610
7e51e626
JH
1611Wed Jul 24 17:59:12 CEST 2002 Jan Hubicka <jh@suse.cz>
1612
1613 * toplev.c (rest_of_compilation): Dump loops before clobbering
1614 the structure.
1615
5df533b3
JH
1616Wed Jul 24 17:23:16 CEST 2002 Jan Hubicka <jh@suse.cz>
1617
1618 * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
1619
79258dce
RS
16202002-07-24 Frank van der Linden <fvdl@wasabisystems.com>
1621
1622 PR optimization/7291
1623 * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
1624 problem on x86_64.
1625
26ff2117
GDR
16262002-07-24 Gabriel Dos Reis <gdr@nerim.net>
1627
1628 * pretty-print.h: Add macros from cp/error.c
1629
0ba1b2ff
AM
16302002-07-24 Alan Modra <amodra@bigpond.net.au>
1631
1632 * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
1633 (mask64_2_operand): Declare.
1634 (build_mask64_2_operands): Declare.
1635 (and64_2_operand): Declare.
1636 (extract_MB): Declare.
1637 (extract_ME): Declare.
1638 * config/rs6000/rs6000.c (mask64_operand): Allow all ones. Remove
1639 CONST_DOUBLE code.
1640 (mask_operand_wrap): New insn predicate.
1641 (mask64_2_operand): Likewise.
1642 (and64_2_operand): Likewise.
1643 (build_mask64_2_operands): New function.
1644 (extract_MB): New function.
1645 (extract_ME): New function.
1646 (print_operand <case m,M>): Use extract_MB and extract_ME.
1647 (print_operand <case S>): Allow all ones. Remove CONST_DOUBLE support.
1648 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
1649 (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
1650 mask64_2_operand. Remove CONST_DOUBLE from mask64_operand.
1651 * config/rs6000/rs6000.md (andsi3_internal3): New
1652 (andsi3_internal3+1): Enable split for powerpc64.
1653 (andsi3_internal3+2): New split.
1654 (andsi3_internal4): Renamed old andsi3_internal3.
1655 (andsi3_internal5): New.
1656 (andsi3_internal5+1): Enable split for powerpc64.
1657 (andsi3_internal5+2): New split.
1658 (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
1659 (anddi3): Handle 't' constraint.
1660 (anddi3+1): New split.
1661 (anddi3_internal2): Handle 't' constraint.
1662 (anddi3_internal2+1): New split.
1663 (anddi3_internal3): Handle 't' constraint.
1664 (anddi3_internal3+1): New split.
1665
097657c3
AM
16662002-07-24 Alan Modra <amodra@bigpond.net.au>
1667
1668 * config/rs6000/rs6000.md: Remove scratch reg on insns using
1669 addze and similar (plus (comparison r1 r2) r3) insns. Add
1670 missing scratch reg in one case. Formatting fixes.
1671
a69cbaac
NB
16722002-07-24 Neil Booth <neil@daikokuya.co.uk>
1673
1674 * cppexp.c (parse_defined): Mark macro used.
1675 * cpphash.h (struct cpp_macro): New member "used".
1676 (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
1677 (struct cpp_reader): New member.
1678 * cppinit.c (cpp_finish_options): Set first_unused_line.
1679 (cpp_finish): Warn of unused macros if requested.
1680 (OPT_TABLE): New switches.
1681 (cpp_handle_option): Handle them.
1682 * cpplib.c (do_undef): Warn if macro unused.
1683 (do_ifdef, do_ifndef): Mark macro used.
1684 * cpplib.h (struct cpp_options): New member.
1685 * cppmacro.c (_cpp_warn_if_unused_macro): New.
1686 (enter_macro_context): Mark macro used.
1687 (_cpp_create_definition): Mark macro unused; warn if unused
1688 when redefined.
1689 * cpptrad.c (scan_out_logcial_line, push_replacement_text):
1690 Mark macros used.
1691 * doc/cppopts.texi: Update.
1692
c0667597
NB
16932002-07-23 Neil Booth <neil@daikokuya.co.uk>
1694
1695 * dwarf2out.c (SECTION_ASM_OP,
1696 ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
1697 * system.h (SECTION_ASM_OP): Poison.
1698 * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
1699 * config/alpha/alpha-interix.h, config/mips/linux.h
1700 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
1701 * config/mmix/mmix-protos.h, config/mmix/mmix.c
1702 (mmix_asm_output_define_label_difference_symbol): Remove.
1703 * config/mmix/mmix.h
1704 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
b841421a 1705 * doc/tm.texi: Remove documentation.
c0667597 1706
bf7cd754
R
1707Tue Jul 23 21:49:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
1708
1709 * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
1710 (constrain_operands): Likewise.
1711 * regclass.c (record_reg_classes): Likewise.
1712 * reload.c (find_reloads): Likewise.
1713 * doc/md.texi: Likewise.
451f86fd
R
1714
1715 * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
1716 * simplify-rtx.c (simplify_subreg): When converting to a non-int
1717 mode, try to convert to an integer mode of matching size first.
1d5fa6b4
R
1718
1719 * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
1720 from individual subregs, check that each subreg has been generated
1721 sucessfully.
1722
10d6af32
NB
17232002-07-23 Neil Booth <neil@daikokuya.co.uk>
1724
1725 * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
1726 * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
1727 FOR_EACH_BB_IN_SBITMAP): Remove.
1728 * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
1729 * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
1730 LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
1731 * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
1732 PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
1733 * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
1734
6aaae39a
GDR
17352002-07-23 Gabriel Dos Reis <gdr@nerim.net>
1736
1737 * pretty-print.h: New file.
1738
45e574d0
JDA
17392002-07-23 Paul Koning <pkoning@equallogic.com>
1740
1741 * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
1742 (LARGEST_EXPONENT_IS_NORMAL): Ditto.
1743 (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
1744 (TARGET_G_FLOAT): Default to 0 if not defined.
99086d59 1745 (ieeetoe): New, common routine to convert target format floats
45e574d0
JDA
1746 to internal form.
1747 (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
1748 vs. others.
1749 (e113toe): Change to use ieeetoe.
1750
17512002-07-23 Roman Lechtchinsky <rl@cs.tu-berlin.de>
1752
1753 * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
1754 IBM.
1755 (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
1756 (e64toe): Remove special cases for DEC and IBM. Remove support for
1757 ARM_EXTENDED_IEEE_FORMAT.
1758 (e24toe): Remove special cases for DEC.
1759 (significand_size): Simplify. Indent.
1760 (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
1761 (etoieee, toieee): New.
1762 (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
1763 etoieee and toieee for IEEE arithmetic.
1764
3764f879
GDR
17652002-07-23 Gabriel Dos Reis <gdr@nerim.net>
1766
1767 * doc/extend.texi: Say ISO C90, not ISO C89.
1768 * doc/invoke.texi: Likewise.
1769 * doc/standards.texi: Likewise.
1770
aa0f70e6
SE
17712002-07-23 Steve Ellcey <sje@cup.hp.com>
1772
1773 * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
1774 Fix permutation of conversion and plus/mult.
1775 * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
1776 ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
1777 (expand_builtin_strncpy) Ditto.
1778 (expand_builtin_memset) Ditto.
1779
fa72b064
GDR
17802002-07-23 Gabriel Dos Reis <gdr@nerim.net>
1781
1782 Fix PR/7363:
1783 * c-common.c (c_sizeof_or_alignof_type): New function.
1784 (c_alignof): Remove definition.
1785 * c-common.h (c_sizeof, c_alignof): Define as macros.
1786 (c_sizeof_or_alignof_type): Declare.
1787 (my_friendly_assert): Moved from cp/cp-tree.h
1788 * c-typeck.c (c_sizeof): Remove definition.
1789
2b773ee2
JH
17902002-07-23 Jan Hubicka <jh@suse.cz>
1791
1792 * gcse.c (try_replace_reg): Use num_changes_pending.
1793 * recog.c (num_changes_pending): New function.
1794 (validate_replace_src): Use validate_repalce_src_group.
1795 (validate_replace_src_group): New.
1796 * recog.h (validate_repalce_src_group): New.
1797 (num_changes_pending): Likewise.
1798
a0dc500c
R
1799Tue Jul 23 12:16:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
1800
1801 * calls.c (emit_library_call_value_1): If
1802 FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
1803 libcall, const call nor pure call.
1804
d22eda7b
NB
18052002-07-23 Neil Booth <neil@daikokuya.co.uk>
1806
1807 * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
1808
b5e66e65
NB
18092002-07-23 Neil Booth <neil@daikokuya.co.uk>
1810
1811 * vmsdbgout.c (SECTION_ASM_OP): Remove.
1812
c3a600c0
NB
18132002-07-23 Neil Booth <neil@daikokuya.co.uk>
1814
1815 * config/i386/i386.c (AT_BP): Remove.
1816
4fa31c2a
NB
18172002-07-23 Neil Booth <neil@daikokuya.co.uk>
1818
1819 * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
1820 Default definition.
1821 * gcse.c: Don't define obstack_chunk_free.
1822 * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
1823 flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
1824 integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
1825 reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
1826 Don't define obstack macros.
1827
fd576c86
SC
18282002-07-22 Stephane Carrez <stcarrez@nerim.fr>
1829
1830 PR target/6744
1831 * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
1832 ASM_OPERANDS instructions.
1833
b791ff31
SC
18342002-07-22 Stephane Carrez <stcarrez@nerim.fr>
1835
1836 PR target/7361
1837 * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
1838 constant addresses only on 68HC12.
1839
4a941115
NB
18402002-07-22 Neil Booth <neil@daikokuya.co.uk>
1841
1842 * cppfiles.c (stack_include_file): Correct test of whether
1843 a dependency should be output.
1844
7488cc6d
DE
18452002-07-22 David Edelsohn <edelsohn@gnu.org>
1846
1847 * collect2.c (is_ctor_dtor): Add other possible JOINER values.
1848
b41caf7c
RE
18492002-07-22 Richard Earnshaw <rearnsha@arm.com>
1850
1851 * arm.md (movqi): If optimizing and we can create pseudos, use
1852 a ZERO_EXTEND to load from memory, then copy the result into the
1853 target.
1854 (movhi): Likewise, but only for ARMv4.
1855
492e9934
NB
18562002-07-22 Neil Booth <neil@daikokuya.co.uk>
1857
1858 * ssa-ccp.c (PHI_PARMS): Remove.
1859
f01f01a6
RS
18602002-07-22 Richard Sandiford <rsandifo@redhat.com>
1861
1862 * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
1863 on big-endian targets.
1864
c2ae8aef
KG
18652002-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1866
1867 * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
1868 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
1869 HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
1870 New formatting macros.
1871
1872 * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
1873
eab2120d
R
1874Mon Jul 22 15:27:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
1875
1876 * rtlanal.c (subreg_regno_offset): Return correct offset for
1877 big endian paradoxical subregs.
0d541696
R
1878
1879 * optabs.c (expand_vector_unop): Don't expand using sub_optab
1880 if we got the wrong mode.
bb9b3805
R
1881
1882 * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
1883 * genrecog.c (write_switch, write_cond): Use it.
1884 * genemit.c (gen_exp): Likewise.
1885
e96eb215
JJ
18862002-07-22 Jakub Jelinek <jakub@redhat.com>
1887
1888 * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
1889
cf3c4f56
JJ
18902002-07-22 Jakub Jelinek <jakub@redhat.com>
1891
1892 * c-decl.c (build_compound_literal): Defer compound literal decls
1893 until until file end to emit them only if they are actually used.
1894
533c4863
KG
18952002-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1896
1897 * ra-build.c (check_conflict_numbers): Hide unused function.
1898 (livethrough_conflicts_bb): Avoid automatic aggregate
1899 initialization.
1900 (parts_to_webs_1): Avoid `U' integer constant modifier.
1901 (conflicts_between_webs): Wrap a variable in the macro controlling
1902 its usage.
1903 * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
1904 (dump_igraph, dump_graph_cost): Avoid string concatenation
1905 (dump_static_insn_cost): Avoid automatic aggregate
1906 initialization.
1907 * ra-rewrite.c (insert_stores): Avoid automatic aggregate
1908 initialization.
1909 (dump_cost): Avoid string concatenation
1910
8943a0b4
RH
19112002-07-21 Richard Henderson <rth@redhat.com>
1912
1913 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
1914 GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
1915
b1aef35b
RH
19162002-07-21 Richard Henderson <rth@redhat.com>
1917
1918 * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
1919 that are not unrolled completely.
1920
5e1afb11
RH
19212002-07-21 Richard Henderson <rth@redhat.com>
1922
1923 * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
1924 * loop.c (strength_reduce): Update.
1925 * toplev.c (rest_of_compilation): Do unrolling in the first
1926 loop pass, not the second.
1927
c67a1cf6
RH
19282002-07-21 Richard Henderson <rth@redhat.com>
1929
1930 * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
1931 when flag_argument_noalias == 2.
1932 * alias.c (nonoverlapping_memrefs_p): Handle that.
1933 * print-rtl.c (print_mem_expr): Likewise.
1934
b68daef4
HS
19352002-07-21 Hartmut Schirmer <hartmut.schirmer@arcor.de>
1936
1937 * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
1938 instead of __negdi2 directly.
1939
060a58c5
NB
19402002-07-21 Neil Booth <neil@daikokuya.co.uk>
1941
1942 * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
1943 * function.c (SYMBOL__MAIN): Remove definition.
1944 * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
99086d59 1945 * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
060a58c5
NB
1946 * profile.c (GCOV_INDEX_TO_BB): Remove.
1947 * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
1948 * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
1949
2f8dd115
NB
19502002-07-21 Neil Booth <neil@daikokuya.co.uk>
1951
1952 * c-lex.c (GET_ENVIRONMENT): Remove.
1953 * collect2.c (GET_ENV_PATH_LIST): Remove.
1954 (prefix_from_env): Use GET_ENVIRONMENT.
1955 * cppinit.c (GET_ENV_PATH_LIST): Remove.
1956 (init_standard_includes): Use GET_ENVIRONMENT.
1957 * defaults.h (GET_ENVIRONMENT): Define here if not already.
1958 * gcc.c (GET_ENV_PATH_LIST): Remove.
1959 (make_relative_prefix, process_command): Update.
1960 * protoize.c (GET_ENV_PATH_LIST): Remove.
1961 (do_processing): Update.
1962
56508306
GDR
19632002-07-21 Gabriel Dos Reis <gdr@nerim.net>
1964
1965 * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
1966 (grokdeclarator): Likewise.
1967 * c-format.c (C_STD_NAME): Likewise.
1968 * c-lex.c (interpret_integer): Likewise.
1969 * c-typeck.c (build_array_ref): Likewise.
1970 * cpplex.c (_cpp_lex_direct): Likewise.
1971 * toplev.c (documented_lang_options): Likewise.
1972
e2f62855
NB
19732002-07-21 Neil Booth <neil@daikokuya.co.uk>
1974
1975 * c-format.c (T99_I, T99_UI): Remove.
1976
c89d1dfd
NB
19772002-07-21 Neil Booth <neil@daikokuya.co.uk>
1978
1979 * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
1980
46690369
JH
1981Sun Jul 21 21:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1982
1983 * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
1984 do_local_cprop.
1985
60ffc1b8
AJ
19862002-07-21 Andreas Jaeger <aj@suse.de>
1987
99086d59 1988 * reload1.c (fixup_abnormal_edges): Remove unused variable.
60ffc1b8 1989
c05ffc49
BS
19902002-07-21 Bernd Schmidt <bernds@redhat.com>
1991
1992 Improvements for the ifcvt pass from Michael Meissner, with patches
1993 by Richard Sandiford <rsandifo@redhat.com>
1994 * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
1995 * ifcvt.c (cond_exec_changed_p): New static variable.
1996 (last_active_insn): New function, renamed from last_active_insn_p
1997 and changed to return the last active insn in a basic block. All
1998 callers updated.
1999 (block_fallthru): New function.
2000 (cond_exec_process_insns): New argument CE_INFO. Pass it to
2001 IFCVT_MODIFY_INSN. All callers updated.
2002 Return false if START or END are NULL.
2003 Handle case where we're processing an insn that is already
2004 conditional.
2005
2006 (noce_process_if_block): CE_INFO argument rather than
2007 multiple args containing the involved basic blocks. All callers
2008 changed.
2009 (process_if_block, merge_if_block, find_if_block,
2010 cond_exec_process_if_block): Likewise.
2011
2012 (cond_exec_process_if_block): New arg DO_MULTIPLE_P. All callers
2013 changed.
2014 Use new function last_active_insn to simplify some code.
2015 New code to handle multiple tests.
2016 Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
2017 cond_exec_changed_p to TRUE.
2018
2019 (process_if_block): New code to handle multiple tests.
2020 (merge_if_block): Likewise.
2021 (find_if_header): New arg PASS. Changed to return the currently
2022 processed basic block or NULL instead of true/false. All callers
2023 changed.
2024 Call IFCVT_INIT_EXTRA_FIELDS.
2025 (block_jumps_and_fallthru_p): New function.
2026 (find_if_block): Discover opportunities to convert multiple tests.
2027 Add additional debugging output.
2028 Update the ce_info structure before returning.
2029
2030 (if_convert): Run multiple passes of if-conversion.
2031 * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
2032 IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
2033 IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
2034 these macros.
2035
ae860ff7
JH
2036Sun Jul 21 00:54:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2037
2038 * gcse.c: Include cselib.h
2039 (constptop_register): Break out from ...
2040 (cprop_insn): ... here; kill basic_block argument.
2041 (do_local_cprop, local_cprop_pass): New functions.
2042 (one_cprop_pass): Call local_cprop_pass.
2043
0da65b89
RS
20442002-07-20 Roger Sayle <roger@eyesopen.com>
2045
2046 * simplify-rtx.c (simplify_relational_operation): Optimize
2047 abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
2048
47cc673a
MM
20492002-07-20 Michae Matz <matz@suse.de>
2050
2051 * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
2052
68e65275
NB
20532002-07-20 Neil Booth <neil@daikokuya.co.uk>
2054
2055 * cppexp.c (struct op): Add token pointer.
2056 (check_promotion, CHECK_PROMOTION): New.
2057 (optab): Update.
2058 (_cpp_parse_expr): Update, use token pointer of struct op.
2059 (reduce): Warn about change of sign owing to promotion.
2060 * cppinit.c (cpp_handle_option): New warning if -Wall.
2061 * cpplib.h (struct cpp_options): New member.
2062
e3485bbc
DE
20632002-07-19 David Edelsohn <edelsohn@gnu.org>
2064
2065 * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
2066 fpu list. Separate Power4 compare and delayed_compare. Correct
2067 Power4 fpcompare.
2068 (fix_truncdfsi2_internal): Restore FPR preference.
2069 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
2070 mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
2071
449655a6
MV
20722002-07-19 Momchil Velikov <velco@fadata.bg>
2073
2074 * reload1.c (reload_as_needed): Duplicate oldpat.
2075
8b583747
AM
20762002-07-20 Alan Modra <amodra@bigpond.net.au>
2077
2078 PR optimization/7130
2079 * loop.h (struct loop_info): Add "preconditioned".
2080 * unroll.c (unroll_loop): Set it.
2081 * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
2082
0dc36574
ZW
20832002-07-19 Zack Weinberg <zack@codesourcery.com>
2084
2085 * rtl.def (CODE_LABEL): Remove slot 8.
2086 * rtl.h (struct rtx_def): Document new uses of jump and call fields.
2087 (LABEL_ALTERNATE_NAME): Delete.
2088 (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
2089 * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
2090
2091 * final.c (output_alternate_entry_point): New.
2092 (final_scan_insn): Use it instead of
2093 ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
2094 of a case label being an alternate entry point.
2095
2096 * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
2097 * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
2098 Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
2099 (field deleted).
2100 * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
2101
2102 * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
2103 LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
2104 * doc/tm.texi: Delete documentation of
2105 ASM_OUTPUT_ALTERNATE_LABEL_NAME.
2106
59267987
RO
21072002-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2108
2109 * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
2110 (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
2111 (LINK_SPEC): Define.
2112 (STARTFILE_SPEC): Define.
2113 (ENDFILE_SPEC): Define.
2114
2115 * config/mips/iris6-o32.h (LINK_SPEC): Move ...
2116 * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
2117
2118 * config/mips/iris6-o32-gas.h: New file.
2119 * config.gcc (mips-sgi-irix6*o32): Use it.
2120
2121 * config/mips/t-iris5-gas: New file.
2122 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
2123
75aef48a
NB
21242002-07-19 Neil Booth <neil@daikokuya.co.uk>
2125
2126 * cppexp.c (ALWAYS_EVAL): Remove.
2127 (optab, reduce): Always evaluate.
2128 (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
2129 only if not skipping evaluation.
2130
72a5503d
MM
21312002-07-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
2132
2133 * config/avr/avr.c (debug_hard_reg_set): Remove.
2134
059ba716
CD
21352002-07-19 Chris Demetriou <cgd@broadcom.com>
2136
2137 * gcc.c (cpp_options): Include "%1" (cc1_spec).
2138
544823b6
RH
21392002-07-19 Richard Henderson <rth@redhat.com>
2140
2141 * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
2142
c35383cb
AM
21432002-07-19 Alan Modra <amodra@bigpond.net.au>
2144
2145 * prefix.c (update_path): Don't zap single `.' path components
2146 unless followed by another `.' and fix typo last patch.
2147
ad28cff7
NB
21482002-07-18 Neil Booth <neil@daikokuya.co.uk>
2149
2150 * cppexp.c (cpp_num_mul): Remove unused parameter.
2151 (UNARY, BINARY, OTHER, binary_handler): Remove.
2152 (ALWAYS_EVAL): New.
2153 (optab): Update.
2154 (reduce): Refactor to a large switch, don't use a function
2155 pointer.
2156
139b7f86
BT
21572002-07-18 Bo Thorsen <bo@berlioz.suse.de>
2158
2159 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
2160
e69d1422
R
2161Thu Jul 18 19:39:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
2162
2163 * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
2164 (sh_expand_binop_v2sf): Likewise.
2165 * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
2166 (int_gpr_dest, trunc_hi_operand): New functions.
2167 * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
2168 trunc_hi_operand.
2169 (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
2170 * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
2171 (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
2172 (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
2173 (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
2174 (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
2175 (extendhisi2_media+1, extendqisi2_media+1): Likewise.
2176 (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
2177 (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
2178 (movsf_ie+1): Likewise.
2179 (loaddi_trunc): Use int_gpr_dest predicate.
2180 (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
2181 (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
2182 (casesi_worker_0+[12], casesi_worker): Likewise.
2183 (shcompact_preserve_incoming_args): Likewise.
2184 (mov_nop): Use any_register_operand predicate.
2185 (mperm_w0): Use trunc_hi_operand predicate.
2186
47a4976f
JDA
21872002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
2188
2189 * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
2190 * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
2191 numbering.
2192
f3a4e54e
JDA
21932002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
2194
2195 * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
2196
30484ccf
RH
21972002-07-18 Richard Henderson <rth@redhat.com>
2198
2199 PR optimization/7147
2200 * ifcvt.c (noce_get_condition): Make certain that the condition
2201 is valid at JUMP.
2202
d042370e
R
2203Thu Jul 18 13:44:51 2002 J"orn Rennecke <joern.rennecke@superh.com>
2204
2205 * sh.c (barrier_align, push): Shut up compiler warnings.
2206 (initial_elimination_offset,sh_media_init_builtins): Likewise.
2207 (reg_no_subreg_operand): Delete.
2208
61fee9b3
BT
22092002-07-17 Bo Thorsen <bo@suse.de>
2210
2211 * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
2212 (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
2213 (STARTFILE_SPEC): Remove hardcoded library paths.
2214 (ENDFILE_SPEC): Likewise.
2215
f305679f
JH
2216Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
2217
2218 * gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
2219
2220 * gcse.c (try_replace_reg): Do not return false positives.
2221
99bcb625
AM
22222002-07-18 Alan Modra <amodra@bigpond.net.au>
2223
f6f23ad2
AM
2224 * prefix.c: (update_path): Strip ".." components when prior dir
2225 doesn't exist. Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
2226
99bcb625
AM
2227 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
2228 (ASM_OUTPUT_REG_POP): Likewise.
2229
09eeeacb
AM
22302002-07-18 Alan Modra <amodra@bigpond.net.au>
2231
2232 * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
2233 adjustments to first_reg for profiling case.
2234 (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
2235 Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
2236 Save static chain reg to sp + 12 on ABI_AIX_NODESC.
2237 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
2238 (ASM_OUTPUT_REG_POP): Define.
2239 * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
2240 (ASM_OUTPUT_REG_POP): Undef.
2241
74d06cf2
NB
22422002-07-17 Neil Booth <neil@daikokuya.co.uk>
2243
2244 * cpplib.c (do_sccs): Handle #sccs on all systems.
2245 * system.h (SCCS_DIRECTIVE): Poison.
2246 * config/darwin.h, config/freebsd.h, config/netbsd.h,
2247 config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
2248 config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
2249 config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
2250 config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
2251 config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
2252 config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
2253 config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
2254 Remove all references to SCCS_DIRECTIVE.
2255 * doc/cpp.texi, doc/tm.texi: Update.
2256
61dde664
R
2257Wed Jul 17 19:23:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
2258
2259 * regrename.c (maybe_mode_change): New function.
2260 (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
2261
97f51ac4
RB
22622002-07-17 Rodney Brown <rbrown64@csc.com.au>
2263
2264 * config/i386/i386.c (ix86_expand_int_movcc): In the general case
2265 suppress addition when either ct or cf are zero.
2266
f1a73cfe 22672002-06-17 Eric Botcazou <ebotcazou@multimania.com>
30484ccf 2268 Glen Nakamura <glen@imodulo.com>
f1a73cfe
EB
2269
2270 PR optimization/6713
2271 * loop.c (loop_givs_rescan): Explicitly delete the insn that
2272 sets a non-replaceable giv after issuing the new one.
2273
23ff0223
NB
22742002-07-17 Neil Booth <neil@daikokuya.co.uk>
2275
2276 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
2277 eval_token): Clarify and correct use of "bool" variables.
2278 * cpplib.h (struct cpp_options): Similarly.
2279 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
2280 * cpptrad.c (recursive_macro): Similarly.
2281
ac09192a
R
2282Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
2283
d28586ab 2284 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
ac09192a 2285 SHmedia code.
68cef009
R
2286
2287 * sh.md (cmpgtudi_media): Remove spurious @.
701e3726
R
2288
2289 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
2290 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
ca903bba
R
2291
2292 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
2293 * sh-protos.h (sh_initialize_trampoline): Declare.
2294 * sh.c (sh_initialize_trampoline): New function.
2295 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
2296 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
2297 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
2298 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
2299 * sh.md (initialize_trampoline, double_shori): New patterns.
2300 (initialize_trampoline_compact): Likewise.
2301 (shmedia32_initialize_trampoline_big): Remove.
2302 (shmedia32_initialize_trampoline_little): Likewise.
0ac78517
R
2303
2304 * sh-protos.h (binary_float_operator): Remove declaration.
2305 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
2306 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
2307 (unary_float_operator, sh_expand_unop_v2sf): New functions.
2308 (sh_expand_binop_v2sf): Likewise.
2309 (zero_vec_operand): Delete.
2310 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
2311 all non-shared ones.
2312 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
2313 Enable nsb and byterev.
2314 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
2315 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
2316 in general regs.
2317 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
2318 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
2319 immediate operands.
2320 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
2321 Add DF_HI_REGS.
2322 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
2323 lowpart fp regs - only for big endian for now.
2324 (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
2325 when FPU is in use.
2326 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
2327 (LOAD_EXTEND_OP): NIL for SImode.
2328 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
2329 general and fp registers is 4.
2330 PREDICATE_CODES: Amend binary_float_operator entry.
2331 Remove zero_vec_operand. Add unary_float_operator.
2332 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
2333 subreg SET_DEST.
2334 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
2335 (truncdiqi2): Do sign extension.
2336 (movsi_media, movdi_media): Allow to use r63 to an fp register.
2337 (movdf_media, movsf_media): Likewise.
2338 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
2339 Collapse to one define_insn_and_split. Allow immediate sources.
2340 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
2341 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
2342 (movv4sf): Allow immediate sources.
2343 (movsf_media_nofpu+1): Don't split moves to FP registers.
2344 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
2345 (movv8qi_i+3): Check against CONST0_RTX.
2346 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
2347 for input and output operands. Fix argument 3 to gen_mextr_rl.
2348 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
2349 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
2350 (mshf0_w, fipr, ftrv): Likewise.
2351 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
2352
e9d7b180
JD
23532002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2354
2355 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
2356 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
2357 * arm.c: Similarly.
2358
8214bf98
RS
23592002-07-17 Richard Sandiford <rsandifo@redhat.com>
2360
2361 * config/mips/mips-protos.h (mips_sign_extend): Declare.
2362 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
2363 (TARGET_SWITCHES): Remove debugh.
2364 (ISA_HAS_TRUNC_W): New macro.
2365 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
2366 (PREDICATE_CODES): Remove se_nonimmediate_operand.
2367 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
2368 any SImode move_operand.
2369 (se_nonimmediate_operand): Remove.
2370 (mips_sign_extend): New.
2371 (mips_move_2words): Use it for sign-extended source operands.
2372 (override_options): Allow integers to be put into single FPRs.
2373 (mips_secondary_reload_class): Handle integers in float registers.
2374 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
2375 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
2376 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
2377 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
2378 (fix_truncdfdi2): Provide only a single alternative, in which the
2379 integer is in a float register. Depend on TARGET_FLOAT64 rather
2380 than TARGET_64BIT.
2381 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
2382 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
2383 (movdi_internal2): Don't allow the source operand to be sign-extended.
2384 Add alternatives for float registers.
2385 (*movdi_internal2_extend): New. Version of movdi_internal2 that
2386 allows sign-extension.
2387 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
2388 (movsi_internal2): Rename to movsi_internal. Add alternatives for
2389 float registers. Remove TARGET_DEBUG_H_MODE test.
2390 (movhi_internal1): Rename to movhi_internal. Don't check
2391 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
2392 (movqi_internal1): Rename to movqi_internal and remove
2393 TARGET_DEBUG_H_MODE dependency.
2394 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
2395
7ab0121e
JW
23962002-07-16 Jim Wilson <wilson@redhat.com>
2397
2398 * toplev.c (lang_dependent_init): Create function context for
2399 init_expr_once.
2400
349ccf2e
HPN
24012002-07-16 Hans-Peter Nilsson <hp@axis.com>
2402
2403 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
2404 --gc-sections if -r.
2405 * config/cris/cris.h: Ditto.
2406
06ec023f
RB
24072002-07-16 Rodney Brown <rbrown64@csc.com.au>
2408
2409 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
2410 the comparison directly gives a mask suppress addition when cf is
2411 zero by complementing the mask.
2412
39cef914
NN
24132002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
2414
2415 * Makefile.in: Delete references to enquire.
2416 * enquire.c: Move to contrib.
2417
92c1a778
SS
24182002-07-16 Stan Shebs <shebs@apple.com>
2419
2aa9948d
SS
2420 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
2421 config/rs6000/darwin.h.
2422 (ASM_OUTPUT_SKIP): Ditto.
2423 (TEXT_SECTION_ASM_OP): Ditto.
2424 (DATA_SECTION_ASM_OP): Ditto.
2425 (ASM_APP_ON): Define.
2426 (ASM_APP_OFF): Define.
2427 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
2428 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
2429
2430 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
92c1a778
SS
2431 (machopic_function_base_name): Declare result to be const.
2432 (machopic_non_lazy_ptr_name): Ditto.
2433 (machopic_stub_name): Ditto.
2aa9948d 2434 * config/darwin-protos.h: Ditto for the prototypes.
92c1a778 2435
daaab00a
JH
2436Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
2437
2438 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
2439
63c574cc
JH
2440Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
2441
2442 * i386.md (prefetch): Fix for 64bit mode.
2443 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
2444
2a500b9e
JH
2445Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
2446
2447 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
2448 * i386.c (x86_machine_dependent_reorg): New function.
2449 * i386-protos.h (x86_machine_dependent_reorg): Declare.
2450
e5faf155
ZW
24512002-07-16 Zack Weinberg <zack@codesourcery.com>
2452
2453 * builtins.c (std_expand_builtin_va_start): Remove unused
2454 first argument.
2455 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
2456 std_expand_builtin_va_start with just two arguments.
2457 * expr.h: Update prototypes.
2458
2459 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
2460 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
2461 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
2462 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
2463 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
2464 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
2465 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
2466 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
2467 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
2468 argument from all implementations of EXPAND_BUILTIN_VA_START
2469 and all uses of std_expand_builtin_va_start.
2470
dbf65c2f
R
2471Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
2472
2473 * regrename.c (copy_value): Don't record high part copies.
2474
6acb6d3e 24752002-07-16 Steve Ellcey <sje@cup.hp.com>
99b823ca 2476
6acb6d3e
SE
2477 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
2478 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
2479 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
2480
5d7c2819
ID
24812002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2482
2483 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
2484
2485 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
2486 into addsi3 using register class "x" and "y".
2487
2488 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
2489 "earlyclobber" constraint modifier for some alternative.
e5faf155 2490
5d7c2819
ID
2491 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
2492 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
2493 unordered.
2494 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
2495
2496 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
2497 (TARGET_SWITCHES): Add -mieee-compare option.
2498 (OVERRIDE_OPTIONS): 32332 is a subset of
2499 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
2500 (TARGET_SWITCHES): Fix description of bitfield option.
2501 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
2502 -mieee-compare option. Remove 32332 flag.
2503
5da4f548 25042002-07-16 Steve Ellcey <sje@cup.hp.com>
5d7c2819
ID
2505
2506 * explow.c (convert_memory_address): Remove special handling
5da4f548 2507 when POINTERS_EXTEND_UNSIGNED < 0.
5d7c2819 2508 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
5da4f548
SE
2509 (movedi_symbolic): Fix typo.
2510 (load_fptr): Remove mode restriction so it works for SI and DI.
2511 (load_fptr_internal1): Ditto.
2512 (load_gprel): Ditto.
2513 (load_symptr_internal1): Ditto.
2514 (call_pic): Ditto.
5d7c2819 2515 * config/ia64.c (call_operand): Modify mode check.
5da4f548
SE
2516 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
2517 (ia64_expand_move): Ditto.
2518 (ia64_assemble_integer): Handle SImode function pointers.
2519 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
2520 (ia64_expand_op_and_fetch): Ditto.
2521 (ia64_expand_compare_and_swap): Ditto.
2522 (ia64_expand_lock_test_and_set): Ditto.
2523 (ia64_expand_lock_release): Ditto.
2524
1575c31e
JD
25252002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2526
2527 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
2528
25292002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2530 Richard Earnshaw <rearnsha@arm.com>
2531
e5faf155 2532 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
1575c31e
JD
2533 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
2534
3894f59e
RE
25352002-07-16 Richard Earnshaw <rearnsha@arm.com>
2536
2537 * arm.md (stack_tie): New insn. Use an idiom that the alias code
2538 understands to be a memory clobber.
2539 * arm.c (arm_expand_prologue): Use it.
2540
e0b89be2 25412002-07-16 Daniel Berlin <dberlin@dberlin.org>
54b2a7f8
DB
2542
2543 * ra-rewrite.c: #include reload.h, insn-config.h
2544 * ra-build.c: #include reload.h
2545 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
e5faf155 2546 depend on reload.h, insn-config.h.
54b2a7f8 2547
cffa2189
R
2548Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
2549
2550 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
2551 the same size as a word.
2552
2553 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
2554 BYTES_BIG_ENDIAN into account.
2555
052c96b1
JH
2556Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
2557
2558 * i386.md (prefetch): Fix for 64bit mode.
2559 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
2560
2561 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
2562
ae32926b
MM
25632002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2564
2565 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
2566
6c535c69
ZW
25672002-07-15 Zack Weinberg <zack@codesourcery.com>
2568
2569 * ginclude/varargs.h: Replace with stub which issues #error.
2570 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
2571 __builtin_va_start.
2572
2573 * builtins.def (BUILT_IN_VARARGS_START): Delete.
2574 (BUILT_IN_VA_START): New.
2575 * builtins.c (expand_builtin_va_start): Eliminate first
2576 argument and code to implement pre-ISO varargs.
2577 (std_expand_builtin_va_start): Ignore first argument; it is
2578 always 1.
2579 (expand_builtin): Handle BUILT_IN_VA_START and
2580 BUILT_IN_STDARG_START identically. Delete
2581 BUILT_IN_VARARGS_START case.
2582
2583 * function.c (assign_parms): Delete hide_last_arg and all
2584 its uses.
2585 (mark_varargs): Delete function.
2586 * function.h (struct function): Delete 'varargs' bit.
2587 (current_function_varargs): Delete macro.
2588 * tree.h: Don't declare mark_varargs.
2589
2590 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
2591 (c_expand_body): Don't call mark_varargs.
2592 * c-objc-common.c: Handle BUILT_IN_VA_START and
2593 BUILT_IN_STDARG_START identically. Delete
2594 BUILT_IN_VARARGS_START case.
2595 * c-tree.h: Don't declare c_mark_varargs.
2596 * c-parse.in: Remove grammar rules for '&...' (which has been
2597 commented out since before 2.7.2) and for '...' in K+R
2598 argument declarations.
2599
2600 * builtins.c, function.c, integrate.c, sibcall.c,
2601 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
2602 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
2603 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
2604 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
2605 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
2606 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
2607 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
2608 config/stormy16/stormy16.c: Delete all references to
2609 current_function_varargs, and code predicated on that flag.
2610
2611 * config/alpha/alpha.c (alpha_va_start),
2612 config/arc/arc.c (arc_va_start),
2613 config/i386/i386.c (ix86_va_start),
2614 config/mips/mips.c (mips_va_start),
2615 config/mn10300/mn10300.c (mn10300_va_start),
2616 config/rs6000/rs6000.c (rs6000_va_start),
2617 config/s390/s390.c (s390_va_start),
2618 config/sh/sh.c (sh_va_start),
2619 Ignore first argument; it is always 1.
2620
2621 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
2622 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
2623 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
2624 Delete m68hc11_va_start.
2625 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
2626 No need to define EXPAND_BUILTIN_VA_START.
2627
2628 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
2629 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
2630
6d80a854
EB
26312002-07-15 Eric Botcazou <ebotcazou@multimania.com>
2632
2633 PR optimization/7153
2634 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
2635 dies in more than one insn.
2636
043cfcbe
JT
26372002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
2638
2639 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
2640
ed8d2920 26412002-07-15 Michael Matz <matz@suse.de>,
6c535c69 2642 Daniel Berlin <dberlin@dberlin.org>,
ed8d2920
MM
2643 Denis Chertykov <denisc@overta.ru>
2644
2645 Add a new register allocator.
2646
2647 * ra.c: New file.
2648 * ra.h: New file.
2649 * ra-build.c: New file.
2650 * ra-colorize.c: New file.
2651 * ra-debug.c: New file.
2652 * ra-rewrite.c: New file.
2653
2654 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
2655 (ra-rewrite.o): New .o files for libbackend.a.
2656 (GTFILES): Add basic-block.h.
2657
2658 * toplev.c (flag_new_regalloc): New.
2659 (f_options): New option "new-ra".
2660 (rest_of_compilation): Call initialize_uninitialized_subregs()
2661 only for the old allocator. If flag_new_regalloc is set, call
2662 new allocator, instead of local_alloc(), global_alloc() and
2663 friends.
2664
2665 * doc/invoke.texi: Document -fnew-ra.
2666 * basic-block.h (FOR_ALL_BB): New.
2667 * config/rs6000/rs6000.c (print_operand): Write small constants
2668 as @l+80.
2669
2670 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
2671 (df_reg_table_realloc): Make size at least as large as max_reg_num().
2672 (df_insn_table_realloc): Size argument now is absolute, not relative.
2673 Changed all callers.
2674
2675 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
2676 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
2677
2678 2002-06-20 Michael Matz <matz@suse.de>
2679
2680 * df.h (struct ref.id): Make unsigned.
2681 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
2682
2683 2002-06-13 Michael Matz <matz@suse.de>
2684
2685 * df.h (DF_REF_MODE_CHANGE): New flag.
2686 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
2687 involving subregs with invalid mode changes, when
2688 CLASS_CANNOT_CHANGE_MODE is defined.
2689
2690 2002-05-07 Michael Matz <matz@suse.de>
2691
2692 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
2693
2694 2002-05-03 Michael Matz <matz@suse.de>
2695
2696 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
2697
2698 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
2699
2700 * regclass.c (regclass): Work with all regs which have sets or
2701 refs.
2702 (reg_scan_mark_refs): Count regs inside (clobber ...).
2703
2704 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
2705
2706 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
2707 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
2708 add new refs.
2709 (df_bb_refs_update): Don't clear insns_modified here, ...
2710 (df_analyse): ... but here.
2711
2712 * sbitmap.c (dump_sbitmap_file): New.
2713 (debug_sbitmap): Use it.
2714
2715 * sbitmap.h (dump_sbitmap_file): Add prototype.
2716
2717 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
2718
2719 * df.c (df_insn_modify): Grow the UID table if necessary, rather
2720 than assume all emits go through df_insns_modify.
2721
2722 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
2723
2724 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
2725 increase REG_N_REFS (like flow does), so that regclass doesn't
2726 think a reg is useless, and thus, not calculate a class, when it
2727 really should have.
2728
2729 2001-01-28 Daniel Berlin <dberlin@redhat.com>
2730
2731 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
2732 dataflow analysis.
2733
794a292d
JJ
27342002-07-15 Jakub Jelinek <jakub@redhat.com>
2735
2736 PR middle-end/7245
2737 * config/i386/i386.c (const_int_1_31_operand): New.
2738 * config/i386/i386.h (PREDICATE_CODES): Add it.
2739 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
2740 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
2741 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
2742
05d49501
AM
27432002-07-14 Alan Modra <amodra@bigpond.net.au>
2744
2745 PR target/7282
2746 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
2747 (floatunssidf2): Likewise.
2748 (floatsidf_ppc64): New insn_and_split.
2749 (floatunssidf_ppc64): Likewise.
2750
e89617fe
AJ
27512002-07-14 Andreas Jaeger <aj@suse.de>
2752
2753 * config.gcc (sh64): Remove unused
2754 target_requires_64bit_host_wide_int.
2755
78762e3b
RS
27562002-07-12 Roger Sayle <roger@eyesopen.com>
2757
2758 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
2759 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
2760 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
2761 whether clear_by_pieces should be used to clear storage.
2762 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
2763
2764 * doc/tm.texi: Document these two new target macros.
2765
f7a454e9
SC
27662002-07-12 Stephane Carrez <stcarrez@nerim.fr>
2767
2768 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
2769 the scratch register.
2770 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
2771 of it, forbid reload to use it.
2772
26af4041
MM
27732002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
2774
2775 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
2776 usage on 64-bit hosts, return value was truncated to 32 bits.
2777
226cfe61
R
2778Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
2779
2780 * simplify-rtx.c (simplify_subreg): Handle floating point
2781 CONST_DOUBLEs. When an integer subreg of a smaller mode than
2782 the element mode is requested, compute a subreg with an
2783 integer mode of the same size as the element mode first.
2784
25c25947
R
2785Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2786
2787 * combine.c (try_combine): When converting a paradoxical subreg
2788 to an extension, take LOAD_EXTEND_OP into account.
2789
789b7de5
RO
27902002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2791
2792 * config.gcc (mips-sgi-irix6*o32): New configuration.
2793
2794 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
2795 configurations.
2796 * configure: Regenerate.
2797
2798 * config/mips/iris6-o32-as.h: New file.
2799 * config/mips/iris6-o32.h: New file.
e89617fe 2800
789b7de5
RO
2801 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
2802 (NM_FLAGS): Define.
2803 (HAVE_AS_SHF_MERGE): Undefine.
2804
2805 * config/mips/t-iris5-as: New file.
2806 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
2807
2808 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
2809 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
2810 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
2811 dp-bit.c, fp-bit.c): Move ...
2812 * config/mips/t-iris5-6: ... here.
2813 New file, shared by IRIX 5 and IRIX 6.
2814 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
2815 mips-sgi-irix5*): Use it.
2816
2817 * config/mips/iris6.h: Remove duplicate comment.
2818
2819 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
2820 !TARGET_IRIX6]: Define.
2821 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
2822
2823 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
2824
a18c2c5f
JDA
28252002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2826
2827 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
2828 and delete code to force constant to register.
2829 * pa-protos.h (adddi3_operand): Add prototype.
2830 * pa.c (adddi3_operand): New function.
2831
e65a2d65
RS
28322002-07-11 Roger Sayle <roger@eyesopen.com>
2833
2834 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
2835 non-ANSI builtin functions.
2836
a06e3c40
R
2837Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
2838
2839 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
2840 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
2841 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
2842 (gen_const_vector_0): Use it.
2843
47abc309
JDA
28442002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2845
2846 * pa.md (adddi3): For 32-bit targets, force constants to a register
2847 if they don't fit in an 11-bit immediate. Change insn predicate to
2848 arith11_operand. Remove comment.
2849 * pa.c (cint_ok_for_move): Fix comment.
2850 (emit_move_sequence): Don't directly split DImode constants on 32-bit
2851 targets.
2852
8ac9d31f
TJ
28532002-07-11 Tim Josling <tej@melbpc.org.au>
2854
e89617fe 2855 Remove front end hard coding from gengtype.c.
8ac9d31f
TJ
2856
2857 * Makefile.in
2858 (STAGESTUFF): add gtyp-gen.h
2859 (GTFILES): Remove front end specific files.
2860 (GTFILES_FILES_LANGS): New, from configure..
2861 (GTFILES_FILES_FILES): Likewise.
2862 (GTFILES_LANG_DIR_NAMES): Likewise.
2863 (GTFILES_SRCDIR): Likewise.
2864 (gtyp-gen.h): Build from configure information.
2865 (s-gtype): Remove command line parameters from gengtype.
2866 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
2867 (mostlyclean): Delete files generated by and for gengtype.
2868
2869 * c-config-lang.in: New file.
2870
2871 * configure.in (all_gtfiles_files_langs): New. Accumulate files
2872 for each language.
2873 (all_gtfiles_files_files): New. Accumulate language for each file
2874 accumulated.
2875 (gtfiles): Pick up value for C.
2876 (srcdir): AC-SUBST this variable.
2877 (all_gtfiles_files_langs): AC-SUBST this variable.
2878 (all_gtfiles_files_files): AC-SUBST this variable.
e89617fe 2879
8ac9d31f 2880 * configure: Regenerate.
e89617fe 2881
8ac9d31f
TJ
2882 * gengtype-lex.l (parse_file): Make parameter const.
2883
2884 * gengtype.c (toplevel): include gtyp-gen.h.
2885 (BASE_FILE_<language> unnamed enum): Delete.
2886 (lang_names): Delete (replaced by gtyp-gen.h)
2887 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
2888 all references.
2889 (NUM_GT_FILES): New.
2890 (NUM_LANG_FILES): New.
2891 (srcdir_len): New.
2892 (NUM_BASE_FILES): Change calculation.
2893 (open_base_files): Change prototype to avoid warning.
2894 (startswith): Delete.
2895 (get_file_basename): Iterate through generated language list not
2896 hard coded list.
2897 (get_base_file_bitmap): Use generated list of files and languages.
2898 (close_output_files): Add prototype to rmove warning.
2899 (main): Iterate through list of generated files from gtyp-gen.h
2900 rather than command line paramaters. Ignore duplicated file
e89617fe 2901 names.
8ac9d31f
TJ
2902
2903 * gengtype.h (parse_file): Amend prototype for const parameter.
e89617fe 2904
8ac9d31f
TJ
2905 * doc/sourcebuild.texi: Document gtfiles variable.
2906
2907 * doc/gty.texi: Document changes to gtfiles variable for front
2908 ends.
2909
2910 * objc/config-lang.in (gtfiles): Add files needed for objc front
2911 end.
2912
0e603223
RS
29132002-07-10 Roger Sayle <roger@eyesopen.com>
2914
2915 PR c/2454
2916 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
2917 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
2918
c5358a5d
RS
29192002-07-10 Roger Sayle <roger@eyesopen.com>
2920 Zack Weinberg <zack@codesourcery.com>
2921
2922 * builtins.def: Make the argument types of abort and exit
2923 independent of the front-end.
2924
a35f8b74
AM
29252002-07-11 Alan Modra <amodra@bigpond.net.au>
2926
2927 * config/rs6000/linux64.h (ASM_SPEC): Define.
2928
89e7058f
AH
29292002-07-10 Aldy Hernandez <aldyh@redhat.com>
2930
6c535c69
ZW
2931 * config/rs6000/rs6000.c (emit_frame_save): New.
2932 (rs6000_frame_related): Replace reg2 before reg.
2933 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
2934 and eh_return registers.
89e7058f 2935
086bbd21
TM
29362002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
2937
2938 Revert all patches for optimization of Complex .op. Real.
2939 * complex_part_zero_p: Remove
2940 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
2941 with x.
2942 * expand_cmplxdiv_wide: Ditto.
2943 * expand_binop: Ditto.
2944
126dbce0
MM
29452002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
2946
2947 * config/avr/avr.md: Fix two 0x80000000 constants to make them
2948 negative also on 64-bit hosts.
2949
2950 Default to -fno-reorder-blocks when optimizing for size.
2951 * config/avr/avr-protos.h (avr_optimization_options): Declare.
2952 * config/avr/avr.c (avr_optimization_options): New function.
2953 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
2954
2955 Optimize returning from simple functions.
2956 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
2957 * config/avr/avr.c (avr_simple_epilogue): New function.
2958 * config/avr/avr.md (return): New insn.
2959
21c318ba
DR
29602002-07-10 Douglas B Rupp <rupp@gnat.com>
2961
2962 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
2963 HAS_INIT_SECTION to protection.
2964
537834c8
MM
29652002-07-10 Mark Mitchell <mark@codesourcery.com>
2966
2967 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
2968 deprecated.
2969
80ba02b1
R
2970Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
2971
2972 * combine.c (gen_lowpart_for_combine): Handle vector modes.
2973 Supply non-VOID mode to simplify_gen_subreg.
2974
ae3aa00d
JH
2975Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
2976
2977 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
2978
029f3983
JL
29792002-07-10 Jeffrey A Law <law@redhat.com>
2980
7a464913
JL
2981 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
2982 as appropriate.
2983
6c535c69
ZW
2984 * mn10200.c (expand_epilogue): Fix test to determine which scratch
2985 register to use.
029f3983 2986
ff27a429
R
2987Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
2988
2989 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
2990 Get mode from dest.
2991 If simplify_gen_subreg fails, try next equivalent.
2992
e6986399
GDR
29932002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
2994
2995 * diagnostic.h: #include location.h
2996 (location_t): Move definition to..
2997 * location.h: ... here. New file.
2998 * tree.h: #include location.h
2999 (DECL_SOURCE_LOCATION): New macro.
3000 (DECL_SOURCE_FILE): Use.
3001 (DECL_SOURCE_LINE): Likewise.
3002 (struct tree_decl): REplace filename and linenum with locus.
3003 * Makefile.in (TREE_H): add location.h
3004 (diagnostic.o): Depends on gt-location.h
3005 (gt-location.h): Depends on s-gtype
3006
7990b46f
MK
30072002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
3008
3009 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
3010 TARGET_OS_CPP_BUILTINS.
3011 * config/rs6000/aix31.h: Likewise.
3012 * config/rs6000/aix41.h: Likewise.
3013 * config/rs6000/aix43.h: Likewise.
3014 * config/rs6000/aix51.h: Likewise.
3015 * config/rs6000/beos.h: Likewise.
3016 * config/rs6000/darwin.h: Likewise.
3017 * config/rs6000/eabi.h: Likewise.
3018 * config/rs6000/eabisim.h: Likewise.
3019 * config/rs6000/linux.h: Likewise.
3020 * config/rs6000/linux64.h: Likewise.
3021 * config/rs6000/lynx.h: Likewise.
3022 * config/rs6000/mach.h: Likewise.
3023 * config/rs6000/rtems.h: Likewise.
3024 * config/rs6000/sysv4.h: Likewise.
3025 * config/rs6000/vxppc.h: Likewise.
efa39e99
DP
3026
30272002-07-09 Devang Patel <dpatel@apple.com>
3028 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
3029 Do not allow ObjC objects as a parameter type for Objective-C methods.
3030 My previous patch restricted 'struct' also.
e89617fe 3031
cd98faa1
NB
30322002-07-09 Neil Booth <neil@daikokuya.co.uk>
3033
3034 * cpperror.c (cpp_error): Default to directive_line within
3035 directives here.
3036 * cppexp.c (cpp_interpret_integer): Only use traditional
3037 number semantics in directives.
3038 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
3039 (do_include_common): Similarly.
3040 * cpptrad.c (scan_out_logical_line): Implement accurate
3041 quoting of <> in #include.
3042 * doc/cpp.texi: Update.
3043
2ad65b0e 3044Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
6c535c69 3045 J"orn Rennecke <joern.rennecke@superh.com>
2ad65b0e
SC
3046
3047 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
3048 * sh.md (attribute issues): Replace with:
3049 (attribute pipe_model). All users changed.
3050 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
3051 All users changed.
3052 (function units sh5issue, sh5fds): New.
3053 (attribute is_mac_media): New.
3054 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
3055 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
3056 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
3057 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
3058 (call_media, call_value_media, sibcall_media): Likewise.
3059 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
3060 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
3061 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
3062 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
3063 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
3064 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
3065 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
3066 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
3067 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
3068 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
3069 (truncdfsf2_media): Likewise.
3070 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
3071 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
3072
b6d33983
R
3073Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
3074
3075 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
3076 * sh.c (general_extend_operand, inqhi_operand): New functions.
3077 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
3078 alternatives using 'N' modifier. Add type.
3079 (adddi3z_media): Likewise. Enable generator function generation.
3080 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
3081 exact predicates / constraints. Add type.
3082 (subsi3): Allow 0 for SHMEDIA.
3083 (udivsi3_i4_media): Use match_operand for input values
3084 rather than hard registers.
3085 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
3086 unnecessarily through hard registers. Keep copies of pseudo
3087 registers outside of the libcall sequence.
3088 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
3089 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
3090 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
3091 (extendhidi2, extendqidi2): Likewise.
3092 (andsi3_compact): Name.
3093 (andcdi3): Enable generator function generation.
3094 (zero_extendhisi2, zero_extendqisi2): Rename to
3095 (zero_extendhisi2_compact, zero_extendqisi2_compact).
3096 (extendhisi2, extendqisi2): Rename to
3097 (extendhisi2_compact, extendqisi2_compact).
3098 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
3099 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
3100 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
3101 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
3102 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
3103 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
3104 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
3105 (shmedia32_initialize_trampoline_big): Likewise.
3106 (shmedia32_initialize_trampoline_little): Likewise.
3107 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
3108 (negdi2): Remove spurious T clobber.
3109 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
3110 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
3111 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
3112 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
3113 (ic_invalidate_line_media): Write back data cache before invalidating
3114 instruction cache. Add type.
3115 (movsf_media): Sign-extend when the destination is a general
3116 purpose register. Add type.
3117 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
3118 (casesi_worker_0+1): Only increment ref count for proper label.
3119 (casesi_worker_0+2): Likewise.
3120
7ca0873c
MM
31212002-07-09 Mark Mitchell <mark@codesourcery.com>
3122
3123 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
3124
26b10ae0 31252002-07-09 Steve Ellcey <sje@cup.hp.com>
7ca0873c 3126
26b10ae0
SE
3127 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
3128 from Pmode to ptr_mode.
3129 (get_exception_pointer): Ditto.
3130 (connect_post_landing_pads): Ditto.
3131 (dw2_build_landing_pads): Ditto.
3132
0c3a2ea0
SE
31332002-07-08 Steve Ellcey <sje@cup.hp.com>
3134 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
3135 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
3136 (handle_pragma_redefine_extname): Change to use new function.
3137
26c34780
RS
31382002-07-08 Roger Sayle <roger@eyesopen.com>
3139
3140 * combine.c (combine_simplify_rtx): Add an explicit cast
3141 to avoid signed/unsigned comparison warning.
3142 (simplify_if_then_else): Likewise.
3143 (extended_count): Likewise.
3144 (simplify_shift_const): Likewise.
3145 (simplify_comparison): Likewise.
3146
1d4047e0
RS
31472002-07-08 Richard Sandiford <rsandifo@redhat.com>
3148
3149 * config/mips/mips.md: Add imadd type. Update scheduler description
3150 to use imadd as well as imul.
3151 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
3152 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
3153 (*mul_sub_si): Likewise for first alternative. Change second
3154 alternative from imul to multi.
3155
5351f1ca
NB
31562002-07-07 Neil Booth <neil@daikokuya.co.uk>
3157
3158 * c-common.c (c_common_post_options): Update prototype;
3159 don't init backends if preprocessing only.
3160 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
3161 * langhooks.h (struct lang_hooks): Update post_options to
3162 return a boolean.
3163 * toplev.c (parse_options_and_default_flags, do_compile,
3164 lang_independent_init): Update prototypes. Allow the
3165 front end to specify that there is no need to initialize
3166 the back end.
3167 (general_init): Move call to hex_init here...
3168 (toplev_main): ...from here. Pass flag for back end init
3169 suppression.
3170
c8cc4417
R
3171Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
3172
3173 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
3174 (PREDICATE_CODES): Add entries for equality_comparison_operator,
3175 greater_comparison_operator and less_comparison_operator.
3176 * sh.c (print_operand): Add '\'' code. Make 'o' handle
3177 more operators.
3178 (equality_comparison_operator): New function.
3179 (greater_comparison_operator, less_comparison_operator): Likewise.
3180 * sh.md (beq_media_i): Disable generator function generation.
3181 Use match_operator to handle a whole class of comparisons. Add
3182 modifier in output template to provide branch prediction. Add type.
3183 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
3184 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
3185 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
3186 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
3187
957ec0f9
HPN
31882002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
3189
3190 Emit MMIX function prologue and epilogue as rtl.
3191 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
3192 not unprototyped get_hard_reg_initial_val.
3193 ("call_value", "nonlocal_goto_receiver"): Ditto.
3194 ("return"): Make define_expand. Move real insn to...
3195 ("*expanded_return"): New pattern.
3196 ("prologue", "epilogue"): New define_expands.
3197 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
3198 (struct machine_function): New member in_prologue.
3199 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
3200 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
3201 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
3202 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
3203 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
3204 (LOCAL_REGNO): Define. Adjust comment.
3205 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
3206 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
3207 leaf_function_p.
3208 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
3209 the prologue.
3210 (mmix_target_asm_function_prologue): Make static. Just mark that
3211 the prologue is being emitted. Move guts to...
3212 (mmix_expand_prologue): New function. Adjust for emitting
3213 prologue as rtl. For sizes, use HOST_WIDE_INT only.
3214 (mmix_target_asm_function_epilogue): Make static. Simply emit a
3215 \n. Move guts to...
3216 (mmix_expand_epilogue): New function. Adjust for emitting
3217 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
3218 (mmix_target_asm_function_end_prologue): Mark that the prologue
3219 has ended.
3220 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
3221 (mmix_conditional_register_usage): Improve comments.
3222 (mmix_local_regno): New function.
3223 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
3224 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
3225 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
3226 (mmix_get_hard_reg_initial_val): Ditto.
3227
7ab5c789
AJ
32282002-07-06 Andreas Jaeger <aj@suse.de>
3229
3230 * toplev.c (set_fast_math_flags): Don't use ISO C style function
3231 definitions.
3232 * gengtype.c (open_base_files): Likewise.
3233 (close_output_files): Likewise.
3234 * tracer.c (find_best_predecessor): Likewise.
3235 (find_best_successor): Likewise.
3236 (ignore_bb_p): Likewise.
3237
df061a43
RS
32382002-07-05 Roger Sayle <roger@eyesopen.com>
3239
3240 PR c++/7099
3241 * builtin-attrs.def: Define new attribute lists for use in
3242 builtins.def.
3243 * builtins.def [DEF_BUILTIN]: Modify to take an additional
3244 ATTRS argument, an enumerated value defined in builtin-attrs.def
3245 that represents the attribute list for the builtins. Modify
3246 all builtin functions to pass an appropriate attribute list.
3247 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
3248 their required noreturn attributes.
3249 * tree.h (enum_builtin_function): Ignore the additional parameter
3250 to DEF_BUILTIN.
3251 * builtins.c (built_in_names): Likewise.
3252 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
3253 argument with a tree representing the functions attribute list.
3254 Pass this "attrs" argument to builtin_function. No longer handle
3255 the noreturn_p processing manually.
3256 (built_in_attributes): Move the definitions from builtin-attrs.def
3257 before c_common_nodes_and_builtins.
3258 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
3259 DEF_BUILTIN, passing it to both builtin_function and the changed
3260 builtin_function_2.
3261
3262 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
3263 __builtin__exit and __builtin__Exit.
3264
e5eb8de8
SC
32652002-07-05 Stephane Carrez <stcarrez@nerim.fr>
3266
3267 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
3268 QI mode registers in soft registers.
7ab5c789 3269 ("zero_extendqihi2"): Do not take into account soft registers
e5eb8de8
SC
3270 for register allocation (use '*' constraint).
3271
4c8aed14
SC
32722002-07-05 Stephane Carrez <stcarrez@nerim.fr>
3273
3274 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
3275 it is dead.
3276 ("*ashrsi3"): Likewise.
3277 ("*lshrsi3"): Likewise.
3278
99ed68ea
VM
32792002-07-05 Vladimir Makarov <vmakarov@redhat.com>
3280
3281 * genautomata.c (output_max_insn_queue_index_def): Take latencies
3282 into account.
3283
4c8aed14 32842002-07-05 Stephane Carrez <stcarrez@nerim.fr>
581fd392
SC
3285
3286 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
3287 address computation and memory moves.
3288
9833f679
MM
32892002-07-03 Mark Mitchell <mark@codesourcery.com>
3290
3291 PR c++/6706
3292 * dwarfout.c (output_reg_number): Fix warning message.
3293 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
3294 before using it.
7ab5c789 3295
81bca2f5
RO
32962002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3297
3298 * gcc/gcc.c (asm_debug): Move initialization ...
3299 (init_spec): ... here.
3300
17f44f02
NS
33012002-07-05 Nathan Sidwell <nathan@codesourcery.com>
3302
3303 * c-parse.in (extdef): Append ';'.
3304 (old_style_parm_decls): Append ';'.
3305
da77408f
DJ
33062002-07-04 Daniel Jacobowitz <drow@mvista.com>
3307
3308 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
3309 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
3310 to gcc_cv_as_gstabs_flag.
3311 * configure: Rebuilt.
3312
ec52b446
GK
33132002-07-04 Geoffrey Keating <geoffk@redhat.com>
3314
3315 * ggc.h (ggc_add_root): Document as obsolete.
3316
8721e3df
R
3317Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
3318
3319 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
3320 (mshflo_w): Likewise.
3321
3767c0fd
R
3322Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
3323
3324 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
3325 vector mode subregs of constants to finding integer mode
3326 subregs of constants.
3327 * cse.c (cse_insn): Use simplify_gen_subreg.
3328 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
3329 From a vector mode expression of different size than the
3330 target mode.
3331
4e314d1f
EC
33322002-07-03 Eric Christopher <echristo@redhat.com>
3333
3334 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
3335 * config/mips/mips.h: Remove deprecated -m<processor> options
3336 and cc1_cpu_spec associated.
3337 (CONSTANT_ADDRESS_P): Fix last patch.
3338 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
3339 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
3340 sunge_sf): Remove.
3341
6f0361e3
SS
33422002-07-03 Stan Shebs <shebs@apple.com>
3343
3344 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
3345 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
3346 (CPP_SPEC): Remove insertion of APPLE_CC definition.
3347
3129af4c
RS
33482002-07-03 Roger Sayle <roger@eyesopen.com>
3349
3350 * combine.c (struct_undo): Change types of recorded substitutions
3351 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
3352 (do_SUBST_INT): Change types of the substitution from unsigned int
3353 to int, to avoid compilation warning from SUBST_INT's only caller.
3354
3355 (make_extraction): Add cast to avoid compilation warning.
3356 (force_to_mode): Remove cast to avoid compilation warning.
3357
c7375e61
EB
33582002-07-03 Eric Botcazou <ebotcazou@multimania.com>
3359 Jeff Law <law@redhat.com>
3360
3361 * i386.md (length_immediate attribute): Fix typo.
3362 (length_address attribute): Likewise.
3363 (modrm attribute): Set it to 0 for immediate call instructions.
3364 (jcc_1 pattern): Set modrm attribute to 0.
3365 (jcc_2 pattern ): Likewise.
3366 (jump pattern): Likewise.
3367 (doloop_end_internal pattern): Explicitly set length.
3368 (leave pattern): Fix typo.
3369 (leave_rex64 pattern): Likewise.
3370
61c07d3c
DE
33712002-07-03 David Edelsohn <edelsohn@gnu.org>
3372
3373 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
3374 in FPR as preference.
3375 (fctiwz): Same.
3376 (floatdidf2, fix_truncdfdi2): Same.
3377 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
3378 (floatditf2): Same.
3379 (floatsitf2, fix_trunctfsi2): SImode in GPR.
3380 (ctrdi): Remove FPR alternative and splitter.
3381
33822002-07-03 Will Cohen <wcohen@redhat.com>
77966be3
WC
3383
3384 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
3385
34a80643
R
3386Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
3387
3388 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
3389 than UNITS_PER_WORD, unless this is little endian and the first unit
3390 in this word. Let extract_bit_field decide how to load an element.
3391 Force arguments to matching mode.
3392 (expand_vector_unop): Likewise.
3393
3394 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
3395 consist of word_mode elements.
3396 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
3397 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
3398 (build_unary_op): Allow vector types for BIT_NOT_EPR.
3399 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
3400 CONST_VECTOR.
3401 * optabs.c (expand_vector_binop): Try to perform operation in
3402 smaller vector modes with same inner size. Add handling of AND, IOR
3403 and XOR. Reject expansion to inner-mode sized scalars when using
3404 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
3405 (expand_vector_unop): Try to perform operation in smaller vector
3406 modes with same inner size. Add handling of one's complement.
3407 When there is no vector negate operation, try a vector subtract
3408 operation. Use simplify_gen_subreg on constants.
3409 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
3410 constants into smaller vectors with same inner mode, and to
3411 integer CONST_DOUBLEs.
3412
622d3731
KG
34132002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3414
3415 * c-parse.in (parsing_iso_function_signature): New variable.
3416 (extdef_1): New, copied from...
3417 (extdef): ... here. Reset parsing_iso_function_signature.
3418 (old_style_parm_decls): Reset parsing_iso_function_signature.
3419 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
3420 Warn about ISO C style function definitions.
3421 (nested_function, notype_nested_function): Reset
3422 parsing_iso_function_signature.
3423 (parmlist_2): Set parsing_iso_function_signature.
3424
3425 * doc/invoke.texi (-Wtraditional): Document new behavior.
3426
9bb46191
CD
34272002-07-02 Chris Demetriou <cgd@broadcom.com>
3428
3429 * config.gcc (mips*el-*-*): Use tm_defines to set
3430 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
3431 * config/mips/little.h: Remove.
3432
e1c2dd26 34332002-07-02 Devang Patel <dpatel@apple.com>
c40da518 3434
c40da518 3435 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
31e25abd
CD
3436 object as parameter. Prevent something like 'NSObject' to be
3437 used as the type for a method argument.
c40da518 3438
0879540b
NB
34392002-07-03 Neil Booth <neil@daikokuya.co.uk>
3440
3441 * cpptrad.c: Update comment.
3442
b6fb43ab 34432002-07-02 Neil Booth <neil@daikokuya.co.uk>
4e314d1f 3444
b6fb43ab
NB
3445 * doc/cpp.texi: Update for traditional preprocessing changes.
3446 * goc/cppopts.texi: Similarly.
3447
c1c5187c
ZL
34482002-07-02 Ziemowit Laski <zlaski@apple.com>
3449
3450 * c-parse.in (designator): Enable designated initializers if ObjC.
3451 (objcmessageexpr): Remove references to objc_receiver_context.
3452 * objc/objc-act.h (objc_receiver_context): Remove decl.
3453 * objc/objc-act.c (objc_receiver_context): Remove.
3454 (lookup_objc_ivar): Test objc_method_context instead of
3455 objc_receiver_context.
3456
52702ae1
R
3457Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
3458
3459 * sh.c (print_operand, case 'N'): Allow zero vector.
3460 (arith_reg_or_0_operand): Likewise.
3461 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
4e314d1f 3462 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
52702ae1
R
3463 IOR, XOR, PLUS and SET and take their respective constant
3464 ranges into account.
3465 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
3466 * sh.md (subdi3, subdi3_media): Allow zero operand.
3467 (movv8qi_i+3): Only vector that is not split is the zero vector.
3468 Fix operand 3 to simplify_subreg.
3469 (movv2si_i): Split alternative 1.
3470 (mshfhi_l_di_rev+1): New splitter.
3471
49e7b251
NB
34722002-07-02 Neil Booth <neil@daikokuya.co.uk>
3473
ba57a9c0 3474 PR preprocessor/7029
49e7b251
NB
3475 * cppinit.c (cpp_handle_option): Suppress warnings with an
3476 implicit "-w" for "-M" and "-MM".
3477 * doc/cppopts.texi: Update.
3478
a3acdc0c
RS
34792002-07-01 Roger Sayle <roger@eyesopen.com>
3480
3481 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
3482 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
3483 builtin_function.
3484
0b558962
AM
34852002-07-02 Alan Modra <amodra@bigpond.net.au>
3486
3487 * README.Portability: Fix typos.
3488
9a81c5b7
HPN
34892002-07-01 Hans-Peter Nilsson <hp@axis.com>
3490
3491 PR target/7177
3492 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
3493 of indirections for register inside sign-extended mem part.
3494
6a2dd09a
RS
34952002-07-01 Roger Sayle <roger@eyesopen.com>
3496
3497 * tree.h: Modify builtin_function interface to take an extra
3498 argument ATTRS, which is a tree representing an attribute list.
3499
3500 * c-decl.c (builtin_function): Accept additional parameter.
3501 * objc/objc-act.c (builtin_function): Likewise.
3502 * f/com.c (builtin_function): Likewise.
3503 * java/decl.c (builtin_function): Likewise.
3504 * ada/utils.c (builtin_function): Likewise.
3505 * cp/decl.c (builtin_function): Likewise.
3506 (builtin_function_1): Likewise.
3507
3508 * c-common.c (c_common_nodes_and_builtins): Pass an additional
3509 NULL_TREE argument to builtin_function. (builtin_function_2):
3510 Likewise.
3511 * cp/call.c (build_java_interface_fn_ref): Likewise.
3512 * objc/objc-act.c (synth_module_prologue): Likewise.
3513 * java/decl.c (java_init_decl_processing): Likewise.
3514 * f/com.c (ffe_com_init_0): Likewise.
3515
3516 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
3517 NULL_TREE argument to builtin_function.
3518 * config/arm/arm.c (def_builtin): Likewise.
3519 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
3520 * config/i386/i386.c (def_builtin): Likewise.
3521 * config/ia64/ia64.c (def_builtin): Likewise.
3522 * config/rs6000/rs6000.c (def_builtin): Likewise.
3523
e20569ae
ZW
35242002-07-01 Zack Weinberg <zack@codesourcery.com>
3525
3526 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
3527 * config/mips/t-isa3264: Likewise.
3528 * config/mmix/t-mmix: Likewise.
3529
f1b690f1
JDA
35302002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
3531
3532 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
3533
6bfa5aac
RS
35342002-07-01 Roger Sayle <roger@eyesopen.com>
3535
3536 PR opt/4046
3537 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
3538 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
3539 B are truth values.
3540
9a5c1b9d
NN
35412002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
3542
3543 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
3544
d3fc4dbc
MK
35452002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
3546
3b2124df
MK
3547 * README.Portability (Function prototypes): Give an example of
3548 declaring and defining a function with no arguments.
3549
d3fc4dbc
MK
3550 * README.Portability (Function prototypes): Document new
3551 variable-argument function macros.
3552
c1b92d09
R
3553Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
3554
3555 * sh.c (langhooks.h): Include.
3556 (sh_init_builtins, sh_media_init_builtins): New functions.
3557 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
3558 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
3559 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
3560 (builtin_description): New struct tag.
3561 (signature_args, bdesc): New arrays.
3562 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
3563 (print_operand): Add 'N' modifier.
3564 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
3565 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
3566 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
3567 (CONST_COSTS): Add special case for SHmedia AND.
3568 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
3569 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
3570 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
3571 target_operand can also be const or unspec.
3572 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
3573 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
3574 (attribute type): Add new types.
3575 (anddi3): Add splitter.
3576 (movdi_const_16bit+1): Add code to handle vector constants and
3577 bitmasks efficiently.
3578 (shori_media): Have generator function made.
3579 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
3580 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
3581 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
3582 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
3583 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
3584 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
3585 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
3586 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
3587 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
3588 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
3589 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
3590 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
3591 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
3592 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
3593 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
3594 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
3595 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
3596 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
3597 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
3598 (ftrv): Likewise.
3599
3600 (fpu_switch+1, fpu_switch+2): Remove constraint.
3601
97ebc06f
AH
36022002-07-01 Aldy Hernandez <aldyh@redhat.com>
3603
6c535c69
ZW
3604 * tree.c (build_function_type_list): Update function comment.
3605 Rename first argument to return_type.
97ebc06f 3606
353a10d0
NB
36072002-07-01 Neil Booth <neil@daikokuya.co.uk>
3608
3609 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
3610 tradcif.y and related files.
3611
e34cabb3
NB
36122002-07-01 Neil Booth <neil@daikokuya.co.uk>
3613
3614 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
3615
8bf3ccbb
KG
36162002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3617
3618 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
3619
118f8dc1
DP
36202002-06-30 Devang Patel <dpatel@apple.com>
3621
3622 * objc/objc-act.c (finish_file): Avoid finish_objc() if
3623 -fsyntax-only.
3624
e3223ea2
DC
3625Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
3626 Frank Ch. Eigler <fche@redhat.com>
6c535c69 3627 Matthew Green <mrg@redhat.com>
e3223ea2
DC
3628 Richard Henderson <rtl@redhat.com>
3629 Dave Hudson <dave.hudson@ubicom.com>
3630 Jeff Johnston <jjohnstn@redhat.com>
3631 Alan Lehotsky <apl@alum.mit.edu>
3632 Bernd Schmidt <bernds@redhat.com>
3633 Graham Stott <grahams@redhat.com>
4e314d1f 3634
e3223ea2
DC
3635 * doc/extend.texi: Add ip2k port to description of attribute
3636 naked.
3637 * doc/install.texi (Specific): Add ip2k description.
3638 * doc/install-old.texi (Configurations): Add ip2k to possible
3639 cpu types.
3640 * doc/md.texi: Document ip2k constraints.
3641 * config/ip2k/crt0.S: New file.
3642 * config/ip2k/ip2k-protos.h: New file.
3643 * config/ip2k/ip2k.c: New file.
3644 * config/ip2k/ip2k.h: New file.
3645 * config/ip2k/ip2k.md: New file.
3646 * config/ip2k/libgcc.S: New file.
3647 * config/ip2k/t-ip2k: New file.
3648
66b8c57f
HPN
36492002-06-30 Hans-Peter Nilsson <hp@bitrange.com>
3650
3651 * config/mmix/mmix.md ("return"): New pattern.
3652 * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
3653 (TARGET_USE_RETURN_INSN): New macros.
3654 (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
3655 (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
3656 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
3657 (MMIX_POP_ARGUMENT): New macro.
3658 (mmix_target_asm_function_prologue): When no epilogue is executed,
3659 just emit a blank line. Use MMIX_POP_ARGUMENT with final POP insn.
3660 (mmix_print_operand) <case '.'>: New case.
3661 (mmix_print_operand_punct_valid_p): Match '.'.
3662 (mmix_use_simple_return): New function.
3663 * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
3664 * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
3665 -msingle-exit, -mno-single-exit.
3666 (MMIX Options): Ditto.
3667
e7a60f56
AH
36682002-06-30 Aldy Hernandez <aldyh@redhat.com>
3669
6c535c69 3670 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
e7a60f56 3671
1ef7d32b
KG
36722002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3673
3674 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
3675
c8b64bf2
AM
36762002-06-30 Alan Modra <amodra@bigpond.net.au>
3677
3678 * unroll.c (loop_iterations): Handle EQ loops.
3679
35aba846
DE
36802002-06-29 David Edelsohn <edelsohn@gnu.org>
3681
3682 * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
3683 constraint in define_expand, not splitter.
3684 Formatting.
3685
b4de2f7d
AH
36862002-06-29 Aldy Hernandez <aldyh@redhat.com>
3687
6c535c69
ZW
3688 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
3689 build_function_type_list instead of build_function_type.
b4de2f7d 3690
6c535c69 3691 * config/ia64/ia64.c (ia64_init_builtins): Same.
b4de2f7d 3692
6c535c69 3693 * config/alpha/alpha.c (alpha_init_builtins): Same.
b4de2f7d 3694
6c535c69 3695 * config/rs6000/rs6000.c (altivec_init_builtins): Same.
b4de2f7d 3696
6c535c69 3697 * config/arm/arm.c (arm_init_builtins): Same.
b4de2f7d 3698
6c535c69 3699 * tree.h: Add build_function_type_list prototype.
b4de2f7d 3700
6c535c69 3701 * tree.c (build_function_type_list): New.
b4de2f7d 3702
1691051f
KG
37032002-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3704
3705 * collect2.c (scan_prog_file): Fix typo in message.
3706
7bfb14f1
AL
37072002-06-28 Aaron Lehmann <aaronl@vitelus.com>
3708
6c535c69 3709 * fold-cont.c: Remove unused CHARMASK.
7bfb14f1 3710
38800fe8
NB
37112002-06-29 Neil Booth <neil@daikokuya.co.uk>
3712
3713 PR preprocessor/7150
3714 * cppmain.c (scan_translation_unit_trad): Simplify.
590e1987 3715 * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
38800fe8 3716
f60ed6be
NB
37172002-06-29 Neil Booth <neil@daikokuya.demon.co.uk>
3718
3719 * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
3720 Don't use CPP_PREDEFINES.
3721 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
3722 Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
3723 * config/i386/djgpp.h, config/i386/i386-coff.h,
3724 config/i386/i386-interix.h, config/i386/i386-interix3.h,
3725 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
3726 config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
3727 config/i386/uwin.h: Similarly.
3728
76118c11
HB
37292002-06-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3730
6c535c69 3731 * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
76118c11
HB
3732 flag_inline_trees to enable inlining.
3733
9137b119
PE
37342002-06-28 Phil Edwards <pme@gcc.gnu.org>
3735
3736 * configure.in (gcc_gxx_include_dir): Change to match versioned
3737 C++ headers if --enable-version-specific-runtime-libs is used.
3738 * configure: Regenerate.
3739
6bdb8dd6
JH
37402002-06-28 Jan Hubicka <jh@suse.cz>
3741
3742 * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
3743
f1b1186f
SC
37442002-06-28 Stephen Clarke <stephen.clarke@superh.com>
3745
3746 * combine.c (combine_simplify_rtx): Pass the mode of the
3747 shift count, not the shift operation when trying to simplify
3748 a shift on a SHIFT_COUNT_TRUNCATED target.
3749
ae9bd481
SC
37502002-06-28 Stephane Carrez <stcarrez@nerim.fr>
3751
3752 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
3753 avoid the auto increment addressing modes.
3754 ("*subsi3"): Likewise.
4e314d1f 3755 (split for add/sub on address): For 68HC12 push the value on
ae9bd481
SC
3756 the stack and do the operation with a pop.
3757
1d63a28a
NB
37582002-06-28 Neil Booth <neil@daikokuya.co.uk>
3759
3760 * cpplib.c (_cpp_handle_directive): Move #define-specific
3761 code to the #define handler...
3762 (do_define): ...here.
3763 (lex_macro_node): No longer a need to check for comments here.
3764
4caff360
SC
37652002-06-28 Stephane Carrez <stcarrez@nerim.fr>
3766
3767 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
3768 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
3769 Declare.
3770 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
3771 do not reorder basic blocks at the end when optimizing for size.
3772
2cc21497
SC
37732002-06-28 Stephane Carrez <stcarrez@nerim.fr>
3774
3775 * config/m68hc11/m68hc11.c (autoinc_mode): New function.
3776 (m68hc11_make_autoinc_notes): New function.
3777 (m68hc11_split_move): Be very cautious when spliting a move with
3778 auto increment/decrement modes because this may result in incompatible
3779 directions; add REG_INC notes to the resulting insn for CSE reg.
3780
3cdd2821
SC
37812002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
3782
3783 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
3784 can be a valid address.
3785
e6a82e80
AH
37862002-06-28 Aldy Hernandez <aldyh@redhat.com>
3787
6c535c69
ZW
3788 * config/rs6000/rs6000.c: Remove unusued variables from last
3789 patch.
e6a82e80 3790
a7ae18e2
AH
37912002-06-27 Aldy Hernandez <aldyh@redhat.com>
3792
3793 Revert:
6c535c69
ZW
3794 * config/rs6000/rs6000.c (rs6000_override_options): Move
3795 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
a7ae18e2 3796
3a9b8c7e
AH
37972002-06-27 Aldy Hernandez <aldyh@redhat.com>
3798
6c535c69
ZW
3799 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
3800 lvx/stv/dst builtins...
3801 (altivec_expand_ld_builtin): ...to here.
3802 (altivec_expand_st_builtin): ...here.
3803 (altivec_expand_dst_builtin): ...and here (respectively).
3a9b8c7e 3804
5f9dc214
BW
38052002-06-28 Bob Wilson <bob.wilson@acm.org>
3806
3807 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
3808
53501a19
BS
38092001-06-08 Bernd Schmidt <bernds@redhat.com>
3810
3811 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
3812 subregs.
3813 * recog.c (general_operand, register_operand): Disallow them.
3814
d1a58688
NB
38152002-06-28 Neil Booth <neil@daikokuya.co.uk>
3816
3817 PR preprocessor/7138
3818 * cpplib.c (_cpp_handle_directive): Do traditional
3819 preparation after setting state.angled_headers.
3820 * cpptrad.c (scan_out_logical_line): Fix potential
3821 quote bug.
3822
55c1c60d
AH
38232002-06-27 Aldy Hernandez <aldyh@redhat.com>
3824
6c535c69
ZW
3825 * config/rs6000/rs6000.c (rs6000_override_options): Move
3826 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
55c1c60d 3827
3219c65b
BW
38282002-06-27 Bob Wilson <bob.wilson@acm.org>
3829
3830 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
3831 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
3832 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
3833
c8f863fc
RS
38342002-06-27 Roger Sayle <roger@eyesopen.com>
3835
3836 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
3837 * config/stormy16/stormy16.h: Likewise.
3838
3839 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
3840 with #define.
3841
8d5362b7
GP
38422002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3843
3844 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
3845 Hitachi entry. Make punctuation more consistent.
3846
57694e40
MK
38472002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
3848
3849 * doc/install.texi: Change ` bit' to `-bit'.
3850 * doc/md.texi: Change `-bits' to `-bit'.
3851 * doc/tm.texi: Change `-bits' to ` bits'.
3852
c635a1ec
DB
38532002-06-27 Daniel Berlin <dberlin@dberlin.org>
3854
3855 * gcse.c (hoist_code): Rewrite to only get list of dominated
4e314d1f 3856 blocks once per BB. Also fix reversed test (by removing need for
c635a1ec
DB
3857 the test at all).
3858
951a0766
NB
38592002-06-27 Neil Booth <neil@daikokuya.co.uk>
3860
3861 * cpphash.h (_cpp_set_trad_context): Remove.
3862 * cpplib.c (prepare_directive_trad): Do nothing for #define.
3863 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
3864 * cpptrad.c: Update comments.
3865 (_cpp_read_logical_line_trad): Let scan_logical_line handle
3866 updating the current context.
3867 (scan_logical_line): Update the current context.
3868 (_cpp_create_trad_definition): Similarly.
3869 (_cpp_set_trad_context): Remove.
3870
06470238
NB
38712002-06-27 Neil Booth <neil@daikokuya.co.uk>
3872
3873 PR preprocessor/7070
3874 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
3875
0c14a54d
BW
38762002-06-26 Bob Wilson <bob.wilson@acm.org>
3877
3878 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
3879 config/xtensa/xtensa.c (xtensa_return_addr): New function.
3880 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
3881 config/xtensa/xtensa.md (fix_return_addr): New pattern.
3882
e9873fd5
KG
38832002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3884
3885 * mips.c (coprocessor_operand, coprocessor2_operand,
3886 symbolic_operand): Move prototypes from here...
3887 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
3888 symbolic_operand): ...to here.
3889
650e8d05
R
3890Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
3891
3892 * config/sh/crt1.asm: remove _stack label definition
3893 and sentinel value.
3894
c7836bcd
KG
38952002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3896
3897 * varasm.c: Include real.h before output.h.
3898
6e1f54e2
AH
38992002-06-26 Aldy Hernandez <aldyh@redhat.com>
3900
6c535c69
ZW
3901 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
3902 check for TARGET_ALTIVEC.
6e1f54e2 3903
18fbcbcf
NN
39042002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
3905
3906 * config.gcc (vax-*-vms*): Make obselete.
3907
09bed167
KG
39082002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3909
3910 * gcc.c (warn_std): Delete.
3911
8254cb45
LR
39122002-06-25 Loren J. Rittle <ljrittle@acm.org>
3913
3914 * doc/extend.texi: Fix formatting of last checkin.
3915
f9ee10ab
RO
39162002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3917
3918 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
3919 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
3920
90989b26
AH
39212002-06-25 Aldy Hernandez <aldyh@redhat.com>
3922
6c535c69
ZW
3923 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3924 discrepancies from motorola's documentation.
90989b26 3925
9881adff
R
3926Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
3927
3928 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
3929 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
4de1b7a9 3930
4e314d1f 3931 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
4de1b7a9
R
3932 produce a 32 bit result before normalization, then normalize with a
3933 left shift. Compute approximative error of 2nd reciprocal
3934 approximation in 2's complement. Fix mask generation from upper
3935 longword of second divide stage result.
3936 For large divisor, fix shift count used to truncate first stage
3937 divide result; make decision if to adjust upwards based on comparison
3938 of higher parts of normalized values.
3939 (udivdi): Likewise. Undo normalization of result for large divisor
3940 case.
3941
16b46035
DM
39422002-06-25 David S. Miller <davem@redhat.com>
3943
3944 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
3945
0c6db544
NB
39462002-06-25 Neil Booth <neil@daikokuya.co.uk>
3947
3948 * cpplib.c (do_include_common): Revert to correct line number
3949 if -traditional.
3950 * cpptrad.c (scan_out_logical_line): Treat null directive as
3951 white space. Invlidate MI optimization for non-whitespace
3952 text outside a directive.
3953
eef709c7
KG
39542002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3955
b41e09a7
KG
3956 * Makefile.in (SHELL): Set to @SHELL@.
3957 * fixinc/Makefile.in (SHELL): Likewise.
3958
eef709c7
KG
3959 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
3960 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
3961 initialization.
3962
b0ac73f8
JL
39632002-06-24 Jeff Law <law@redhat.com>
3964
3965 * flow.c (propagate_one_insn): When removing an insn
3966 with a REG_LIBCALL note but not the entire libcall sequence,
3967 delete the associated REG_RETVAL note.
3968
9e96203d
R
3969Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
3970
3971 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
3972 (udivsi3): Likewise. Rewrite SH1 implementation.
3973 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
3974 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
3975 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
3976 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
3977 (_moddi3): Likewise.
3978
3979 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
87912be7
R
3980
3981 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
3982 arguments into account for stack_regs.
3983
0d893a63
MK
39842002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
3985
3986 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
3987 in examples.
4e314d1f 3988
04a5176a
AH
39892002-06-24 Art Haas <ahaas@neosoft.com>
3990
3991 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
3992 * doc/tm.texi (Frame Layout): Likewise.
3993
cad61762 39942002-06-20 Steve Ellcey <sje@cup.hp.com>
ec52b446 3995
cad61762
SE
3996 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
3997 Set float_format to i128.
3998
556a56ac
DM
39992002-06-24 David S. Miller <davem@redhat.com>
4000
4001 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
4002 32-bit ABI libfuncs to NULL.
4003
563facba
DM
4004 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
4005 strings instead of quoted strings for code blocks.
b776892b 4006
556a56ac
DM
4007 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
4008 optabs if op1 is const0_rtx.
4009
a8106207
DM
4010 * Makefile.in (GTFILES): Add basic-block.h
4011 * basic-block.h (label_value_list, tail_recursion_label_list):
4012 Mark with GTY.
4013
2c088b53
NB
40142002-06-24 Neil Booth <neil@daikokuya.co.uk>
4015
4016 * cpptrad.c (scan_out_logical_line): Check recursing only when
4017 we know we have a macro invocation in the function-like case.
4018 Only call _cpp_handle_directive if we know we have a good
4019 directive, or we want to reject a bad directive.
4020
0228d06b
AM
40212002-06-24 Alan Modra <amodra@bigpond.net.au>
4022
4023 * doloop.c (doloop_valid_p): Correct comment.
4024 (doloop_modify_runtime <abs_inc != 1>): Simplify.
4025 (doloop_modify_runtime <do-while>): Don't emit code when NE.
4026
2f9021d3
DC
4027Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
4028
4029 * config.gcc: Add support for ip2k.
4030
bc9c2952 40312002-06-23 Jan Hubicka <jh@suse.cz>
f81a79ef
JH
4032 Jeff Law <law@redhat.com>
4033
4034 * function.h (struct emit_status): Clarify potential contents
4035 of regno_reg_rtx array.
4036 * integrate.c (copy_rtx_and_substitute): Update comments. Make
4037 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
bc9c2952
AJ
4038
4039 * reg-stack.c (convert_regs_exit): Push the registers to stack in
4040 proper order.
4041
faa964e5
UW
40422002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4043
4044 PR middle-end/6963
4045 * function.c (assign_stack_temp_for_type): Do not return
4046 the same MEM rtx for multiple uses of a stack slot.
4047
7ae3e57c
DM
40482002-06-22 David S. Miller <davem@redhat.com>
4049
4050 PR target/6841 target/6770 target/6719
4051 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
4052 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
4053 GENERAL_OR_EXTRA_FP_REGS.
4054
847c76c8
NB
40552002-06-22 Neil Booth <neil@daikokuya.co.uk>
4056
4057 * cpptrad.c (struct fun_macro): Add line number.
4058 (scan_out_logical_line): Set it, and use it to report unterminated
4059 macro invocations.
4060
813674e0
KG
40612002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4062
4063 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
4064 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
4065 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
4066 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
4067 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
4068 REGEXP_ONEOF, check_name): Const-ify.
4069
23361093
MT
40702002-06-21 Matt Thomas <matt@3am-software.com>
4071
4072 * config/vax/vax.c (vax_output_function_prologue): Use
bc9c2952 4073 REGISTER_PREFIX. Fix some indentation.
23361093
MT
4074 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
4075 (VAX_ISTREAM_SYNC): Define.
4076 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
bc9c2952
AJ
4077 i-stream sync to the end.
4078 (REGISTER_PREFIX): Define as "".
23361093
MT
4079 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
4080
1c655a0d
JT
40812002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
4082
4083 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
4084 configurations.
4085
3e16bfe2
KG
40862002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4087
4088 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
4089 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
4090
6b0760fd
MT
40912002-06-21 Matt Thomas <matt@3am-software.com>
4092
4093 * config/vax/netbsd.h: Adjust a comment.
4094 (TARGET_DEFAULT): Redefine as 0.
4095
31a78298
RH
40962002-06-21 Richard Henderson <rth@redhat.com>
4097
4098 * bb-reorder.c (make_reorder_chain_1): Search harder for the
bc9c2952
AJ
4099 vax casesi fallthru edge.
4100 * cfglayout.c (cleanup_unconditional_jumps): Use
31a78298
RH
4101 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
4102 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
4103 block after ADDR_VEC.
4104
d8bf1785
RO
41052002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4106
4107 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
4108
00b94a44
NB
41092002-06-21 Neil Booth <neil@daikokuya.co.uk>
4110
4111 * cpperror.c (cpp_error): For traditional CPP, default to
4112 diagnostics on pfile->line.
4113 * cpplib.c (prepare_directive_trad): Set line number for
4114 diagnostics for #define too.
4115 * cpptrad.c (skip_whitespace): Skip comments properly.
4116 (_cpp_expansions_different_trad): Initialize quote2.
4117
c583c5c3
HPN
41182002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
4119
4120 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
4121 * config/mmix/mmix.h: Ditto.
4122 * config/mmix/mmix-protos.h: Ditto.
4123 * config/mmix/mmix.c: Ditto. Fix typo in comment.
4124 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
4125 comment. Comment extra CC modes.
4126
1292ec0c
JH
41272002-06-20 Jan Hubicka <jh@suse.cz>
4128
4129 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
4130 (scope_to_insns_finalize): Do not call set_block_levels; handle
4131 sequences.
4132 (choose_inner_scope): New.
4133 * rtl.h (choose_inner_scope): Declare.
4134
0f8e3849
JDA
41352002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
4136
4137 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
4138 HOST_WIDE_INT.
4139 * pa.c (pa_asm_output_mi_thunk): Likewise.
4140 (n_deferred_plabels): Change type to size_t.
4141 (output_deferred_plabels, output_call): Use size_t instead of int.
4142
0655301f
RH
41432002-06-20 Richard Henderson <rth@redhat.com>
4144
4145 PR target/4041
4146 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
4147 pattern and adjust constraints for coldfire.
4148
2b3aadfc
RH
41492002-06-20 Richard Henderson <rth@redhat.com>
4150
4151 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
4152
5c44e275
CD
41532002-06-20 Chris Demetriou <cgd@broadcom.com>
4154
4155 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
4156
8fff5435
CD
41572002-06-20 Chris Demetriou <cgd@broadcom.com>
4158
4159 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
4160
8a67e083
SS
41612002-06-20 Stan Shebs <shebs@apple.com>
4162
4163 * dominance.c: Include errors.h instead of error.h.
4164
017acb41
NB
41652002-06-20 Neil Booth <neil@daikokuya.co.uk>
4166
4167 * cppexp.c (cpp_interpret_integer): Don't force traditional
4168 numbers to be unsigned.
4169 * cpplib.c (prepare_directive_trad): Set line number for
4170 diagnostics.
4171 * cpptrad.c (scan_out_logical_line): Continue scanning out
4172 at start of buffer.
4173 * gcc.c (trad_capable_cpp): Use cc1 always.
4174
0ed4a390
JL
41752002-06-20 Jeffrey Law <law@redhat.com>
4176
4177 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
4178 elimination in leaf functions by default yet.
4179
988ef418
RS
41802002-06-20 Richard Sandiford <rsandifo@redhat.com>
4181
4182 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
4183
0ab2e54b
RO
41842002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4185
4186 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
4187 multilibs.
4188 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
d8bf1785 4189 Fixes PR other/6836.
0ab2e54b 4190
355be0dc
JH
4191Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
4192 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
4193
4194 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
4195
4196 * basic-block.h: Do not include et-forest.h
4197 (dominance_info): Declare as struct dominance-info.
4198 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
4199 deleting block.
4200 * dominance.c (struct dominance_info): Define.
4201 (BB_NODE, SET_BB_NODE): New macros.
4202 (bb_hash_func, bb_eq_func): Kill.
4203 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
4204 nearest_common_dominator, dominated_by_p, recount_dominator,
4205 add_to_dominance_info, delete_from_dominance_info): update for new
4206 representation.
4207 (get_dominated_by, redirect_immediate_dominators): Rewrite using
4208 enumerate_sons.
4209 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
4210 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
4211 structure.
4212
4213 * et-forest.h: Update copyright; revamp all function to operate on
4214 nodes
4215 (et_forest_value): Kill.
4216 (et_forest_enumerate_sons, et_forest_node_value): New.
4217 * et-forest.c: Update copyright.
4218 * et-forest.h: Update copyright; revamp all function to operate on
4219 nodes
4220 (et_forest_value): Kill.
4221 (et_forest_enumerate_sons, et_forest_node_value): New.
4222
4223 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
4224
4225 * basic-block.h: Inlude et-forest.h
4226 (basic_block_def): Kill dominator.
4227 (dominance_info): New type.
4228 (loops): Use dominace_info.
4229 (dominace handling functions): Take dominace_info as argument
4230 instead of bitmaps.
4231 (create_preheader): Likewise.
4232 * cfg.c (entry_exit_blocks): Kill dominator.
4233 (dump_flow_info): Do not dump dominators.
4234 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
4235 dominators.
4236 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
4237 (flow_loops_pre_header_scan, make_forwarder_block,
4238 canonicale_loop_headers, flow_loops_find): Likewise.
4239 * dominance.c: Include error.h
4240 (idoms_to_doms): Kill.
4241 (bb_hash_func, bb_eq_func): New static functions.
4242 (debug_dominace_info): New global function.
4243 (calculate_dominance_info): Use new et forest structure.
4244 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
4245 get_dominated_by, redirect_immediate_dominators,
4246 nearest_common_dominator, dominated_by_p, verify_dominators,
4247 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
4248 delete_from_dominance_info): New global functions.
4249 * gcse.c (domnators): CHange to dominance_info.
4250 (alloc_hoist_mem): Do not alloc dominators
4251 (free_code_hoist_mem): Use free_dominance_info.
4252 (compute_code_hoist_data): Use dominance_info.
4253 (hoist_code): Likewise.
4254 * ifcvt.c (post_dominators): Likewise.
4255 (find_if_case_2, if_convert): Likewise.
4256 * predict.c (process_note_predictions, process_note_prediction,
4257 estimate-probability): Likewise.
4258 * sched-rgn.c (find_rgns, init_regions): Likewise.
4259 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
4260 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
4261 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
4262 find_evaluations, convert_to_ssa): Likewise.
4263 * ssa.h (compute_dominance_frontiers): Likewise.
4264
4265 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
4266
4267 * Makefile.in (et-forest.c): Add.
4268 * et-forest.c: New file.
4269 * at-forest.h: New file.
4270
ef9772c8
KG
42712002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4272
62c71f4b
KG
4273 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
4274 array size calculation.
4275 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
4276 Likewise.
4277
ef9772c8
KG
4278 * diagnostic.c (diagnostic_kind_text): Const-ify.
4279 * gengtype.c (lang_names): Likewise.
4280
b0dd4808
JH
4281Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
4282
4283 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
4284
8433a25e
RO
42852002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4286
4287 * config/sol2.h: New file.
4288 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
4289 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
4290 (sparc-*-chorusos*): Likewise.
4291 (sparc-*-elf*): Likewise.
4292 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
4293 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
4294 (sparc-hal-solaris2*): Likewise.
4295 (sparc-*-solaris2*): Likewise.
4296 (sparclite-*-elf*): Likewise.
4297 (sparc86x-*-elf*): Likewise.
4298 (sparc64-*-elf*): Likewise.
bc9c2952 4299
8433a25e
RO
4300 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
4301 config/sol2.h.
4302 (ASM_SPEC): Override config/sol2.h version for now.
4303 Removed obsolete GAS_REJECTS_MINUS_S variant.
4304 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
4305 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
4306 (TARGET_OS_CPP_BUILTINS): Likewise.
4307 Assert system=unix.
4308 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
4309 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
4310 config/sol2.h.
4311 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
4312 (ASM_CPU_SPEC): Define.
4313 (SUBTARGET_EXTRA_SPECS): Define.
bc9c2952 4314
8433a25e
RO
4315 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
4316 in config/sparc/sol2.h.
4317 (ASM_SPEC): Moved to config/sol2.h.
4318 (CPP_CPU_SPEC): Simplified.
4319 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
4320 consistency.
4321 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
4322 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
4323 STARTFILE_ARCH64_SPEC.
4324 (STARTFILE_SPEC): Moved to config/sol2.h
4325 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
4326 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
4327 (LINK_ARCH64_SPEC): Simplified.
4328 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
4329 (LINK_SPEC): Moved to config/sol2.h
bc9c2952 4330
8433a25e
RO
4331 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
4332 config/sol2.h.
4333 Use BITS_PER_WORD for size.
4334 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
4335 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
4336 (CPP_PREDEFINES): Removed OS-specific part handled by
4337 TARGET_OS_CPP_BUILTINS.
4338 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
4339 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
4340 (ASM_SPEC): Moved to config/sol2.h.
4341 (PREFERRED_DEBUGGING_TYPE): Likewise.
4342 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
4343 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
4344 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
4345 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
bc9c2952 4346
8433a25e
RO
4347 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
4348 * config/i386/sol2gas.h: Removed.
4349
b6bb1d56
JH
4350Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
4351
4352 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
4353
e50b19ce 43542002-06-16 Aldy Hernandez <aldyh@redhat.com>
4e314d1f 4355
e50b19ce
AH
4356 * gcc.c-torture/execute/simd-1.c: New.
4357
4358 * gcc.dg/simd-1.c: New.
4359
4360 * doc/extend.texi (Vector Extensions): Document that we can
4361 specify simd types not specifically supported by the hardware.
4362 Document that simd types can be used as function arguments.
4363 Document that signness does make a difference in SIMD types.
4364 Misc cleanups and revisions to the vector extensions section.
4365
4366 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
4367 constants.
4368
4369 * expr.c (vector_mode_valid_p): New.
4370
4371 * expr.h: Add vector_mode_valid_p.
4372
4373 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
4374
4375 * c-common.c (type_for_mode): Always build vector nodes regardless
4376 of VECTOR_MODE_SUPPORTED_P.
4377 (handle_mode_attribute): Error if we can't emulate a nonexisting
4378 vector mode.
4379 (handle_vector_size_attribute): Same.
4380
4381 * optabs.c (expand_binop): Open-code vector operations.
4382 (expand_unop): Open-code vector unops.
4383 (expand_vector_binop): New.
4384 (expand_vector_unop): New.
4e314d1f 4385
e50b19ce
AH
4386 * c-typeck.c (build_binary_op): Allow vectors in binops.
4387 Allow vectors in conditional operatiors.
4388 (build_unary_op): Allow vectors in unary minus.
4389
4390 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
4391 TARGET_ALTIVEC.
4392
74d86f4f
RH
43932002-05-20 Richard Henderson <rth@redhat.com>
4394
4395 * c-common.c (c_common_get_alias_set): Correctly handle characters.
4396 Rearrange order of expressions; don't handle vectors here.
4397 * alias.c (get_alias_set): Let vectors match their components.
4398
1867b624
CD
43992002-06-19 Chris Demetriou <cgd@broadcom.com>
4400
6c535c69 4401 * config/mips/mips.c (mips_emit_prefetch): Use hints which
1867b624
CD
4402 match desired locality.
4403
2c1d2fcb
DD
44042002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
4405
4406 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
4407 (h8300_insert_attributes): New.
4408
84d901be
AD
44092002-06-19 Akim Demaille <akim@epita.fr>
4410
4411 * c-parse.in (initelt: identifier ':' initval): Add an empty
4412 action to fix a type clash.
4413 (aliasdecl, classdef): Add the missing closing `;'.
4414 Whitespace changes.
4415 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
4416 $$ = $1 type clashes.
4417
8f2e3902
EC
44182002-06-19 Eric Christopher <echristo@redhat.com>
4419
4420 * config/mips/mips.c (symbol_operand): New function.
4421 (mips_emit_prefetch): Ditto.
4422 * config/mips/mips-protos.h: Define.
4423 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
4424 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
4425 (LEGITIMIZE_ADDRESS): Ditto.
4426 * config/mips/mips.md (prefetch, prefetch_si_address,
4427 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
4428
c894819c
EC
44292002-06-19 Eric Christopher <echristo@redhat.com>
4430
4431 * config/fp-bit.h: Add unordered defines for gofast.
4432
4005971c
VM
44332002-06-19 Vladimir Makarov <vmakarov@redhat.com>
4434
4435 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
4436 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
4437 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
4438 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
4439 checking and without it.
4440 (decl_name, decl_mode_check_failed, regexp_name,
4441 regexp_mode_check_failed): New functions.
4442 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
4443 gen_presence_set, gen_absence_set, gen_automaton,
4444 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
4445 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
4446 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
4447 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
4448 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
4449 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
4450 (decl_hash, decl_eq_p): Use the macros.
4451 (find_decl): Ditto. Set up mode of work_decl.
4452 (process_excls, process_presence_absence, process_decls,
4453 check_automaton_usage, process_regexp, process_regexp_decls,
4454 check_usage, loop_in_regexp, check_loops_in_regexps,
4455 process_regexp_cycles, add_advance_cycle_insn_decl,
4456 initiate_states, initiate_excl_sets,
4457 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
4458 transform_2): Use the macros.
4459 (transform_3): Ditto. Check mode before making transformations of
4460 ALLOF.
4461 (regexp_transform_func, transform_insn_regexps,
4462 process_unit_to_form_the_same_automaton_unit_lists,
4463 form_the_same_automaton_unit_lists_from_regexp,
4464 form_the_same_automaton_unit_lists,
4465 process_seq_for_forming_states, process_alts_for_forming_states,
4466 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
4467 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
4468 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
4469 units_to_automata_heuristic_distr, create_ainsns,
4470 units_to_automata_distr, create_automata): Use the macros.
4471 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
4472 (longest_path_length, min_issue_delay_pass_states,
4473 output_dead_lock_vect, output_tables, output_insn_code_cases,
4474 output_internal_insn_latency_func, output_print_reservation_func,
4475 output_description, output_automaton_units, generate): Use the
4476 macros.
4477 (make_insn_alts_attr): Ditto. Check case when there are not
4478 alternatives in the reservation.
4479 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
4480 make_bypass_attr, form_important_insn_automata_lists,
4481 expand_automata): Use the macros.
c894819c 4482
015089dd
TJ
44832002-06-20 Tim Josling <tej@melbpc.org.au>
4484
4485 * Makefile.in: Clean up code to check for misspecified languages
4486 in enable-languages.
4487
7999462c
AP
44882002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
4489
84d901be 4490 * cpptrad.c (_cpp_replacement_text_len): initialize len.
7999462c 4491
9c8d079c
JM
44922002-06-19 Jason Merrill <jason@redhat.com>
4493
4494 * Makefile.in (unstrap, restrap): New targets.
4495 (bootstrap): Mention restrap.
4496
d90a95fb
MK
44972002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
4498
4499 * except.c (ehl_free): Remove.
4500
4501 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
4502 builtin_define and builtin_define_std.
4503
f01a0d8d
ID
45042002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
4505
4506 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
4507 (sCOND): Restrict operand class so that gcc knows how to reload them.
4508 (bitfield_set): Merge two unnamed insn's using alternatives.
4509 (call_value): Remove constraint on unused uperand.
4510 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
4511 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
c894819c 4512
f01a0d8d
ID
4513 * longlong.h (count_trailing_zeros): Escape newline and beautify.
4514
62363d99
MM
45152002-06-19 Mark Mitchell <mark@codesourcery.com>
4516
4517 * Makefile.in (QMTEST_DIR): Simplify definition.
4518
099bd656
NC
45192002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
4520
4521 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
4522 #define.
4523
278c4662
NB
45242002-06-19 Neil Booth <neil@daikokuya.co.uk>
4525
4526 * cpphash.h (struct cpp_reader): Make date and time strings.
4527 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
4528 _cpp_replacement_text_len): New.
4529 * cppinit.c (cpp_create_reader): Update.
4530 (init_builtins): Register appropriate builtins for -traditional-cpp.
4531 * cppmacro.c (new_number_token): Remove.
4532 (_cpp_builtin_macro_text): New.
4533 (builtin_macro): Use it.
4534 (cpp_macro_definition): Update to handle traditional macros.
4535 * cppmain.c (cb_line_change): Don't do column positioning for
4536 traditional output.
4537 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
4538 state ls_fun_close.
4539 (skip_whitespace): Fix.
4540 (maybe_start_funlike): Don't set state.parsing_args.
4541 (scan_out_logical_line): Remove duplicate error. Use lex_state
4542 rather than state.parsing_args.
4543 (push_replacement_text): Handle builtins.
4544 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
4545
afd1930f 45462002-06-18 Hans-Peter Nilsson <hp@axis.com>
f01a0d8d 4547 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
afd1930f
HPN
4548
4549 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
4550 attribute __always_inline__.
4551
5ee924c2
BW
45522002-06-18 Bob Wilson <bob.wilson@acm.org>
4553
4554 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
4555 when generating the call to _mcount.
4556 (NO_PROFILE_COUNTERS): Define.
4557
32c36ac8
RH
45582002-06-18 Richard Henderson <rth@redhat.com>
4559
4560 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
4561 2002-06-02 change.
4562
c985dc5e
R
4563Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
4564
4565 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
4566 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
4567 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
4568 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
e3ba8d11
R
4569
4570 * sh-protos.h (sh_pr_interrupt): Declare.
4571 * sh.c (sh_pr_interrupt): New function.
4572 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
4573 (sh_hard_regno_rename_ok): Likewise.
4574 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
4575
e3c8eb86
VM
45762002-06-18 Vladimir Makarov <vmakarov@redhat.com>
4577
4578 * rtl.def (DEFINE_AUTOMATON): Add description of new options
4579 `time' and `v'. Fix incorrect description of option `w'.
4580
4581 * doc/md.texi: Ditto.
4582
4583 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
4584 (gen_automata_option): Process the new options.
4585 (transform_2, transform_3): Initialize some variables.
4586 (initiate_automaton_gen): Use the new macros.
c894819c 4587
b2471838
RS
45882002-06-18 Richard Sandiford <rsandifo@redhat.com>
4589
4590 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
4591 (mips_set_return_address, mips_restore_gp): Declare.
4592 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
4593 (current_frame_info): Remove.
4594 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
4595 * config/mips/mips.c: Remove uses of current_frame_info.
4596 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
4597 (struct machine_function): Add 'frame' and 'insns_len'.
4598 (current_frame_info, zero_frame_info): Remove.
4599 (mips_restore_gp, mips_set_return_address): New.
4600 (mips_initial_elimination_offset): New.
4601 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
4602 (eh_return define_split): Use mips_set_return_address.
4603
d97371e0
NB
46042002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
4605
4606 * cpplib.c (dtable): Update.
4607 (end_directive): Decrement expansion prevention count.
4608 Clear state.in_expression.
4609 (prepare_directive_trad): Set state.in_expression.
4610 Increment expansion prevention count.
4611 * cpptrad.c (enum ls): New.
4612 (_cpp_overlay_buffer): Set overlaid_buffer.
4613 (_cpp_remove_overlay): Use overlaid_buffer.
4614 (_cpp_read_logcial_line_trad): Update buffer when it might
4615 have changed.
4616 (scan_out_logical_line): Handle state transitions for assertions
4617 and defined() in #if, and for funlike invocations including the
4618 directive case. Handle '<' and '>' as a quote mechanism in
4619 #include. Warn about unterminated macro invocations.
4620 * cpphash.h (struct lexer_state): New member in_expression.
4621 (struct cpp_reader): New member overlaid buffer.
4622
807b20b0
HPN
46232002-06-18 Hans-Peter Nilsson <hp@axis.com>
4624
4625 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
4626 __always_inline__.
4627
8a09a7e5
AM
46282002-06-18 Alan Modra <amodra@bigpond.net.au>
4629
147d5f6f
AM
4630 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
4631
8a09a7e5
AM
4632 * doloop.c (doloop_optimize): Extract pattern from insn.
4633
390de769
MK
46342002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
4635
4636 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
4637
0ed4a390 46382002-06-17 Jeff Law <law@redhat.com>
912ce297
JL
4639
4640 * libgcc2.c: Do not include symcat.h or machmode.h.
4641
5c45425b
RH
46422002-06-17 Richard Henderson <rth@redhat.com>
4643
4644 PR target/6922
4645 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
4646
9aa497ae
TT
46472002-06-17 Tom Tromey <tromey@redhat.com>
4648
4649 * dwarfout.c: Include function.h.
4650
7f11f1f9
AS
46512002-06-17 Andreas Schwab <schwab@suse.de>
4652
4653 * print-rtl.c (print_rtx): Print space before vector, not after.
4654 (debug_rtx): Clear sawclose before printing.
4655 (debug_rtx_list): Print newline after each list element.
4656 (debug_rtx_range): Likewise.
4657
df696a75
RH
46582002-06-17 Richard Henderson <rth@redhat.com>
4659
4660 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
4661 (current_function_funcdef_no): Similarly.
4662 * function.c (funcdef_no): Similarly.
4663 (prepare_function_start): Set current_function_funcdef_no.
4664 (expand_function_start): Don't set current_function_profile_label_no.
4665 * dwarf2out.h (current_funcdef_number): Remove.
4666 * dwarf2out.c (current_funcdef_number): Remove. Replace with
4667 current_function_funcdef_no throughout.
4668 * dwarfout.c, vmsdbgout.c: Similarly.
4669 * except.c (sjlj_funcdef_number): Remove.
4670 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
4671 (output_function_exception_table): Likewise.
4672 * final.c (profile_function): Use current_function_funcdef_no
4673 instead of current_function_profile_label_no.
4674
97272202
VM
46752002-06-17 Vladimir Makarov <vmakarov@redhat.com>
4676
4677 * sched-ebb.c (init_ready_list): Check INSN_P first.
4678
8bccce2d
R
4679Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
4680
4681 * sh.md (divsi3): Update way how to find insns in a sequence.
dec0798e
R
4682
4683 * reload1.c (merge_assigned_reloads): Don't change reloads
4684 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
4685 to RELOAD_OTHER when there are conflicting input reloads.
4686
0af5c896
RE
46872002-06-17 Richard Earnshaw (rearnsha@arm.com)
4688
4689 * function.c (epilogue_done): Correctly build a sequence of insns for
4690 a sibcall epilogue.
4691
9d0fa9d6
NC
46922002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
4693
845b1456
NC
4694 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
4695 #define.
4696
9d0fa9d6
NC
4697 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
4698
e83f3cff
RH
46992002-06-16 Richard Henderson <rth@redhat.com>
4700
4701 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
4702 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
4703
caecc099
RH
47042002-06-16 Richard Henderson <rth@redhat.com>
4705
4706 PR opt/6722
4707 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
4708
3d05b15f
NB
47092002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
4710
caecc099
RH
4711 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
4712 * config/i386/i386-aout.h, config/i386/i386elf.h,
4713 config/i386/sysv4.h: Remove CPP_PREDEFINES.
4714 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
4715 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
4716 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
4717 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
3d05b15f 4718 CPP_PREDEFINES and part of CPP_SPEC.
caecc099 4719 * config/i386/sysv4-cpp.h: New.
3d05b15f 4720
8370aa3a
RH
47212002-06-16 Richard Henderson <rth@redhat.com>
4722
65a90f3c 4723 PR c/7030
8370aa3a
RH
4724 * dwarf2out.c (modified_type_die): Don't assign the qualified die
4725 to the unqualified type.
4726
e932b21b
JH
4727Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
4728
4729 * i386-protos.h (x86_field_alignment): Declare.
4730 * i386.c (x86_field_alignment): Define.
4731 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
4732 (BIGGEST_FIELD_ALIGNMENT): Kill.
4733
7ee02381
RH
47342002-06-16 Richard Henderson <rth@redhat.com>
4735
f01a0d8d 4736 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
7ee02381 4737
750491fc
RH
47382002-06-16 Richard Henderson <rth@redhat.com>
4739
4740 * c-common.c (flag_ms_extensions): Move from c++ front end.
4741 * c-common.h (flag_ms_extensions): Declare.
4742 * c-decl.c (c_decode_option): Add -fms-extensions.
4743 (grokfield): Don't accept anonymous structures in ISO C mode;
4744 accept only unnamed anonymous structures in GNU C mode; accept
4745 Plan 9 extensions in MS mode.
4746 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
4747 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
4748 (extension): Clear flag_iso.
4749 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
4750
c134da6b
HPN
47512002-06-16 Hans-Peter Nilsson <hp@axis.com>
4752
4753 PR target/7042
4754 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
4755 early if current_function_epilogue_delay_list is non-empty.
4756 * config/cris/cris.md ("return"): Add sanity check asserting that
4757 current_function_epilogue_delay_list is empty.
4758
038c7976
JL
47592002-06-16 Jeff Law <law@redhat.com>
4760
006a94b0
JL
4761 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
4762 sharing of hard registers.
4763
4764 * toplev.c (rest_of_compilation): Remove redundant conditional.
4765
038c7976
JL
4766 * toplev.c (rest_of_compilation): Perform a simpler, less costly
4767 cleanup of the CFG when not optimizing.
4768
0797741a
AM
47692002-06-16 Alan Modra <amodra@bigpond.net.au>
4770
4771 * gcc.c (main): Correct startfile_prefix_spec check.
4772
a6e2e53e
GK
47732002-06-12 Geoffrey Keating <geoffk@redhat.com>
4774
4775 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
4776 include both darwin.o and rs6000-c.o.
4777
129e0ee8
RS
47782002-06-15 Roger Sayle <roger@eyesopen.com>
4779
4780 * expr.c (compare_from_rtx): Call simplify_relational_operation
4781 on all comparisons, not just those between integer constants,
4782 with the correct (possibly unsigned) comparison code.
4783 (do_compare_rtx_and_jump): Likewise.
4784
d5355cb2
JDA
47852002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
4786
4787 * Makefile.in (tm_defines): New configuration variable.
4788 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
4789 Pass tm_defines in TM_DEFINES.
4790 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
4791 * config.gcc (tm_defines): New configuration variable.
4792 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
4793 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
4794 * configure.in: Substitute tm_defines.
4795 * configure: Rebuilt.
4796 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
4797 * doc/install.texi: Update.
4798 * pa/pa-700.h: Delete file.
4799 * pa/pa-7100.h: Delete file.
4800
8dcb27ed
RS
48012002-06-15 Roger Sayle <roger@eyesopen.com>
4802
4803 * fold-const.c (comparison_to_compcode): New function to convert
4804 an comparison TREE CODE into a bit-based representation.
4805 (compcode_to_comparison): New function to convert from this bit
4806 based representation back to a comparison TREE CODE.
4807 (fold_truthop): Simplify (x<y) && (x==y) and related composite
4808 comparisons.
4809
182e515e
AH
48102002-06-15 Aldy Hernandez <aldyh@redhat.com>
4811
f01a0d8d 4812 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
182e515e 4813
f01a0d8d
ID
4814 * stor-layout.c (compute_record_mode): Remove check for
4815 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
4816 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
4817 MEMBER_TYPE_FORCES_BLK.
182e515e 4818
f01a0d8d 4819 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
182e515e 4820
f01a0d8d 4821 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
182e515e 4822
8773135d
JS
48232002-06-14 Jeff Sturm <jsturm@one-point.com>
4824
4825 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
4826
893a047c
SE
48272002-06-14 Steve Ellcey <sje@cup.hp.com>
4828
4829 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
4830 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
4831 * configure, config.in: Regenerate.
4832
045d7161
EB
48332002-06-14 Eric Botcazou <ebotcazou@multimania.com>
4834
4835 * loop.c (check_final_value): Use v->always_executed
4836 instead of v->always_computable.
4837 * unroll.c (final_giv_value): Don't calculate the final
4838 value as a function of the biv if the giv is not computed
4839 for every loop iteration.
4840
048c8616 48412002-06-14 Eric Botcazou <ebotcazou@multimania.com>
c894819c 4842
048c8616
EB
4843 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
4844
43e4a9d8
EB
48452002-06-14 Eric Botcazou <ebotcazou@multimania.com>
4846
52689a98 4847 PR c/6677
43e4a9d8
EB
4848 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
4849 the truncation down when the target type is signed.
4850 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
4851 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
4852 the conversion if the target type is a smaller type.
4853
fa4a5557
RH
48542002-06-14 Richard Henderson <rth@redhat.com>
4855
4856 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
4857 earlier. Re-factor comparisons vs extrema.
4858
d95eb49f
RH
48592002-06-14 Richard Henderson <rth@redhat.com>
4860
4861 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
4862
be202ec2
FS
48632002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4864
4865 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
4866 * sched-deps.c (add_dependence): Likewise.
4867 (group_leader): Likewise.
4868 * sched-rgn.c (init_ready_list): Likewise.
4869 * doc/rtl.texi: Adjust accordingly.
4870
e56c4463
JL
48712002-06-13 Jeffrey Law <law@redhat.com>
4872
99a15921
JL
4873 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
4874 null pointer checks were eliminated. Update prototype.
4875 (delete_null_pointer_checks): Similarly.
4876 * rtl.h (delete_null_pointer_checks): Update prototype.
4877 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
4878 delete_null_pointer_checks deletes one or more null
4879 pointer checks. Do not run cleanup_cfg before gcse, the
4880 CFG is accurate and optimized at that point..
4881
e56c4463
JL
4882 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
4883 of hard registers.
4884
556b821e
UW
48852002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4886
4887 * Makefile.in (libgcc.mk): Depend on specs.
4888
fa60f36d
R
4889Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
4890
4891 * sh.md (mulsi3): Update way how to find insns in a sequence.
4892
03b8ec29
DD
4893Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
4894
4895 * sh.h: Define HARD_REGNO_RENAME_OK
4896 * sh.c: sh_hard_regno_rename_ok: New. If current function has
4897 interrupt_handler attribute, only registers saved on stack are OK.
4898 * sh-protos.h: Declare sh_hard_regno_rename_ok.
4899
8e831557
KK
49002002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
4901
4902 * config/sh/sh.md (jump): Emit jump insn.
4903 (call_pcrel): Get pattern of the result of gen_call_site.
4904 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
4905
bf9d5852
NB
49062002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
4907
4908 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
4909 * cpptrad.c: Update comments.
4910 (skip_whitespace, copy_comment): Take a new parameter.
4911 (skip_escaped_newlines): Don't duplicate escaped newline test.
4912 (copy_comment): Different location for CUR, decide here how
4913 to copy / replace the comment.
4914 (skip_whitespace): Copy whitespace.
4915 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
4916 (scan_out_logical_line): Let copy comment handle keeping or
4917 replacing comments.
4918 (scan_parameters, _cpp_create_trad_definition): Update.
4919
57292ec3
AL
49202002-06-13 Alan Lehotsky <apl@alum.mit.edu>
4921
4922 * reload.c (get_secondary_mem,find_reloads_address,
4923 find_reloads_address_1): Pass reference to MEM to find_reloads_address
4924 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
c894819c 4925
a6f5e048
RH
49262002-06-13 Jessica Han <jessica@cup.hp.com>
4927
4928 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
4929 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
4930 * doc/tm.texi: Document them.
4931 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
4932 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
4933 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
4934 (ASM_OUTPUT_FDESC): Likewise.
4935
3aafa0bb
EC
49362002-06-13 Eric Christopher <echristo@redhat.com>
4937
4938 * diagnostic.c (output_format): Fix thinko.
4939
8e581963
R
4940Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
4941
4942 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
4943 (DWARF2_UNWIND_INFO): Define to 0.
9d7ed806
R
4944
4945 * config/sh/sh.c (calc_live_regs): Don't use initial_value
4946 optimization for PR_MEDIA_REG.
4947
b66377c1
NB
49482002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
4949
4950 * cpphash.h (_cpp_lex_identifier_trad): Remove.
4951 * cpplib.c (end_directive): Don't skip, always remove overlay
4952 apart from #define.
4953 (prepare_directive_trad): Handle NULL pfile->directive.
4954 (_cpp_handle_directive): Always call prepare_directive_trad
4955 if traditional.
4956 * cppmain.c (check_multiline_token): Rename account_for_newlines,
4957 generalize inputs.
4958 (scan_translation_unit_trad): Use it.
4959 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
4960 output, get escaped newline in comment close correct.
4961 (check_output_buffer, skip_whitespace): Update.
4962 (_cpp_lex_identifier_trad): Remove.
4963 (scan_out_logical_line): Handle -C and comments in directives
4964 properly.
4965
8bc6e101
R
4966Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
4967
4968 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
4969 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
4970 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
4971 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
4972 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
4973 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
4974 (SELECT_SH5_COMPACT_NOFPU): Likewise.
4975 (TARGET_SWITCHES): Use them.
4976 (TARGET_CPU_DEFAULT): Define if not already defined.
4977 (TARGET_DEFAULT): Use it.
4978 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
4979 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
4980 * config/sh/t-monolib: New file.
4981
2181005d
RS
49822002-06-13 Roger Sayle <roger@eyesopen.com>
4983
4984 * toplev.c (rest_of_compilation): Simplify (and correct) the
4985 logic of the first delete-null-pointer-checks pass.
4986
aaae0bb9
JH
4987Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
4988
4989 * i386.c (ix86_expand_movstr): Fix pasto.
4990
4991Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
b80cb6e2
JH
4992
4993 * reload.c (find_valid_class): Fix thinko in my previous patch.
4994
dd3fbd93
UW
49952002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
4996
4997 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
4998 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
4999 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
5000 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
5001
0d0f605c
GDR
50022002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
5003
5004 * tree-inline.c (expand_call_inline): Don' mess with _DECL
3aafa0bb 5005 fields.
0d0f605c 5006
c92bcccb
GDR
50072002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
5008
5009 * diagnostic.c (output_format): Recognize "%H" as a format
5010 specifier for a location_t.
5011 (text_specifies_location): New function.
5012 (diagnostic_set_info): Use it.
5013
7f243674
JL
50142002-06-13 Jeffrey Law <law@redhat.com>
5015
6cde4876
JL
5016 * emit-rtl.c (static_regno_reg_rtx): Define.
5017 (init_emit_once): Initialize static_regno_reg_rtx.
5018 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
5019 of building new hard reg objects once per function.
5020 (gen_rtx_REG): Try to share hard regs.
5021 * regclass.c (init_fake_stack_mems): New function broken out from
5022 init_regs.
5023 * rtl.h (init_fake_stack_mems): Declare.
5024 * toplev.c (lang_independent_init): Call init_regs before
5025 init_emit_once. Call init_fake_stack_mems after init_emit_once.
5026
110b3faa
JL
5027 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
5028
7f243674
JL
5029 * alias.c (argument_registers): Remove.
5030 (init_alias_once): Initialize static_reg_base_value here. Remove
5031 initialization of argument_registers.
5032 (init_alias_once_per_function): Remove.
5033 (init_alias_analysis): Copy all the entries from static_reg_base_value
5034 into new_reg_base_value all at once.
5035 * rtl.h (init_alias_once_per_function): Remove declaration.
5036 * function.c (prepare_function_start): Do not call
5037 init_alias_once_per_function.
5038
5039 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
5040 starting a sequence and emitting an INSN.
5041
a336f2e5
RS
50422002-06-13 Richard Sandiford <rsandifo@redhat.com>
5043
5044 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
5045
2acf0fa9
DM
50462002-06-13 David S. Miller <davem@redhat.com>
5047
5048 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
5049
974c43f1
NB
50502002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
5051
5052 * cpplib.c (end_directive): Handle line skipping. Only remove
5053 the rest of the line if the directive was valid.
5054 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
5055 expanding a traditional macro.
5056 * cpptrad.c (recursive_macro): New.
5057 (read_logical_line_trad): Handle skipping.
5058 (scan_out_logical_line): Continue after a successful directive.
5059 Don't expand macros whilst skipping, or if recursing.
5060 (_cpp_create_trad_definition): scan_out_logical_line now sets
5061 the output current position.
5062
12bf26b6
EC
50632002-06-12 Eric Christopher <echristo@redhat.com>
5064
5065 From Chris Demetriou <cgd@broadcom.com>
5066 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
5067 comment.
5068 (ISA_HAS_MADD_MSUB): Ditto.
5069 (ISA_HAS_NMADD_NMSUB): Ditto.
5070
be95b8a5
EC
50712002-06-12 Eric Christopher <echristo@redhat.com>
5072
5073 * config.gcc: Consolidate little endian handling and
5074 little/big endian targets.
5075 * config/mips/elfl.h: Remove file.
5076 * config/mips/elfl64.h: Ditto.
5077 * config/mips/ecoffl.h: Ditto.
5078 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
5079
e03856fe
GK
50802002-06-12 Geoffrey Keating <geoffk@redhat.com>
5081
5082 * gengtype.h (xvasprintf): New prototype.
5083 (xasprintf): New prototype.
5084 (struct outf): New.
5085 (get_output_file): Return an outf_p.
5086 (header_file): Is now an outf_p.
5087 (base_files): Now are outf_p.
5088 (oprintf): New.
5089 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
5090 rather than stdio operations. Use xasprintf in a few places,
5091 when appropriate.
5092 (xvasprintf): New.
5093 (xasprintf): New.
5094 (struct filemap): Delete.
5095 (files): Delete.
5096 (output_files): New.
5097 (oprintf): New.
5098 (create_file): Create an outf_p. Add parameter to indicate output
5099 file name, change all callers.
5100 (open_base_files): Create gtype-desc.c here.
5101 (get_output_file_with_visibility): Rewrite.
5102 (get_output_file_name): Just look at 'name' field in struct outf.
5103 (close_output_files): Rewrite.
5104
ec01703c
JT
51052002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
5106
5107 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
be95b8a5 5108 (MASK_G_FLOAT): Define.
ec01703c
JT
5109 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
5110 (TARGET_SWITCHES): Likewise.
5111 (TARGET_DEFAULT): Likewise.
5112
8b0397a6
DJ
51132002-06-12 Daniel Jacobowitz <drow@mvista.com>
5114
5115 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
5116 * config/mips/mips.c (mips_output_filename): Don't print a
5117 ".file" directive if we are using DWARF-2.
5118 (mips_output_function_prologue): Do not emit source file
5119 name for TARGET_GAS.
5120
495333a6
JH
5121Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
5122
5123 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
5124 decide whether emit the short opcode.
5125 * i386.h (x86_shift1): Declare.
5126 (TARGET_SHIFT1): New macro.
5127 * i386.c (x86_shift1): New global variable.
5128
8b0397a6
DJ
5129 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
5130 unconditionally; make loop to rebuild CFG; kill unnecesary
5131 find_basic_block calls; kill compute_bb_for_insn call.
495333a6
JH
5132 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
5133 * haifa-sched.c (sched_init): Likewise.
5134 * ssa-ccp.c (ssa_const_prop): Likewise.
5135 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5136
d11cea13
DM
51372002-06-11 David S. Miller <davem@redhat.com>
5138
5139 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
5140 active_insn_p.
5141
676997cf
RH
51422002-06-11 Richard Henderson <rth@redhat.com>
5143
5144 * c-common.c (builtin_define_type_max): New.
5145 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
5146 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
5147
5148 From Joseph S. Myers:
5149 * glimits.h: Rewrite to expect the double underscore definitions
5150 from the compiler.
5151
5152 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
5153 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
5154 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
5155 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5156 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
5157 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
5158 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
5159 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
5160
116b7a5e
RH
51612002-06-11 Richard Henderson <rth@redhat.com>
5162
5163 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
5164 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
5165 (code_for_builtns): Update.
5166 (alpha_init_builtins): Add __builtin_thread_pointer and
5167 __builtin_set_thread_pointer.
5168 (alpha_expand_builtin): Handle void builtins.
5169 * doc/extend.texi (Alpha Built-in Functions): Update.
5170
0cec6af1
HPN
51712002-06-11 Hans-Peter Nilsson <hp@axis.com>
5172
5173 PR target/6997
5174 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
5175
1c0ca89d
ZW
51762002-06-11 Zack Weinberg <zack@codesourcery.com>
5177
5178 * config.gcc: Make the name of the extra-modes file adjustable
5179 by target stanzas.
5180 (s390x, strongarm, xscale stanzas): Use this facility.
5181 * configure.in: Update to match.
5182 * configure: Regenerate.
5183
5dc8d536
AH
51842002-06-11 Aldy Hernandez <aldyh@redhat.com>
5185
1c0ca89d
ZW
5186 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
5187 max/mins as unsigned GE compares.
5dc8d536 5188
169274cd
JT
51892002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
5190
1c0ca89d 5191 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
169274cd
JT
5192 * config/vax/bsd.h: New file.
5193 * config/vax/netbsd.h: Add missing notice.
1c0ca89d
ZW
5194 (CPP_PREDEFINES): Remove.
5195 (TARGET_OS_CPP_BUILTINS): Define.
5196 (CPP_SPEC): Use NETBSD_CPP_SPEC.
169274cd
JT
5197 * config/vax/openbsd.h: Update copyright years.
5198 (CPP_PREDEFINES): Remove.
5199 (TARGET_OS_CPP_BUILTINS): Define.
5200 * config/vax/ultrix.h: Likewise.
5201 * config/vax/vaxv.h: Likewise.
5202 * config/vax/vms.h: Likewise.
5203 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
5204 (CPP_PREDEFINES, CPP_SPEC): Remove.
5205
2f41793e
JH
5206Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
5207
5208 * i386.md (addqi_1_slp, subqi_1_slp
5209 (andqi_ext0, testqi_ext0): Remove unnecesary check.
5210 (addhi*, addqi*): Simplify "dec" condition.
5211 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
5212 (and, or, xor to QImode splitters): New.
5213 (iorqi_ext*): New.
5214 (xorqi_ext_0): New.
5215 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
5216 (andqi_ext_1_rex64): New.
5217 (ashrqi*_slp): New.
5218 (ashlqi*_slp): New.
5219 (lshlqi*_slp): New.
5220 (rotrqi3*_slp): New.
5221 (rotlqi3*_slp): New.
5222
fc5c400a
GK
52232002-06-11 Geoffrey Keating <geoffk@redhat.com>
5224
4c4eb375
GK
5225 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
5226 softfloat.h.
5227 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
5228 (CPP_ENDIAN_LITTLE_SPEC): Delete.
5229 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
5230 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
5231 __LONG_DOUBLE_128__ setting, _CALL_* setting.
5232 (CPP_DEFAULT_SPEC): Delete.
5233 (CPP_FLOAT_DEFAULT_SPEC): Delete.
5234 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
5235 (CPP_SYSV_DEFAULT_SPEC): Delete.
5236 (CPP_ENDIAN_BIG_SPEC): Delete.
5237 (CPP_ENDIAN_LITTLE_SPEC): Delete.
5238 (CPP_ENDIAN_SPEC): Delete.
5239 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
5240 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
5241 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
5242 cpp_longdouble_default.
5243 * config/rs6000/softfloat.h: Delete.
5244 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
5245 (EXTRA_SPECS): Delete cpp_cpu.
5246 (TARGET_CPU_CPP_BUILTINS): New.
5247 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
5248 prototype.
5249 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
5250 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
5251 (CPP_DEFAULT_SPEC): Delete.
5252 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
5253 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
5254 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
5255 (CPP_DEFAULT_SPEC): Delete.
5256 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
5257 (CPLUSPLUS_CPP_SPEC): Likewise.
5258 (CPP_CPU_SPEC): Delete.
5259 (CPP_DEFAULT_SPEC): Delete.
5260 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
5261 (CPLUSPLUS_CPP_SPEC): Likewise.
5262 (CPP_CPU_SPEC): Delete.
5263 (CPP_DEFAULT_SPEC): Delete.
5264 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
5265 (CPP_DEFAULT_SPEC): Delete.
5266 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
5267 (CPP_DEFAULT_SPEC): Delete.
5268
fc5c400a
GK
5269 * doc/gty.texi: Small updates.
5270
13f0d49c
GDR
52712002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
5272
5273 * objc/objc-act.c (warn_with_ivar): Adjust calls to
5274 diagnostic_count_error.
5275 (warn_with_method): Likewise.
5276
5277 * diagnostic.h (warnings_are_errors_message): New field of
5278 diagnostic_context.
5279 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
5280 match semantics.
5281 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
5282 (diagnostic_count_diagnostic): Make aware of other kinds of
1c0ca89d 5283 diagnostics.
13f0d49c
GDR
5284 (diagnostic_initialize): Initialize warnings_are_errors_message field.
5285
0797e472
TT
52862002-06-11 Tom Tromey <tromey@redhat.com>
5287
5288 For PR java/6520:
5289 * fold-const.c (fold_convert): Don't modify existing tree's type.
5290
f288d4aa
GK
52912002-06-11 Geoffrey Keating <geoffk@redhat.com>
5292
5293 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
5294
d27bab4c
RH
52952002-06-11 Richard Henderson <rth@redhat.com>
5296
5297 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
5298
bc2a8f08
RH
52992002-06-11 Richard Henderson <rth@redhat.com>
5300
1c0ca89d 5301 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
bc2a8f08
RH
5302 DWARF2_UNWIND_INFO is false.
5303
b217ec1b
BW
53042002-06-11 Bob Wilson <bob.wilson@acm.org>
5305
5306 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
5307
11819f80
UW
5308 * config/s390/s390.c (emit_prologue): gen_store_multiple
5309 returns an insn now, not a pattern.
5310
c2727579
RO
53112002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5312
5313 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
5314 $(TEXI2DVI) -o.
5315
285464d0
JH
5316Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
5317
5318 * i386.c (x86_promote_QImode): Set for Athlon
5319 (x86_fast_prefix): New global variable.
5320 (x86_arch_always_fancy_math_387): Fix formating.
5321 * i386.h (x86_fast_prefix): Declare
5322 (TARGET_FAST_PREFIX): define.
5323 * i386.md (and to strict_low_part, HI to SI
5324 promoting splitter): Use new macro.
5325
5326 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
5327
1bb1f121
ZW
53282002-06-11 Zack Weinberg <zack@codesourcery.com>
5329
5330 * Makefile.in (distclean): Delete junk left in testsuite
5331 directory, too.
5332
88c65786
JL
53332002-06-11 Jeffrey Law <law@redhat.com>
5334
c6a3fcf0
JL
5335 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
5336 last insn created by the splitter.
5337
0db79a6b
JL
5338 * caller-save.c (init_caller_save): Move creation of SAVEINSN
5339 and RESTINSN into into the scope of the sequence.
5340
47eb2ca8
JL
5341 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
5342 RETURN insns.
5343
603b4b92
JL
5344 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
5345
88c65786
JL
5346 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
5347 not the pattern. So extract the pattern from the insn.
882c7223
JL
5348
5349 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
5350
df14489a
UW
53512002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
5352
5353 * config/s390/s390.md (movsi): Only use floating point
5354 register alternatives when operands are already fprs.
5355 (movdi_31, movdi_64): Likewise.
5356
6f9703af
DM
53572002-06-11 David S. Miller <davem@redhat.com>
5358
5359 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
5360 Only run RTX equality checks on INSN_P rtl.
5361
b2ccb744
UW
53622002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
5363
5364 * config/s390/s390.md (reload_base, ltorg): Remove.
1c0ca89d 5365 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
b2ccb744 5366 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
1c0ca89d 5367 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
b2ccb744
UW
5368 s390_asm_output_pool_prologue): Likewise.
5369 * s390.h (s390_pool_start_insn): Likewise.
5370
1c0ca89d 5371 * s390.c (s390_output_symbolic_const): Remove support for
b2ccb744
UW
5372 old-style pool chunks.
5373 (s390_function_epilogue): Likewise.
1c0ca89d 5374 (s390_output_constant_pool): Likewise. Also, fix incorrect
b2ccb744
UW
5375 alignment for 64-bit literal pools.
5376 (print_operand_address): Remove 'y' and 'Y' format flags.
1c0ca89d 5377 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
b2ccb744
UW
5378 old-style pool chunks.
5379 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
5380 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
5381 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
5382
5383 * s390.c (consttable_operand): New function.
5384 * s390-protos.h (consttable_operand): Declare it.
5385 * s390.h (PREDICATE_CODES): Add consttable_operand.
1c0ca89d
ZW
5386 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
5387 consttable_sf, consttable_df, pool_start_31, pool_end_31,
b2ccb744
UW
5388 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
5389 * s390.c (struct constant, struct constant_pool): New data types.
5390 (constant_modes, gen_consttable): New variables.
1c0ca89d 5391 (s390_start_pool, s390_end_pool, s390_add_pool,
b2ccb744 5392 s390_dump_pool, s390_free_pool): New functions.
1c0ca89d 5393 (s390_chunkify_pool): Completely reimplement literal pool
b2ccb744
UW
5394 overflow handling.
5395
5396 * s390.c (s390_pool_overflow): New variable.
5397 * s390.h (s390_pool_overflow): Declare it.
1c0ca89d 5398 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
b2ccb744
UW
5399 jumps in literal pool overflow situations.
5400
5401 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
1c0ca89d 5402 (s390_frame_info): Account for possible use of RETURN_REGNUM
b2ccb744
UW
5403 by new literal pool overflow code.
5404 (s390_emit_prologue): Likewise.
5405
2f937369
DM
54062002-06-05 David S. Miller <davem@redhat.com>
5407
5408 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
5409 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
5410 emit_insns_before_scope, emit_insns_after,
5411 emit_insns_after_scope): Delete declaration.
5412 * ada/misc.c (insert_code_for): Use emit_insn* instead of
5413 emit_insns_foo.
5414 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
5415 (alpha_set_memflags): Fix comment.
5416 (set_frame_related_p): Use get_insns instead of gen_sequence.
5417 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
5418 emitting no insns.
5419 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
5420 gen_sequence.
5421 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
5422 * config/fr30/fr30.c (fr30_move_double): Likewise.
5423 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
5424 Likewise.
5425 * config/ia64/ia64.c (spill_restore_mem): Likewise.
5426 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
5427 no insns.
5428 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
5429 instead of gen_sequence.
5430 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
5431 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
5432 * config/sh/sh.c (sh_need_epilogue): Likewise.
5433 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
5434 attributes.
5435 (setjmp pattern and split): Use them to avoid splitter which emits
5436 no RTL.
5437 * genattrtab.c (main): Emit include of function.h
5438 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
5439 get_insns instead of gen_sequence.
5440 * config/cris/cris.c (cris_split_movdx): Likewise.
5441 * emit-rtl.c (emit_insns*): Kill.
5442 (try_split): Expect insn list instead of SEQUENCE.
5443 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
5444 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
5445 Make them abort if a SEQUENCE is given and RTL checking is
5446 enabled.
5447 (emit_*_scope): Don't forget to set scope on final insn.
5448 (gen_sequence): Move from here...
5449 * ssa.c (gen_sequence): To here as private function.
5450 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
5451 comments.
5452 (expand_builtin_return, expand_builtin_mathfn): Likewise.
5453 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
5454 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
5455 (expand_builtin_expect_jump): Use get_insns and fix comments.
5456 * calls.c (try_to_integrate): Use emit_insn_foo.
5457 (expand_call, emit_library_call_value_1): Likewise.
5458 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
5459 (emit_move_insn_1): Use get_insns instead of gen_sequence.
5460 (expand_expr): Use emit_insn_foo.
5461 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
5462 * except.c (build_post_landing_pads): Likewise.
5463 * flow.c (attempt_auto_inc): Likewise.
5464 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
5465 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
5466 * function.c (fixup_var_refs_insn): Use get_insns instead of
5467 gen_sequence.
5468 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
5469 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
5470 (fixup_stack_1, purge_addressof_1, expand_main_function,
5471 get_arg_pointer_save_area): Likewise.
5472 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
5473 expand_function_end): Use emit_insn_foo.
5474 (record_insns, keep_stack_depressed): Work with insn list instead
5475 of SEQUENCE, fix comments.
5476 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
5477 noce_try_store_flag_constants, noce_try_store_flag_inc,
5478 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
5479 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
5480 (noce_process_if_block): Use get_insns instead of gen_sequence.
5481 * optabs.c (add_equal_note): Work with insn list, fix comments.
5482 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
5483 (expand_unop, expand_complex_abs, expand_unop_insn,
5484 expand_no_conflict_block): Likewise.
5485 (gen_move_insn): Use get_insns instead of gen_sequence.
5486 (gen_cond_trap): Likewise.
5487 * integrate.c (copy_rtx_and_substitute): Likewise.
5488 (emit_initial_value_sets): Use emit_insn_foo.
5489 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
5490 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
5491 now that RTL generators give insn lists.
5492 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
5493 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
5494 instead of gen_sequence.
5495 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
5496 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
5497 instead of gen_sequence.
5498 * loop.c (move_movables, emit_prefetch_instructions,
5499 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
5500 Likewise.
5501 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
5502 (product_cheap_p): Likewise, and add commentary about RTL wastage
5503 here.
5504 * lcm.c (optimize_mode_switching): Use get_insns instead of
5505 gen_sequence.
5506 * profile.c (gen_edge_profiler): Likewise.
5507 * regmove.c (copy_src_to_dest): Likewise.
5508 * reg-stack.c (compensate_edge): Likewise and fix comment.
5509 * gcse.c (process_insert_insn): Likewise.
5510 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
5511 * jump.c (delete_prior_computation): Update comment.
5512 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
5513 of gen_sequence, update comments to match.
5514 * recog.c (peephole2_optimize): Work with insn lists instead of
5515 SEQUENCE rtl.
5516 * sched-vis.c (print_pattern): Abort on SEQUENCE.
5517 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
5518 Use get_insns instead of gen_sequence.
5519 (copy_loop_body): Likewise and don't emit dummy NOTE.
5520 * genrecog.c: Don't mention SEQUENCE rtl in comments.
5521 * combine.c (try_combine): Expect insn lists from split generator.
5522 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
5523 hand.
1c0ca89d 5524
43cf10b5
RS
55252002-06-11 Roger Sayle <roger@eyesopen.com>
5526 Andreas Jaeger <aj@suse.de>
5527
5528 * cfgbuild.c: Update copyright years.
5529
1062f15a
AS
55302002-06-11 Andreas Schwab <schwab@suse.de>
5531
1c0ca89d 5532 * config/m68k/m68k.h (PREDICATE_CODES): Define.
1062f15a 5533
ce3649d2
EC
55342002-06-11 Eric Christopher <echristo@redhat.com>
5535
5536 * doc/tm.texi (Run-time Target): Add comment about flag_iso
5537 and strict ANSI.
5538 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
5539 * config/mips/ecoffl.h: Ditto.
5540 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
5541 (CPP_PREDEFINES): Ditto.
5542 * config/mips/elfl64.h: Ditto.
5543 * config/mips/elfl.h: Ditto.
5544 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
5545 out until irix header consolidation.
5546 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
5547 with SUBTARGET_OS_CPP_BUILTINS.
5548 * config/mips/iris6.h: Ditto.
5549 (CPLUSPLUS_CPP_SPEC): Remove.
5550 * config/mips/linux.h: Ditto.
5551 * config/mips/netbsd.h: Ditto.
5552 * config/mips/openbsd.h: Ditto.
5553 * config/mips/rtems.h: Ditto.
5554 * config/mips/rtems64.h: Ditto.
5555 * config/mips/sni-svr4.h: Ditto.
5556 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
5557 ISA_MIPS32, ISA_MIPS64): New defines.
5558 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
5559 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
5560 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
5561 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
5562 (TARGET_CPU_CPP_BUILTINS): Define.
5563 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
5564 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
5565 (movdicc): Remove check for ISA_MIPS32.
5566 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
5567 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
5568 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
5569 sunge_sf, sunle_df, sunle_sf): New patterns.
5570
bc3437ba
NB
55712002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
5572
5573 * Makefile.in: Update cppmain.o.
5574 * cpphash.h (struct cpp_reader): Move some members to a
5575 nested structure.
5576 (trad_line): Rename saved_line.
5577 (_cpp_read_logical_line_trad): Update.
5578 (_cpp_remove_overlay): New.
5579 * cppinit.c (cpp_create_reader): No need to set saved_line.
5580 (cpp_destroy): Update.
5581 (cpp_read_main_file): Only overlay if compiling.
5582 * cpplex.c (continue_after_nul): Return false if in directive.
5583 * cpplib.c (EXPAND): New.
5584 (directive_table, SEEN_EOL): Update.
5585 (end_directive): Remove overlay if traditional; don't skip
5586 line in traditional #define.
5587 (prepare_directive_trad): New.
5588 (_cpp_handle_directive, run_directive): Update for traditional
5589 directives.
5590 (lex_macro_node): Simplify, don't use lex_identifier_trad.
5591 * cpplib.h (struct options): Add preprocess_only.
5592 * cppmain.c: Don't include intl.h.
5593 (cpp_preprocess_file): Set options->preprocess_only.
5594 (scan_translation_unit_trad): Fix, and print line numbers.
5595 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
5596 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
5597 save_replacement_text, _cpp_create_trad_definition): Update for
5598 variable renaming.
5599 (_cpp_overlay_buffer): Save line number.
5600 (_cpp_remove_overlay): Rename from restore_buff, restore line.
5601 (_cpp_read_logical_line_trad): Don't handle overlays here.
5602 (scan_out_logical_line): Process directives.
5603
b25bb36a
DS
56042002-06-11 Danny Smith <dannysmith@users.sourforge.net>
5605
5606 * gthr-win32.h: Wrap functions in extern "C".
5607 (__gthread_key_t): Typedef as unsigned long,
5608 not win32 DWORD.
5609 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
5610 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
5611 (__gthr_win32_once, __gthr_win32_key_create,
5612 __gthr_win32_key_delete, __gthr_win32_getspecific,
5613 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
5614 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
5615 __gthr_win32_mutex_unlock): Declare.
5616 (__gthread_once,__gthread_key_create,
5617 __gthread_key_delete, __gthread_getspecific,
5618 __gthread_setspecific, __gthread_mutex_init_function,
5619 __gthread_mutex_lock,__gthread_mutex_trylock,
5620 __gthread_mutex_unlock): Call corresponding
5621 __gthr_win32_* extern implementations if #defined
5622 __GTHREAD_HIDE_WIN32API.
5623 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
ce3649d2 5624 $(srcdir)/config/i386/gthr-win32.c
b25bb36a
DS
5625 * config/i386/gthr-win32.c: New implementation file.
5626 (__gthr_win32_once, __gthr_win32_key_create,
5627 __gthr_win32_key_delete, __gthr_win32_getspecific,
5628 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
5629 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
5630 __gthr_win32_mutex_unlock): New functions, based on
5631 static inlines in gthr-win32.h.
5632
a69c385e
BW
56332002-06-10 Bob Wilson <bob.wilson@acm.org>
5634
5635 * config/xtensa/xtensa.c (override_options): Don't warn about
5636 using -fpic or -fPIC when PIC is enabled by default.
5637
e654730d
RS
56382002-06-10 Roger Sayle <roger@eyesopen.com>
5639
5640 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
5641
a5381466
ZW
56422002-06-10 Zack Weinberg <zack@codesourcery.com>
5643
5644 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
ce3649d2 5645 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
a5381466
ZW
5646 exists, substitute its pathname as @extra_modes_file@, define
5647 EXTRA_MODES_FILE to be an appropriate string to #include it
5648 with, and define EXTRA_CC_MODES to 1.
5649
5650 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
5651 it's defined. Get rid of redundancy in calling sequence for
5652 CC; don't use it to define CCmode, to avoid a warning.
5653 * libgcc2.c: Include symcat.h for the sake of machmode.def.
5654
5655 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
5656 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
5657 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
5658 New files.
5659 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
5660 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
5661
5662 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
5663 defining extra CC modes.
5664
852c6ec7
RS
56652002-06-10 Roger Sayle <roger@eyesopen.com>
5666 Andreas Jaeger <aj@suse.de>
5667
5668 * cfgrtl.c (create_basic_block_structure): Remove index argument
5669 and use last_basic_block++ instead. (create_basic_block): Update.
5670 * cfgbuild.c (find_basic_blocks_1): Likewise.
5671
5672 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
5673 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
5674 * sched-ebb.c (schedule_ebbs): Likewise.
5675 * sched-rgn.c (schedule_insns): Likewise.
5676 * ssa-ccp.c (ssa_const_prop): Likewise.
5677 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
5678 * toplev.c (rest_of_compilation): Likewise.
5679 * config/ia64/ia64.c (ia64_reorg): Likewise.
5680
60c86d4e
RS
56812002-06-10 Roger Sayle <roger@eyesopen.com>
5682
5683 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
5684 of matching registers.
5685
9543a9d2
RS
56862002-06-10 Roger Sayle <roger@eyesopen.com>
5687
5688 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
5689 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
5690
38e18619
HPN
56912002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
5692
5693 * config/mmix/mmix.h: Improve comments.
5694 (CPP_SPEC, CPP_PREDEFINES): Don't define.
5695 (TARGET_CPU_CPP_BUILTINS): Define.
5696 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
5697 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
5698 unused predicate.
5699 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
5700 compiler warning.
5701 (mmix_constant_address_p): Remove another
5702 redundant test before case.
5703 (mmix_canonicalize_comparison): Remove unused function.
5704 (mmix_print_operand_address): Don't test and adjust for operand in
5705 non-canonical format.
5706 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
5707 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
5708
ac17cd8f
ZW
57092002-06-10 Zack Weinberg <zack@codesourcery.com>
5710
5711 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
5712 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
5713 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
5714 (gen_compare): Use CCmode unconditionally.
5715
7b668f9e
JJ
57162002-06-10 Jakub Jelinek <jakub@redhat.com>
5717
5718 PR optimization/6759
5719 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
5720 the REQ_EQUAL note.
5721
85d49058
JJ
57222002-06-10 Jakub Jelinek <jakub@redhat.com>
5723
5724 PR c/6660
5725 * c-decl.c (grokfield): Allow user defined types if they declare
5726 structs or unions for unnamed fields.
5727
50f30e6b
JJ
57282002-06-10 Jakub Jelinek <jakub@redhat.com>
5729
5730 PR c/6809
5731 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
5732
156755ac
JJ
57332002-06-10 Jakub Jelinek <jakub@redhat.com>
5734
5735 PR optimization/6842
5736 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
5737 operand subreg cannot be simplified.
5738
5d056e9b
JJ
57392002-06-10 Jakub Jelinek <jakub@redhat.com>
5740
5741 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
5742 (compare_constant): Likewise.
5743 (output_addressed_constants): Likewise.
5744
2bf87216
JJ
57452002-06-10 Jakub Jelinek <jakub@redhat.com>
5746
5747 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
5748 merge bb with itself.
5749
135fd2d8
RH
57502002-06-10 Richard Henderson <rth@redhat.com>
5751
5752 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
5753 (builtin_zapnot): Likewise.
5754
5755 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
5756 reservation.
5757
fce5a9f2
EC
57582002-06-10 Eric Christopher <echristo@redhat.com>
5759
5760 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
5761 prototype and function.
5762 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
5763 (call_insn_operand): Remove half pic references.
5764 (legitimate_address_p): Ditto.
5765 * config/i386/i386.h: Remove half pic defines.
5766
95b1627e
EC
57672002-06-10 Eric Christopher <echristo@redhat.com>
5768
5769 * doc/extend.texi (Return Address): Add note explaining the side-
5770 effects of inlining on __builtin_return_address.
5771
aea185b3
TT
57722002-06-10 Tom Tromey <tromey@redhat.com>
5773
5774 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
5775 (c-common.o): Depend on langhooks.h.
5776
afb03408
NB
57772002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
5778
5779 * cpphash.h (_cpp_read_logical_line_trad,
5780 _cpp_expansions_different_trad): Update prototypes.
5781 * cpplex.c (continue_after_nul): New.
5782 * cppmain.c: Include cpphash.h.
5783 (scan_translation_unit_trad): New.
5784 (cpp_preprocess_file): Call it.
5785 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
5786 overlay.
5787 (_cpp_expansions_different_trad): Update prototype.
5788
2754d3c5
R
5789Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
5790
5791 Fix cfi generation for SH[1-4]:
5792
5793 * sh.c (frame_insn): New function.
5794 (output_stack_adjust): Add parameter emit_fn. All callers changed.
5795 (push): Now returns rtx. Use frame_insn.
5796 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
5797 of a DF register.
5798 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
5799
ad854f24
ZW
58002002-06-10 Zack Weinberg <zack@codesourcery.com>
5801
5802 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
5803 and gtype-desc.c.
5804 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
5805 (distclean): ... not here. But do delete all testsuite/*.log,
5806 testsuite/*.sum files here. Delete mkheaders. Delete
5807 po/*.gmo and the testsuite directory in a split tree build.
5808
bf1660a6
JL
58092002-06-10 Jeffrey Law <law@redhat.com>
5810
5811 * alias.c (static_reg_base_value): New to hold RTL for
5812 items allocated once per function for the aliasing code.
5813 (init_alias_once_per_function): Initialize static_reg_base_value.
5814 (init_alias_analysis): Avoid throw-away allocations of RTL by
5815 using pre-computed values in static_reg_base_value.
5816 * function.c (prepare_function_start): Call
5817 init_alias_once_per_function appropriately.
5818 * rtl.h (init_alias_once_per_function): Declare.
5819 * caller-save (init_caller_save): Restructure slightly to
5820 avoid lots of silly RTL generation.
5821 * expr.c (init_expr_once): Likewise.
5822 * reload1.c (reload_cse_regs_1): Allocate throw-away register
5823 RTL object here. Pass it into children.
5824 (reload_cse_simplify_operands): Use passed-in register RTL
5825 object.
5826 (reload_cse_simplify): Pass through throw-away register
5827 RTL object.
5828
8dc58484 58292002-06-10 Daniel Berlin <dberlin@dberlin.org>
ad854f24 5830
8dc58484
DB
5831 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
5832
ea16b5ee
RS
58332002-06-10 Richard Sandiford <rsandifo@redhat.com>
5834
5835 * gcc.c (process_command): Avoid assignment to read-only location.
5836 Fix sizeof calculation.
5837
6618c5d4
NB
58382002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
5839
5840 * cpphash.h (struct cpp_macro): Put comments on their own lines.
5841 (_cpp_expansions_different_trad): New.
5842 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
5843 * cpptrad.c (canonicalize_text): New.
5844 (scan_out_logical_line): Handle no arguments correctly.
5845 (save_replacement_text): Commit memory when finished.
5846 (_cpp_expansions_different_trad): New.
5847
96e3ac4f
TJ
58482002-06-10 Tim Josling <tej@melbpc.org.au>
5849
5850 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
5851 TREELANG and COBOL.
5852 (lang_names): Add treelang and cobol.
5853 (get_file_basename): Add code to support treelang and cobol as
5854 4th and 5th users of c-common.c.
5855
37a4aa31
GK
58562002-06-09 Geoffrey Keating <geoffk@redhat.com>
5857
5858 * Makefile.in (install-driver): Install driver as
5859 $(target_alias)-gcc-$(version).
5860 * gcc.c (spec_version): Make const.
5861 (process_command): Handle -V and -b by using exec.
5862 * doc/invoke.texi (Target Options): Restore -V option,
5863 update docs for -b option.
5864
02ef40d9
TJ
58652002-06-10 Tim Josling <tej@melbpc.org.au>
5866
ad854f24
ZW
5867 * configure.in (remaining_languages_check):
5868 Added check that all languages specified were found.
02ef40d9
TJ
5869 Exit if not found. Previous behaviour was silent failure.
5870 * configure: Regenerated.
5871
b38b97c4 58722002-06-10 Tim Josling <tej@melbpc.org.au>
ad854f24 5873
1c0ca89d 5874 First steps to making treelang documentation compliant, based on
b38b97c4
TJ
5875 instructions in sourcebuild.texi. Also add to gcc.c list of
5876 default languages.
ad854f24 5877
b38b97c4
TJ
5878 * doc/contrib.texi: Add self as contributor of treelang.
5879
5880 * doc/frontends.texi: Add mention of treelang.
5881
5882 * doc/invoke.texi (Overall Options): Add mention of treelang.
5883
5884 * doc/standards.texi: Add mention of treelang.
5885
ae9dbf1f
HPN
58862002-06-09 Hans-Peter Nilsson <hp@axis.com>
5887
5888 * config/cris/cris.c: Include ggc.h
5889
1ce676a0
NB
58902002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
5891
5892 * cpphash.h (_cpp_push_text_context): Update.
5893 (_cpp_arguments_ok): New.
5894 * cppmacro.c (_cpp_arguments_ok): New, split out from...
5895 (collect_args): ...here.
5896 (_cpp_push_text_context): Change inputs.
5897 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
5898 replace_args_and_push): New.
5899 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
5900 Don't use IS macros directly.
5901 (scan_out_logical_line): Handle function-like macro argument
5902 collection.
5903 (push_replacement_text): Update.
5904 (replacement_length): Remove.
5905 (_cpp_create_trad_definition): Don't skip whitespace before
5906 checking for '('.
5907
25f2e176
MM
59082002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
5909
5910 * config/avr/avr.c (avr_mcu_types): Update for new devices.
5911 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
5912 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
5913 * config/avr/avr.md ("type" and "length" attributes): New type
5914 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
5915 output a single "call" or "rcall" insn depending on device size.
5916 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
5917
309323c2
DE
59182002-06-09 David Edelsohn <edelsohn@gnu.org>
5919
5920 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
5921 synonym for 630. Add power4. Remove embedded processors. Use -m604
5922 assembler option.
5923 (CPP_CPU_SPEC): Add power3 and power4.
5924 (PROCESSOR_DEFAULT): Change to 604e.
5925 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
5926 (CPP_CPU_SPEC): Similar additions.
5927 (enum process_type): Add POWER4.
5928 (RTX_COSTS): Add POWER4.
5929 (CPP_CPU_SPEC): Similar additions.
5930 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
6ef0903d 5931 (PROCESSOR_DEFAULT64): Define.
309323c2
DE
5932 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
5933 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
5934 branch adjustment.
5935 (rs6000_issue_rate): Add Power4.
5936 * config/rs6000/rs6000.md (cpu attr): Add power4.
5937 (iu compare): Remove 604, 604e, 620, 630.
5938 Add basic Power4 scheduling information.
5939 (mfcr/mtcrf): Change type attribute to cr_logical.
5940
1f8e4682
KG
59412002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5942
57d80297
KG
5943 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
5944 ATTRIBUTE_PRINTF_2.
5945 * gengtype-lex.l: Fix format specifier warning.
5946
1f8e4682
KG
5947 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
5948 not isspace.
5949 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
5950 lieu of isspace/IDchar.
5951 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
5952 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
5953 ISSPACE.
5954
5a9ee623
ZW
59552002-06-08 Zack Weinberg <zack@codesourcery.com>
5956
5957 * Makefile.in (LIBCPP_OBJS): Take out version.o.
5958 * cpphash.h (cpp_reader): Take out print_version member.
5959 * cppinit.c: (cpp_handle_option): Don't do anything with
5960 -version. Just set help_only for --version, --target-help.
5961 Just set verbose option for -v.
5962 (cpp_post_options): Don't print a version string.
5963
c16e5a35
MM
59642002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
5965
5966 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
5967 (avr_section_type_flags): New, handle .noinit* sections.
5968
79bc889e
JT
59692002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5970
5971 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
5972 and include netbsd_entry_point.
5973 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
5974 (NETBSD_ENTRY_POINT): Define.
5975
6a79bb0a
JT
59762002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5977
5978 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
5a9ee623 5979 if not already defined.
6a79bb0a
JT
5980 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
5981
e52b6b63
MM
59822002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
5983
5984 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
5985 in a noreturn function.
5986 (avr_output_function_prologue, avr_output_function_epilogue):
5987 Correct function size calculation. Do not crash on empty function.
5988 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
5989
1569d670
JT
59902002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5991
5992 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
5993 netbsd_link_spec and netbsd_entry_point.
5994 (LINK_SPEC): Use %(netbsd_link_spec).
5995 (NETBSD_ENTRY_POINT): Define.
5996
cfb06024
JT
59972002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5998
5999 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
6000 linker emulation.
6001 (LINK_ARCH64_SPEC): Likewise.
6002 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
6003 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
6004
5a9ee623
ZW
60052002-06-08 Marc Espie <espie@openbsd.org>
6006
6007 * lists.c (free_list): Fix typo in comment.
e3623158 6008
272cdf58
AJ
60092002-06-08 Andreas Jaeger <aj@suse.de>
6010
6011 * lcm.c (optimize_mode_switching): Add unused attribute for
6012 variable.
6013
6014 * sched-deps.c (sched_analyze): Remove unused variable.
6015
bf3f2a12
GDR
60162002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
6017
6018 * diagnostic.def: Don't capitalize diagnostict descriptors.
6019
523a5f2f
JT
60202002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
6021
6022 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
6023 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
6024 (NETBSD_ENTRY_POINT): Define.
6025
a3e944f9
JT
60262002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
6027
6028 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
6029 NETBSD_LINK_SPEC_ELF.
6030 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
6031 (NETBSD_ENTRY_POINT): Define.
6032 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
6033 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
6034 netbsd_entry_point.
6035 (NETBSD_ENTRY_POINT): Define.
6036
854928a0
JT
60372002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
6038
6039 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
6040 netbsd_link_spec and netbsd_entry_point.
6041 (LINK_SPEC): Use %(netbsd_link_spec).
6042 (NETBSD_ENTRY_POINT): Define.
6043
6bb5d2e7
JT
60442002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
6045
6046 * config/netbsd-elf.h (LINK_SPEC): Rename to...
6047 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
6048 to specify program entry point.
6049
e50126e8
JL
60502002-06-07 Jeff Law <law@redhat.com
6051
6052 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
272cdf58 6053 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
e50126e8
JL
6054 than creating a new register.
6055 (distribute_notes): Likewise.
6056 * df.c (df_reg_use_gen): Likewise.
6057 (df_reg_clobber_gen): Likewise.
6058 (df_ref_record): Likewise.
6059 * expr.c (use_regs): Likewise.
6060 * flow.c (propagate_one_insn): Likewise.
6061 (mark_set_1): Likewise.
6062 (mark_used_reg): Likewise.
6063 * reload.c (emit_reload_insns): Likewise.
6064
bc9c18c3
RS
60652002-06-07 Roger Sayle <roger@eyesopen.com>
6066
6067 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
6068 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
6069 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
6070 comparison code comp can be reversed.
6071
437f1df1
RS
60722002-06-07 Roger Sayle <roger@eyesopen.com>
6073
6074 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
6075 constants last in comparisons. Optimize (x+1.0)>0.0 into the
6076 equivalent x > -1.0 when -ffast-math.
6077
cd24b8a4
JT
60782002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
6079
6080 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
6081 * config/mips/t-netbsd: New file.
6082
09e77dee
ZW
60832002-06-07 Zack Weinberg <zack@codesourcery.com>
6084
6085 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
6086 options their own entries.
6087 (parse_option): Clarify comment.
6088 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
6089 special case. Replace if/strcmp chain for -W options with
6090 use of new OPT_* entries for them.
6091 (cpp_handle_options): Update to match.
6092 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
6093 * c-decl.c: Update call to cpp_handle_option.
6094
942030dc
AD
60952002-06-07 Akim Demaille <akim@epita.fr>
6096
6097 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
6098 Whitespace changes.
6099
f2846820
JL
61002002-06-07 Jeffrey Law <law@redhat.com>
6101
6102 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
6103 on empty lists.
6104
4bafaa6f
L
61052002-06-07 H.J. Lu (hjl@gnu.org)
6106
6107 * configure.in: Add --enable-__cxa_atexit.
6108 * configure: Regenerated.
6109 * config.in: Likewise.
6110
6111 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
6112 not defined.
6113
caef5b46
GDR
61142002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
6115
6116 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
6117
ac64a17c
JT
61182002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
6119
6120 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
6121
97459791
JM
61222002-06-07 Jason Merrill <jason@redhat.com>
6123
6124 * cppexp.c (num_equality_op): Use a temporary variable to work
6125 around gcc 3.0.4 bug.
6126
4b1d52c7
GDR
61272002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
6128
6129 * diagnostic.c (diagnostic_build_prefix): Tidy.
6130
c70f6ed3
NB
61312002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
6132
6133 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
6134 scan_parameters, save_replacement_text, replacement_length): New.
6135 (scan_out_logical_line): Take a macro and save parameters if
6136 non-NULL.
6137 (_cpp_logical_line_trad): Update.
6138 (_cpp_create_trad_definition): Update to handle function-like
6139 macros.
6140 * cpplex.c (new_buff): Update.
6141 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
6142 * cpphash.h: ...here.
6143 (CPP_ALIGN2, _cpp_save_parameter): New.
6144 * cppmacro.c (save_parameter): Rename, export.
6145 (parse_params): Update.
6146
aec2ac46
AJ
61472002-06-07 Andreas Jaeger <aj@suse.de>
6148
6149 * config/mmix/mmix.c: Remove extra broken prototype for
6150 mmix_init_machine_status.
6151
9f313342
GK
61522002-06-06 Geoffrey Keating <geoffk@redhat.com>
6153
6154 * gengtype.c: Add comments before all the routines.
6155
3fa1b448
JT
61562002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
6157
6158 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
6159 from and add t-sh64 to ${tmake_file}.
6160 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
6161 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
6162 * config/sh/t-netbsd-sh5-32: Remove.
6163 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
6164 MULTILIB_ENDIAN.
6165 (MULTILIB_DIRNAMES): Define.
6166
0d682900
JH
6167Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
6168
6169 * i386.md (and promoting splitters): Disable QI to SImode promoting
6170 when doing so changes immediate to be 32bit.
6171
6172 * rtl.h (emit_*_scope): Declare.
6173 * emit-rtl.c (emit_*_scope): New global functions.
6174 (try_split): Copy scope.
6175 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
6176 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
6177 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
6178 noce_process_if_block, find_cond_trap): Copy scopes.
6179 * recog.c (peephole2_optimize): likewise.
6180
c991649c
JL
61812002-06-06 Jeffrey Law <law@redhat.com>
6182
6183 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
6184
8a5d66c4
R
6185Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
6186
6187 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
6188
d7f8491b
RO
61892002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6190
6191 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
6192 ($(docdir)/gccinstall.info): New target.
6193 (info): Depend on it.
6194 (gccinstall.dvi): New target.
6195 (dvi): Depend on it.
6196 * doc/.cvsignore: Ignore new info files.
6197 * doc/install.texi (@setfilename): Reflect new info filename.
6198
eaeb7de8
R
6199Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
6200
6201 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
6202 on an UNSPEC.
6203
0c7aeb88
NP
6204Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
6205
6206 PR objc/6834
6207 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
6208 c_common_get_alias_set.
aec2ac46 6209 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
0c7aeb88 6210
2a496e8b
JDA
62112002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
6212
6213 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
6214 functions.
6215 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
6216 * avr/avr.c (avr_output_function_epilogue): Use above to determine
6217 function size.
6218 * pa/pa.c (pa_output_function_prologue): Likewise.
6219
2ff581c3
DM
62202002-06-05 David S. Miller <davem@redhat.com>
6221
6222 * integrate.c (subst_constants): Handle 'B' RTL format.
6223
b2e2d0cc
EC
62242002-06-05 Eric Christopher <echristo@redhat.com>
6225
6226 * varasm.c (make_decl_rtl): Fix comment for removed
6227 halfpic.c.
6228
0f81faf6
EC
62292002-06-05 Eric Christopher <echristo@redhat.com>
6230
6231 * Makefile.in: Remove missed halfpic bits.
6232
33005162
EC
62332002-06-05 Eric Christopher <echristo@redhat.com>
6234
6235 * toplev.c: Remove half-pic.
6236 * config/mips/mips.c: Ditto.
6237 * config/mips/mips.h: Ditto. Remove unused defines.
6238 * config/mips/openbsd.h: Update comment to reflect above.
6239 * config/mips/mips.md: Remove half-pic constraints.
6240 * halfpic.h: Delete.
6241 * halfpic.c: Ditto.
6242
80081028
JL
62432002-06-05 Jeffrey Law <law@redhat.com>
6244
5a9ee623
ZW
6245 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
6246 rejects (mem (lo_sum (reg) (unspec))), but will allow
6247 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
80081028 6248
cbc69f84
NB
62492002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
6250
6251 * cpphash.h (_cpp_create_definition): Update prototype.
6252 (_cpp_push_text_context, _cpp_create_trad_definition): New.
6253 ( cpp_lex_identifier_trad): New.
6254 (_cpp_set_trad_context): New.
6255 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
6256 * cpplib.c (SEEN_EOL): Update.
6257 (lex_macro_node): Update for -traditional.
6258 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
6259 * cppmacro.c (_cpp_create_definition): Split into
6260 create_iso_definition() and _cpp_create_trad_definition().
6261 (warn_of_redefinition): Update prototype; handle traditional
6262 macros.
6263 (_cpp_push_text_context): New.
6264 * cpptrad.c (skip_whitespace, push_replacement_text): New.
6265 (lex_identifier): Call ht_lookup with correct start.
6266 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
6267 _cpp_set_trad_context): New.
6268 (scan_out_logical_line): Update to handle changing contexts.
6269
dbf87f32
R
6270Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
6271
6272 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
6273 (shl*-*-elf*): Add.
6274 * config/sh/t-be (MULTILIB_ENDIAN): Set.
6275 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
6276 * t-sh (MULTILIB_ENDIAN): Set.
6277 (MULTILIB_OPTIONS): Use it.
6278 * t-sh64 (MULTILIB_OPTIONS): Likewise.
6279 (MULTILIB_DIRNAMES): Likewise.
6280
47b69537
GDR
62812002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
6282
6283 * toplev.h (report_error_function): Remove.
6284
6285 * diagnostic.h (location_t): New datatype.
6286 (text_info): Likewise.
6287 (diagnostic_info): Likewise.
6288 (output_prefix): New macro.
6289 (diagnostic_last_function_changed): Likewise.
6290 (diagnostic_set_last_function): Likewise.
6291 (diagnostic_last_module_changed): Likewise.
6292 (diagnostic_set_last_module): Likewise.
6293 (report_diagnostic): Now macro.
6294 (diagnostic_set_info): Declare.
6295
6296 * diagnostic.c (report_problematic_module): Rename to
33005162 6297 diagnostic_repor_current_module.
47b69537
GDR
6298 (set_diagnostic_context): Remove.
6299 (count_error): Rename to diagnostic_error_count.
6300 (error_function_changed): Remove.
6301 (record_last_error_function): Likewise.
6302 (error_module_changed): Likewise.
6303 (record_last_error_module): Likewise.
6304 (context_as_prefix): Rename to diagnostic_build_prefix.
6305 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
6306 (diagnostic_set_info): New function.
6307
6308 * objc/objc-act.c: #include diagnostic.h
6309 (error_with_ivar): Adjust call to count_error.
6310 (warn_with_method): Likewise.
6311 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
6312
540eaea8
BW
63132002-06-05 Bob Wilson <bob.wilson@acm.org>
6314
6315 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
6316 lang_hooks.types.make_type instead of make_node; set up
6317 __va_list_tag type decl.
6318 (xtensa_builtin_saveregs): Remove broken use of
6319 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
6320 for saved registers; add varargs alias set.
6321
f23a084d
NB
63222002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
6323
6324config:
6325 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
6326 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
6327 CPP_PREDEFINES and part of CPP_SPEC.
6328 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
6329 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
6330
3fe3a596
JH
6331Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
6332
6333 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
6334
1fd9ba59
AM
63352002-06-05 Alan Modra <amodra@bigpond.net.au>
6336
6337 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
6338
cea554e0
ZW
63392002-06-04 Zack Weinberg <zack@codesourcery.com>
6340
6341 * gengtype-yacc.y: Make sure all rules end with a semicolon.
6342
07232638
BW
63432002-06-04 Bob Wilson <bob.wilson@acm.org>
6344
6345 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
6346 typo in function prototype and include "ggc.h" header.
6347
c4b50f1a
RH
63482002-06-04 Richard Henderson <rth@redhat.com>
6349
6350 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
6351 (print_operand) ['U']: Likewise.
6352 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
6353 (alpha_expand_unaligned_store_words): Likewise.
6354 (alpha_expand_builtin_vector_binop): Fix typo.
6355 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
6356 umulh, and cix insns.
6357 (one_arg_builtins): Add cix builtins.
6358 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
6359 (alpha_expand_builtin): Fix typo in arity.
6360 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
6361 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
6362 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
6363 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
6364 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
6365 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
6366 builtin_ctlz, builtin_ctpop): New.
6367 * doc/extend.texi (Alpha Built-in Functions): Update.
6368
aaab35ae
GK
63692002-06-04 Geoffrey Keating <geoffk@redhat.com>
6370
afb0f770
GK
6371 * gengtype.c (write_gc_root): Don't unnecessarily prevent
6372 global variable-length arrays being roots.
6373
aaab35ae
GK
6374 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
6375 * configure.in (config_gtfiles): New variable.
6376 (all_gtfiles): Initialise from config_gtfiles.
6377 * configure: Regenerate.
6378
1ba7b414
NB
63792002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
6380
6381config/i386:
6382 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
6383 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
6384 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
6385 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
6386 win32.h (CPP_SPEC): Remove cpp_cpu.
6387 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
6388 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
6389
135ca7b2
JJ
63902002-06-04 Janis Johnson <janis187@us.ibm.com>
6391
6392 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
6393
85d69216 63942002-06-04 Jeff Law <law@redhat.com.
5a9ee623
ZW
6395 David Edelsohn <edelsohn@gnu.org>
6396 Michael Matz <matz@kde.org>
85d69216
JL
6397
6398 * sched-int.h (struct deps): New field libcall_block_tail_insn.
6399 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
6400 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
6401 is set, then mark the current insn as being part of a libcall
6402 scheduling group.
6403 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
6404
6405 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
6406 insns against the issue rate.
6407
63f4a88e
JH
6408Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
6409
6410 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
6411 * final.c (final_scan_insn): Likewise.
6412 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
6413 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
6414 * haifa-sched.c (unlink_other_notes): Likeewise.
6415 (reemit_notes): Likewise.
6416 * print-rtl.c (print_rtx): Likewise.
6417 * sched-deps (sched-analyze): Likewise.
6418 * rtl.c (note_insn_name): Likewise.
6419 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
6420 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
6421 (RANGE_*): Kill.
6422
a5d1f75b
JT
64232002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
6424
6425 * varasm.c (mark_constants): Handle RTX format 'B'.
6426
82eda77e
NB
64272002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
6428
6429 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
6430 (struct cpp_context): Add traditional fields.
6431 * cppmacro.c (paste_all_tokens, push_ptoken_context,
6432 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
6433 * cpptrad.c (skip_comment, lex_identifier,
6434 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
6435
589005ff
KH
64362002-06-04 Kazu Hirata <kazu@cs.umass.edu>
6437
6438 * gbl-ctors.h: Fix formatting.
6439 * gcc.c: Likewise.
6440 * gccspec.c: Likewise.
6441 * gcov.c: Likewise.
6442 * gcov-io.h: Likewise.
6443 * gcse.c: Likewise.
6444 * ggc-common.c: Likewise.
6445 * ggc.h: Likewise.
6446 * ggc-page.c: Likewise.
6447 * ggc-simple.c: Likewise.
6448 * global.c: Likewise.
6449 * graph.h: Likewise.
6450 * gthr-dce.h: Likewise.
6451 * gthr.h: Likewise.
6452 * gthr-posix.h: Likewise.
6453 * gthr-rtems.h: Likewise.
6454 * gthr-solaris.h: Likewise.
6455 * gthr-win32.h: Likewise.
6456
e2500fed
GK
64572002-06-03 Geoffrey Keating <geoffk@redhat.com>
6458
6459 Merge from pch-branch:
33005162 6460
e2500fed
GK
6461 * gengtype.h (UNION_OR_STRUCT_P): New macro.
6462 * gengtype.c (write_gc_structure_fields): Use it.
6463 (write_gc_root): Use it here too.
6464
6465 * gengtype.c (write_gc_structure_fields): Assume that lengths
6466 of typenames fit into an 'int'; don't pass a size_t to "%d" in
6467 printf.
6468 (write_gc_marker_routine_for_structure): Likewise.
6469 (write_gc_types): Likewise.
6470 (write_gc_root): Likewise.
6471
6472 * varray.h (VARRAY_CLEAR): New.
6473 (varray_clear): Prototype.
6474 * varray.c (varray_clear): New.
6475 * cselib.c (reg_values_old): New.
6476 (used_regs_old): New.
6477 (cselib_init): Use cached varrays if available to avoid
6478 generating large amounts of garbage.
6479 (cselib_finish): Don't throw away old varrays.
6480
6481 * final.c (insn_addresses_): Move out of ifdef.
6482
6483 * varray.c (uses_ggc): Make more varray kinds GCable.
6484 * varray.h (union varray_data_tag): Let gengtype see
6485 fields 'generic' and 'te'.
6486 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
6487 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
6488 (reg_to_stack): Don't call VARRAY_FREE.
6489 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
6490 (insn_addresses_): Use gengtype to mark.
6491 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
6492 pointers; handle generic pointers in unused union fields.
6493 (get_output_file_with_visibility): Include cselib.h,
6494 insn-addr.h in gtype-desc.c.
6495 * function.c (prologue): Use gengtype to mark.
6496 (epilogue): Likewise.
6497 (sibcall_epilogue): Likewise.
6498 * dependence.c: Include gt-dependence.h, ggc.h.
6499 (struct def_use): Use gengtype to mark.
6500 (struct loop): Likewise.
6501 (struct induction): Likewise.
6502 (struct dependence): Likewise.
6503 (def_use_chain): Likewise.
6504 (dep_chain): Likewise.
6505 (loop_chain): Likewise.
6506 (induction_chain): Likewise.
6507 (init_dependence_analysis): Don't free anything, just clear pointers.
6508 (build_def_use): Use GGC to allocate def_use.
6509 (add_loop): Use GGC to allocate loop.
6510 (find_induction_variable): Use GGC to allocate induction.
6511 (check_node_dependence): Use GGC to allocate induction, dependence.
6512 (dump_node_dependence): Don't free varrays.
6513 (end_dependence_analysis): Likewise.
6514 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
6515 (struct elt_loc_list): Likewise.
6516 (struct elt_list): Likewise.
6517 * cselib.c: Don't include obstack.h.
6518 (hash_table): Use gengtype to mark.
6519 (reg_values): Use gengtype to mark.
6520 (used_regs): Use gengtype to mark.
6521 (cselib_obstack): Delete.
6522 (cselib_startobj): Delete.
6523 (empty_vals): Mark as deletable.
6524 (empty_elt_lists): Mark as deletable.
6525 (empty_elt_loc_lists): Mark as deletable.
6526 (new_elt_list): Use GGC to allocate struct elt_list.
6527 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
6528 (clear_table): Don't delete obstack; don't unnecessarily clear
6529 deletable variables.
6530 (new_cselib_val): Use GGC to allocate struct cselib_val.
6531 (cselib_init): Don't set up obstacks. Use GGC to allocate
6532 hash table.
6533 (cselib_finish): Just clear variables, don't free anything.
6534 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
6535 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
6536 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
6537 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
6538 (gt-reg-stack.h): New rule.
6539 (gt-dependence.h): New rule.
6540 (gtype-desc.o): Add cselib.h, insn-addr.h.
6541
6542 * varray.c: Use only necessary headers.
6543 (element_size): New.
6544 (uses_ggc): New.
6545 (varray_init): Take type, not size. Use GGC if appropriate.
6546 (varray_grow): Update for change to struct varray_head_tag.
6547 Use GGC if appropriate.
6548 * varray.h (struct const_equiv_data): Use gengtype.
6549 (enum varray_data_enum): New.
6550 (union varray_data_tag): Use gengtype.
6551 (struct varray_head_tag): Use gengtype. Replace size field with
6552 enum varray_data_enum.
6553 (varray_init): Update prototype.
6554 (VARRAY_SCHED_INIT): Delete.
6555 (VARRAY_*_INIT): Update for change to varray_init.
6556 (VARRAY_SCHED): Delete.
6557 (VARRAY_PUSH_SCHED): Delete.
6558 (VARRAY_TOP_SCHED): Delete.
6559 * tree.h: Update for change to length specifier.
6560 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
6561 (clone_body): Likewise.
6562 * ssa.h (ssa_definition): Use gengtype to mark.
6563 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
6564 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
6565 * rtl.h (struct rtvec_def): Update for change to length specifier.
6566 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
6567 (struct initial_value_struct): Update for change to length specifier.
6568 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
6569 (ggc_add_tree_varray_root): Delete prototype.
6570 (ggc_mark_rtx_varray): Delete prototype.
6571 (ggc_mark_tree_varray): Delete prototype.
6572 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
6573 (ggc_add_tree_varray_root): Delete.
6574 (ggc_mark_rtx_varray): Delete.
6575 (ggc_mark_tree_varray): Delete.
6576 (ggc_mark_rtx_varray_ptr): Delete.
6577 (ggc_mark_tree_varray_ptr): Delete.
6578 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
6579 (create_varray): Delete prototype.
6580 * gengtype.c (varrays): Delete.
6581 (create_varray): Delete.
6582 (adjust_field_type): Detect array of string pointers.
6583 (process_gc_options): Remove code to handle varray_type option.
6584 (set_gc_used_type): Remove TYPE_VARRAY case.
6585 (output_escaped_param): New.
6586 (write_gc_structure_fields): Use output_escaped_param on all
6587 parameters. Handle 'skip' with 'use_param' option. Handle
6588 arrays of strings. Remove TYPE_VARRAY handling.
6589 (write_gc_roots): Use boolean to detect 'length' option.
6590 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
6591 (struct_fields): Call adjust_field_type on array fields.
6592 (type): Remove VARRAY_TYPE case.
6593 (type_option): Likewise.
6594 * gengtype-lex.l: Don't consider varray_type a keyword.
6595 * function.h: Update for change to length specifier.
6596 (free_eh_status): Delete prototype.
6597 * function.c (free_after_compilation): Don't call free_eh_status.
6598 (reorder_blocks): Don't use VARRAY_FREE.
6599 * except.c (struct eh_status): Update for change to length specifier.
6600 remove varray_type specifier.
6601 (free_eh_status): Delete.
6602 * dwarf2out.c: Include gt-dwarf2out.h.
6603 (used_rtx_varray): Use gengtype to mark, move
6604 outside ifdefs.
6605 (incomplete_types): Likewise.
6606 (decl_scope_table): Likewise.
33005162 6607 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
e2500fed
GK
6608 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
6609 * c-tree.h (struct lang_type): Update for change to length specifier.
6610 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
6611 * c-objc-common.c: Include gt-c-objc-common.h.
6612 (deferred_fns): Mark for gengtype.
6613 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
6614 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
6615 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
6616 (gtype-desc.o): Update dependencies.
6617 (dwarf2out.o): Add gt-dwarf2out.h.
6618 (varray.o): Update dependencies.
6619 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
6620 (gt-c-objc-common.h): New rule.
6621 (gt-dwarf2out.h): New rule.
6622 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
6623
6624 * doc/gty.texi (GTY Options): Correct spelling.
6625 (GGC Roots): Likewise.
6626 * Makefile.in (TEXI_CPP_FILES): New.
6627 (TEXI_GCC_FILES): New.
6628 (TEXI_GCCINT_FILES): New.
6629 (TEXI_CPPINT_FILES): New.
6630 ($(docdir)/cpp.info): Use new macros.
6631 ($(docdir)/gcc.info): Likewise.
6632 ($(docdir)/gccint.info): Likewise.
6633 ($(docdir)/cppinternals.info): Likewise.
6634 (cpp.dvi): Likewise.
6635 (gcc.dvi): Likewise.
6636 (gccint.dvi): Likewise.
6637 (cppinternals.dvi): Likewise.
6638
6639 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
6640 * doc/gccint.texi (Top): Include gty.texi.
6641 * doc/gty.texi: New file.
6642
6643 * bitmap.c: Include ggc.h, gt-bitmap.h.
6644 (bitmap_ggc_free): New.
6645 (bitmap_elem_to_freelist): New.
6646 (bitmap_element_free): Use bitmap_elem_to_freelist.
6647 (bitmap_element_allocate): Allow use of GGC.
6648 (bitmap_clear): Use bitmap_elem_to_freelist.
6649 (bitmap_copy): Update for change to bitmap_element_allocate.
6650 (bitmap_set_bit): Likewise.
6651 (bitmap_operation): Update for changes elsewhere.
6652 (bitmap_initialize): Allow to create bitmaps that will use GGC.
6653 * bitmap.h (struct bitmap_element_def): Use gengtype.
6654 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
6655 (bitmap_initialize): Add extra parameter.
6656 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
6657 (BITMAP_ALLOCA): Delete.
6658 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
6659 (BITMAP_GGC_ALLOC): New.
6660 * Makefile.in (gtype-desc.o): Add bitmap.h.
6661 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
6662 (GTFILES): Add bitmap.c.
6663 (gt-bitmap.h): New rule.
6664 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
6665 * basic-block.h: Update for changes to bitmap_initialize.
6666 * except.c (exception_handler_label_map): Move into...
6667 (struct eh_status): Here.
6668 (struct eh_region): Make 'aka' GCable.
6669 (free_eh_status): Don't need to specially handle
6670 exception_handler_label_map.
6671 (add_ehl_entry): Update for changes to exception_handler_label_map.
6672 (find_exception_handler_labels): Likewise.
6673 (remove_exception_handler_label): Likewise.
6674 (maybe_remove_eh_handler): Likewise.
6675 (for_each_eh_label): Likewise.
6676 (remove_eh_handler): Allocate 'aka' using GGC.
6677 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
6678 to list of includes.
6679
6680 * gengtype.c (write_gc_marker_routine_for_structure): Name
33005162 6681 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
e2500fed
GK
6682 (write_gc_types): Arrange for the tests with NULL to be inlined.
6683 (write_gc_roots): Update uses of procedure pointers.
6684 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
6685
6686 * Makefile.in (explow.o): Add dependency on gt-explow.h.
6687 (sdbout.o): Add dependency on gt-sdbout.h.
6688
6689 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
6690 (mem_attrs_htab): Likewise.
6691 (init_emit_once): Don't call ggc_add_deletable_htab.
6692 * fold-const.c (size_htab): Use gengtype to clear unused entries.
6693 (size_int_type_wide): Don't call ggc_add_deletable_htab.
6694 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
6695 parameters, use them, change callers.
6696 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
6697 (write_gc_roots): Handle 'if_marked' option.
6698 (main): Don't need to call set_gc_used_type any more.
6699 * ggc.h (ggc_htab_marked_p): Delete.
6700 (ggc_htab_mark): Delete.
6701 (struct ggc_cache_tab): New.
6702 (gt_ggc_cache_rtab): New declaration.
6703 * ggc-common.c (struct d_htab_root): Delete.
6704 (d_htab_roots): Delete.
6705 (ggc_add_deletable_htab): Delete.
6706 (ggc_htab_delete): Handle new htab-deleting mechanism.
6707 (ggc_mark_roots): Use new htab-deleting mechanism.
6708 * tree.c (type_hash_table): Use gengtype to clear unused entries.
6709 Make static.
6710 (init_obstacks): Don't call ggc_add_deletable_htab.
6711
6712 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
6713 (struct hashed_entry): Likewise.
6714 (nst_method_hash_list): Likewise.
6715 (cls_method_hash_list): Likewise.
6716 (HASH_ALLOC_LIST_SIZE): Delete.
6717 (ATTR_ALLOC_LIST_SIZE): Delete.
6718 * objc/objc-act.c (hash_init): Use ggc to allocate
6719 nst_method_hash_list, cls_method_hash_list.
6720 (hash_enter): Use ggc to allocate; allocate one entry at a time.
6721 (hash_add_attr): Likewise.
6722 (ggc_mark_hash_table): Delete.
6723 (objc_act_parse_init): Delete.
6724 (objc_init): Delete reference to objc_act_parse_init.
6725 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
6726 obstack.h. Replace references to 'struct hash_table' with htab_t.
6727 (struct symbol_hash_entry): Replace hash header with key field.
6728 (struct file_hash_entry): Replace hash header with key field.
6729 (struct demangled_hash_entry): Replace hash header with key field.
6730 (hash_string_eq): New.
6731 (hash_string_hash): New.
6732 (symbol_hash_newfunc): Delete.
6733 (symbol_hash_lookup): Modify to use htab_t.
6734 (file_hash_newfunc): Delete.
6735 (file_hash_lookup): Modify to use htab_t.
6736 (demangled_hash_newfunc): Delete.
6737 (demangled_hash_lookup): Modify to use htab_t.
6738 (tlink_init): Modify to use htab_t.
6739 * hash.h: Delete.
6740 * hash.c: Delete.
6741 * ggc.h: Delete forward structure declarations.
6742 Delete prototypes for deleted functions.
6743 * ggc-common.c: Don't include hash.h.
6744 (ggc_add_tree_hash_table_root): Delete.
6745 (ggc_mark_tree_hash_table_entry): Delete.
6746 (ggc_mark_tree_hash_table): Delete.
6747 (ggc_mark_tree_hash_table_ptr): Delete.
6748 * gengtype.c (write_gc_structure_fields): Allow param_is option.
6749 (write_gc_marker_routine_for_structure): Use visibility of
6750 the parameter if there is one.
6751 * function.c: Replace hash.h with hashtab.h. Replace references
6752 to 'struct hash_table *' with htab_t.
6753 (struct insns_for_mem_entry): Include a plain key.
6754 (fixup_var_refs_insns_with_hash): Update to use htab_t.
6755 (insns_for_mem_newfunc): Delete.
6756 (insns_for_mem_hash): Update to use htab_t.
6757 (insns_for_mem_comp): Likewise.
6758 (insns_for_mem_walk): Likewise.
6759 * c-lang.c: Include ggc.h.
6760 * Makefile.in (OBJS): Remove hash.o.
6761 (c-lang.o): Add GGC_H.
6762 (COLLECT2_OBJS): Remove hash.o.
6763 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
6764 (ggc-common.o): Remove hash.h.
6765 (function.o): Remove hash.h, add HASHTAB_H.
6766 (genautomata.o): Remove hash.h, add HASHTAB_H.
6767
6768 * varasm.c (mark_const_str_htab_1): Delete.
6769 (mark_const_str_htab): Delete.
6770 (const_str_htab_del): Delete.
6771 (const_str_htab): Use gengtype to mark.
6772 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
6773 allocate them.
6774 * tree.c (mark_tree_hashtable_entry): Delete.
6775 (mark_tree_hashtable): Delete.
6776 * tree.h (mark_tree_hashtable): Delete prototype.
6777 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
6778 (ggc_mark): Likewise.
6779 (ggc_calloc): New.
6780 (htab_create_ggc): New.
6781 * ggc-common.c (ggc_calloc): New.
6782 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
6783 (struct type): Add param_struct structure.
6784 * gengtype.c (param_structs): New.
6785 (adjust_field_type): Handle param_is option.
6786 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
6787 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
6788 (write_gc_structure_fields): Add new PARAM parameter. Update
6789 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
6790 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
6791 Use it to generate function name. Update callers.
6792 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
6793 Process them.
6794 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
6795 option.
6796 (main): Define PTR as pointer-to-scalar. Don't specially
6797 mark deferred_string or ehl_map_entry.
6798 * gengtype-yacc.y (PARAM_IS): Add new token.
6799 (externstatic): Use adjust_field_type.
6800 (type_option): Add PARAM_IS.
6801 * gengtype-lex.l: Add rule for typedef of function pointers.
6802 Add rule for PARAM_IS.
6803 (IWORD): Add size_t.
6804 * except.c (exception_handler_label_map): Use gengtype to mark.
6805 (type_to_runtime_map): Likewise.
6806 (mark_ehl_map_entry): Delete.
6807 (mark_ehl_map): Delete.
6808 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
6809 (t2r_mark_1): Delete.
6810 (t2r_mark): Delete.
6811 * Makefile.in (gtype-desc.o): Correct dependencies.
6812 (GTFILES): Add hashtab.h.
6813 (genautomata.o): Actually uses hashtab.h.
6814
6815 * Makefile.in (stringpool.o): Add $(GGC_H).
6816 (dwarf2asm.o): Likewise.
6817 (GTFILES): Add hashtable.h.
6818 * c-common.h (struct c_common_identifier): Use gengtype.
6819 * c-decl.h (c_mark_tree): Delete.
6820 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
6821 * c-tree.h (struct lang_identifier): Use gengtype.
6822 (union lang_tree_node): New.
6823 (c_mark_tree): Delete prototype.
33005162 6824 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
e2500fed
GK
6825 dwarf2_debug_hooks.
6826 * gengtype-lex.l (IWORD): Allow 'bool'.
6827 (ptr_alias): Match.
6828 * gengtype-yacc.y (ALIAS): New token.
6829 (type_option): New rule.
6830 (option): Use type_option.
6831 * gengtype.c (process_gc_options): New.
6832 (set_gc_used_type): Use it.
6833 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
6834 Add new variable 't' to hold the type of the field being processed.
6835 Add more error checking. Use UNION_P when looking at 'desc' option.
6836 Handle language-specific structures containing other
6837 language-specific structures.
6838 (write_gc_types): Handle 'ptr_alias' option.
6839 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
6840 * ggc-common.c (ggc_pending_trees): Delete.
6841 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
6842 (ggc_mark_trees): Delete.
6843 (gt_ggc_m_tree_node): Delete.
6844 * ggc.h (ggc_pending_trees): Delete.
6845 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
6846 * hashtable.h (ht_identifier): Use gengtype.
6847 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
6848 * langhooks.h (struct lang_hooks): Delete mark_tree.
6849 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
6850 anyway.
6851 * system.h: Poison LANG_HOOKS_MARK_TREE.
6852 * tree.c (tree_node_structure): New.
6853 * tree.h (struct tree_common): Use gengtype.
6854 (struct tree_int_cst): Likewise.
6855 (struct tree_real_cst): Likewise.
6856 (struct tree_string): Likewise.
6857 (struct tree_complex): Likewise.
6858 (struct tree_vector): Likewise.
6859 (struct tree_identifier): Likewise.
6860 (struct tree_list): Likewise.
6861 (struct tree_vec): Likewise.
6862 (struct tree_exp): Likewise.
6863 (struct tree_block): Likewise.
6864 (struct tree_type): Likewise.
6865 (struct tree_decl): Likewise.
6866 (enum tree_structure_enum): New.
6867 (union tree_node): Use gengtype, with an alias.
6868 (tree_node_structure): Prototype.
6869 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
6870
6871 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
6872 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
6873 to LANG_HOOKS_FUNCTION_FINAL.
6874 * Makefile.in (GTFILES): Add bitmap.h.
6875 * except.c (struct eh_region): Mark field 'aka' to be skipped.
6876
6877 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
6878 (alpha_init_machine_status): Give proper type.
6879 * Makefile.in (c-lang.o): Depend on gtype-c.h.
6880 (optabs.o): Depend on gt-optabs.h.
6881 (GTFILES): Add optabs.o.
6882 (gt-optabs.h): Add rule.
6883 * optabs.c: Include gt-optabs.h.
6884
6885 * gengtype.c (set_gc_used_type): Correct some errors in last change.
6886 (write_gc_structure_fields): If a field which should be NULL is
6887 not, abort.
6888 * c-pragma.c: Move struct align_stack and variable alignment_stack
6889 out from the ifdef.
6890
6891 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
6892 * config/xtensa/xtensa.c: Include gt-cris.h.
6893 (struct machine_function): Use gengtype to mark.
6894 * config/mmix/mmix.h (struct machine_function): Use gengtype
6895 to mark.
6896 * config/cris/t-cris: Add dependencies for gt-cris.h.
6897 * config/cris/cris.c: Include gt-cris.h.
6898 (struct machine_function): Use gengtype to mark.
6899 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
6900 to mark.
6901 * doc/tm.texi (Per-Function Data): Delete references to
6902 mark_machine_status.
6903 * config/ia64/ia64.c (ia64_override_options): Don't set
6904 mark_machine_status.
6905 * config/i386/i386.c (override_options): Likewise.
6906 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
6907 * config/arm/arm.c (arm_init_expanders): Likewise.
6908 * config/alpha/alpha.c (override_options): Likewise.
33005162 6909 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
e2500fed
GK
6910 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
6911 (write_gc_structure_fields): Don't handle 'really' option.
6912 Handle 'maybe_null' option.
6913 (write_gc_types): Handle 'maybe_null' option.
6914 * function.h (struct function): Don't use "really".
6915 (mark_machine_status): Delete declaration.
6916 (mark_lang_status): Delete declaration.
6917 (gt_ggc_mr_machine_function): Delete prototype.
6918 (gt_ggc_mr_language_function): Delete prototype.
6919 * function.c (mark_machine_status): Delete.
6920 (mark_lang_status): Delete.
6921 (gt_ggc_mr_machine_function): Delete.
6922 (gt_ggc_mr_language_function): Delete.
6923 * c-tree.h (mark_c_function_context): Delete prototype.
6924 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
6925 * c-decl.c (struct language_function): Rename from struct
6926 c_language_function. Update uses. Use gengtype to mark.
6927 (mark_c_function_context): Delete.
6928 * c-common.h (struct c_language_function): Rename from struct
6929 language_function.
6930 (mark_stmt_tree): Delete prototype.
6931 (c_mark_lang_decl): Delete prototype.
6932 (mark_c_language_function): Delete prototype.
6933 * c-common.c (mark_stmt_tree): Delete.
6934 (c_mark_lang_decl): Delete.
6935 (mark_c_language_function): Delete.
6936
6937 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
6938 (lang_bitmap): New typedef. Use where appropriate.
6939 (struct type): Add gc_used field, lang_struct field.
6940 (UNION_P): New macro.
6941 (new_structure): New prototype.
6942 (find_structure): Remove 'pos' parameter. Change all callers.
6943 * gengtype-lex.l: Update for changes to find_structure.
6944 * gengtype-yacc.y (typedef_struct): Use new_structure.
6945 (yacc_ids): Suppress warning.
6946 (type): Use new_structure.
6947 * gengtype.c (string_type): Update for changes to struct type.
6948 (find_structure): Just find a structure, don't worry about
6949 creating one.
6950 (new_structure): New.
6951 (note_yacc_type): Use new_structure.
6952 (set_gc_used_type): New.
6953 (set_gc_used): New.
6954 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
6955 (write_gc_types): Handle TYPE_LANG_STRUCT.
6956 (write_gc_marker_routine_for_structure): New.
6957 (main): Call set_gc_used. Add some calls to set_gc_used_type
6958 for places where GCC doesn't use gengtype properly yet.
6959 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
6960 (gt_ggc_m_tree_node): Likewise.
6961
6962 * varasm.c (copy_constant): Call expand_constant if we hit
6963 something we can't recognise.
6964
6965 * ggc-common.c (ggc_mark_rtvec_children): Delete.
6966 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
6967 (lang_mark_false_label_stack): Delete.
6968 * rtl.h (struct rtvec_def): Use gengtype to mark.
6969 * ggc.h (ggc_mark_rtvec): Delete.
6970 (gt_ggc_m_rtvec_def): Delete.
6971 (ggc_mark_nonnull_tree): Delete.
6972 (ggc_mark_rtvec_children): Delete prototype.
6973 (lang_mark_false_label_stack): Delete declaration.
6974
6975 * gengtype.h (note_yacc_type): Add prototype.
6976 * gengtype.c (note_yacc_type): New function.
6977 * gengtype-lex.l: Add lexer support for yacc files.
6978 * gengtype-yacc.y (start): Extract union from yacc files.
6979 (yacc_union): New rule.
6980 (yacc_typematch): New rule.
6981 (yacc_ids): New rule.
6982 (enum_items): Tweak for efficiency.
6983 (optionseq): Likewise.
6984
6985 * c-common.h (struct language_function): Use gengtype.
6986 (struct c_lang_decl): Likewise.
6987 * c-tree.h (struct lang_decl): Likewise.
6988 (struct lang_type): Likewise.
6989 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
6990 tree language substructures.
6991
6992 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
6993 ggc_mark_tree.
6994 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
6995
6996 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
6997
6998 * stmt.c (struct nesting): Add discriminator. Use gengtype to
6999 mark. Remove 'data.block.cleanup_ptr' field.
7000 (struct stmt_status): Use usual technique to mark struct nesting.
7001 (gt_ggc_mr_nesting_cond): Delete.
7002 (gt_ggc_mr_nesting_loop): Delete.
7003 (gt_ggc_mr_nesting_block): Delete.
7004 (gt_ggc_mr_nesting_case_stmt): Delete.
7005 (expand_start_cond): Set discriminator.
7006 (expand_start_loop): Likewise.
7007 (expand_start_null_loop): Likewise.
7008 (expand_start_bindings_and_block): Set discriminator. Don't set
7009 deleted fields.
7010 (expand_decl_cleanup): Replace 'cleanup_ptr' with
7011 &thisblock->data.block.cleanups.
7012 (expand_start_case): Set discriminator.
7013 (expand_start_case_dummy): Set discriminator.
7014
7015 * ggc-callbacks.c: Remove.
7016
7017 * gengtype.h (struct type): Add 'u.s.bitmap' field.
7018 (find_structure): Add 'pos' parameter.
7019 * gengtype-lex.l: Update callers to find_structure.
7020 * gengtype-yacc.y: Likewise.
7021 * gengtype.c (find_structure): Allow for structures to be defined
7022 in multiple language backends.
7023 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
7024 (counter): Rename to gc_counter.
7025 (write_gc_structure_fields): Fail when writing out fields for
7026 an incomplete structure. Ignore arrays of scalars. Handle
7027 'tree_vec' special.
7028 (write_gc_types): Reset counter for each procedure written.
7029
7030 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
7031 (free_case_nodes): Delete.
7032 (expand_end_case_type): Delete call to free_case_nodes.
7033
7034 * Makefile.in (cselib.o): Include gt-<filename>.h.
7035 (gcse.o): Likewise.
7036 (profile.o): Likewise.
7037 (alias.o): Likewise.
7038 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
7039 alphabetize backend files.
7040 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
7041 * alias.c: Use gengtype for roots.
7042 * c-common.h (struct stmt_tree_s): Use gengtype.
7043 * c-decl.c: Use gengtype for roots.
7044 * cselib.c: Use gengtype for roots.
7045 * expr.c: Use gengtype for roots.
7046 * fold-const.c: Use gengtype for roots.
7047 * gcse.c: Use gengtype for roots.
7048 * gengtype-lex.l: Handle typedefs of function types.
7049 Allow for empty array bounds.
7050 Allow processing to stop on initialisers.
7051 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
7052 (semiequal): New rule.
7053 * gengtype.c (create_file): Tidy output files.
7054 (get_output_file_with_visibility): Fix paren warning. Fix bug
7055 involving multiple input files mapping to one output file.
7056 (write_gc_structure_fields): Skip arrays of scalars.
7057 (write_gc_types): Tidy output files.
7058 (write_gc_root): New function.
7059 (write_gc_roots): Fix bugs, add support for roots that are
7060 structures.
7061 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
7062 (ggc_mark_tree_ptr): Delete.
7063 (ggc_add_rtx_root): Delete.
7064 (ggc_add_tree_root): Delete.
7065 (ggc_del_root): Delete.
7066 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
7067 allocate struct initial_value_struct.
7068 * profile.c: Use gengtype for roots.
7069 * sdbout.c: Use gengtype for roots.
7070 * varasm.c (mark_weak_decls): Delete unused prototype.
7071 (mark_const_hash_entry): Delete unused function.
7072 * config/darwin-protos.h: Use gengtype for roots.
7073 (machopic_add_gc_roots): Delete.
7074 * config/arm/arm.c: Use gengtype for roots.
7075 * config/arm/arm.h: Use gengtype for roots.
7076 * config/c4x/c4x-protos.h: Use gengtype for roots.
7077 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
7078 * config/d30v/d30v-protos.h: Use gengtype for roots.
7079 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
7080 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
7081 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
7082 * config/ia64/ia64-protos.h: Use gengtype for roots.
7083 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
7084 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
7085 * config/m68hc11/m68hc11.c (z_reg): Make global.
7086 (z_reg_qi): Make global.
7087 (m68hc11_add_gc_roots): Delete.
7088 * config/mcore/mcore-protos.h: Use gengtype for roots.
7089 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
7090 * config/mips/mips.c (mips_add_gc_roots): Delete.
7091 * config/mips/mips.h: Use gengtype for roots.
7092 * config/mmix/mmix.c (override_options): Use gengtype for roots.
7093 * config/mmix/mmix.h: Use gengtype for roots.
7094 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
7095 * config/mn10200/mn10200.h: Use gengtype for roots.
7096 * config/pa/pa.c: Use gengtype for roots, marking.
7097 (struct deferred_plabel): Use GGC, gengtype.
7098 (pa_add_gc_roots): Delete.
7099 (mark_deferred_plabels): Delete.
7100 * config/pj/pj-protos.h: Use gengtype for roots.
7101 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
7102 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
7103 machopic_add_gc_roots.
7104 * config/rs6000/rs6000.h: Use gengtype for roots.
7105 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
7106 (gt-darwin.h): Add rule.
7107 * config/sh/sh.c: Use gengtype for roots.
7108 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
7109 (gt-sh.h): Add rule.
7110 * config/sparc/sparc.c: Use gengtype for roots.
7111 (sparc_add_gc_roots): Delete.
7112 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
7113 (mark_ultrasparc_pipeline_state): Delete.
7114 * config/sparc/sparc.h: Use gengtype for roots.
7115
7116 * Makefile.in (c-parse.o): Update dependencies.
7117 (c-common.o): Likewise.
7118 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
7119 Add dependencies for the files they generate.
7120 * c-common.c: Replace ggc_add_* uses with GTY annotations.
7121 * c-common.h: Likewise.
7122 * c-decl.c: Likewise.
7123 (gt_ggc_mp_binding_level): Delete.
7124 * c-lang.c: Include gtype-c.h.
7125 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
7126 gt-c-parse.h.
7127 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
7128 (gt_ggc_mp_align_stack): Delete.
7129 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
7130 * function.c: Replace ggc_add_* uses with GTY annotations.
7131 (gt_ggc_mp_function): Delete.
7132 * function.h: Replace ggc_add_* uses with GTY annotations.
7133 * gengtype.c (lang_names): New.
7134 (NUM_BASE_FILES): New.
7135 (open_base_files): Create language base files.
7136 (startswith): New.
7137 (get_file_basename): New.
7138 (get_base_file_bitmap): New.
7139 (get_output_file_with_visibility): Rename from get_output_file.
7140 Add more mappings for various C/Objc filenames.
7141 (finish_root_table): New.
7142 (write_gc_roots): Handle dependencies and scoping properly.
7143 * gengtype.h: Add prototypes for new functions.
7144 * ggc-common.c (struct deletable_root): Delete.
7145 (deletables): Delete.
7146 (ggc_add_deletable_root): Delete.
7147 (ggc_mark_roots): No need to deal with deleted functionality.
7148 * ggc.h (ggc_add_deletable_root): Delete prototype.
7149 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
7150 (gtype-objc.h): Add rule to create.
7151 * objc/config-lang.in (gtfiles): New.
7152 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
7153 ggc_add_* with GTY markers. Include gtype-objc.h.
7154 (ggc_mark_imp_list): Delete.
7155 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
7156 * objc/objc-lang.c: Random Whitespace Change.
7157
7158 * except.h (exception_handler_labels): Delete.
7159 (get_exception_handler_labels): New.
7160 * except.c (exception_handler_labels): Delete.
7161 (struct eh_status): Add exception_handler_labels field.
7162 (doing_eh): Don't add exception_handler_labels as root.
7163 (free_eh_status): Don't need to free exception_handler_labels.
7164 (get_exception_handler_labels): New.
7165 (find_exception_handler_labels): Update for move of
7166 exception_handler_labels.
7167 (remove_exception_handler_label): Likewise.
7168 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
7169 * jump.c (rebuild_jump_labels): Likewise.
7170 * loop.c (find_and_verify_loops): Likewise.
7171 * sched-rgn.c (is_cfg_nonregular): Likewise.
7172
7173 * gengtype.c (write_gc_structure_fields): Handle variable-length
7174 TYPE_ARRAYs.
7175
7176 * varasm.c (struct weak_syms): Use GGC, gengtype.
7177 (mark_weak_decls): Delete.
7178 (weak_decls): Likewise.
7179 (add_weak): Likewise.
7180 (remove_from_pending_weak_list): Likewise.
7181 (init_varasm_once): Likewise.
7182
7183 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
7184 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
7185 stor-layout.c, regclass.c, and lists.c.
7186 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
7187 gt-regclass.h and gt-lists.h on s-gtype.
7188 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
7189 * except.c: Use gengtype for roots.
7190 * explow.c: Use gengtype for roots. Include gt-explow.h.
7191 * expr.h (init_stor_layout_once): Delete prototype.
7192 * function.c: Use gengtype for roots.
7193 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
7194 * gengtype-yacc.y (start): Can also be an externstatic.
7195 (externstatic): New production.
7196 (struct_fields): Correct array bounds inversion for 2-d arrays.
7197 * gengtype.c (variables): New variable.
7198 (note_variable): New function.
7199 (get_output_file): Include libfuncs.h into gtype-desc.c.
7200 (get_output_file_name): New function.
7201 (write_gc_structure_fields): Suppress warnings.
7202 (write_gc_types): Make static.
7203 (put_mangled_filename): New function.
7204 (write_gc_roots): New function.
7205 (main): Call write_gc_roots.
7206 * gengtype.h (note_variable): Prototype.
7207 (get_output_file_name): Prototype.
7208 (write_gc_types): Delete prototype.
7209 * ggc.h: Clean up unnecessary structure predefinitions.
7210 (struct ggc_root_tab): Define.
7211 (gt_ggc_m_rtx_def): Make function, not macro.
7212 (gt_ggc_m_tree_node): Likewise.
7213 * libfuncs.h: Use gengtype for roots.
7214 * lists.c: Use gengtype for roots. Include gt-lists.h.
7215 (init_EXPR_INSN_LIST_cache): Delete.
7216 * optabs.c: Use gengtype for roots.
7217 (gt_ggc_mp_optab): Delete.
7218 * optabs.h: Use gengtype for roots.
7219 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
7220 * rtl.h: Use gengtype for roots.
7221 (init_EXPR_INSN_LIST_cache): Delete prototype.
7222 * stor-layout.c: Use gengtype for roots.
7223 Include gt-stor-layout.h.
7224 (init_stor_layout_once): Delete.
7225 * toplev.c: Use gengtype for roots. Delete calls to deleted
7226 routines.
7227 * tree.c: Use gengtype for roots.
7228 * tree.h: Use gengtype for roots.
7229 * varasm.c: Use gengtype for roots.
33005162 7230
e2500fed
GK
7231 * Makefile.in (GTFILES): Add @all_gtfiles@.
7232 * configure: Regenerate.
7233 * configure.in: Construct all_gtfiles from the gtfiles definitions
7234 in config-lang.in.
7235 * gengtype-yacc.y (type): Warn about duplicate structure names.
7236 * gengtype.c (get_output_file): Handle .c files in language
7237 subdirectories.
7238
7239 * Makefile.in (GTFILES): Run gengtype on all the config files
7240 and on the target .c file.
7241 * except.c (mark_eh_region): Delete.
7242 (init_eh_for_function): Use GGC on struct eh_status.
7243 (mark_eh_status): Delete.
7244 (free_eh_status): Use GGC.
7245 (expand_eh_region_start): Use GGC to
7246 (collect_eh_region_array): Allocate last_region_number using GGC.
7247 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
7248 (remove_eh_handler): Let GGC free struct eh_region.
7249 (add_call_site): Use GGC to reallocate call_site_record array.
7250 * function.c (init_machine_status): Update calling sequence.
7251 (mark_machine_status): Likewise.
7252 (mark_lang_status): Likewise.
7253 (prepare_function_start): Update init_machine_status call.
7254 (mark_function_status): Delete.
7255 (maybe_mark_struct_function): Delete.
7256 (ggc_mark_struct_function): Delete.
7257 (gt_ggc_mp_function): New.
7258 (gt_ggc_mr_machine_function): New.
7259 (gt_ggc_mr_language_function): New.
7260 (init_function_once): Use canonical names.
7261 * function.h (struct function): Use gengtype.
7262 (init_machine_status): Return the structure.
7263 (mark_machine_status): Take a 'void *'.
7264 (mark_lang_status): Likewise.
7265 * ggc-common.c (ggc_mark_trees): Use canonical name for
7266 ggc_mark_struct_function.
7267 * tree.h (ggc_mark_struct_function): Delete prototype.
7268 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
7269 (alpha_init_machine_status): Likewise.
7270 (override_options): Use canonical name for alpha_mark_machine_status.
7271 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
7272 * config/arm/arm.h (struct machine_function): Use gengtype.
7273 * config/arm/arm.c (arm_mark_machine_status): Delete.
7274 (arm_init_machine_status): Update calling sequence.
7275 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
33005162 7276 * config/cris/cris.c (cris_init_machine_status): Update
e2500fed
GK
7277 calling sequence.
7278 * config/d30v/d30v.h (struct machine_function): Use gengtype.
33005162 7279 * config/d30v/d30v.c (d30v_init_machine_status): Update
e2500fed
GK
7280 calling sequence.
7281 (d30v_mark_machine_status): Delete.
7282 * config/i386/i386.c: Include gt-i386.h.
7283 (struct machine_function): Use gengtype.
7284 (ix86_init_machine_status): Update calling sequence.
7285 (ix86_mark_machine_status): Delete.
7286 (override_options): Use canonical namke for ix86_mark_machine_status.
7287 * config/ia64/ia64.h (struct machine_function): Use gengtype.
33005162 7288 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
e2500fed
GK
7289 sequence.
7290 (ia64_mark_machine_status): Delete.
33005162 7291 (ia64_override_options): Use canonical name for
e2500fed 7292 ia64_mark_machine_status.
33005162 7293 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
e2500fed
GK
7294 sequence.
7295 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
7296 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
7297 * gengtype.c (get_output_file): Fix warning.
7298 (main): Add prototype to suppress warning.
7299 * tree.c: Remove tree_hash_mark prototype.
7300
7301 * tree.h (init_stmt): Delete prototype.
7302 * toplev.c (lang_independent_init): Don't call init_stmt.
7303 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
7304 (stmt_obstack): Delete.
7305 (POPSTACK): No need to free 'struct nesting'.
7306 (gt_ggc_mr_nesting_cond): Use canonical names.
7307 (gt_ggc_mr_nesting_loop): Use canonical names.
7308 (gt_ggc_mr_nesting_block): Use canonical names.
7309 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
7310 (mark_stmt_status): Delete.
7311 (init_stmt): Delete.
7312 (clear_last_expr): Clear both last_expr_type and last_expr_value.
7313 Use it everywhere that last_expr_type was cleared.
7314 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
7315 (zap_lists): Delete.
7316 * ggc.h (ggc_add_deletable_root): Prototype.
7317 (mark_stmt_status): Remove prototype.
7318 * ggc-common.c (ggc_add_deletable_root): New.
7319 (ggc_mark_roots): Handle deletable roots.
7320 * function.c (ggc_mark_struct_function): Use canonical name
7321 for mark_stmt_status.
7322 * emit-rtl.c (free_sequence_stack): New.
7323 (start_sequence): Use a freelist for sequences.
7324 (end_sequence): Likewise.
7325 (init_emit_once): Add free_sequence_stack as a deleteable root.
7326 * c-pragma.c Include gt-c-pragma.h.
7327 (struct align_stack): Use gengtype.
7328 (push_alignment): Use GGC for struct align_stack.
7329 (mark_align_stack): Delete.
7330 (gt_ggc_mp_align_stack): New.
7331 (init_pragma): Use canonical name for mark_align_stack.
7332 * c-decl.c: Include gt-c-decl.h.
7333 (struct binding_level): Use gengtype.
7334 (make_binding_level): Use GGC; handle the freelist here.
7335 (pop_binding_level): New.
7336 (pushlevel): Move code into make_binding_level.
7337 (push_label_level): Likewise.
7338 (poplevel): Move code into pop_binding_level.
7339 (pop_label_level): Likewise.
7340 (mark_binding_level): Delete.
7341 (gt_ggc_mp_binding_level): New.
7342 (c_init_decl_processing): Use canonical name for mark_binding_level.
7343 Add free_binding_level as deletable root.
7344 (mark_c_function_context): Use canonical name for mark_binding_level.
7345 * Makefile.in (c-decl.o): Add gt-c-decl.h.
7346 (c-pragma.o): Add gt-c-pragma.h.
7347 (GTFILES): Add c-decl.c and c-pragma.c.
7348 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
7349
7350 * tree.c (struct type_hash): Use gengtype.
7351 (init_obstacks): Use canonical name for type_hash_mark.
7352 (type_hash_mark): Delete.
7353 Include gt-tree.h.
7354 * rtl.h (struct mem_attrs): Use gengtype.
7355 * optabs.h (struct optab): Use gengtype.
7356 * optabs.c (expand_binop): Squish signed/unsigned warning.
7357 (mark_optab): Make local, use canonical name, use autogenerated
7358 marker procedure.
7359 (init_optabs): Use canonical name for mark_optab.
7360 (new_optab): Use GGC to allocate optabs.
7361 * ggc.h: Delete mark_optab prototype.
7362 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
7363 mem_attrs marker procedure.
7364 * gengtype.c (get_output_file): Include headers in gtype-desc.c
7365 explicitly rather than deducing them from file names.
7366 (write_gc_structure_fields): Handle arrays of structures.
7367 (main): Return non-zero exit code if errors occur during output.
7368 * emit-rtl.c (mem_attrs_mark): Delete.
7369 (init_emit_once): Use canonical name for mem_attrs marker procedure.
7370 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
7371 (tree.o): Depend on gt-tree.h.
7372 (GTFILES): Add rtl.h, optabs.h, tree.c.
7373 (gt-tree.h): Add it to s-gtype rule.
7374
7375 * .cvsignore: Ignore gengtype flex/bison generated files.
7376 * Makefile.in (GGC_H): Add gtype-desc.h.
7377 (OBJS): Add gtype-desc.o.
7378 (GEN): Add gengtype.
7379 (STAGESTUFF): Add gengtype.
7380 (varasm.o): Add gt-varasm.h.
7381 (stmt.o): Add gt-stmt.h.
7382 (except.o): Add gt-except.h.
7383 (integrate.o): Add gt-integrate.h.
7384 (GTFILES): New.
7385 Add new rules for new files.
7386 * configure: Regenerate.
7387 * configure.in: Correct defaults.h paths.
7388 * emit-rtl.c (mark_sequence_stack): Delete.
7389 (mark_emit_status): Delete.
7390 (start_sequence): Allocate sequence structures using GGC.
7391 (end_sequence): Allocate sequence structures using GGC.
7392 * except.c: Use gengtype for various structures. Include
7393 gt-except.h.
7394 * expr.c (mark_expr_status): Delete.
7395 * function.c: Use gengtype for various structures. Include
7396 gt-function.h.
7397 (mark_function_status): Use standard gt_ggc names for marker functions.
7398 (ggc_mark_struct_function): Likewise.
7399 * function.h: Use gengtype for various structures.
7400 * gengtype-lex.l: New file.
7401 * gengtype-yacc.y: New file.
7402 * gengtype.c: New file.
7403 * gengtype.h: New file.
7404 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
7405 the standard names. Remove some now-unnecessary prototypes.
7406 * integrate.c: Use gengtype for various structures. Include
7407 gt-integrate.h.
7408 (mark_hard_reg_initial_vals): Delete.
7409 * integrate.h (mark_hard_reg_initial_vals): Delete.
7410 * stmt.c: Use gengtype for various structures. Include
7411 gt-stmt.h.
7412 (mark_case_node): Delete.
7413 (mark_goto_fixup): Delete.
7414 (mark_stmt_status): Use standard gt_ggc names for marker functions.
7415 * system.h: Define GTY to empty. In flex/bison files,
7416 don't poison malloc or realloc, instead just define them to
7417 xmalloc and xrealloc.
7418 * varasm.c: Use gengtype for various structures. Include
7419 gt-varasm.h. Use standard gt_ggc names for marker functions.
7420 (mark_pool_constant): Delete.
7421 (mark_varasm_status): Delete.
7422 (decode_rtx_const): #if 0 out non-typesafe hack.
7423
7424 * function.h (free_lang_status): Mark as obsolete.
7425 * function.c (free_lang_status): Mark as obsolete.
7426 * c-decl.c (push_c_function_context): Use GC to allocate and free
7427 struct language_function.
7428 (pop_c_function_context): Likewise.
7429 * c-common.c (mark_c_language_function): Mark struct
7430 language_function.
7431
7432 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
7433 Document that the machine_function structures must be allocated
7434 using GC. Update mark_machine_status documentation.
7435 * function.h: Don't declare free_machine_status.
33005162 7436 * function.c (free_machine_status): Don't define.
e2500fed
GK
7437 (free_after_compilation): Don't call free_machine_status.
7438 (ggc_mark_struct_function): Mark f->machine. Call
7439 mark_machine_status only on non-NULL pointers.
7440 * system.h: Poison free_machine_status.
7441 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
7442 struct machine_function.
7443 (xtensa_free_machine_status): Delete.
7444 (override_options): Don't set free_machine_status.
7445 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
7446 free_machine_status.
7447 (rs6000_init_machine_status): Use GC on struct machine_function.
7448 (rs6000_free_machine_status): Delete.
7449 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
7450 machine_function.
7451 (ia64_mark_machine_status): Likewise.
7452 (ia64_free_machine_status): Delete.
7453 (ia64_override_options): Don't set free_machine_status.
7454 * config/i386/i386.c (override_options): Don't set
7455 free_machine_status.
7456 (ix86_init_machine_status): Use GC on struct machine_function.
7457 (ix86_mark_machine_status): Likewise.
7458 (ix86_free_machine_status): Delete.
7459 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
7460 machine_function.
7461 (d30v_mark_machine_status): Likewise.
7462 (d30v_free_machine_status): Delete.
7463 (d30v_init_expanders): Don't set free_machine_status.
7464 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
7465 machine_function.
7466 (arm_init_machine_status): Likewise.
7467 (arm_free_machine_status): Delete.
7468 (arm_init_expanders): Don't set free_machine_status.
7469 * config/alpha/alpha.c (override_options): Don't set
7470 free_machine_status.
7471 (alpha_init_machine_status): Use GC on struct machine_function.
7472 (alpha_mark_machine_status): Likewise.
7473 (alpha_free_machine_status): Delete.
7474
7475 * varasm.c (compare_constant): Fix typo.
7476
7477 * varasm.c: Don't include obstack.h.
7478 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
7479 (struct rtx_const): Give substructures names, improve formatting.
7480 (struct constant_descriptor): Delete.
7481 (struct constant_descriptor_tree): New, based on constant_descriptor.
7482 (const_hash_table): Is a hash table of trees.
7483 (mark_const_hash_entry): Is used for hashes of trees. Mark
7484 constant_descriptor_tree structure.
7485 (mark_const_str_htab_1): Mark deferred_string structure.
7486 (compare_constant): Rewrite to compare trees.
7487 (compare_constant_1): Delete.
7488 (record_constant): Delete.
7489 (record_constant_1): Delete.
7490 (output_constant_def): Use struct constant_descriptor_tree.
7491 Don't duplicate trees twice.
7492 (struct constant_descriptor_rtx): New.
7493 (struct pool_constant): Used for rtx constants.
7494 (init_varasm_status): Update for change to struct varasm_status.
7495 (mark_varasm_status): Likewise.
7496 (free_varasm_status): Delete.
7497 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
7498 (record_constant_rtx): Likewise.
7499 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
7500 (force_const_mem): Likewise.
7501 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
7502 * function.c (free_after_compilation): Don't use free_varasm_status.
7503 * function.h: Don't prototype free_varasm_status.
7504
7505 * ggc-common.c (ggc_realloc): Handle X being NULL.
7506
7507 * ggc-common.c (ggc_realloc): New function.
7508 * ggc.h: Prototype it.
7509 * emit-rtl.c (free_emit_status): Delete.
7510 (init_emit): Allocate emit subarrays using GC.
7511 (gen_reg_rtx): Reallocate subarrays using GC.
7512 (init_emit): Use GC to allocate 'struct emit_status' and its
7513 subarrays.
7514 (mark_emit_status): Mark structure and its subarrays.
7515 * stmt.c (free_stmt_status): Delete.
7516 * expr.c (free_expr_status): Delete.
7517 * function.h: Remove prototypes for deleted functions.
7518 * function.c (free_after_compilation): Don't use deleted functions.
7519 Don't call free() on x_parm_reg_stack_loc.
7520 (free_after_parsing): Don't use free_stmt_status.
7521 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
7522 (mark_function_status): Mark x_parm_reg_stack_loc.
7523
7524 * varasm.c (init_varasm_status): Use GC to allocate
7525 'struct varasm_status' and its fields x_const_rtx_hash_table
7526 and x_const_rtx_sym_hash_table.
7527 (mark_varasm_status): Mark them.
7528 (free_varasm_status): Use GC to free them.
7529 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
7530 (mark_expr_status): Mark the structure itself.
7531 (free_expr_status): Use GC to free the structure.
7532 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
7533 (mark_stmt_status): Mark the 'struct stmt_status' itself.
7534 (init_stmt_for_function): Allocate the structure for GC.
7535
7536 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
7537 (equate_type_number_to_die): Likewise.
7538 * tree.h (TYPE_SYMTAB_DIE): New macro.
7539 (struct die_struct): Predeclare.
7540 (struct tree_type): Add field symtab.die. Add a tag
7541 to the union type of field symtab.
7542
7543 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
7544 'struct rtvec_def *', not 'struct rtvec_def'.
7545
7546 * function.h (original_arg_vector): Make a real rtvec.
7547 * function.c (ggc_mark_struct_function): Adjust.
7548 * integrate.c (expand_inline_function): Adjust.
7549
b655555e
JT
75502002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
7551
7552 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
7553 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
7554 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
7555 (TARGET_VERSION_CPU): Define according to the
7556 default target.
7557 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
7558 TARGET_VERSION_CPU.
7559 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
7560 if TARGET_SHMEDIA64.
7561 (LINK_DEFAULT_CPU_EMUL): Define according to the
7562 default target.
7563 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
7564 (SUBTARGET_LINK_SPEC): Define.
7565 (LINK_SPEC): Use SH_LINK_SPEC.
7566 (ASM_SPEC): Remove.
7567 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
7568 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
7569 and TARGET_SHMEDIA64 which abort, for now.
7570 * config/sh/t-netbsd-sh5: New file.
7571 * config/sh/t-netbsd-sh5-32: New file.
7572 * config/sh/t-netbsd-sh5-64: New file.
7573
6d8fd7bb
RH
75742002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
7575 Richard Henderson <rth@redhat.com>
7576
7577 * config/alpha/alpha.c (reg_or_const_int_operand): New.
7578 (some_operand, input_operand): Accept CONST_VECTOR.
7579 (alpha_extra_constraint): Add 'W'.
7580 (alpha_expand_zap_mask): New.
7581 (alpha_expand_builtin_vector_binop): New.
7582 (enum alpha_builtin): New.
7583 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
7584 (alpha_init_builtins, alpha_expand_builtin): New.
7585 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
7586 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
7587 (PREDICATE_CODES): Update.
7588 * config/alpha/alpha-protos.h: Update.
7589 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
7590 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
7591 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
7592 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
7593 (movv2si, movv2si_fix, movv2si_nofix): New.
7594 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
7595 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
7596 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
7597 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
7598 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
7599 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
7600 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
7601 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
7602 builtin_unpkbw, unpkbw): New.
7603 * doc/extend.texi (Alpha Built-in Functions): New.
7604
618939de
RH
76052002-06-03 Richard Henderson <rth@redhat.com>
7606
7607 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
7608 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
7609
73db7137
RH
76102002-06-03 Richard Henderson <rth@redhat.com>
7611
6933647a
RH
7612 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
7613
73db7137
RH
7614 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
7615 (const0_operand): New.
7616 (reg_or_fp0_operand, fp0_operand): Remove.
7617 * config/alpha/alpha.h (PREDICATE_CODES): Update.
7618 * config/alpha/alpha-protos.h: Update.
7619 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
7620 and fp0_operand with reg_or_0_operand and const0_operand.
7621
a6f7c915
DN
76222002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
7623
7624 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
7625
b2f02503
RS
76262002-06-03 Roger Sayle <roger@eyesopen.com>
7627
7628 * gcse.c (cprop_jump): Use single_set to get the pattern
7629 from the setcc argument.
7630
4fcc2065
GDR
76312002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
7632
33005162 7633 * diagnostic.h (diagnostic_count): Move from output_buffer to
4fcc2065
GDR
7634 diagnostic_context.
7635 (diagnostic_kind_count): Adjust definition.
7636
5204d665
JH
7637Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
7638
7639 * except.c (except.c): Do not rebuild CFG.
7640 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
7641 optimization.
7642
0478a14c
JH
7643Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
7644
7645 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
7646 * toplev.c: Include cfglahout.h
7647 * Makefile.in (toplev.c): Add dependnecy.
7648
30efe578
NB
76492002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
7650
7651 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
7652 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
7653 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
7654
a782515b
JT
76552002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
7656
7657 * config/ns32k/netbsd.h: Update copyright years.
7658 (TARGET_OS_CPP_BUILTINS): Define.
7659 (CPP_PREDEFINES): Remove.
7660 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
7661 (TARGET_CPU_CPP_BUILTINS): Define.
7662
0fb7aeda
KH
76632002-06-02 Kazu Hirata <kazu@cs.umass.edu>
7664
589005ff 7665 * emit-rtl.c: Fix formatting.
0fb7aeda
KH
7666 * errors.h: Likewise.
7667 * except.c: Likewise.
7668 * explow.c: Likewise.
7669 * expmed.c: Likewise.
7670 * expr.c: Likewise.
7671 * expr.h: Likewise.
7672
1c8ec18b
KH
76732002-06-02 Kazu Hirata <kazu@cs.umass.edu>
7674
7675 * config/h8300/elf.h: Fix formatting.
7676 * config/h8300/rtems.h: Likewise.
7677
86cb04f6
JT
76782002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
7679
7680 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
7681
5d83269d
TT
76822002-06-02 Tom Tromey <tromey@redhat.com>
7683
7684 * fixinc/fixincl.x: Rebuilt.
7685 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
7686
62f6a494
NB
76872002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
7688
7689config/i370:
7690 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
7691 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
7692 * mvs.h: Similarly.
7693 * oe.h: Similarly.
7694
0acb0203
JH
7695Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
7696
7697 * final.c (final): Allow notes to not have computed addresses;
7698 kill no longer needed STACK_REGS ifdef.
7699
ada8d98a
RH
77002002-06-02 Richard Henderson <rth@redhat.com>
7701
7702 * gcse.c (bypass_conditional_jumps): Fix typo last change.
7703
ba4f7968
JH
7704Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
7705
ada8d98a
RH
7706 * loop.c (emit_prefetch_instructions): Properly place the address
7707 computation.
ba4f7968
JH
7708
7709Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
7710
7711 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
7712 (set_block_for_insn): Turn into macro.
7713 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
7714 * cfglayout.c (insn_scopes): Kill.
7715 (scope_to_insns_initialize): Do not use insn_scopes.
7716 (scope_to_insns_finalize): Likewise.
7717 (duplicate_insn_chain): Likewise.
7718 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
7719 * cfgrtl.c (basic_block_for_insn): Kill.
7720 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
7721 (create_basic_block_structure): Use reorder_insns.
7722 (compute_bb_for_insn): Do not use basic_block_for_insn.
7723 (merge_blocks_nomove): Likewise.
7724 (update_bb_for_insn): Likewise.
7725 (verify_flow_info): Likewise.
7726 (set_block_for_insn): Kill.
7727 * combine.c (try_combine): Update gen_rtx_INSN call.
7728 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
7729 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
7730 scopes and BBs.
7731 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
7732 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
7733 Clear BB.
7734 (emit_insns_after): Simplify.
7735 (emit_copy_of_insn_after): Copy scope.
7736 * final.c (final_start_function): Lower scopes.
7737 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
7738 * integrate.c (copy_insn_list): Cope scopes.
7739 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
7740 * loop.c (loop_optimize): Do not care block notes.
7741 * print-rtl.c (print_rtx): Print BB.
7742 * recog.c (apply_change_group): Simplify.
7743 * rtl.c (copy_rtx): Handle 'B'.
7744 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
7745 * rtl.h (Field accessors): Update indexes.
7746 * sched-ebb.c (schedule_ebbs): Do not lower notes.
7747 * sched-rgn.c (schedule_insns): Likewise.
7748 * toplev.c (rest_of_compilation): Lower notes.
7749 * unroll.c (unroll_loop): Do not care scoping notes.
7750 (copy_loop_body): Copy scopes.
7751
537fc532
NB
77522002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
7753
7754config/h8300:
7755 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
7756 SUBTARGET_SPEC.
7757 * rtems.h: Similarly.
7758 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
7759 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
7760 (TARGET_CPU_CPP_BUILTINS): Use.
7761
ab780373
RH
77622002-06-02 Richard Henderson <rth@redhat.com>
7763
7764 * alias.c: Include target.h.
7765 (mark_constant_function): Use targetm.binds_local_p instead
7766 of checking TREE_PUBLIC ourselves.
7767 * Makefile.in (alias.o): Add TARGET_H.
7768
b9305c66
NB
77692002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
7770
7771 * c-lex.c: Update copyright and file description.
7772
0ac3e0c4
NB
77732002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
7774
7775 * config/fr30/fr30.h: Update to new CPP macros.
7776
be3a1d46
NB
77772002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
7778
7779 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
7780
ceeedfc1 77812002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
a8fd5963 7782 Zack Weinberg <zack@codesourcery.com>
ceeedfc1
NB
7783
7784 * c-common.c (c_common_init): Override cpplib's default
7785 warn_long_long setting.
7786 * c-lex.c (lex_number): Replace with interpret_integer,
7787 interpret_float, narrowest_unsigned_type and
7788 narrowest_signed_type, taking advantage of the new
7789 cpplib functionality.
7790 * cpperror.c (_cpp_begin_message): If a warning is turned
7791 into an error, avoid printing "warning:".
7792 * cppexp.c (cpp_num_sign_extend): New.
7793 * cppinit.c: Update comment.
7794 * cpplib.h (cpp_num_sign_extend): New.
7795 * tree.h: Update comment.
7796
27e511e0
GDR
77972002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
7798
7799 * diagnostic.h (struct diagnostic_context): Add new member
33005162 7800 internal_error.
27e511e0
GDR
7801 (internal_error_function): Remove declaration.
7802 * diagnostic.c (internal_error_function): Remove definition..
7803 (internal_error): Adjust use.
7804
818b6b7f
RH
78052002-06-02 Richard Henderson <rth@redhat.com>
7806
7807 * rtl.h (CC0_P): New.
7808 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
7809 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
7810 (bypass_block): Save old dest block for dump text.
7811 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
7812 Allow only true SET insns, not single_set.
7813
167143a0
GDR
78142002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
7815
7816 * diagnostic.c (diagnostic_finish): Rename to output_flush.
7817 (clear_disgnostic_info): Rename to output_clear_data. Use false
7818 instead of 0 for boolean value.
7819 Adjust function call throughout.
7820
eae4bc56
JH
7821Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
7822
7823 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
7824 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
7825
9eb404a0
NB
78262002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
7827
7828 * d30v.h (CPP_PREDEFINES): Replace with
7829 (TARGET_CPU_CPP_BUILTINS): New.
7830
53e8b0b8
RS
78312002-06-02 Roger Sayle <roger@eyesopen.com>
7832
7833 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
7834
92e34b67
JH
7835Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
7836
7837 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
7838
e7e9d242
RH
78392002-06-02 Richard Henderson <rth@redhat.com>
7840
7841 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
7842
9af145ae
MM
78432002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
7844
7845 Support for C++ constructors/destructors.
7846 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
7847 instead of looping if main() returns.
7848 (asm_file_start): Output global symbols that cause .data and .bss
7849 initialization code to be linked in, unconditionally for now.
7850 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
7851 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
7852 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
7853 (LIBSTDCXX): New.
7854 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
7855 (__tablejump__): New.
7856 (__do_copy_data, __do_clear_bss): New.
7857 (__do_global_ctors, __do_global_dtors): New.
7858 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
7859 _ctors, _dtors.
7860
0d66ad57
NB
78612002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
7862
7863 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
7864 (CPP_SPEC, CPP_PREDEFINES): Kill.
7865 * c4x/rtems.h (CPP_PREDEFINES): Kill.
7866 (TARGET_OS_CPP_BUILTINS): New.
7867
5c856b23
JH
7868Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
7869
7870 * Makefile.in (tracer.o): New.
7871 * params.def (TRACER_*): New options.
7872 * rtl.h (tracer): Declare.
7873 * timevar.def (TV_TRACER): New.
7874 * toplev.c (dump_file_index): Add DFI_tracer.
7875 (dump_file_info): Add tracer.
7876 (flag_tracer): New.
7877 (lang_indepdenent_options): Add tracer.
7878 (rest_of_compilation): Call tracer.
7879 * tracer.c: New file.
7880 * invoke.texi (-ftracer): Document.
7881 (--param tracer-*): Document.
7882
e2405951
DB
78832002-06-01 Daniel Berlin <dberlin@dberlin.org>
7884
7885 * tree-inline.c (expand_call_inline): Make the statement
33005162 7886 expression we generate have a COMPOUND_STMT.
e2405951 7887
0e3f0221
RS
78882002-06-01 Roger Sayle <roger@eyesopen.com>
7889
7890 * gcse.c (cprop_cc0_jump): Function deleted.
7891 (cprop_jump): Take an additional argument which is the possibly
7892 NULL cc setting insn immediately before the conditional jump.
7893 When a MODE_CC set is present, substitute it into the JUMP_INSN
7894 before attempting the constant propagation.
7895 (cprop_insn): Recognize cc setters followed by conditional jumps
7896 as a special case. Use cprop_jump instead of cprop_cc0_jump.
7897 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
7898 (find_bypass_set): New function based upon find_avail_set used by
7899 cprop, but finds constant expressions available at the end of
7900 basic blocks.
7901 (bypass_block): New function. Given a basic block that begins
7902 with a conditional jump and multiple incoming edges, perform
7903 the jump bypass optimization.
7904 (bypass_conditional_jumps): New function. Call bypass_block with
7905 each suitable basic block in the CFG using a simple single pass.
7906
378393da
RS
79072002-06-01 Roger Sayle <roger@eyesopen.com>
7908
7909 * tree.c (real_minus_onep): New function to test for -1.0.
7910 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
7911
01c58f26
RS
79122002-06-01 Roger Sayle <roger@eyesopen.com>
7913
7914 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
7915 and "!p && !q" into "(p|q) == 0" under suitable conditions.
7916
91b12472
AJ
79172002-06-01 Andreas Jaeger <aj@suse.de>
7918
7919 * cppexp.c (cpp_classify_number): Cast precission to int for
7920 correct printf format.
7921
01e9ae86
MM
79222002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
7923
7924 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
7925 expected, but don't really exist: atmega83, atmega85, attiny10.
7926 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
7927 emulations for all devices.
7928 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
7929 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
7930
be1e06df
KH
79312002-06-01 Kazu Hirata <kazu@cs.umass.edu>
7932
7933 * config/h8300/h8300-protos.h: Add a prototype for
7934 h8300_shift_needs_scratch_p.
7935 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
7936 * config/h8300/h8300.h (OK_FOR_R): New.
7937 (OK_FOR_S): Likewise.
7938 (OK_FOR_T): Likewise.
7939 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
7940 * config/h8300/h8300.md (anonymous shift patterns): Use
7941 constraints R, S, and T.
7942
2ecfd709
ZD
7943Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7944
7945 * basic-block.h (struct basic_block_def): New field loop_father.
7946 (BB_VISITED): New flag.
7947 (struct loop): New field pred, removed field shared.
7948 (struct loops): New field parray.
7949 (LOOP_EXITS_DOMS): Removed.
7950 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
7951 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
7952 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
7953 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
7954 verify_loop_structure): Declare.
7955 * cfg.c (entry_exit_blocks): Initialize loop_father field.
7956 * cfganal.c (dfs_enumerate_from): New function.
7957 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
7958 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
7959 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
7960 flow_loop_dump, flow_loops_dump, flow_loops_free,
7961 flow_loop_tree_node_add, flow_loop_level_compute,
7962 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
7963 flow_loop_outside_edge_p): Modified for new infrastructure.
7964 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
7965 redirect_edge_with_latch_update, flow_loop_free): New static functions.
7966 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
7967 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
7968 find_common_loop, verify_loop_structure, loop_latch_edge,
7969 loop_preheader_edge): New functions.
7970 (flow_loops_cfg_dump): Do not show dominators, as this information
7971 does not remain up to date long.
7972 (flow_loops_find): Store results in new format.
7973 * predict.c (propagate_freq, estimate_probability,
7974 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
7975 infrastructure.
7976
d9763749 79772002-06-01 Alan Lehotsky <apl@alum.mit.edu>
91b12472 7978
d9763749
AL
7979 * except.c (nothrow_function_p): Walk epilogue delay list
7980 checking the insn, not the chain for potential throws.
91b12472 7981
1e730c5c
ZW
79822002-05-31 Zack Weinberg <zack@codesourcery.com>
7983
7984 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
7985 (install): Refer to install-cpp directly.
7986 (uninstall-cpp): Folded into uninstall rule.
7987 * configure.in: Delete all code relating to --disable-cpp.
7988 * configure: Regenerate.
7989 * config/t-install-cpp: Delete.
7990
6f9b006d
RH
79912002-05-31 Richard Henderson <rth@redhat.com>
7992
7993 * configure.in (HAVE_AS_TLS): Add alpha tests.
7994 * configure: Rebuild.
7995 * config/alpha/alpha.c (TARGET_AS_TLS): New.
7996 (alpha_tls_size, alpha_tls_size_string): New.
7997 (overide_options): Set it. Always install machine_status hooks.
7998 (input_operand): Accept got tls predicates.
7999 (local_symbol_p): Merge into ...
8000 (local_symbolic_operand): ... here. Reject tls symbols.
8001 (global_symbolic_operand): Likewise.
8002 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
8003 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
8004 (tp16_symbolic_operand, tp32_symbolic_operand): New.
8005 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
8006 (alpha_encode_section_info): Handle TLS symbols.
8007 (alpha_strip_name_encoding): Likewise.
8008 (alpha_legitimate_address_p): Likewise.
8009 (alpha_legitimize_address): Likewise.
8010 (alpha_expand_mov): Early exit to avoid nop moves.
8011 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
8012 (alpha_init_machine_status, alpha_mark_machine_status,
8013 alpha_free_machine_status): Always define.
8014 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
8015 (print_operand, print_operand_address): Add TLS relocs.
8016 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
8017 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
8018 (TARGET_SWITCHES): Add -mtls-kernel.
8019 (alpha_tls_size, alpha_tls_size_string): New.
8020 (TARGET_OPTIONS): Add -mtls-size=.
8021 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
8022 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
8023 (ASM_OUTPUT_LABELREF): Skip %.
8024 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
8025 (PREDICATE_CODES): Update.
8026 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
8027 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
8028 UNSPEC_TP, UNSPECV_SET_TP): New.
8029 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
8030 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
8031 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
8032 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
8033 (call_value_osf_2_er): Accept anything as op4.
8034 * config/alpha/alpha-protos.h: Update.
8035 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
8036
39e5db1a
ZW
80372002-05-31 Zack Weinberg <zack@codesourcery.com>
8038
8039 * cppinit.c (append_include_chain): Always pay attention to
8040 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
8041 marker on argument.
8042
41077ce4
KH
80432002-05-31 Kazu Hirata <kazu@cs.umass.edu>
8044
8045 * target.h: Fix formatting.
8046 * timevar.h: Likewise.
8047 * tlink.c: Likewise.
8048 * toplev.c: Likewise.
8049 * toplev.h: Likewise.
8050 * tree.c: Likewise.
8051 * tree-dump.h: Likewise.
8052 * tree.h: Likewise.
8053 * tree-inline.h: Likewise.
8054 * unroll.c: Likewise.
8055 * unwind-dw2.c: Likewise.
8056 * unwind-dw2-fde.c: Likewise.
8057 * unwind-dw2-fde-glibc.c: Likewise.
8058 * unwind-dw2-fde.h: Likewise.
8059 * unwind.h: Likewise.
8060 * unwind-sjlj.c: Likewise.
8061 * varasm.c: Likewise.
8062 * varray.h: Likewise.
8063 * vmsdbg.h: Likewise.
8064 * vmsdbgout.c: Likewise.
8065 * xcoffout.h: Likewise.
8066
b2e426a0
IS
80672002-05-31 Igor Shevlyakov <igor@microunity.com>
8068
1e730c5c 8069 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
b2e426a0
IS
8070 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
8071
8b968bd1
MW
80722002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
8073
8074 * gcc.c (cpp_unique_options): Remove "-d" options.
8075 (cpp_debug_options): New spec string.
8076 (default_compilers): Use it.
8077 * objc/lang-specs.h: Likewise.
8078
5c35940c
NN
80792002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
8080
1e730c5c 8081 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
5c35940c
NN
8082 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
8083 * gcc/mklibgcc.in: Likewise.
8084 * gcc/config/arc/t-arc: Likewise.
8085 * gcc/configure.in: Likewise.
8086 * gcc/configure: Regenerate.
8087
8b496ceb
SS
80882002-05-31 Stan Shebs <shebs@apple.com>
8089 Turly O'Connor <turly@apple.com>
8090
8091 * c-decl.c (struct binding_level): Change int field n_incomplete
8092 to tree list incomplete_list.
8093 (clear_binding_level): Init field with NULL.
8094 (pushdecl): Add incomplete type to list.
8095 (mark_binding_level): Mark the incomplete list.
8096 (finish_struct): Scan the incomplete list for types instead
8097 of all decls in the current binding level.
8098
4722213d
JDA
80992002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
8100
8101 * pa.c (output_millicode_call): Add missing '%' characters.
8102 (output_call): Likewise.
8103
1086fcb1
DE
81042002-05-31 David Edelsohn <edelsohn@gnu.org>
8105
8106 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
8107 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
8108
afdfb380 81092002-05-31 Alan Lehotsky <apl@alum.mit.edu>
91b12472 8110
afdfb380
AL
8111 * varasm.c (mark_constant_pool): Walk epilogue delay list
8112 checking the insn, not the chain for potential constants.
1e730c5c 8113
f2df45f6
R
8114Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
8115
8116 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
8117
91ea38f9
JH
8118Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
8119
8120 * i386.c (classify_argument): Properly handle base types.
8121
8122 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
8123 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
8124 registers.
8125
10d1bb36
JH
8126Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
8127
8128 * gcse.c (gcse_emit_move_after): New.
8129 (pre_delete, hoist_store): Use it.
8130
8131 * reload1.c (emit_input_reload_insns): Use constrain_operands
8132 instead of constraint_accepts_reg_p to verify optimization.
8133 (constraint_accepts_reg_p): Kill
8134
8135 * reload1.c (reload_cse_delete_noop_set): Kill.
8136 (reload_cse_simplify): use delte_insn_and_edges.
8137
8a72fb76
ZD
81382002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8139
8140 * cfgloop.c (flow_loops_find): Initialize first and last fields
8141 correctly.
8142
a9da2e5b
NB
81432002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
8144
8145 * c-common.c (builtin_define_std): Correct logic.
8146
6248c4dd
JDA
81472002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
8148
8149 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
8150 (output_call): Likewise.
8151
d499455b
JDA
81522002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
8153
8154 * pa.c: Move output.h include after tree.h include.
8155 (pa_asm_output_mi_thunk): Constify identifier lab.
8156
2eb2901a
JT
81572002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
8158
8159 * config/ns32k/ns32k.h: Define named constants for the
8160 bits in target_flags and use them.
8161 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
8162
806bf413
JDA
81632002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
8164
8165 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
8166 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
8167 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
8168 default scheduling model.
8169 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
8170 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
8171 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
8172 * doc/install.texi (hppa*-*-*): Document default scheduling.
8173
6d8d2bbc
JDA
81742002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
8175
8176 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
8177
c8eb9785
JT
81782002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
8179
8180 * config.gcc (ns32k-*-netbsd*): Set tm_file to
8181 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
8182 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
8183 netbsd.h, or netbsd-aout.h.
8184
6e2e5b6a
JT
81852002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
8186
8187 * longlong.h (count_trailing_zeros): Add missing \, and clean up
8188 whitespace in __ns32000__ case.
8189
00182e1e
AH
81902002-05-31 Aldy Hernandez <aldyh@redhat.com>
8191
1e730c5c
ZW
8192 * expr.c (expand_expr): Output partially zeroed out vectors with
8193 output_constant_def.
00182e1e 8194
b4eb03fe
JT
81952002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8196
8197 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
8198 (sh-*-netbsdelf*)
8199 (shl*-*-netbsdelf*): New targets.
8200 * config/sh/netbsd-elf.h: New file.
8fd0df91 8201 * config/sh/t-netbsd: New file.
b4eb03fe 8202
261376e7
RH
82032002-05-30 Richard Henderson <rth@redhat.com>
8204 Eric Botcazou <ebotcazou@multimania.com>
8205
8206 PR optimization/6822
8207 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
8208 to unsigned int for op1 comparisons. Use gen_int_mode.
8209
ce60bf25
EB
82102002-05-30 Eric Botcazou <ebotcazou@multimania.com>
8211
8212 * expmed.c (const_mult_add_overflow_p): New.
8213 * expr.h: Declare it.
8214 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
8215 Don't eliminate the biv if the giv has a constant multiplier and
8216 the rhs argument of the comparison does satisfy the predicate.
8217 Use expand_mult_add to compute the replacement constant.
8218
d18b1ed8
OS
82192002-05-30 Osku Salerma <osku@iki.fi>
8220
8221 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
8222 (c_common_get_alias_set): Handle it.
8223 * doc/extend.texi: Document it.
8224
a7943381
RH
82252002-05-30 Richard Henderson <rth@redhat.com>
8226
8227 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
8228 * toplev.c (process_options): Don't check it.
8229 * doc/tm.texi: Don't document it.
8230 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
8231 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
8232 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
8233 frame pointer optimization if current_function_profile.
8234
e11e816e
KH
82352002-05-30 Kazu Hirata <kazu@cs.umass.edu>
8236
8237 * langhooks.c: Fix formatting.
8238 * langhooks.h: Likewise.
8239 * lcm.c: Likewise.
8240 * libgcc2.c: Likewise.
8241 * lists.c: Likewise.
8242 * local-alloc.c: Likewise.
8243 * loop.c: Likewise.
8244 * loop.h: Likewise.
8245
82462002-05-30 Marc Espie <espie@openbsd.org>
8247
8248 * config.gcc (sparc64-*-openbsd*): New.
8249 * config/sparc/openbsd1-64.h: New.
8250 * config/sparc/openbsd64.h: New.
91f0fcee 8251
d35dfca9
JL
82522002-05-30 Jeff Law <law@redhat.com>
8253
8254 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
8255 a dead insn with a REG_RETVAL note when the entire libcall is not
8256 dead and remove the associated REG_LIBCALL note at the same time.
8257
81b40b72
R
8258Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
8259
8260 * lcm.c (output.h): #include.
8261 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
8262 as an ordinary block.
8263 (optimize_mode_switching): Don't pretend that the exit block is
8264 an ordinary block, or handle sucessors of entry block specially.
8265 Instead, split edges from entry block and to exit block, and
8266 put a computing definition on the thus gained post-entry-block,
8267 and a need on the pre-exit-block.
8268
c8ea9a0f
JH
8269Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
8270
8271 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
8272 * rtl.texi: Document 'B'
8273
348f0869
JT
82742002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8275
8276 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
8277 at run-time.
8278 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
8279
9a171fcd
AH
82802002-05-30 Aldy Hernandez <aldyh@redhat.com>
8281
1e730c5c
ZW
8282 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
8283 const0_rtx instead of NULL_RTX when in error.
8284 (altivec_expand_abs_builtin): Same.
8285 (rs6000_expand_binop_builtin): Same.
8286 (altivec_expand_predicate_builtin): Same.
8287 (altivec_expand_stv_builtin): Same.
8288 (rs6000_expand_ternop_builtin): Same.
8289 (altivec_expand_builtin): Same.
9a171fcd 8290
62a35e60
DM
82912002-05-29 David S. Miller <davem@redhat.com>
8292
8293 * rtl.h (clear_emit_caches): Delete.
8294 * integrate.c (output_inline_function): Don't call it.
8295 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
8296 (clear_emit_caches): Delete definition.
8297 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
8298
cbc39da8
HPN
82992002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
8300
8301 * config/mmix/mmix.c: Include real.h.
8302 (mmix_constant_address_p): Remove redundant test before switch.
8303
50efa737
JT
83042002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
8305
8306 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
8307 only if not already defined.
8308
2e760b15
KH
83092002-05-29 Kazu Hirata <kazu@cs.umass.edu>
8310
8311 * config/h8300/h8300-protos.h: Remove prototypes for
8312 ok_for_bclr and small_power_of_two.
8313 * config/h8300/h8300.c (small_power_of_two): Remove.
8314 (ok_for_blcr): Likewise.
8315 (fix_bit_operand): Make WHAT deal with an integer instead of a
8316 constraint character.
8317 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
8318 (CONST_OK_FOR_P): Likewise.
8319 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
8320 CONST_OK_FOR_P any more.
8321 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
8322 of fix_bit_operand.
8323 (iorqi3): Likewise.
8324 (xorqi3): Likewise.
8325
e1c293ae
JT
83262002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
8327
8328 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
8329 (CPP_PREDEFINES): Make sure this is undefined.
8330 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
8331 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
8332 or -U__MIPSEB__ before defining one or the other. Instead,
8333 use %(subtarget_endian_default) if neither -EB nor -EL are
8334 specified.
8335 (SUBTARGET_EXTRA_SPECS): Define.
8336 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
8337 %(netbsd_cpp_spec).
8338
fde6d81f
HPN
83392002-05-29 Hans-Peter Nilsson <hp@axis.com>
8340
8341 * doc/md.texi (Patterns): Note pattern condition pitfall
8342 for unnamed insn.
8343
92898235
AH
83442002-05-29 Aldy Hernandez <aldyh@redhat.com>
8345
1e730c5c
ZW
8346 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
8347 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
8348 ternary operations from here...
8349 (rs6000_expand_builtin): ...to here.
8350 New argument expandedp.
8351 Change all instances of altivec_expand_binop_builtin to
8352 rs6000_expand_binop_builtin.
8353 (altivec_expand_unop_builtin): Rename to
8354 rs6000_expand_unop_builtin.
8355 (altivec_expand_binop_builtin): Rename to
8356 rs6000_expand_binop_builtin.
8357 (altivec_expand_ternop_builtin): Rename to
8358 rs6000_expand_ternop_builtin.
92898235 8359
67adf6a9
RH
83602002-05-29 Richard Henderson <rth@redhat.com>
8361
8362 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
8363 (TARGET_BI_ARCH): Likewise.
8364 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
8365 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
8366 (TARGET_64BIT_DEFAULT): Default to 0.
8367 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
8368
145aacc2
RH
83692002-05-29 Richard Henderson <rth@redhat.com>
8370
8371 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
8372 (get_pc_thunk_name): New.
8373 (output_set_got): Use it.
8374 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
8375 into linkonce sections.
8376
a5b49bbc
JT
83772002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
8378
8379 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
8380 (CPP_PREDEFINES): Make sure this is undefined.
8381 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
8382 (CPP_SUBTARGET_SPEC): Don't provide different versions for
8383 default-32 and default-64. Just always use %(netbsd_cpp_spec).
8384 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
8385 cpp_subtarget_spec64. Add netbsd_cpp_spec.
8386 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
8387 (CPP_PREDEFINES): Make sure this is undefined.
8388 (SUBTARGET_EXTRA_SPECS): Define.
8389 (CPP_SPEC): Use %(netbsd_cpp_spec).
8390
54374491
JL
83912002-05-29 Jeff Law <law@redhat.com>
8392
ae02eae8
JL
8393 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
8394
b862c2aa
JL
8395 * flow.c (propagate_one_insn): Do not remove a dead insn if it
8396 contains a REG_RETVAL note.
8397
d10791ba
JL
8398 * haifa-sched (sched_analyze): Remove another useless clearing
8399 of SCHED_GROUP_P I missed yesterday.
8400
54374491
JL
8401 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
8402 * pa.c (pa_asm_output_mi_thunk): New function.
8403 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
8404
92c392e6
NB
84052002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
8406 Marek Michalkiewicz <marekm@amelek.gda.pl>
8407
8408 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
8409 (avr_asm_only_p): Make non-static.
8410 (enum avr_arch): Remove.
8411 (avr_arch_types): New.
8412 (avr_mcu_types): Update.
8413 (avr_override_options): Use avr_arch_types table instead of switch.
8414 * avr.h (CPP_PREDEFINES): Die.
8415 (avr_base_arch_macro, avr_extra_arch_macro): New.
8416 (TARGET_CPU_CPP_BUILTINS): New.
8417 (CPP_SPEC, EXTRA_SPECS): Simplify.
8418 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
8419 CPP_AVR5_SPEC): Die.
8420
4528173e
JT
84212002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
8422
8423 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
8424 NETBSD_OS_CPP_BUILTINS_AOUT.
8425 (SUBTARGET_EXTRA_SPECS): Define.
8426 (CPP_SPEC): Use %(netbsd_cpp_spec).
8427
bd09bdeb
RH
84282002-05-29 Richard Henderson <rth@redhat.com>
8429
8430 * config/i386/i386.c (ix86_output_function_epilogue): New.
8431 (TARGET_ASM_FUNCTION_EPILOGUE): New.
8432 (pic_label_name): Remove.
8433 (pic_labels_used): New.
8434 (ix86_asm_file_end): Emit one pc load stub for each register used.
8435 (output_set_got): Generate deep pc load to any register.
8436 (ix86_select_alt_pic_regnum): New.
8437 (ix86_save_reg): Don't save pic register if we can find a valid
8438 call-clobbered replacement.
8439 (ix86_expand_prologue): If we found a valid replacement, renumber
8440 pic_offset_table_rtx.
8441 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
8442 pic_offset_table_rtx after reload.
8443 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
8444 * config/i386/i386.md (set_got): Make insn, not expander.
8445 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
8446
002ff5bc
RH
84472002-05-29 Richard Henderson <rth@redhat.com>
8448
8449 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
8450 alignment for alloca.
8451
edfe8595
RH
84522002-05-29 Richard Henderson <rth@redhat.com>
8453
8454 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
8455 (print_operand_address): Only add rip for symbolic addresses
8456 for which we do not have another relocation type.
8457
cd7714ee
JT
84582002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
8459
8460 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
8461 (EXTRA_SPECS): Add netbsd_cpp_spec.
8462 (CPP_SPEC): Use %(netbsd_cpp_spec).
8463 (CPP_PREDEFINES): Remove.
8464 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
8465 (EXTRA_SPECS): Define.
8466 (CPP_SPEC): Use %(netbsd_cpp_spec).
8467 (CPP_PREDEFINES): Remove.
8468
8dc901de
NB
84692002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
8470
8471 PR preprocessor/6844
8472 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
8473 NUL.
8474
2274b31a
EC
84752002-05-29 Eric Christopher <echristo@redhat.com>
8476
8477 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
8478 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
8479
5c7666c1
NC
84802002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
8481
8482 * config/fr30/fr30.md: Remove previous restriction on splits.
8483 Enforce conformance through gen_lowpart and cont_int_operand.
1e730c5c 8484 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
5c7666c1
NC
8485 as the assembler does not support ".bss".
8486
45beef47
JT
84872002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
8488
8489 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
8490 (CPP_PREDEFINES): Remove.
8491 (SUBTARGET_EXTRA_SPECS): Define.
8492 (CPP_SPEC): Use %(netbsd_cpp_spec).
8493 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
8494 (CPP_PREDEFINES): Remove.
8495 (SUBTARGET_EXTRA_SPECS): Define.
8496 (CPP_SPEC): Use %(netbsd_cpp_spec).
8497 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
8498 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
8499 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
8500 Add netbsd_cpp_spec.
8501 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
8502
cd7ab83f
NB
85032002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
8504 Zack Weinberg <zack@codesourcery.com>
8505
8506 * cppexp.c (cpp_num): Move to cpplib.h.
8507 (CPP_ERROR): Remove.
8508 (interpret_float_suffix, interpret_int_suffix): New.
8509 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
8510 (cpp_classify_number, cpp_interpret_integer): New.
8511 (interpret_number): Remove.
8512 (eval_token): Update to use new routines.
8513 * cpphash.h (cpp_num_part): Move to cpplib.h.
8514 * cppinit.c (cpp_post_options): Set warn_long_long.
8515 * cpplib.h (struct cpp_options): Add warn_long_long.
8516 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
8517 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
8518 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
8519 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
8520 cpp_interpret_integer): New.
8521
61a8515c
JS
85222002-05-29 Joel Sherrill <joel@OARcorp.com>
8523
8524 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
8525
53a428b5
JT
85262002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
8527
8528 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2274b31a
EC
8529 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
8530 (CPP_SUBTARGET_SPEC): Define.
8531 (SUBTARGET_EXTRA_SPECS): Define.
53a428b5
JT
8532 (CPP_SPEC): Remove.
8533
45b1f7c7
CL
85342002-05-29 Chris Lattner <sabre@nondot.org>
8535
1e730c5c
ZW
8536 * ssa.c (rename_insn_1): Rename uses of undefined registers to
8537 prevent confusion if/when the register is defined.
45b1f7c7 8538
049746c2
HPN
85392002-05-29 Hans-Peter Nilsson <hp@axis.com>
8540
8541 PR target/6838
8542 * config/cris/cris.md: Fix typos and thinkos in comments.
8543 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
8544 second alternative.
8545 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
8546 ("*mov_sideqi_mem"): Similar, but for operand 3.
8547 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
8548 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
8549 Remove spurious mode specifier on operand 2.
8550
4d4d89e2
KH
85512002-05-29 Kazu Hirata <kazu@cs.umass.edu>
8552
8553 * config/h8300/h8300-protos.h: Remove the prototype for
8554 o_operand.
8555 Add prototypes for single_one_operand and single_zero_operand.
8556 * config/h8300/h8300.c (o_operand): Remove.
8557 (single_one_operand): New.
8558 (single_zero_operand): Likewise.
8559 (print_operand): For 'V' operand, and the operand with 0xff.
8560 For 'V' and 'W' operands, do not and the bit position with 7.
8561 * config/h8300/h8300.md (various anonymous patterns): Replace
8562 use of exact_log2 with single_one_operand/single_zero_operand.
8563
abd6ddec
UW
85642002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
8565
8566 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
8567
da06d85a
UW
85682002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
8569
8570 * config/s390/s390.c (legitimate_pic_operand_p): Do not
8571 accept symbolic LARL operands.
2274b31a 8572 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
da06d85a 8573 epilogue insns.
2274b31a 8574
f8766020
HP
85752002-05-29 Hartmut Penner <hpenner@de.ibm.com>
8576
8577 * config/s390/s390.md (cmpstr_64/31): Mark whole
2274b31a 8578 input registers as used.
f8766020 8579
66edd3b4
RH
85802002-05-28 Richard Henderson <rth@redhat.com>
8581
8582 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
8583 not current_function_uses_pic_offset_table and
8584 current_function_uses_const_pool; examine current_function_profile.
8585 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
8586 input to blockage if needed.
8587 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
8588 (legitimize_pic_address): Likewise. Set regs_ever_live for
8589 pic_offset_table_rtx when invoked during reload.
8590 * config/i386/i386.h (FINALIZE_PIC): Remove.
8591 * config/i386/i386.md (tablejump): Reformat. Do not set
8592 current_function_uses_pic_offset_table.
8593 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
8594 (blockage): Accept anything as operand 0.
8595
52f4fff6
JT
85962002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8597
8598 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
8599 common CPP built-ins for all NetBSD a.out targets.
8600 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
8601 common CPP built-ins for all NetBSD ELF targets.
8602 * config/netbsd.h: Add missing notice.
8603 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
8604 for all NetBSD targets.
8605 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
8606 for all NetBSD targets using an LP64 code model.
8607 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
8608 NetBSD targets.
8609
e0e577a2
RH
86102002-05-28 Richard Henderson <rth@redhat.com>
8611
8612 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
8613 update if UPDATE_LIFE_LOCAL.
8614
86152002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
62526ec3
TM
8616
8617 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
8618
f1a58d92 8619Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
1e730c5c 8620 Jason R. Thorpe <thorpej@wasabisystems.com>
f1a58d92
R
8621
8622 config/sh reorganization to factor out endianness and coff:
8623
8624 * config/sh/little.h: New file.
1e730c5c
ZW
8625 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
8626 defined, define to 0 to select big-endian.
f1a58d92 8627 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
1e730c5c
ZW
8628 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
8629 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
8630 * config/sh/t-be: New file.
8631 * config/sh/t-le: New file.
f1a58d92
R
8632
8633 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
8634 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
8635 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
8636 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
8637 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
8638 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
8639 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
8640 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
8641 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
8642 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
8643 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
8644 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
8645 (LINK_SPEC): Define to SH_LINK_SPEC.
8646 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
8647 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
8648 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
8649 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
8650 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
8651 * config/sh/coff.h: New file.
8652 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
8653 (TARGET_OBJFMT_CPP_BUILTINS): Define.
8654 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
8655 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
8656 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
8657 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
8658 (PTRDIFF_TYPE): Likewise.
8659 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
8660 (CPP_PREDEFINES): Don't define.
8661 (TARGET_OBJFMT_CPP_BUILTINS): Define.
8662 (LINK_SPEC): Define to SH_LINK_SPEC.
8663 (LINK_EMUL_PREFIX): Redefine.
8664 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
8665 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
8666 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
8667 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
8668 (TARGET_OS_CPP_BUILTINS): Define.
8669 (TARGET_DEFAULT): Redefine.
8670 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
8671 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
8672 (LINK_SPEC): Don't redefine.
8673 (LINK_DEFAULT_CPU_EMUL): Redefine.
8674 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
8675 * sh.c (sh_asm_named_section): Don't declare / define.
8676 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
8677 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
8678 (sh64-*-elf* tm_file): Likewise.
8679 (sh-*-rtemself* tm_file): Likewise.
8680 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
8681 (sh-*-linux* tmake_file): Add sh/t-le.
8682 (sh-*-rtems* tm_file): Add sh/coff.h
8683 (sh-*-* tm_file): Likewise.
8684
8685Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
8686
8687 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
8688 CONSTANT_POOL_ADDRESS_P.
8689
8690 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
8691
d10791ba 86922002-05-28 David Edelsohn <edelsohn@gnu.org>
33a3dfc4
DE
8693 Jeff Law <law@redhat.com>
8694
64de6c0a
DE
8695 * optabs.c (expand_binop): Fix nwords sign warnings.
8696 generate pseudo for add_optab.
8697
33a3dfc4
DE
8698 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
8699 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
8700
972957ba 87012002-05-28 Marc Espie <espie@openbsd.org>
33a3dfc4 8702
2274b31a 8703 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
972957ba
ME
8704 inherited from gas.h.
8705 (ASM_QUAD): Undef. OpenBSD does not support it.
8706
cc92b8ab
DS
87072002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
8708
8709 * doc/install.texi (binaries): Change mingw binaries
8710 link to www.mingw.org.
8711
f8088d55
ZD
87122002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8713
8714 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
8715
0b7ae565
RH
87162002-05-28 Richard Henderson <rth@redhat.com>
8717
8718 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
8719 bottom alignment for leaf functions.
8720
16069d69
ZW
87212002-05-28 Zack Weinberg <zack@codesourcery.com>
8722
8723 * config/pa/milli32.S, config/pa/lib1funcs.asm,
8724 config/sparc/sol2-g1.asm: Delete unused files.
8725
04653686
RH
87262002-05-28 Richard Henderson <rth@redhat.com>
8727
8728 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
8729
f3ea5f6a
RH
8730 * flow.c (calculate_global_regs_live): Rename call_used to
8731 invalidated_by_call. Initialize from regs_invalidated_by_call
8732 instead of call_used_regs.
8733
923c7cdf
RH
8734 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
8735 DECL_EXTERNAL.
8736
11ad4784
ZW
87372002-05-28 Zack Weinberg <zack@codesourcery.com>
8738
8abbd76a
ZW
8739 * tree.h: Don't include real.h.
8740 Forward-declare struct realvaluetype.
11ad4784
ZW
8741 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
8742 contain it.
8743 (TREE_REAL_CST_PTR): New accessor.
8744 (TREE_REAL_CST): Update.
8745 * real.h: Include machmode.h.
2274b31a 8746 (realvaluetype): Make it struct realvaluetype, not a typedef.
11ad4784
ZW
8747 (build_real): Prototype here.
8748
8749 * tree.c: Include real.h.
2274b31a
EC
8750 (build_real): Allocate the REAL_VALUE_TYPE as a separate
8751 object in GC memory, set TREE_REAL_CST_PTR to point to it.
11ad4784
ZW
8752 (build_real_from_int_cst): Use build_real.
8753 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
8754 REAL_CST.
8755
8756 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
8757 fold-const.c, print-tree.c, real.c: Include real.h.
8758 * Makefile.in: Update dependency lists.
8759
bf77398c
ZD
87602002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8761
8762 * basic-block.h (last_basic_block): Declare.
8763 (expunge_block_nocompact): Declaration removed.
8764 (compact_blocks): Declare.
8765 * cfg.c (last_basic_block): New variable.
8766 (expunge_block_nocompact): Removed.
8767 (expunge_block): Do not compact basic blocks.
8768 (compact_blocks): New.
8769 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
8770 longer change.
8771 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
8772 last_basic_block.
8773 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
8774 real positions of blocks.
8775 (delete_unreachable_blocks): Simplified -- quadratic behavior now
8776 cannot occur.
8777 (cleanup_cfg): Compact blocks.
8778 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
8779 basic_block_info varray.
8780 (flow_delete_block): Comment update.
8781 (back_edge_of_syntactic_loop_p): Modify position check code.
8782 (verify_flow_info): Update checking.
8783 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
8784 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
8785 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
8786 indices no longer change.
8787 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
8788 last_basic_block.
8789 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
8790 * profile.c (branch_prob): Compact blocks.
8791 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
8792 last_basic_block.
8793
ae12a094
KH
87942002-05-28 Kazu Hirata <kazu@cs.umass.edu>
8795
8796 * config/h8300/h8300.md (two anonymous patterns): New.
8797
c6172f14
DM
87982002-05-28 David S. Miller <davem@redhat.com>
8799
8800 * config/sparc/sparc.md (cpu): Tidy.
8801 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
8802 'trap'.
8803 (in_call_delay): Delete reference to 'return' type.
8804 (eligible_for_return_delay, in_return_delay, define_delay
8805 referencing those): Delete.
8806 (rest of file): Use new type attributes as appropriate.
8807 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
8808 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
8809 * config/sparc/ultra1_2.md (us1_single): New reservation.
8810 (us1_ialuX): Likewise.
8811 * config/sparc/ultra3.md (us3_single): Likewise.
8812 (us3_ialuX): Likewise.
8813 (us3_imul, us3_idiv): Tweak.
2274b31a 8814
34a6c2ec
RH
88152002-05-28 Richard Henderson <rth@redhat.com>
8816
8817 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
8818 STRING_CST.
8819
9c075570
RH
88202002-05-28 Richard Henderson <rth@redhat.com>
8821
8822 * config.gcc: Obsolete mn10200.
8823
359b0bec
NB
88242002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
8825
8826 * cppexp.c (interpret_number): Optimize for single-digit
8827 and less-than-half-precision cases.
8828 (num_trim, num_positive, num_div_op): Cast constants.
8829
4075db8f
BT
88302002-05-27 Bo Thorsen <bo@suse.de>
8831
8832 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
8833 3.1 branch. The file was made by Jakub Jelinek.
8834 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
8835 support so multilib doesn't break. And don't define this at all
8836 when -Dinhibit_libc is used.
8837 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
8838 * config/i386/t-linux64: Implement full multilib support. Patch
8839 originally done by Andreas Jaeger and Jakub Jelinek.
8840
39f2f3c8
RS
88412002-05-27 Roger Sayle <roger@eyesopen.com>
8842
8843 * c-common.c: Add support for __attribute__((nothrow)) to specify
8844 that a function cannot throw an exception (using TREE_NOTHROW).
8845 (handle_nothrow_attribute): New function to process this attribute.
8846
8847 * doc/extend.texi: Document the new nothrow function attribute.
8848
d51b0053
L
88492002-05-27 H.J. Lu (hjl@gnu.org)
8850
8851 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
8852 (num_positive): Likewise.
8853 (num_div_op): Likewise.
8854
630363b4
NB
88552002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
8856
8857 * c-common.c (c_common_init): Always use intmax_t.
8858
d94cde01
NB
88592002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
8860
8861 * c-common.c (c_common_init): Use intmax_t for now.
8862
57f851a3
AH
88632002-05-24 Andrew Haley <aph@redhat.com>
8864
8865 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
8866 if T is a boolean type.
8867
d55bc081
ZD
88682002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8869
8870 * basic-block.h (last_basic_block): Defined as synonym for
8871 n_basic_blocks.
8872 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
8873 flow_depth_first_order_compute, flow_preorder_transversal_compute,
8874 flow_dfs_compute_reverse_init): Replaced relevant occurences of
8875 n_basic_blocks with last_basic_block.
8876 * cfgbuild.c (make_edges): Likewise.
8877 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
8878 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
8879 * combine.c (combine_instructions): Likewise.
8880 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
8881 iterative_dataflow_bitmap): Likewise.
8882 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
8883 calc_idoms, idoms_to_doms): Likewise.
8884 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
8885 Likewise.
8886 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
8887 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
8888 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
8889 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
8890 delete_null_pointer_checks, compute_code_hoist_vbeinout,
8891 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
8892 compute_store_table, build_store_vectors): Likewise.
8893 * haifa-sched.c (sched_init): Likewise.
8894 * ifcvt.c (if_convert): Likewise.
8895 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
8896 pre_edge_lcm, compute_available, compute_nearerout,
8897 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
8898 Likewise.
8899 * predict.c (estimate_probability, process_note_prediction,
8900 note_prediction_to_br_prob): Likewise.
8901 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
8902 * recog.c (split_all_insns, peephole2_optimize): Likewise.
8903 * regrename.c (copyprop_hardreg_forward): Likewise.
8904 * resource.c (init_resource_info): Likewise.
8905 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
8906 init_regions, schedule_insns): Likewise.
8907 * ssa-ccp.c (ssa_const_prop): Likewise.
8908 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
8909 * ssa.c (compute_dominance_frontiers,
8910 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
8911
8912 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
8913 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
8914 sizes consistently.
8915
71d2c5bd
JH
8916Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
8917
8918 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
8919 new.
8920 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
8921 hoist_insn_after, hoist_insn_to_edge): New.
8922
5149f070
JH
8923Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
8924
8925 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
8926 (PROP_FINAL): Include.
8927 * flow.c (life_analysis, update_life_info,
8928 init_propagate_block_info, mark_set_1, mark_used_rgs):
8929 Support SCAN_DEAD_STORE.
8930
c9220e3a
NB
89312002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
8932
8933 * c-common.c (c_common_init): Set CPP arithmetic precision.
8934 * cppexp.c (cpp_num_part): Move typedef ...
8935 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
8936 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
8937 (sanity_checks): Update.
8938
e34a3d31
GK
89392002-05-26 Geoffrey Keating <geoffk@redhat.com>
8940
8941 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
8942 (mkheaders): New rule.
8943 (install-mkheaders): New rule.
8944 * configure.in (all_outputs): Add mkheaders.
8945 * configure: Regenerate.
8946 * mkheaders.in: New file.
8947
9059e33c
JJ
89482002-05-26 Jakub Jelinek <jakub@redhat.com>
8949
8950 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
8951
291cc0fe
AJ
89522002-05-26 Andreas Jaeger <aj@suse.de>
8953
8954 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
8955
91318908
NB
89562002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
8957
8958 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
8959 right_shift): Remove.
8960 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
8961 HIGH_PART): New.
8962 (struct op): Use cpp_num.
8963 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
8964 num_part_mul, num_unary_op, num_binary_op, num_negate,
8965 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
8966 num_div_op, num_lshift, num_rshift, append_digit): New.
8967 (interpret_number, parse_defined, eval_token, reduce): Update
8968 for two-integer arithmetic.
8969 (binary_handler): New typedef.
8970 (optab): Update.
8971 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
8972 (_cpp_parse_expr, reduce): Update to handle two-integers.
8973 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
8974
331ca350
MM
89752002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
8976
8977 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
8978 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
8979 branch insn into account, do not assume 1.
8980 (avr_out_sbxx_branch): New function. Optimize cases of skipping
8981 over single word insn. Handle upper half of I/O space too.
8982 * config/avr/avr.md (*sbrx_branch): Use it.
8983 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
8984 (*sbix_branch, *sbix_branch_bit7): Likewise.
8985 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
8986 Use RTL peepholes to optimize register operand sign tests.
8987
bcb6a2be
MM
89882002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
8989
8990 * config/avr/avr.c (avr_asm_only_p): New variable.
8991 (avr_override_options): Set it here if AVR1.
8992 (asm_file_start): Test it here, report an error if set.
8993
ca7fd9cd
KH
89942002-05-26 Kazu Hirata <kazu@cs.umass.edu>
8995
8996 * alias.c: Fix formatting.
8997 * attribs.c: Likewise.
8998 * bb-reorder.c: Likewise.
8999 * bitmap.c: Likewise.
9000 * bitmap.h: Likewise.
9001 * builtins.c: Likewise.
9002
a65dc37d
JH
9003Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
9004
9005 * reload.c (find_valid_class): Accept new argument DEST,
9006 choose class accordingly.
9007 (push_reload): Update callers.
9008
9b89393b
AJ
90092002-05-26 Andreas Jaeger <aj@suse.de>
9010
9011 * combine.c (combine_instructions): Do not indent #if for
9012 traditional C.
9013
b53bb376
RH
90142002-05-25 Richard Henderson <rth@redhat.com>
9015
9016 * c-pragma.c (apply_pragma_weak): Convert value identifier to
9017 string for decl_attributes.
9018 (handle_pragma_weak): Call assemble_alias if we're modifying
9019 an existing decl.
9020
e133041b
RH
90212002-05-25 Richard Henderson <rth@redhat.com>
9022
9023 PR target/6788
9024 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
9025 using rtl instead of fprintf.
9026 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
9027 * config/sparc/sparc-protos.h: Update.
9028
81a75f0f
NB
90292002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
9030
9031 * Makefile.in (C_COMMON_H): Fix.
9032 Update other targets.
9033 * c-common.c: Don't include c-lex.h.
9034 (builtin_define_with_value): Make static and prototype.
9035 (builtin_define_std): Move from c-lex.h.
9036 * c-common.h (init_c_lex): Move from c-lex.h.
9037 * c-decl.c: Don't include c-lex.h.
9038 (make_pointer_declarator): Move from c-parse.in.
9039 * c-lex.c: Don't include c-lex.h.
9040 * c-lex.h: Remove.
9041 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
9042 (make_pointer_declarator): Move to c-decl.c.
9043 * c-pragma.c: Don't include c-lex.h.
9044 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
9045 * c-tree.h (make_pointer_declarator): New.
9046doc:
9047 * passes.texi, tm.texi: Update.
9048objc:
9049 * Make-lang.in: Update and correct.
9050 * objc-act.c: Don't include c-lex.h or cpplib.h.
9051treelang:
9052 * treetree.c: Don't include c-lex.h.
9053config:
9054 * darwin-c.c: Don't include c-lex.h.
9055 * c4x/c4x-c.c: Don't include c-lex.h.
9056 * c4x/t-c4x: Update.
9057 * i370/i370-c.c: Don't include c-lex.h.
9058 * i370/t-i370: Update.
9059 * i960/i960-c.c: Don't include c-lex.h.
9060 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
9061 * i960/t-960bare: Update.
9062 * i960/t-vxworks: Update.
9063 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
9064 * rs6000/t-darwin: Update.
9065 * rs6000/t-rs6000-c-rule: Update.
9066 * v850/v850-c.c: Don't include c-lex.h.
9067 * v850/v850.c: Don't include c-lex.h or cpplib.h.
9068
9069
04d2be8e
KH
90702002-05-25 Kazu Hirata <kazu@cs.umass.edu>
9071
9072 * tree.def: Fix typos.
9073 * doc/install.texi: Likewise.
9074
7b6e506e
RH
90752002-05-25 Richard Henderson <rth@redhat.com>
9076
9077 * configure.in (HAVE_AS_TLS): Add ia64 test.
9078 * configure: Rebuild.
9079 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
9080 (override_options): Set it.
9081 (TARGET_HAVE_TLS): New.
9082 (sdata_symbolic_operand): Look for 's'.
9083 (tls_symbolic_operand): New.
9084 (ia64_expand_load_address): Abort for tls symbols.
9085 (gen_tls_get_addr): New.
9086 (gen_thread_pointer): New.
9087 (ia64_expand_move): Split out from movdi. Handle tls symbols.
9088 (rtx_needs_barrier): Add new unspecs.
9089 (ia64_encode_section_info): Handle tls symbols.
9090 (ia64_strip_name_encoding): Strip two encoding chars.
9091 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
9092 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
9093 (TARGET_OPTIONS): Add tls-size.
9094 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
9095 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
9096 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
9097 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
9098 (movsf, movdf): Likewise.
9099 (movdi_symbolic): Use match_scratch. Don't split if we won't
9100 have a scratch availiable.
9101 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
9102 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
9103 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
9104 * config/ia64/ia64-protos.h: Update.
9105 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
9106 sdata_symbolic_operand.
9107 (ASM_OUTPUT_LABELREF): Strip two characters.
9108
8c1d52a3
KH
91092002-05-25 Kazu Hirata <kazu@cs.umass.edu>
9110
9111 * combine.c (simplify_set): Remove an unnecessary subreg.
9112
b47cae3d
MM
91132002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
9114
9115 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
9116
9117 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
9118
ce9e3a6d
GDR
91192002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
9120
9121 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
9122
fb2c6841
RS
91232002-05-25 Roger Sayle <roger@eyesopen.com>
9124
9125 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
9126 (cond (compare x y) 0) into the equivalent (cond x y).
9127
da7ac8f1
GDR
91282002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
9129
9130 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
9131
c7bdf0a6
ZW
91322002-05-24 Zack Weinberg <zack@codesourcery.com>
9133
9134 * config.gcc: Remove all stanzas for previously obsoleted
9135 systems. Where necessary, add explicit error stanzas to
9136 prevent removed systems from being misidentified as something
9137 else. Begin a fresh obsoletions list, with the systems that
9138 were reprieved last round.
9139 * doc/install.texi: Remove all mention of dead targets.
9140 * fixinc/mkfixinc.sh: Likewise.
9141
9142 * config/arm/arm.h: Bit 31 of target_flags is no longer
9143 reserved.
9144
9145 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
9146 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
9147 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
9148 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
9149 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
9150 config/alpha/osf12.h, config/alpha/osf2or3.h,
9151 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
9152 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
9153 config/clipper/clipper-protos.h, config/clipper/clipper.c,
9154 config/clipper/clipper.h, config/clipper/clipper.md,
9155 config/clipper/clix.h, config/convex/convex-protos.h,
9156 config/convex/convex.c, config/convex/convex.h,
9157 config/convex/convex.md, config/convex/fixinc.convex,
9158 config/convex/proto.h, config/elxsi/elxsi-protos.h,
9159 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
9160 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
9161 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
9162 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
9163 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
9164 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
9165 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
9166 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
9167 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
9168 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
9169 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
9170 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
9171 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
9172 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
9173 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
9174 config/m68k/altos3068.h, config/m68k/apollo68.h,
9175 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
9176 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
9177 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
9178 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
9179 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
9180 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
9181 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
9182 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
9183 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
9184 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
9185 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
9186 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
9187 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
9188 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
9189 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
9190 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
9191 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
9192 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
9193 config/mips/dec-osf1.h, config/mips/elflorion.h,
9194 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
9195 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
9196 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
9197 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
9198 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
9199 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
9200 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
9201 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
9202 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
9203 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
9204 config/ns32k/sequent.h, config/ns32k/tek6000.h,
9205 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
9206 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
9207 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
9208 config/sparc/rtems.h, config/we32k/we32k-protos.h,
9209 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
9210 Delete file.
9211
755ac5d4
RH
92122002-05-24 Richard Henderson <rth@redhat.com>
9213
9214 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
9215 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
9216 * config/i386/i386.c (tls_model_chars): Add leading space.
9217 (tls_symbolic_operand): Don't bias by 1.
9218 (legitimize_address): Don't unbias by 1.
9219
c429f12e
TM
92202002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
9221
9222 * lcm.c (optimize_mode_switching): Change bb used as indices
9223 to bb->index.
9224
8beda321
RH
92252002-05-24 Richard Henderson <rth@redhat.com>
9226
9227 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
9228 of update_life_info_in_dirty_blocks.
9229
90442291
JJ
92302002-05-24 Jakub Jelinek <jakub@redhat.com>
9231
9232 PR other/6782
9233 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
9234
3620711b
NB
92352002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
9236
9237 PR preprocessor/6780
9238 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
9239
2f8d482e
JB
92402002-05-24 Jim Blandy <jimb@redhat.com>
9241
9242 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
9243 entry with a type code of zero, marking the end of the compilation
9244 unit's macro info.
9245
95bfe95f
RH
92462002-05-24 Richard Henderson <rth@redhat.com>
9247
c7bdf0a6
ZW
9248 * varasm.c (asm_output_bss): Always output one byte.
9249 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
95bfe95f 9250
7efda054
BM
92512002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
9252
9253 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
9254 namespace.
9255
8a951190
AJ
92562002-05-24 Andreas Jaeger <aj@suse.de>
9257
9258 * ggc-page.c (alloc_page): Cast variables of type size_t to
9259 unsigned long, adjust printf format string.
9260 (ggc_alloc): Likewise.
9261 (ggc_print_statistics): Likewise.
9262 (ggc_print_statistics): Correct printf format string for SCALE to
9263 use unsigned long.
9264
f29e2ec0
DS
92652002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
9266
9267 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
9268
211a0cbe 92692002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
c7bdf0a6 9270 Zack Weinberg <zack@codesourcery.com>
211a0cbe
GDR
9271
9272 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
9273 quoted strings.
9274 * dwarf2out.c (lookup_filename): Properly quote filename in .file
8a951190 9275 directive in assembly file.
211a0cbe
GDR
9276 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
9277 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
9278 * config/pj/pj.h (ASM_FILE_START): Likewise.
9279 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
9280 * config/avr/avr.c (asm_file_end): Likewise.
9281 * toplev.c (output_quoted_string): Handle possibly signed plain
8a951190 9282 char.
211a0cbe
GDR
9283 * toplev.h (output_clean_symbol_name): Declare
9284 * toplev.c (output_clean_symbol_name): Define.
9285 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
9286 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
9287
2f0552b6
AM
92882002-05-24 Alan Modra <amodra@bigpond.net.au>
9289
9290 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
9291
b326b2c1
VM
92922002-05-23 Vladimir Makarov <vmakarov@redhat.com>
9293
9294 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
9295 of size of unsigned.
9296
f996902d
RH
92972002-05-23 Richard Henderson <rth@redhat.com>
9298
9299 * configure.in (HAVE_AS_TLS): New test.
9300 * config.in, configure: Rebuild.
9301 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
9302 (ix86_tls_dialect_string, ix86_tls_dialect): New.
9303 (override_options): Set it.
9304 (tls_model_chars, tls_symbolic_operand): New.
9305 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
9306 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
9307 (local_exec_symbolic_operand): New.
9308 (get_pic_label_name): Merge into output_set_got.
9309 (ix86_asm_file_end): Emit pic_label_name if defined.
9310 (legitimate_constant_p, constant_address_p): New.
9311 (legitimate_pic_operand_p): New.
9312 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
9313 (legitimate_address_p): Likewise.
9314 (ix86_encode_section_info): Rename from i386_; handle tls decls.
9315 (ix86_strip_name_encoding): New.
9316 (get_thread_pointer): New.
9317 (legitimize_address): Handle tls symbols.
9318 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
9319 Remove UNSPEC_PLT.
9320 (struct machine_function): Add some_ld_name.
9321 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
9322 (print_operand) [&]: Use it. Handle UNSPEC_TP.
9323 (output_addr_const_extra): New.
9324 (maybe_get_pool_constant): New.
9325 (ix86_split_to_parts): Use it.
9326 (ix86_expand_move): Handle tls symbols.
9327 (ix86_tls_get_addr): New.
9328 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
9329 (TARGET_OPTIONS): Add tls-dialect.
9330 (CONSTANT_ADDRESS_P): Use new out-of-line function.
9331 (LEGITIMATE_CONSTANT_P): Likewise.
9332 (LEGITIMATE_PIC_OPERAND_P): Likewise.
9333 (TARGET_STRIP_NAME_ENCODING): New.
9334 (ASM_OUTPUT_LABELREF): New.
9335 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
9336 (OUTPUT_ADDR_CONST_EXTRA): New.
9337 (PREDICATE_CODES): Update.
9338 (ix86_tls_dialect, ix86_tls_dialect_string): New.
9339 * config/i386/i386.md: Regroup and renumber unspec constants.
9340 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
9341 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
9342 (tls_global_dynamic, tls_local_dynamic_base): New.
9343 (tls_local_dynamic_once): New.
9344 * config/i386/i386-protos.h: Update.
9345
821e35ba
RH
93462002-05-23 Richard Henderson <rth@redhat.com>
9347
9348 * genemit.c (gen_insn): Print file:lineno comment before function.
9349 (main): likewise.
9350 * gensupport.c (struct queue_elem): Add filename member.
9351 (queue_pattern): Initialize it; update all callers.
9352 (process_include): Don't free filename.
9353 (read_md_rtx): Set read_rtx_filename.
9354
0f1ffa23 93552002-05-23 Hans Boehm <Hans_Boehm@hp.com>
821e35ba
RH
9356
9357 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
0f1ffa23 9358
8e9fadc3
RH
93592002-05-23 Richard Henderson <rth@redhat.com>
9360
9361 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
9362
244c2241
RH
93632002-05-23 Richard Henderson <rth@redhat.com>
9364
9365 * doc/extend.texi (C++98 Thread-Local Edits): Update with
9366 commentary from Mark.
9367
e0082a72
ZD
93682002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9369
9370 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
9371 Use FOR_EACH_BB macros to iterate over basic block chain.
9372 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
9373 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
9374 Likewise.
9375 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
9376 find_unreachable_blocks, create_edge_list, verify_edge_list,
9377 remove_fake_edges, add_noreturn_fake_exit_edges,
9378 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
9379 Likewise.
9380 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
9381 find_sub_basic_blocks): Likewise.
9382 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
9383 Likewise.
9384 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
9385 Likewise.
9386 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
9387 Likewise.
9388 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
9389 commit_edge_insertions, commit_edge_insertions_watch_calls,
9390 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
9391 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
9392 * conflict.c (conflict_graph_compute): Likewise.
9393 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
9394 df_modified_p, df_refs_unlink, df_dump): Likewise.
9395 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
9396 * final.c (compute_alignments): Likewise.
9397 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
9398 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
9399 count_or_remove_death_notes): Likewise.
9400 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
9401 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
9402 classic_gcse, compute_transp, cprop, compute_pre_data,
9403 compute_transpout, invalidate_nonnull_info,
9404 delete_null_pointer_checks_1, delete_null_pointer_checks,
9405 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
9406 compute_store_table, build_store_vectors, store_motion): Likewise.
9407 * global.c (global_conflicts, mark_elimination): Likewise.
9408 * graph.c (print_rtl_graph_with_bb): Likewise.
9409 * haifa-sched.c (sched_init): Likewise.
9410 * ifcvt.c (if_convert): Likewise.
9411 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
9412 compute_available, compute_nearerout, compute_rev_insert_delete,
9413 optimize_mode_switching): Likewise.
9414 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
9415 * predict.c (estimate_probability, note_prediction_to_br_prob,
9416 propagate_freq, counts_to_freqs, expensive_function_p,
9417 estimate_bb_frequencies): Likewise.
9418 * profile.c (instrument_edges, get_exec_counts,
9419 compute_branch_probabilities, compute_checksum, branch_prob,
9420 find_spanning_tree): Likewise.
9421 * recog.c (split_all_insns, peephole2_optimize): Likewise.
9422 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
9423 Likewise.
9424 * regclass.c (scan_one_insn, regclass): Likewise.
9425 * regmove.c (mark_flags_life_zones, regmove_optimize,
9426 record_stack_memrefs): Likewise.
9427 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
9428 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
9429 * resource.c (find_basic_block): Likewise.
9430 * sched-ebb.c (schedule_ebbs): Likewise.
9431 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
9432 find_single_block_region, find_rgns, schedule_insns)
9433 * sibcall.c (optimize_sibling_and_tail_recursive_call)
9434 * ssa-ccp.c (optimize_unexecutable_edges,
9435 ssa_ccp_df_delete_unreachable_insns): Likewise.
9436 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
9437 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
9438 rename_block, convert_to_ssa, compute_conservative_reg_partition,
9439 compute_coalesced_reg_partition, rename_equivalent_regs,
9440 convert_from_ssa): Likewise.
9441 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
9442 process_for_unwind_directive): Likewise.
9443
9444 * df.c (FOR_ALL_BBS): Removed.
9445 * gcse.c (struct null_pointer_info): Type of current_block field
9446 changed.
9447 (struct reg_avail_info): Type of last_bb field changed.
9448 * config/ia64/ia64.c (block_num): Removed.
9449 (need_copy_state): Type changed.
9450 (last_block): New.
9451
17645b15
NB
94522002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
9453
9454 * cppinit.c (mark_named_operators): Split out from init_builtins.
9455 (cpp_finish_options): Call it from here instead.
9456
79ed7328
JT
94572002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
9458
9459 * builtin-attrs.def: Update copyright years.
9460 (ATTR_NONNULL): New attribute identifier.
9461 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
9462 attribute tree lists.
9463 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
9464 format operand.
9465 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
9466 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
9467 attribute lists. Chain the appropriate nonnull attribute.
9468 * c-format.c (check_format_arg): Remove null format string
9469 warning.
9470 * testsuite/gcc.dg/format/null-1.c: New test.
9471
7d600178
RO
94722002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9473
9474 * Makefile.in (ADAC): Define.
9475 (SYSLIBS): Define.
9476 (.SUFFIXES): Move before language makefile fragments.
9477 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
9478
5ff225fc
MM
94792002-05-23 Mark Mitchell <mark@codesourcery.com>
9480
9481 * varasm.c (make_decl_rtl): Don't allow weak variables to be
9482 placed in common.
9483
0f72964f
JH
9484Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
9485
9486 * cfg.c (dump_flow_info): Print results of
9487 maybe_hot/probably_never_executed predicates.
9488 * toplev.c (open_dump_file): Print function frequency.
9489
c863f8c2
DM
94902002-05-23 David S. Miller <davem@redhat.com>
9491
9492 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
9493 regsets.
9494
b34c7881
JT
94952002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
9496
9497 * c-common.c (warn_nonnull): Declare.
9498 (c_common_attribute_table): Add "nonnull" attribute.
9499 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
9500 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
9501 check_function_arguments_recurse): New functions.
9502 * c-common.h (warn_nonnull): Declare extern.
9503 (check_function_arguments, check_function_arguments_recurse): New
9504 prototypes.
9505 * c-decl.c (c_decode_option): Add -Wnonnull option.
9506 * c-format.c (set_Wformat): Set warn_nonnull if enabling
9507 format checking.
9508 (format_check_context): New structure.
9509 (check_format_info_recurse): Remove recursion and rename to...
9510 (check_format_arg): ...this. Update comment.
9511 (check_format_info): Use check_function_arguments_recurse.
9512 * c-typeck.c (build_function_call): Call check_function_arguments
9513 instead of check_function_format.
9514 * doc/extend.texi: Document "nonnull" attribute.
9515 * doc/invoke.texi: Docuemnt -Wnonnull option.
9516 * testsuite/gcc.dg/nonnull-1.c: New test.
9517 * testsuite/gcc.dg/nonnull-2.c: New test.
9518
95479831
DM
95192002-05-23 David S. Miller <davem@redhat.com>
9520
9521 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
9522 * cfgcleanup.c (cleanup_cfg): If it is set do not
9523 attempt to delete trivially dead insns.
9524 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
9525 * toplev.c (rest_of_compilation): Document non-trivial aspect
9526 the RTL before optimize_save_area_alloca is run.
9527
a97d1398
NB
95282002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
9529
9530 * c-lex.c (indent_level): Remove.
9531 (cb_file_change, c_lex): Remove indent level handling.
9532 * c-lex.h (indent_level): Remove.
9533 * input.h (struct file_stack): Remove indent_level.
9534 * toplev.c (push_srcloc): Remove indent_level handling.
9535
66b408f2
JJ
95362002-05-23 Jakub Jelinek <jakub@redhat.com>
9537
9538 PR target/6753
9539 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
9540 of x in constraints for clarity.
9541 (sse_mov?fcc split): abort if op2 == op3.
9542 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
9543 sse_movsfcc_const0_4): Add earlyclobber.
9544 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
9545 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
9546 Use Y instead of x in constraints.
9547
5bf0ebab
RH
95482002-05-23 Richard Henderson <rth@redhat.com>
9549
9217ef40
RH
9550 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
9551 (C++98 Thread-Local Edits): New subsection.
9552
5bf0ebab
RH
9553 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
9554 (ix86_arch): Set type to enum processor_type.
9555
8a951190 9556 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
5bf0ebab
RH
9557 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
9558
4832c9e1
JJ
95592002-05-23 Jakub Jelinek <jakub@redhat.com>
9560
9561 * configure.in: Fix as version test for binutils 2.12.1 releases
9562 (without dates).
9563 * configure: Rebuilt.
9564
c8c03509
RH
95652002-05-23 Richard Henderson <rth@redhat.com>
9566
9567 * config/i386/i386.c (get_pic_label_name): New.
9568 (load_pic_register): Remove.
9569 (output_set_got): New.
9570 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
9571 * config/i386/i386.md (UNSPEC_SET_GOT): New.
9572 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
9573 (prologue_set_got, prologue_get_pc): Remove.
9574 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
9575 (builtin_setjmp_receiver): Use gen_set_got.
9576 * config/i386/i386-protos.h: Update.
9577
d51f3632
JH
9578Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
9579
9580 * gcse.c (hash_expr): Do not use alias set for hashing.
9581
b0a93386
KB
95822002-05-22 Kevin Buettner <kevinb@redhat.com>
9583
9584 * dbxout.c (dbxout_class_name_qualifiers): New function.
9585 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
9586
bdee42b1
NB
95872002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
9588
9589 * cpperror.c (_cpp_begin_message): No special casing
9590 of CPP_FATAL_LIMIT.
9591 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
9592 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
9593 * cpplib.c (do_include_common): Use DL_ERROR.
9594 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
9595 (DL_ICE): Renumber.
9596 * fix-header.c (read_scan_file): Update.
9597
0e07aff3
RH
95982002-05-22 Richard Henderson <rth@redhat.com>
9599
9600 * config/i386/i386.c (ix86_expand_call): New function, extracted
9601 from md call patterns. Add pic_offset_table_rtx to
9602 CALL_INSN_FUNCTION_USAGE when needed.
9603 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
9604 (call_value_pop, call_value, untyped_call): Likewise.
9605 (call_exp, call_value_exp): Remove.
9606 * config/i386/i386-protos.h: Update.
9607
6f001fdf
RH
96082002-05-22 Richard Henderson <rth@redhat.com>
9609
9610 * varasm.c (default_section_type_flags): Check for VAR_DECL
9611 before using DECL_THREAD_LOCAL.
9612
cbaaba19
DE
96132002-05-22 David Edelsohn <edelsohn@gnu.org>
9614
9615 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
9616 (STARTFILE_SPEC): Delete PE crt0.o.
9617 * config/rs6000/aix51.h: Same.
9618 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
9619 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
9620 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
9621 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
9622 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
9623
c711ba8e
RH
96242002-05-22 Richard Henderson <rth@redhat.com>
9625
9626 * varasm.c (default_section_type_flags): Handle tls data and
9627 default sections.
9628 (default_unique_section): Handle tls sections.
9629
343f59d9
AM
96302002-05-23 Alan Modra <amodra@bigpond.net.au>
9631
9632 * configure.in (CROSS): Define NATIVE_CROSS.
9633 * configure: Regenerate.
9634 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
9635 (startfile_prefix_spec): New var.
9636 (static_specs): Add startfile_prefix_spec.
9637 (do_spec_2): Split out from..
9638 (do_spec): ..here.
9639 (main): Process startfile_prefix_spec.
9640 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
9641 dynamic linker.
9642 (STARTFILE_PREFIX_SPEC): Define.
9643 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
c7bdf0a6 9644 absolute paths.
343f59d9 9645
df383483
KH
96462002-05-22 Kazu Hirata <kazu@cs.umass.edu>
9647
9648 * cpperror.c: Fix formatting.
9649 * cppexp.c: Likewise.
9650 * cppfiles.c: Likewise.
9651 * cpphash.c: Likewise.
9652 * cpphash.h: Likewise.
9653 * cppinit.c: Likewise.
9654 * cpplex.c: Likewise.
9655 * cpplib.c: Likewise.
9656 * cppmacro.c: Likewise.
9657 * cppmain.c: Likewise.
9658 * cppspec.c: Likewise.
9659
2dd36f90
JJ
96602002-05-22 Jakub Jelinek <jakub@redhat.com>
9661
9662 * combine.c (force_to_mode): Use gen_int_mode.
9663 Don't clear CONST_INT bits outside of mode.
9664
8dc02d7f
RH
96652002-05-22 Richard Henderson <rth@redhat.com>
9666
9667 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
9668 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
9669
45f79783
JJ
96702002-05-22 Jakub Jelinek <jakub@redhat.com>
9671
9672 PR c/6643
9673 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
9674 if DECL_SIZE_UNIT is INTEGER_CST.
9675
19f71cd7
RH
96762002-05-22 Richard Henderson <rth@redhat.com>
9677
9678 * flow.c (life_analysis): Delete broken reg_label check.
9679
d5bcfcce
RH
96802002-05-22 Richard Henderson <rth@redhat.com>
9681
9682 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
9683 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
9684
985d311b 9685Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5ff94354
R
9686
9687 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
9688 (embed-bb.c): New rule.
985d311b 9689 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
5ff94354
R
9690 * config/sh/embed_bb.c: Delete.
9691
985d311b
R
9692Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
9693
9694 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
9695
f6d45746
KH
96962002-05-22 Kazu Hirata <kazu@cs.umass.edu>
9697
9698 * config/h8300/h8300.md (*andorqi3): New.
9699
e5f3b786
NB
97002002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
9701
9702 PR preprocessor/6517
9703 * Makefile.in: Update.
9704 * c-common.c (c_common_post_options): Add preprocessor
9705 errors to the error count.
9706 * c-lang.c (c_post_options): Kill.
9707 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
9708 * hooks.h: Add header guards.
9709 * langhooks-def.h: Include hooks.h.
9710 (LANG_HOOKS_POST_OPTIONS): Update.
9711 * langhooks.h (struct lang_hooks): Update post_options.
9712 * toplev.c (parse_options_and_default_flags): Update.
9713objc:
9714 * objc-lang.c (objc_post_options): Kill.
9715 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
9716
4c526be3
BK
97172002-05-21 Bruce Korb <bkorb@gnu.org>
9718
9719 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
021c1f34
BK
9720 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
9721 * fixinc/fixincl.x: regen.
4c526be3 9722
f87c27b4
KH
97232002-05-21 Kazu Hirata <kazu@cs.umass.edu>
9724
9725 * cfgbuild.c: Fix formatting.
9726 * cfg.c: Likewise.
9727 * cfgcleanup.c: Likewise.
9728 * cfglayout.c: Likewise.
9729 * cfgloop.c: Likewise.
9730 * cfgrtl.c: Likewise.
9731
3d78f2e9
RH
97322002-05-21 Richard Henderson <rth@redhat.com>
9733
9734 * c-common.h (enum rid): Add RID_THREAD.
9735 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
9736 (grokdeclarator): Grok __thread.
9737 * c-parse.in (reswords): Add __thread.
9738 (rid_to_yy): Add RID_THREAD.
9739
9740 * tree.h (DECL_THREAD_LOCAL): New.
9741 (struct tree_decl): Add thread_local_flag.
9742 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
9743 * tree.c (staticp): TLS variables are not static.
9744
9745 * target-def.h (TARGET_HAVE_TLS): New.
9746 * target.h (have_tls): New.
9747 * output.h (SECTION_TLS): New.
9748 * varasm.c (assemble_variable): TLS variables can't be common for now.
9749 (default_section_type_flags): Handle .tdata and .tbss.
9750 (default_elf_asm_named_section): Handle SECTION_TLS.
9751 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
9752
9753 * flags.h (flag_tls_default): Declare.
9754 * toplev.c (flag_tls_default): Define.
9755 (display_help): Display help for it.
9756 (decode_f_option): Set it.
9757
9758 * doc/extend.texi (Thread-Local): New node describing language-level
9759 thread-local storage.
9760 * doc/invoke.texi (-ftls-model): Document.
9761
9762 * fixinc/inclhack.def (thread_keyword): New.
9763 * fixinc/fixincl.x: Rebuild.
9764
a151daf0
JL
97652002-05-21 Jeffrey A Law <law@redhat.com>
9766
8a951190 9767 * optabs.c (expand_binop): For double-word integer multiplies,
c7539aa0
JL
9768 do not compute intermediate results into something that is
9769 not a register (such as a SUBREG or MEM).
9770
a151daf0
JL
9771 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
9772 (ix86_sched_reorder): Make sure to initialize scheduling
9773 data even when there's only one insn in the ready queue.
9774
96b1f73b
VM
97752002-05-21 Vladimir Makarov <vmakarov@redhat.com>
9776
9777 * genautomata.c (reserv_sets_hash_value): Fix a typo.
9778
dceb2b75
VM
97792002-05-21 Vladimir Makarov <vmakarov@redhat.com>
9780
9781 * genautomata.c (reserv_sets_hash_value): Define hash_value as
9782 set_el_t. Transform the hash value into unsigned.
9783 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
9784 (transform_3): Add code to process `(A,B)+(D,E)'.
9785
159d5964
NY
97862002-05-21 NIIBE Yutaka <gniibe@m17n.org>
9787
9788 * reload1.c (do_output_reload): Run delete_output_reload
9789 only if optimizing.
9790
cf5124f6
RS
97912002-05-21 Roger Sayle <roger@eyesopen.com>
9792
9793 PR middle-end/6600
9794 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
9795 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
9796 (can_store_by_pieces): ... and here to limit the largest mode used.
9797 Add a comment to document this function.
9798
380e6ade
RH
97992002-05-21 Richard Henderson <rth@redhat.com>
9800
9801 * flow.c (life_analysis): Fix test for deleted label.
9802
1f95326c
NB
98032002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
9804
9805 * doc/tm.texi: Fix typo.
9806
2a1dc0d8
ZW
98072002-05-21 Zack Weinberg <zack@codesourcery.com>
9808
9809 * c-common.c (c_common_init): Set options->unsigned_char from
9810 flag_signed_char.
9811 (cb_register_builtins): Define __STRICT_ANSI__ and
9812 __CHAR_UNSIGNED__ here...
9813 * cppinit.c (init_builtins): Not here.
9814 (cpp_create_reader): unsigned_char option defaults to 0, not
9815 !DEFAULT_SIGNED_CHAR.
9816 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
9817 and -funsigned-char.
9818
9819 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
9820 * cpphash.c (_cpp_init_hashtable): Don't set it.
9821 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
9822 directly. Clarify comment.
9823
d29146f2 98242002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2a1dc0d8 9825
f5eb2fc8
ZD
9826 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
9827 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
9828 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
9829 BASIC_BLOCK (n_basic_blocks - 1).
d29146f2 9830 * cfganal.c (can_fallthru, flow_call_edges_add,
f5eb2fc8 9831 flow_preorder_transversal_compute): Too.
d29146f2 9832 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
f5eb2fc8
ZD
9833 find_sub_basic_blocks): Too.
9834 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
d29146f2 9835 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
f5eb2fc8
ZD
9836 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
9837 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
d29146f2
ZD
9838 * combine.c (this_basic_block): Type changed to basic_block.
9839 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
9840 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
f5eb2fc8
ZD
9841 get_last_value, distribute_notes, distribute_links): Too.
9842 * final.c (compute_alignments): Too.
9843 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
9844 * function.c (thread_prologue_and_epilogue_insns): Too.
9845 * gcse.c (compute_code_hoist_vbeinout): Too.
9846 * global.c (build_insn_chain): Too.
9847 * ifcvt.c (find_if_block, find_cond_trap): Too.
9848 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
9849 * regmove.c (regmove_optimize): Too.
9850 * resource.c (find_basic_block): Too.
9851 * sched-ebb.c (schedule_ebbs): Too.
9852 * ssa-dce.c (find_control_dependence, find_pdom): Too.
d29146f2 9853
68bd6dd6
AJ
98542002-05-21 Andreas Jaeger <aj@suse.de>
9855
9856 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
9857
35a76aac
RH
98582002-05-21 Richard Henderson <rth@redhat.com>
9859
9860 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
9861 unspec names, not numbers.
9862
2870428f
JM
98632002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
9864
9865 * doc/sourcebuild.texi: Mention snapshot-README and
9866 snapshot-index.html as needing updating for new front ends.
9867
b0ad77d5
KG
98682002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9869
9870 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
9871 disabling checking, and avoid multiple evaluation of RTX.
9872
279be7c8
RE
98732002-05-21 Richard Earnshaw <rearnsha@arm.com>
9874
9875 * bitmap.c (bitmap_find_bit): Return early if we have the correct
9876 element cached.
9877
193a563a
JH
9878Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
9879
9880 * profile.c (gen_edge_profiler): Set alias set before the memory is
9881 used.
9882
31825e57
DM
98832002-05-20 David S. Miller <davem@redhat.com>
9884
9885 * cselib.c (max_value_regs): New.
9886 (cselib_lookup, cselib_invalidate_regno): Initialize it when
9887 adding new entries to the REG_VALUES table and we are dealing with
9888 a hard register.
9889 (clear_table): Initialize it.
9890 (cselib_invalidate_regno): Use it to determine which hard
9891 registers to scan when mode is not VOIDmode.
9892
68bd6dd6 98932002-05-20 Duraid Madina <duraid@fl.net.au>
29d83d60
DM
9894
9895 * tradcpp.c (fixup_newlines): Use old-style function header.
9896
e0a09fda
KW
98972002-05-20 Krister Walfridsson <cato@df.lth.se>
9898
9899 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
9900
e0c13c70
L
99012002-05-20 H.J. Lu (hjl@gnu.org)
9902
9903 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
9904
9905 * config/mips/mips.h (DFMODE_NAN): Defined.
9906 (SFMODE_NAN): Likewise.
9907
4c11675d 99082002-05-20 Dale Johannesen <dalej@apple.com>
e0c13c70 9909
2a1dc0d8
ZW
9910 * combine.c (cant_combine_insn_p): Back out my
9911 previous patch.
4c11675d 9912
6a4d6760
KH
99132002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9914
9915 * params.c: Fix formatting.
9916 * params.h: Likewise.
9917 * predict.c: Likewise.
9918 * prefix.c: Likewise.
9919 * print-rtl.c: Likewise.
9920 * print-tree.c: Likewise.
9921 * profile.c: Likewise.
9922
5715ca64
L
99232002-05-20 H.J. Lu (hjl@gnu.org)
9924
9925 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
9926
00b89f01
NC
99272002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
9928
9929 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
9930 switches straight on to the assembler, do not abbreviate them.
9931 * config/arm/elf.h (ASM_SPEC): As above.
9932 * config/arm/semi.h (ASM_SPEC): As above.
9933 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
9934 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
9935 -mcpu=xscale on to the assembler by default.
9936 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
9937
1441374b
RH
99382002-05-20 Richard Henderson <rth@redhat.com>
9939
9940 * cse.c (canon_hash): Reorder do_not_record test. Always
9941 allow pic_offset_table_rtx.
9942
c0fe508e
TM
99432002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
9944
9945 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
9946 (expand_binop): Ditto (3 times).
9947
f362c762
MM
99482002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
9949
9950 * Makefile.in (distclean): Remove QMTest stuff.
9951 (QMTEST_PATH): New variable.
9952 (QMTESTFLAGS): Likewise.
9953 (QMTESTRUNFLAGS): Likewise.
9954 (QMTEST): Likewise.
9955 (QMTEST_GPP_TESTS): Likewise.
9956 (QMTEST_DIR): Likewise.
9957 (QMTEST_DIR/context): New target.
9958 (qmtest-g++): Likeise.
9959 (qmtest-gui): Likewise.
9960 (QMTEST_DIR/gpp-expected.qmr): Likewise.
9961
16861f33
AH
99622002-05-19 Aldy Hernandez <aldyh@redhat.com>
9963
2a1dc0d8
ZW
9964 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
9965 an altivec register if TARGET_ALTIVEC.
16861f33 9966
2a1dc0d8
ZW
9967 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
9968 to ALTIVEC_VECTOR_MODE.
9969 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
9970 (rs6000_va_arg): Vectors may go in registers if they are not
9971 altivec vectors.
16861f33 9972
23459e15
KH
99732002-05-19 Kazu Hirata <kazu@cs.umass.edu>
9974
9975 * protoize.c: Fix formatting.
9976
174cc7d1
RH
99772002-05-19 Richard Henderson <rth@redhat.com>
9978
9979 * gensupport.c (init_include_reader): Merge into ...
9980 (process_include): ... here. Simplify composite path creation.
9981 Plug memory leaks. Fix file/line number tracking. Do not
9982 process_define_cond_exec. Return void.
9983 (process_rtx): Don't check process_include return value.
9984
918ed612
ZD
99852002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9986
9987 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
9988 fields.
9989 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
9990 traversing basic block chain.
9991 (create_basic_block_structure, create_basic_block): Declaration changed.
9992 (link_block, unlink_block): Declare.
9993 * cfg.c (entry_exit_blocks): Initialize new fields.
9994 (link_block, unlink_block): New.
9995 (expunge_block_nocompact): Unlink basic block.
9996 (dump_flow_info): Print prev_bb/next_bb fields.
9997 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
9998 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
9999 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
10000 * cfgrtl.c (create_basic_block_structure, create_basic_block,
10001 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
10002 (verify_flow_info): Check that list agrees with numbering.
10003
e0322d5c
NB
100042002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
10005
10006 * c-common.c (preprocessing_asm): New macro.
10007 * c-lex.h (builtin_define, builtin_assert): Use pfile.
10008doc:
10009 * tm.texi: Update.
10010config/alpha:
10011 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
10012 (CPP_SPEC): Simplify.
10013 (TARGET_CPU_CPP_BUILTINS): Update.
10014 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
10015 (CPP_SPEC): Simplify.
10016 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
10017 (TARGET_OS_CPP_BUILTINS): Update.
10018 * osf.h (CPP_XFLOAT_SPEC): Kill.
10019 (TARGET_OS_CPP_BUILTINS): Update.
10020 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
10021 * osf5.h (CPP_XFLOAT_SPEC): Kill.
10022 * vms.h (CPP_SUBTARGET_SPEC): Kill.
10023 (TARGET_OS_CPP_BUILTINS): Update.
10024
121f5c2c
RH
100252002-05-19 Richard Henderson <rth@redhat.com>
10026
10027 * varasm.c (default_binds_local_p): Fix typo.
10028
651c5ed9
MM
100292002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
10030
10031 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
10032 CONST_INT operand to the correct mode after adding 1 to it.
10033
bce0deb2
MM
100342002-05-19 Mark Mitchell <mark@codesourcery.com>
10035
10036 * config.gcc (powerpc-wrs-windiss*): New target.
10037
4aa74a4f
FS
100382002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10039
10040 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
10041 (ashrdi3): Use it.
10042
a15135c9
MM
100432002-05-18 Mark Mitchell <mark@codesourcery.com>
10044
10045 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
10046 alphasort.
10047 * config.in: Regenerated.
10048 * configure: Regenerated.
10049
47754fd5
RH
100502002-05-19 Richard Henderson <rth@redhat.com>
10051
10052 * target-def.h (TARGET_BINDS_LOCAL_P): New.
10053 * target.h (struct gcc_target): Move boolean fields to the end.
10054 Add binds_local_p.
10055 * varasm.c (default_binds_local_p): New.
10056 * output.h: Declare it.
10057
10058 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
10059 * config/cris/cris.c (cris_encode_section_info): Likewise.
10060 * config/i386/i386.c (i386_encode_section_info): Likewise.
10061 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
10062 * config/sh/sh.c (sh_encode_section_info): Likewise.
10063
10064 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
10065 (TARGET_BINDS_LOCAL_P): New.
10066
fc881338
RH
100672002-05-19 Richard Henderson <rth@redhat.com>
10068
10069 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
10070 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
10071 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
10072
10073 * toplev.c (display_help): Kill -a -ax help.
10074
68bd6dd6 10075 * config/1750a/1750a.h, config/alpha/alpha.h,
fc881338
RH
10076 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
10077 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
10078 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
10079 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
10080
10081 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
10082 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
10083
10084 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
10085 (ix86_output_function_block_profiler): Kill.
10086 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
10087 (m68hc11_function_block_profiler): Kill.
10088 * config/m68hc11/m68hc11-protos.h: Update.
10089 * config/m88k/m88k.c (output_block_profiler): Kill.
10090 (output_function_block_profiler): Kill.
10091 * config/m88k/m88k-protos.h: Update.
10092
772c5265
RH
100932002-05-19 Richard Henderson <rth@redhat.com>
10094
10095 * system.h (STRIP_NAME_ENCODING): Poison it.
10096 * output.h (STRIP_NAME_ENCODING): Remove.
10097 (default_strip_name_encoding): Declare.
10098 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
10099 * target.h (strip_name_encoding): New.
10100 * varasm.c (default_strip_name_encoding): New.
10101
10102 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
10103 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
10104 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
10105 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
10106 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
10107 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
10108 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
10109 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
10110 config/v850/v850.h: Use the hook, not the macro.
10111
10112 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10113 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
10114 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
10115 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
10116 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
10117 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
68bd6dd6 10118 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
772c5265
RH
10119 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
10120 config/v850/v850.c, config/v850/v850.h:
10121 Move STRIP_NAME_ENCODING to out-of-line function and add
10122 TARGET_STRIP_NAME_ENCODING.
10123
10124 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
10125 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
10126 with TARGET_STRIP_NAME_ENCODING referencing existing function;
10127 make function static.
10128
10129 * xcoffout.c: Include target.h
10130 * Makefile.in (xcoffout.o): Update.
10131
10132 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
10133 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
10134 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
10135 reloc argument unused.
10136 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
10137
10138 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
10139 STRIP_NAME_ENCODING docs.
10140
8f9eb495
AJ
101412002-05-19 Andreas Jaeger <aj@suse.de>
10142
10143 * gengenrtl.c: Add prototype for excluded_rtx.
10144
10145 * real.h: Add prototype for exact_real_truncate.
10146
fb49053f
RH
101472002-05-18 Richard Henderson <rth@redhat.com>
10148
10149 * system.h (ENCODE_SECTION_INFO): Poison it.
10150 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
10151 * target.h (encode_section_info): New.
10152 * varasm.c (make_decl_rtl, output_constant_def): Use it.
10153 * hooks.c (hook_tree_int_void): New.
10154 * hooks.h: Declare it.
10155
10156 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10157 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
10158 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
10159 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
10160 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
10161 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
10162 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
10163 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
10164 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
10165 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10166 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
10167 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
10168 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
10169 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
10170 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
10171 referencing existing function. Make function static.
10172
10173 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
8f9eb495 10174 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
fb49053f
RH
10175 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
10176 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
10177 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
8f9eb495 10178 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
fb49053f
RH
10179 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
10180 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
10181 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
10182 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
8f9eb495 10183 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
fb49053f
RH
10184 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
10185 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
10186 Move ENCODE_SECTION_INFO to out-of-line function and add
10187 TARGET_ENCODE_SECTION_INFO.
10188
10189 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
10190 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
10191
10192 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
10193 from SUBTARGET_*
10194 (switch_to_section): Replace in_rdata case with in_readonly_data.
10195
10196 * config/h8300/h8300.c (h8300_encode_label): Make static.
10197 * config/h8300/h8300-protos.h: Update.
10198
10199 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
10200 from rs6000_encode_section_info; make static.
10201 (rs6000_xcoff_encode_section_info): New.
10202
10203 * config/v850/v850.c (v850_encode_data_area): Make static.
10204 * config/v850/v850-protos.h: Update.
10205
10206 * config/vax/vax.c: Include flags.h.
10207 (vms_select_section): Fix typo.
10208
10209 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
10210 ENCODE_SECTION_INFO docs.
10211
9fe08fd0
RH
102122002-05-18 Richard Henderson <rth@redhat.com>
10213
10214 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
10215 REGISTER_TARGET_PRAGMAS.
10216 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
10217
410b770f
RH
10218 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
10219
b64a1b53
RH
102202002-05-18 Richard Henderson <rth@redhat.com>
10221
10222 * system.h (SELECT_RTX_SECTION): Poison.
10223 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
10224 * target.h (select_rtx_section): New.
10225 * varasm.c (output_constant_pool): Use it.
10226 (default_select_rtx_section, default_elf_select_rtx_section): New.
10227 * output.h: Declare them.
10228
10229 * config/darwin.h (SELECT_RTX_SECTION): Move ...
10230 * config/darwin.c (machopic_select_rtx_section): ... here.
10231 * config/darwin-protos.h: Update.
10232
10233 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
10234 * config/nextstep.c (machopic_select_rtx_section): ... here.
10235 (nextstep_select_section): Rename variable to avoid macro clash.
10236 * config/nextstep-protos.h: Update.
10237
10238 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
10239 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
10240 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
8f9eb495 10241 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
b64a1b53
RH
10242 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
10243 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
8f9eb495 10244 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
b64a1b53
RH
10245 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
10246 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
10247 (SELECT_RTX_SECTION): Remove.
10248
10249 * config/darwin.h, config/elfos.h, config/nextstep.h,
10250 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
10251 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
10252 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
10253 config/sparc/lynx.h, config/xtensa/xtensa.c
10254 (TARGET_ASM_SELECT_RTX_SECTION): New.
10255
10256 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
10257 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
10258 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
10259 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
10260 (ia64_aix_select_rtx_section): New.
10261 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
10262 redefining.
10263 * config/mips/mips.c (mips_select_rtx_section): Make static.
8f9eb495 10264 Support ELF SHF_MERGE features.
b64a1b53
RH
10265 * config/mips/mips-protos.h: Update.
10266 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
10267 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
10268 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
10269 make static, fall back to default_elf_select_rtx_section.
10270 * config/rs6000/rs6000-protos.h: Update.
10271 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
10272 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
10273 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
10274 * config/romp/romp.c (romp_select_rtx_section): New.
10275 * config/s390/s390.c (s390_select_rtx_section): New.
10276 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
10277 declarations before target macro definition.
10278 (xtensa_emit_call): Use static buffer.
10279 (xtensa_select_rtx_section): New.
10280 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
10281 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
10282 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
10283
10284 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
10285 SELECT_RTX_SECTION docs.
10286
10287Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
5f90a099
JH
10288
10289 * i386.md (movsi/movdi): Fix template.
10290 (sse2 patterns): Set attributes consistently.
10291
10292 * i386.md (pushqi2, ashrqi_*): Fix constraint.
10293
6835a09c
TM
102942002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
10295
10296 * optabs.c (complex_part_zero_p): New.
10297 * (expand_cmplxdiv_straight): Use it.
10298 * (expand_cmplxdiv_wide): Ditto.
10299 * (expand_binop): Ditto.
10300
d48bc59a
RH
103012002-05-18 Richard Henderson <rth@redhat.com>
10302
10303 * final.c (HAVE_READONLY_DATA_SECTION): New.
10304 (shorten_branches): Use it instead of ifdefs.
10305 * varasm.c (enum in_section): Add in_readonly_data.
10306 (text_section, data_section): Tidy.
10307 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
10308
10309 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
10310 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
10311 (READONLY_DATA_SECTION): Don't undef.
10312
10313 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
10314 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
10315 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
10316
10317 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
10318 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
10319 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
10320 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
10321
10322 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
10323 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
10324 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
10325 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
10326 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
10327 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
10328 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
10329 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
10330 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
10331
10332 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
10333 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
10334 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
10335 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
10336 config/pa/pa64-hpux.h, config/sparc/litecoff.h
10337 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
10338
10339 * config/elfos.h, config/netware.h, config/svr3.h,
10340 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
10341 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
10342 config/h8300/h8300.h, config/i386/i386-interix.h,
10343 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
10344 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
10345
10346 * config/elfos.h, config/netware.h, config/svr3.h,
10347 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
10348 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
10349 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
10350 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
10351
10352 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
10353 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
10354 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
10355 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
10356 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
10357 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
10358 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
10359 config/rs6000/sysv4.h, config/v850/v850.h
10360 (EXTRA_SECTIONS): Remove in_const/in_rdata.
10361 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
10362
10363 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
10364 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
10365 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
10366 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
10367 * config/alpha/alpha.c (alpha_start_function): Likewise.
10368 (alpha_write_linkage): Likewise.
10369 * config/m32r/m32r.c (m32r_select_section): Likewise.
10370 * config/m88k/m88k.c (m88k_select_section): Likewise.
10371 * config/mips/mips.c (mips_select_rtx_section): Likewise.
10372 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
10373 (rs6000_elf_select_section): Likewise.
10374 * config/v850/v850.c (v850_select_section): Likewise.
10375
10376 * config/1750a/1750a.h, config/i860/sysv3.h
10377 (READONLY_DATA_SECTION_ASM_OP): New.
10378 READONLY_DATA_SECTION_ASM_OP.
10379 * config/i386/interix.c, config/i386/winnt.c
10380 (i386_pe_unique_section): Always use .rdata prefix.
10381 * config/pa/som.h (readonly_data): Always switch to read-only section.
10382 (READONLY_DATA_SECTION): Predicate on flag_pic.
10383 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
10384 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
10385 (READONLY_DATA_SECTION): Update.
10386
e964a556
JT
103872002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
10388
10389 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8f9eb495 10390 is used without -Wformat.
e964a556
JT
10391 * c-common.h (warn_format_zero_length): Declare extern.
10392 * c-decl.c (warn_options): Add "format-zero-length".
10393 * c-format.c (warn_format_zero_length): Declare.
10394 (set_Wformat): Set warn_format_zero_length for -Wformat.
10395 (check_format_info): Only warn about zero-length formats if
10396 warn_format_zero_length is true. Include the format type
10397 name in the warning message.
10398 * doc/invoke.texi: Document -Wformat-zero-length.
10399 * testsuite/gcc.dg/format/zero-length-1.c: New test.
10400
d92b4486
KH
104012002-05-18 Kazu Hirata <kazu@cs.umass.edu>
10402
10403 * timevar.c: Fix formatting.
10404 * tlink.c: Likewise.
10405 * toplev.c: Likewise.
10406 * tree-dump.c: Likewise.
10407 * tree-inline.c: Likewise.
10408
43612ffb
NB
104092002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
10410
10411 * cppinit.c (cpp_post_options): If preprocessed, turn off
10412 traditional. If traditional, turn off column numbers.
10413 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
10414 * cpptrad.c (handle_newline): Update line_base.
10415 (skip_comment): Handle -Wcomment.
10416
f24a153a
ZW
104172002-05-17 Zack Weinberg <zack@codesourcery.com>
10418
10419 * cppinit.c (struct builtin): Remove unused fields.
10420 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
10421 (operator_array): New - was second half of builtin_array.
10422 (init_builtins): Simplify loop over builtin_array/operator_array.
10423
12403335
NB
104242002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
10425
10426 * defaults.h (UNIQUE_SECTION): Remove.
10427 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
10428
1f8c3c5b
RH
104292002-05-17 Richard Henderson <rth@redhat.com>
10430
10431 * expr.c (init_expr_once): Don't use start/end_sequence.
10432 Use rtx_alloc instead of emit_insn.
10433 * toplev.c (lang_dependent_init): Run init_expr_once here ...
10434 (lang_independent_init): ... not here.
10435
4664f4c4
JT
104362002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
10437
10438 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
10439
93febe68
MM
104402002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
10441
10442 * config/avr/avr.c (avr_regs_to_save): New function. Also check
10443 for fixed registers, possibly used for global register variables.
10444 (initial_elimination_offset, avr_output_function_prologue,
10445 avr_output_function_epilogue): Move common code to avr_regs_to_save.
10446
004cb263
NB
104472002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
10448
10449 * Makefile.in: Update for cpptrad.c.
10450 * cpphash.h (struct cpp_buffer): New members for buffer
10451 overlays.
10452 (struct cpp_reader): New members for traditional output.
10453 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
10454 * cppinit.c (cpp_create_reader): Set trad_line.
10455 (cpp_destroy): Free trad_out_base if used.
10456 (cpp_read_main_file): Overlay an empty buffer if traditional.
10457 (cpp_finish_options): Don't do builtins.
10458 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
10459 (cpp_handle_option): Handle it.
10460 * cpplex.c (continue_after_nul): New.
10461 (_cpp_lex_direct): Use handle_nul.
10462 * cpplib.h (struct cpp_options): New traditional option.
10463 * cpptrad.c: New file.
10464
bdcae02b
NB
104652002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
10466
10467 * c-common.c (c_common_init_options): Use C89 for Objective-C,
10468 and set the options flag.
10469 * cppinit.c (lang_flags): Remove objc.
10470 (lang_defaults): Remove OBJC and OBJCXX.
10471 (set_lang): Update.
10472 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
10473 (cpp_handle_option): Remove -+ and -lang-objc++.
10474 For ObjC, just set a flag.
10475 (print_help): Update.
10476 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
10477
0fca60ab
RO
104782002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10479
10480 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
10481 bootstrap with -mips3.
10482
dd3f0101
KH
104832002-05-17 Kazu Hirata <kazu@cs.umass.edu>
10484
10485 * final.c: Fix formatting.
10486 * fix-header.c: Likewise.
10487 * flow.c: Likewise.
10488 * fold-const.c: Likewise.
10489 * function.c: Likewise.
10490
5ca9299f
DM
104912002-05-17 David S. Miller <davem@redhat.com>
10492
10493 PR c/6689, PR optimization/6615
10494 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
10495 and make it a pointer to rtx. Update comments.
10496 (update_equiv_regs): When scanning for equivalences, record
10497 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
10498 it while making the equiv replacements.
10499
508bc172
RO
105002002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10501
10502 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
10503
5cd983a6
KK
105042002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
10505
10506 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
10507 when encoding visibility into SYMBOL_REF_FLAG.
10508
ce0f3925
RS
105092002-05-17 Richard Sandiford <rsandifo@redhat.com>
10510
10511 * expr.c (force_operand): Fix reversed move.
10512
06809951
GP
105132002-05-17 Kurt Wall <kwall@kurtwerks.com>
10514
10515 * doc/install.texi (Testing): Mention two common DejaGnu warnings
10516 that can be ignored.
10517
105182002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10519
10520 * doc/install.texi (Final install): Recommend to install into a
10521 "clean" target directory.
10522
1d5d7a21
RH
105232002-05-17 Richard Henderson <rth@redhat.com>
10524
10525 * config/ia64/ia64.md: Use braced strings instead of quoted strings
10526 for code blocks. Tidy whitespace.
10527
ae46c4e0
RH
105282002-05-17 Richard Henderson <rth@redhat.com>
10529
10530 * hooks.c (hook_tree_bool_false): New.
10531 * hooks.h: Declare it.
10532 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
10533 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
10534 * target.h (select_section, unique_section): New.
10535 (in_small_data_p): New.
10536 * varasm.c (resolve_unique_section): Use hooks instead of macros.
10537 (variable_section, output_constant_def_contents): Likewise.
10538 (default_select_section, default_unique_section): New.
10539 (categorize_decl_for_section, default_elf_select_section): New.
10540 * output.h: Declare them.
10541
10542 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
10543 (TARGET_ASM_SELECT_SECTION): New.
10544 (SELECT_SECTION): Move ...
10545 * config/darwin.c (machopic_select_section): ... here.
10546 * config/darwin-protos.h: Update.
10547
10548 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
10549 (SELECT_SECTION): Move ...
10550 * config/nextstep.c (nextstep_select_section): ... here.
10551 * config/nextstep-protos.h: Update.
10552
10553 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
10554 (TARGET_ASM_SELECT_SECTION): New.
10555 * config/svr3.h (SELECT_SECTION): Remove.
10556
10557 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
10558 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
10559 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
10560 (alpha_encode_section_info): Use it.
10561 * config/alpha/alpha-protos.h: Update.
10562 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
10563 (SELECT_SECTION, UNIQUE_SECTION): Remove.
10564 (TARGET_ASM_SELECT_SECTION): New.
10565 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
10566
10567 * config/arm/pe.h (UNIQUE_SECTION): Remove.
10568 (TARGET_ASM_UNIQUE_SECTION): New.
10569
10570 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
10571 (avr_unique_section): Rename from unique_section; make static.
10572 * config/avr/avr-protos.h: Update.
10573 * config/avr/avr.h (UNIQUE_SECTION): Remove.
10574
10575 * config/c4x/c4x.h (SELECT_SECTION): Remove.
10576
10577 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
10578 (TARGET_ASM_UNIQUE_SECTION): New.
10579 * config/i386/i386-interix.h: Likewise.
10580 * config/i386/win32.h: Likewise.
10581 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
10582 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
10583 * config/i386/sco5.h (SELECT_SECTION): Remove.
10584 (TARGET_ASM_SELECT_SECTION): New.
10585 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
10586
10587 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
10588 instead of SELECT_SECTION.
10589 * config/m68k/dpx2.h: Likewise.
10590 * config/rs6000/lynx.h: Likewise.
10591
10592 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
10593 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
10594 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
10595 (ia64_in_small_data_p): New.
10596 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
10597 (ia64_aix_select_section, ia64_aix_unique_section): New.
10598 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
10599 (SELECT_SECTION, UNIQUE_SECTION): Remove.
10600
10601 * config/m32r/m32r.h (SELECT_SECTION): Remove.
10602 (TARGET_ASM_SELECT_SECTION): New.
10603 * config/m32r/m32r.c (m32r_select_section): Take align argument.
10604 * config/m32r/m32r-protos.h: Update.
10605
10606 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
10607 (SELECT_SECTION): Move ...
10608 * config/m88k/m88k.c (m88k_select_section): ... here.
10609
10610 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
10611 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
10612 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
10613 (mcore_unique_section): Make static.
10614 * config/mcore/mcore-protos.h: Update.
10615
10616 * config/mips/elf.h (UNIQUE_SECTION): Remove.
10617 (TARGET_ASM_UNIQUE_SECTION): New.
10618 * config/mips/elf64.h: Likewise.
10619 * config/mips/iris6gld.h: Likewise.
10620 * config/mips/linux.h: Likewise.
10621 * config/mips/mips-protos.h: Update.
10622 * config/mips/mips.c (mips_select_section): Add align argument.
10623 * config/mips/mips.h (SELECT_SECTION): Remove.
10624 (TARGET_ASM_SELECT_SECTION): New.
10625
10626 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
10627 * config/mmix/mmix.c (mmix_select_section): Remove.
10628 (mmix_unique_section): Remove.
10629 * config/mmix/mmix-protos.h: Update.
10630
10631 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
10632 (SELECT_SECTION): Move ...
10633 * config/pa/pa.c (pa_select_section): ... here.
10634 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
10635
10636 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
10637 from rs6000_select_section and make static.
10638 (rs6000_elf_unique_section): Similarly.
10639 (rs6000_xcoff_select_section): From xcoff.h.
10640 (rs6000_xcoff_unique_section): Likewise.
10641 * config/rs6000/rs6000-protos.h: Update.
10642 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
10643 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
10644 * config/rs6000/xcoff.h: Likewise.
10645
10646 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
10647 (SELECT_SECTION): Move ...
10648 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
10649
10650 * config/v850/v850.h (SELECT_SECTION): Move ...
10651 * config/v850/v850.c (v850_select_section): ... here.
10652 (TARGET_ASM_SELECT_SECTION): New.
10653
10654 * config/vax/vms.h (SELECT_SECTION): Move ...
10655 * config/vax/vax.c (vms_select_section): ... here.
10656 (TARGET_ASM_SELECT_SECTION): New.
10657
10658 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
10659 for the target hooks.
10660
eaeb23a7
NC
106612002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
10662
10663 * config/arm/arm.c (emit_multi_reg_push): Do not set
10664 RTX_FRAME_RELATED_P on the SEQUENCE.
10665
a00fe19f
RH
106662002-05-16 Richard Henderson <rth@redhat.com>
10667
10668 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
10669 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
10670
5ccff482
RH
106712002-05-16 Richard Henderson <rth@redhat.com>
10672
10673 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
10674
068d7739
RH
10675 * config/ia64/ia64.c (saveable_obstack): Do not declare.
10676
0b17ab2f
RH
106772002-05-16 Richard Henderson <rth@redhat.com>
10678
10679 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
10680 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
10681 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
10682 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
10683 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
10684 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
10685 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
10686 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
10687 Revert "Basic block renumbering removal", and two followup patches.
10688
8ae86b3c
JT
106892002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
10690
10691 * lcm.c (optimize_mode_switching): Revert previous change.
10692
4e9f27af
ZD
106932002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10694
10695 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
10696 with only extant block numbers.
10697
3cdc1dbc
JT
106982002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
10699
10700 * lcm.c (optimize_mode_switching): Fix typo.
10701
fbfb3b09
ZD
107022002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10703
10704 * flow.c (calculate_global_regs_live): Queue blocks in program order.
10705
b4b0fb02
RO
107062002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10707
10708 * doc/install.texi (Configuration): Document PWDCMD.
10709
63b827c5
DJ
107102002-05-16 Dale Johannesen <dalej@apple.com>
10711
10712 * combine.c (cant_combine_insn_p): Reenable combinations
10713 involving hard regs unless CLASS_LIKELY_SPILLED_P.
10714
748d29c1
NB
107152002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
10716
10717 * c-common.c (cb_register_builtins): Handle more built-ins
10718 here rather than in gcc.c specs.
10719 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
10720 (cpp_options): Pass -O flags even when only preprocessing.
10721 * toplev.c (set_fast_math_flags): New prototype.
10722 (fast_math_flags_set_p): New.
10723 (set_no_fast_math_flags): Remove.
10724 (decode_f_option): Update.
10725 * toplev.h (set_fast_math_flags): Update.
10726 (fast_math_flags_set_p): New.
10727 (set_no_fast_math_flags): Remove.
10728config:
10729 * c4x/c4x.c (c4x_override_options): Update.
10730
5279d739
ZW
107312002-05-16 Zack Weinberg <zack@codesourcery.com>
10732
10733 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
10734 Default-define here.
10735 (builtin_define_with_value): Can now wrap the expansion in
10736 quotation marks if such is wanted.
a00fe19f 10737 (cb_register_builtins): Update calls to builtin_define_with_value.
5279d739
ZW
10738 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
10739 here.
10740 (c_common_init): Set options->stdc_0_in_system_headers.
10741 * c-lex.h: Update prototype of builtin_define_with_value.
10742 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
10743 and REGISTER_PREFIX.
10744
10745 * cppinit.c (VERS, ULP, C, X): Kill.
10746 (builtin_array): Remove entries for __VERSION__,
10747 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
10748 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
10749 a constant.
10750 (init_builtins): Kill off a bunch of now-dead code.
10751 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
10752 -fno-leading-underscore.
10753 (cpp_handle_option): Remove code to set user_label_prefix.
10754 (cpp_post_options): Likewise.
10755
10756 * cpplib.h (struct cpp_options): Remove user_label_prefix.
10757 (stdc_0_in_system_headers): New.
10758 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
10759 stdc_0_in_system_headers) too to decide the value of __STDC__.
10760
10761 * tradcpp.c (user_label_prefix): Kill.
a00fe19f 10762 (main): Remove code handling -f(no-)leading-underscore.
5279d739
ZW
10763 (initialize_builtins): Don't define __REGISTER_PREFIX__
10764 or __USER_LABEL_PREFIX__.
10765 (install_value): Wrap compound statement in dummy loop so the
10766 macro works properly in an if statement.
10767
10768
62e6ca55
JJ
107692002-05-16 Janis Johnson <janis187@us.ibm.com>
10770
10771 * loop.h (struct loop_info): Add member has_prefetch.
10772 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
10773 (prescan_loop): Initialize has_prefetch.
10774 (struct prefetch_info): Change prefetch_in_loop and
10775 prefetch_before_loop from bit fields to ints.
10776 (emit_prefetch_instructions): Several small fixes.
10777 (check_dbra_loop): Don't reverse loop that uses prefetch.
10778
1e6347d8
RO
107792002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10780
10781 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
10782 * configure.in: Likewise.
10783 * fixinc/check.tpl: Likewise.
10784 * fixinc/fixinc.dgux: Likewise.
10785 * fixinc/fixinc.svr4: Likewise.
10786 * fixinc/fixinc.winnt: Likewise.
10787 * fixinc/fixincl.sh: Likewise.
10788 * fixproto: Likewise.
10789 * configure: Regenerate.
10790
355e4ec4
ZD
107912002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10792
10793 Basic block renumbering removal:
10794 * basic_block.h (struct basic_block_def): Renamed index to sindex,
10795 added prev_bb and next_bb fields.
10796 (n_basic_blocks): Renamed to num_basic_blocks.
10797 (last_basic_block): New, index of last basic block.
10798 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
10799 traversing basic block chain.
10800 (BLOCK_NUM): index -> sindex.
10801 (create_basic_block_structure, create_basic_block): Declaration changed.
10802 (debug_num2bb): Declare.
10803 (expunge_block_nocompact): Declaration removed.
10804 (link_block, unlink_block, compact_blocks): Declare.
10805 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
10806 * cfg.c (entry_exit_blocks): Initialize new fields.
10807 (clear_edges, alloc_block, expunge_block, cached_make_edge,
10808 redirect_edge_pred, dump_flow_info, dump_edge_info,
10809 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
10810 free_aux_for_edges): Modified.
10811 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
10812 (expunge_block_nocompact): Removed.
10813 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
10814 find_unreachable_blocks, create_edge_list, print_edge_list,
10815 verify_edge_list, flow_edge_list_print, remove_fake_successors,
10816 remove_fake_edges, flow_reverse_top_sort_order_compute,
10817 flow_depth_first_order_compute, flow_preorder_transversal_compute,
10818 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
10819 flow_dfs_compute_reverse_execute): Modified.
10820 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
10821 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
10822 Modified.
10823 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
10824 merge_blocks_move_predecessor_nojumps,
10825 merge_blocks_move_successor_nojumps, merge_blocks,
10826 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
10827 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
10828 * cfglayout.c (skip_insns_after_block, label_for_bb,
10829 record_effective_endpoints, scope_to_insns_finalize,
10830 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
10831 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
10832 cfg_layout_duplicate_bb): Modified.
10833 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
10834 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
10835 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
10836 flow_loops_find, flow_loop_outside_edge_p): Modified.
10837 * cfgrtl.c (create_basic_block_structure, create_basic_block,
10838 flow_delete_block, compute_bb_for_insn, split_block,
10839 try_redirect_by_replacing_jump, redirect_edge_and_branch,
10840 force_nonfallthru_and_redirect, tidy_fallthru_edge,
10841 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
10842 commit_edge_insertions, commit_edge_insertions_watch_calls,
10843 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
10844 purge_all_dead_edges): Modified.
10845 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
10846 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
10847 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
10848 Modified.
10849 * conflict.c (conflict_graph_compute): Modified.
10850 * df.c (FOR_ALL_BBS): Removed.
10851 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
10852 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
10853 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
10854 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
10855 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
10856 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
10857 * final.c (compute_alignments, final_scan_insn): Modified.
10858 * flow.c (verify_local_live_at_start, update_life_info,
10859 update_life_info_in_dirty_blocks, free_basic_block_vars,
10860 delete_noop_moves, calculate_global_regs_live,
10861 initialize_uninitialized_subregs, allocate_bb_life_data,
10862 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
10863 mark_used_reg, count_or_remove_death_notes): Modified.
10864 * function.c (thread_prologue_and_epilogue_insns): Modified.
10865 * gcse.c (struct null_pointer_info): Change typo of current_block
10866 to basic_block.
10867 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
10868 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
10869 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
10870 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
10871 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
10872 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
10873 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
10874 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
10875 pre_delete, one_pre_gcse_pass, compute_transpout,
10876 invalidate_nonnull_info, delete_null_pointer_checks_1,
10877 free_code_hoist_mem, compute_code_hoist_vbeinout,
10878 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
10879 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
10880 compute_store_table, build_store_vectors, insert_insn_start_bb,
10881 insert_store, replace_store_insn, free_store_memory, store_motion):
10882 Modified.
10883 * global.c (global_alloc, global_conflicts, mark_elimination,
10884 build_insn_chain): Modified.
10885 * graph.c (print_rtl_graph_with_bb): Modified.
10886 * haifa-sched.c (sched_init): Modified.
10887 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
10888 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
10889 if_convert): Modified.
10890 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
10891 compute_insert_delete, pre_edge_lcm, compute_available,
10892 compute_farthest, compute_nearerout, compute_rev_insert_delete,
10893 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
10894 Modified.
10895 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
10896 * loop.c (loop_dump_aux): Modified.
10897 * predict.c (combine_predictions_for_insn, estimate_probability,
10898 last_basic_block_p, process_note_prediction, process_note_predictions,
10899 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
10900 expensive_function_p, estimate_bb_frequencies,
10901 compute_function_frequency): Modified.
10902 * print-rtl.c (print_rtx): Modified.
10903 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
10904 get_exec_counts, compute_branch_probabilities, compute_checksum,
10905 branch_prob, find_spanning_tree): Modified.
10906 * recog.c (split_all_insns, peephole2_optimize): Modified.
10907 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
10908 convert_regs_1, convert_regs_2, convert_regs): Modified.
10909 * regclass.c (scan_one_insn, regclass): Modified.
10910 * regmove.c (mark_flags_life_zones, regmove_optimize,
10911 combine_stack_adjustments): Modified.
10912 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
10913 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
10914 * reorg.c (dbr_schedule): Modified.
10915 * resource.c (find_basic_block, init_resource_info): Modified.
10916 * sbitmap.c (sbitmap_intersection_of_succs,
10917 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
10918 sbitmap_union_of_preds): Modified.
10919 * sched-deps.c (init_dependency_caches): Modified.
10920 * sched-ebb.c (schedule_ebbs): Modified.
10921 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
10922 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
10923 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
10924 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
10925 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
10926 ssa_const_prop): Modified.
10927 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
10928 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
10929 * ssa.c (remove_phi_alternative, find_evaluations,
10930 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
10931 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
10932 make_regs_equivalent_over_bad_edges,
10933 make_equivalent_phi_alternatives_equival,
10934 compute_conservative_reg_partition,
10935 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
10936 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
10937 Modified.
10938
5a566bed
MM
109392002-05-16 Mark Mitchell <mark@codesourcery.com>
10940
10941 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
10942
48f6efae
NC
109432002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
10944
10945 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
10946 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
10947 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
10948 calling CONSTANT_POOL_ADDRESS_P.
10949 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
10950 to decide whether to define __arm__ or __thumb.
355e4ec4 10951 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
48f6efae
NC
10952 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
10953
b166fadd
NB
109542002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
10955
10956 * config/arc/arc.h (CPP_PREDEFINES): Remove.
10957 (CPP_SPEC): Update.
10958 (TARGET_CPU_CPP_BUILTINS): New.
10959
601328bb
NB
109602002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
10961
10962 * cpphash.h (cpp_macro): Move here, and make expansion a union.
10963 * cppmacro.c (cpp_macro): Remove.
10964 (enter_macro_context, replace_args, warn_of_redefinition,
10965 _cpp_create_definition, cpp_macro_definition): Update.
10966
ff48be5c
JM
109672002-05-16 Jason Merrill <jason@redhat.com>
10968
10969 * config/mips/mips.c (mips_output_external): Don't do sdata
10970 optimization for a variable with DECL_COMDAT set.
10971
805c42ba
AH
109722002-05-15 Aldy Hernandez <aldyh@redhat.com>
10973
355e4ec4
ZD
10974 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
10975 Cleanups for accepting modifiers on pointers.
10976 Fix predicate typos.
10977 Allow long pointers as well as int pointers.
805c42ba 10978
34fb9ba5
RH
109792002-05-15 Richard Henderson <rth@redhat.com>
10980
10981 * varasm.c (merge_weak): Remove special case for extern and common.
10982
62e118f5
MH
109832002-05-15 Matt Hiller <hiller@redhat.com>
10984
10985 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
355e4ec4 10986 XFAILing.
62e118f5
MH
10987 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
10988 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
10989 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
10990 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
10991 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
10992 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
10993
fefac463
AH
109942002-05-15 Aldy Hernandez <aldyh@redhat.com>
10995
355e4ec4 10996 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
fefac463 10997
5f004351
AH
109982002-05-15 Aldy Hernandez <aldyh@redhat.com>
10999
355e4ec4
ZD
11000 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
11001 ("altivec_mfvscr"): Read from VSCR.
11002
11003 Add vscr sets for the following insns: altivec_vctuxs,
11004 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
11005 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
11006 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
11007 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
11008 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
11009 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
11010 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
11011 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
11012 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
11013 altivec_vsum2sws, altivec_vsumsws.
11014
11015 * config/rs6000/rs6000.h: Add VSCR fixed register.
11016 (CALL_REALLY_USED_REGISTERS): Add vscr.
11017 (CALL_USED_REGISTERS): Same.
11018 (FIXED_REGISTERS): Same.
11019 (REG_ALLOC_ORDER): Same.
11020 (reg_class): Add VSCR_REGS.
11021 (REG_CLASS_NAMES): Same.
11022 (REG_CLASS_CONTENTS): Same.
11023 (VSCR_REGNO): New.
11024 (REGISTER_NAMES): Add vscr.
11025 (DEBUG_REGISTER_NAMES): Same.
11026 (ADDITIONAL_REGISTER_NAMES): Same.
11027 (FIRST_PSEUDO_REGISTER): Increment.
11028 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
5f004351 11029
033afd11
RH
110302002-05-15 Jakub Jelinek <jakub@redhat.com>
11031
11032 * fold-const.c (fold): Fix a typo.
11033
110342002-05-15 Eric Botcazou <ebotcazou@multimania.com>
11035
11036 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
11037 comparison against the highest or lowest integer value before
11038 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
11039 transformation and that of an unsigned comparison against 0
11040 right after.
11041
14285ace
RH
110422002-05-15 Richard Henderson <rth@redhat.com>
11043
11044 * varasm.c (merge_weak): Error for any weakening after definition.
11045 Adjust weakening after use warning to catch more cases.
11046 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
11047 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
11048
194734e9
JH
11049Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
11050
11051 * invoke.texi (-malign-double): Re-add lost warning.
11052
11053 * i386-protos.h (x86_output_mi_thunk): Declare.
11054 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
11055 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
11056
11057 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
11058 when flag_asynchronous_unwind_tables is set.
11059
11060 * flags.h (flag_reorder_functions): Declare.
11061 * function.c (prepare_function_start): Initialize frequnecy.
14285ace 11062 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
194734e9
JH
11063 * Makefile.in (predict.o): Add dependency on target.h and params.h
11064 * defaults.h (HOT_TEXT_SECTION_NAME,
11065 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
11066 * predict.c (choose_function_section): New function.
11067 (estimate_bb_frequencies): Use it.
11068 * toplev.c (flag_reorder_functions): New global variable.
11069 (lang_independent_options): New.
11070 (parse_options_and_default_flags): Set.
11071 * varasm.c (assemble_start_function): Bypass functdion alignment
11072 for never executed functions.
11073 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
11074 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
11075 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
11076 Document.
11077
11078 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
11079
11080 * predict.c: Inlude profile.h
11081 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
11082 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
11083 Use the information about maximal counter in the program.
11084
11085 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
11086
11087 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
11088 probably_never_executed_bb_p): New functions.
11089 * cfgcleanup.c (outgoing_edges_match): Use them.
11090 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
11091 (maybe_hot_bb_p, probably_cold_bb_p,
11092 probably_never_executed_bb_p): New functions.
11093
11094 * function.h (function): Add new field function_frequency.
11095 * predict.c (compute_function_frequency): New function.
11096 (estimate_probability): Call it.
11097
61ad9a34
JJ
110982002-03-09 Jakub Jelinek <jakub@redhat.com>
11099
11100 PR optimization/5172, optimization/5200
11101 * gcse.c (gcse_main): Disable store_motion.
11102
a11eba95
ZW
111032002-05-14 Zack Weinberg <zack@codesourcery.com>
11104
11105 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
11106 (c_common_nodes_and_builtins): Use it.
11107 (builtin_define_with_value): New function.
11108 (cb_register_builtins): Define __SIZE_TYPE__,
11109 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
11110 using builtin_define_with_value. Use consistent notation when
11111 defining __GXX_WEAK__.
11112 (WCHAR_TYPE_SIZE): Don't redefine.
11113 (combine_strings): Don't use WCHAR_TYPE_SIZE.
11114
11115 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
11116 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
11117 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
11118 * tradcpp.c (initialize_builtins): Likewise.
11119 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
11120
11121 * c-lex.h (builtin_define_with_value): Prototype.
11122 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
11123 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
11124 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
11125
11126 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
11127 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
11128 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
11129 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
11130 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
11131 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
11132 config/sparc/sol2-bi.h, config/sparc/sparc.h:
11133 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
11134 to __SIZE_TYPE__ etc from all spec strings. When this makes
11135 extra specs empty, delete them.
11136
1c31ecf6
JDA
111372002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
11138
11139 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
11140 for PA8000 or generating dwarf2 call frame information.
11141 (output_call): Remove DO_FRAME_NOTES check from return pointer
11142 optimization.
11143 (following_call): Return 0 when scheduling for PA8000 or generating
11144 dwarf2 call frame information. Revise comment.
11145
ac9cfada
NB
111462002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
11147
11148config/alpha:
11149 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
11150 and __IEEE_FP_INEXACT as appropriate.
11151 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
11152 (CPP_SPEC): Remove ieee defines.
11153 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
11154
9b690711
RH
111552002-05-14 Richard Henderson <rth@redhat.com>
11156
11157 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
11158 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
11159
e6471be6
NB
111602002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
11161
e6471be6
NB
11162 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
11163 (CPP_SPEC): Update.
11164 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
11165 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
11166 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
11167 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
11168 (EXTRA_SPECS): Update.
11169 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
11170 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
11171 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
11172 define TARGET_OS_CPP_BUILTINS if necessary.
11173
e5f5feea
NB
111742002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
11175
11176 * gcc.c (cpp_options): Must pass -m* and -f* options
11177 to the front end even when only preprocessing.
11178 (cc1_options): Remove redundant -lang-c.
11179 * tradcpp.c (main): Ignore -m options.
11180objc:
11181 * lang-specs.h: Similarly.
11182
317638a8
VM
111832002-05-14 Vladimir Makarov <vmakarov@redhat.com>
11184
11185 * genautomata.c (transform_3): Add code for transformation
11186 `(A,B,...)+C -> A+C,B,...'.
11187
4d604303
JH
11188Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
11189
11190 * final.c (end_final): Do not output profile_arcs constructor, when
11191 no functions are instrumented.
11192
b18b06ed
JH
11193Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
11194
11195 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
11196
a12f97f0
GP
111972002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11198
11199 * doc/install.texi: Remove special markup originally required for
11200 HTML generation with texi2html.
11201
c1ae3eb4
AS
112022002-05-14 Andreas Schwab <schwab@suse.de>
11203
11204 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
11205 SELECT_SECTION.
11206 (UNIQUE_SECTION): Define to get small data correctly.
1b18fc2c
AS
11207
11208 * varasm.c (resolve_unique_section): Add third parameter
11209 flag_function_or_data_sections and use it instead of
11210 flag_function_sections.
11211 (assemble_start_function): Pass flag_function_sections.
11212 (asm_emit_uninitialised): Pass flag_data_sections.
11213 (assemble_variable): Likewise.
11214
8ee41eaf
RH
112152002-05-14 Richard Henderson <rth@redhat.com>
11216
11217 * config/i386/i386.md: Use define_constants for unspec numbers.
11218 * config/i386/i386.c: Likewise.
11219
e6471be6
NB
112202002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
11221
11222 * doc/contrib.texi: Update my entry.
11223
c297b764
MM
112242002-05-13 Mark Mitchell <mark@codesourcery.com>
11225
11226 * fixinc/inclhack.def (winidss_valist): Limit applicability.
11227 * fixinc/fixincl.x: Regenerated.
11228 * fixinc/tests/base/math.h: Update.
11229 * fixinc/tests/base/testing.h: Likewise.
11230
0b42c8f8
ZW
112312002-05-13 Zack Weinberg <zack@codesourcery.com>
11232
11233 * genattr.c (gen_attr): Don't emit a comma after the last
11234 enumerator.
11235
546c093e
RH
112362002-05-13 Richard Henderson <rth@redhat.com>
11237
11238 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
11239 by non-local gotos.
11240 * recog.c (peephole2_optimize): Likewise.
11241
85be8c2d
AP
112422002-05-13 Andris Pavenis <pavenis@lanet.lv>
11243
11244 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
11245 input to O_BINARY.
11246
765b8f90
JL
112472002-05-13 Jeffrey A Law (law@redhat.com)
11248
fe4b3c79
JL
11249 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
11250 Update prototype and callers.
11251 (propagate_one_insn): Stack pointer adjustments kill MEMs on
11252 the mem_set_list which reference the stack pointer, as do
11253 calls to constant functions as they may clobber outgoing
11254 argument space.
11255
16133d00
JL
11256 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
11257
765b8f90
JL
11258 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
11259 (ia32_multipass_dfa_lookahead): New function.
11260
63826d5b
NB
112612002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
11262
11263 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
11264 (translate_options): Remove 'V'.
11265 (process_command): Similarly.
11266doc:
11267 * invoke.texi: Remove documentation of 'V'.
11268
dcb41ced
UW
112692002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
11270
11271 * config/s390/linux.h: Revert 2002-04-22 changes.
11272
8dfea428
SM
112732002-05-13 Scott Marks <SMarks@mobile-mind.com>
11274
11275 * config/fr30/fr30.md: Only allow splits of immediate loads
11276 if the destination is a register.
11277
12a41c22
NB
112782002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
11279
11280 * Makefile.in (c-common.o, cppinit.o): Update.
11281 * c-common.c: Include except.h.
11282 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
11283 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
11284 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
11285 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
11286 CPP_PREDEFINES): Handle here.
11287config:
11288 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
11289 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
11290 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
11291 TARGET_OS_CPP_BUILTINS.
11292 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
11293 (CPP_SPEC, EXTRA_SPECS): Update.
11294 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
11295 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
11296 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
11297 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
11298 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
11299doc:
11300 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
11301 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
11302
5692c7bc
ZW
113032002-05-12 Zack Weinberg <zack@codesourcery.com>
11304
11305 * emit-rtl.c (global_rtl): Update comment.
11306 (const_double_htab, const_double_htab_hash,
11307 const_double_htab_hash, lookup_const_double): New.
11308 (const_int_htab_hash, const_int_htab_eq): Remove const
11309 qualifiers, which cause tons of warnings with RTL checking on.
11310 (gen_rtx_CONST_DOUBLE): Deleted.
11311 (const_double_from_real_value): New function - bears some
11312 resemblance to the former immed_real_const_1.
11313 (immed_double_const): Moved here from varasm.c and
11314 simplified.
11315 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
11316 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
11317 (gen_rtx): Use immed_double_const.
11318 (init_emit_once): Initialize the const_double_htab. Use
11319 REAL_VALUE_FROM_INT where possible. Can now use
11320 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
11321 * varasm.c (struct varasm_status): Remove x_const_double_chain.
11322 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
11323 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
11324 (init_varasm_status, mark_varasm_status): Don't touch
11325 x_const_double_chain.
11326
11327 * output.h: Delete prototype for clear_const_double_mem.
11328 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
11329 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
11330 const_double_from_real_value, not immed_real_const_1, and use
11331 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
11332 CONST_DOUBLE_ATOF.
11333 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
11334 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
11335 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
11336 (gen_rtx_REG): Second arg is unsigned.
11337
11338 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
11339 (excluded_rtx): New, return true for CONST_DOUBLE.
11340 (genmacro): Write nothing for excluded codes.
11341 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
11342 * expr.c (expand_expr): Likewise.
11343 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
11344 CONST_DOUBLE_CHAIN.
11345 * toplev.c (rest_of_compilation): Don't call
11346 clear_const_double_mem.
11347
11348 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
11349 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
11350 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
11351 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
11352 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
11353 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
11354 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
11355 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
11356
31397a7b
KG
113572002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11358
11359 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
11360
1b70d38a
TT
113612002-05-12 Tom Tromey <tromey@redhat.com>
11362
11363 * tree.h (copy_node): Don't mention TREE_PERMANENT.
11364
9a5834ae
ZW
113652002-05-12 Zack Weinberg <zack@codesourcery.com>
11366
11367 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
11368 (scan_comma_elt): New function. Accepts whitespace in comma lists.
11369 * gensupport.h: Prototype new routines.
11370 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
11371 use of printf.
11372 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
11373 (next_comma_elt): Use scan_comma_elt.
11374
11375 * config/i386/i386.md: Use new attribute notation to break up
11376 long lines in define_attr forms.
11377
51286de6
RH
113782002-05-12 Richard Henderson <rth@redhat.com>
11379
11380 * expr.c (compress_float_constant): New.
11381 (emit_move_insn): Use it.
11382 (float_extend_from_mem): New.
11383 (init_expr_once): Initialize it.
11384 * real.c (exact_real_truncate): New.
11385
11386 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
11387 dropped into memory; penalize for size.
11388 (RTX_COSTS): FLOAT_EXTEND is free.
11389 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
11390 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
11391
6412341e
RH
113922002-05-12 Richard Henderson <rth@redhat.com>
11393
11394 * profile.h (profile_info): Add missing extern to declaration.
11395 * profile.c (profile_info): Define it.
11396
12877f09
JDA
113972002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
11398
11399 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
11400 used for DImode and TImode.
11401
387f9e32
NB
114022002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
11403
11404 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
11405 fake a newline.
11406
e1a0f69c
ZW
114072002-05-11 Zack Weinberg <zack@codesourcery.com>
11408
11409 * config/rs6000/rs6000.c (rs6000_default_long_calls,
11410 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
11411 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
11412 (rs6000_override_options): Handle -m(no-)longcall.
11413 (init_cumulative_args, output_mi_thunk): Check for both
11414 longcall and shortcall attributes on the function.
11415 (rs6000_attribute_table): Add "shortcall".
11416 (rs6000_handle_longcall_attribute): Update comment.
11417 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
11418 altivec_expand_ternop_builtin): Add default clauses to switches
11419 to silence warnings.
11420
11421 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
11422 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
11423 (TARGET_OPTIONS): Add longcall and no-longcall.
11424
11425 * config/rs6000/rs6000.md (call_nonlocal_sysv,
11426 call_value_nonlocal_sysv): Split by alternatives. One pair
11427 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
11428 the call cookie. The other pair accepts only LR/CTR and has
11429 no restriction.
11430
11431 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
11432 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
11433 tmake_file.
11434 * config/rs6000/rs6000-c.c: New file.
11435 * config/rs6000/t-rs6000-c-rule: New file.
11436 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
11437 Prototype rs6000_pragma_longcall.
11438
11439 * doc/extend.texi: Document shortcall attribute.
11440 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
11441
9c64026d
JDA
114422002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
11443
11444 * reorg.c (dbr_schedule): Remove unnecessary test.
11445
6c81a490
JH
11446Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
11447
11448 * i386.md (testsi to testqi spliters): New.
11449
11450 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
11451
11452 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
11453
11454 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
11455
11456 * basic-block.h: New flag EDGE_CAN_FALLTHRU
11457 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
11458 that can be made fallthru.
11459
11460 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
11461
11462 * cfglayout.c (cleanup_unconditional_jumps): New static function.
11463 (cfg_layout_initialize): Use it.
4c476cf3 11464
e4447d94
MM
114652002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
11466
11467 * config/avr/avr.c (avr_mcu_types): Update supported devices.
11468 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11469 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11470
3a538a66
KH
114712002-05-11 Kazu Hirata <kazu@cs.umass.edu>
11472
11473 * dbxout.c: Fix formatting.
11474 * dependence.c: Likewise.
11475 * df.c: Likewise.
11476 * diagnostic.c: Likewise.
11477 * doloop.c: Likewise.
11478 * dominance.c: Likewise.
11479 * doschk.c: Likewise.
11480 * dwarf2asm.c: Likewise.
11481 * dwarf2out.c: Likewise.
11482 * dwarfout.c: Likewise.
11483
2292e8fc
RH
114842002-05-10 Richard Henderson <rth@redhat.com>
11485
11486 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
11487 Convert integers constants as needed. Replace "nwords" field with
11488 "sizeof_bb".
11489 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
11490 * function.h: Fix typo in comment.
11491 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
11492
dbfb1116
RS
114932002-05-10 Roger Sayle <roger@eyesopen.com>
11494
11495 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
11496 into the equivalent (signed char)c > 0.
11497
79a497cd
JJ
114982002-05-10 Janis Johnson <janis187@us.ibm.com>
11499
11500 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
11501 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
11502 (struct prefetch_info): Fix spelling of member bytes_accessed.
11503 (emit_prefetch_instructions): Make dump messages more regular;
11504 restructure code to add more dump messages; use new macros for
11505 heuristics. (There are no code generation changes in any of this).
11506
6c45cb0d
DM
115072002-05-10 David S. Miller <davem@redhat.com>
11508
7440af14
DM
11509 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
11510 (struct rtx_def): Update unchanging flag comment.
11511 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
11512 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
11513 to be handled to INSN too.
11514 (dbr_schedule): Likewise.
11515 * resource.c (next_insn_no_annul): Likewise.
11516
6c45cb0d
DM
11517 * cse.c (rtx_cost): Remove multiplication by power of 2 special
11518 casing.
11519
29f21e4f
GP
115202002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11521
11522 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
11523 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
11524 (possibly) work around broken /bin/sh.
11525
e4ba88da
RO
115262002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11527
11528 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
11529 . as N64/N32 libgcc_s.so subdirs.
11530
4f4778ee
DM
115312002-05-10 David S. Miller <davem@redhat.com>
11532
11533 * config/sparc/sparc.md: Use define_constants for unspec numbers.
cf40ea15
DM
11534
11535 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
11536 more accurately.
11537 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
11538 comment.
11539 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
11540 * doc/rtl.texi: Document these macros more accurately.
11541 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
11542 JUMP_INSNs and CALL_INSNs.
11543 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
11544 or INSN_FROM_TARGET_P if the code is appropriate.
11545
1a499b92
MM
115462002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
11547
11548 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
11549 before using SYMBOL_REF_FLAG (addr).
11550
11551 * config/avr/avr-protos.h (avr_io_address_p): Declare.
11552 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
11553 Make non-static. Update all callers.
11554 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
11555 New insns to clear/set/test a single bit in I/O address space.
11556
65212b66
KG
115572002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11558
11559 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
11560
3df89291
NB
115612002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
11562
11563 * Makefile.in: Update.
11564 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
11565 builtin_define_std): New.
11566 (c_common_init): Register CPP builtins callback.
11567 * c-common.h (flag_iso, flag_undef): New.
11568 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
11569 * c-lex.c: Don't include target.h.
11570 (cb_register_builtins): Move to c-common.c.
11571 (init_c_lex): Don't register hook here.
11572 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
11573 (cpp_define, cpp_assert): Remove.
11574 * gcc.c (cc1_options): Pass -undef to front end.
11575 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
11576 (TARGET_INITIALIZER): Update.
11577 * target.h (struct cpp_reader): Don't predeclare.
11578 (struct gcc_target): Remove cpp builtin hook.
11579 * tree.c (default_register_cpp_builtins): Remove.
11580doc:
11581 * tm.texi: Update.
11582
32fa4565
NB
115832002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
11584
11585 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
11586
23357c55
RO
115872002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11588
11589 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
11590 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
11591
5aa26af0
JJ
115922002-05-09 Jakub Jelinek <jakub@redhat.com>
11593
11594 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
11595 * config/sparc/libgcc-sparc-glibc.ver: New file.
11596 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
11597 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
11598
2937267b
JJ
115992002-05-09 Jakub Jelinek <jakub@redhat.com>
11600
11601 PR target/6429
11602 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
11603 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
11604 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
11605 base multilibs.
11606 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
11607 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
11608 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
11609 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
11610
086c0f96
RH
116112002-05-09 Richard Henderson <rth@redhat.com>
11612
11613 * config/ia64/ia64.md: Use define_constants for unspec numbers.
11614 * config/ia64/ia64.c: Likewise.
11615
a8b4881f
RS
116162002-05-09 Richard Sandiford <rsandifo@redhat.com>
11617
11618 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
11619 (save_restore_insns): Likewise.
11620 (mips_expand_prologue, mips_expand_epilogue): Update callers.
11621 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
11622
243e5500 11623Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
890d52e8 11624
af2728a4
JL
11625 * athlon.md, k6.md, pentium.md, ppro.md): New files.
11626 * i386.md: Move scheduling information into new files.
11627
890d52e8
JL
11628 * i386.md (type attribute): Add "rotate" for rotate insns.
11629 (rotate insns): Set type to "rotate".
11630 (various attributes and function units): Treat rotate like shift.
11631 (pent_pair attribute): Only rotates by one bit position are
11632 pairable.
11633 (sbb insns): Explicitly set pent_pair attribute on a couple
11634 that were missing it.
11635
f78ec36a
R
11636Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
11637
11638 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
11639 make sure that buffer starts on odd word address.
11640 (sh_va_arg): Skip odd fp registers when reading a double precision
11641 value.
11642
ff431459
NB
116432002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
11644
11645 * tree.h (preserve_data, object_permanent_p, type_precision):
11646 Remove.
11647
c3bf3e6e
NB
116482002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
11649
11650 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
11651 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
11652doc:
11653 * cpp.texi: Update for removal of obsolete features.
11654
02263a8a
JH
11655Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
11656 Jeffrey A Law (law@redhat.com)
11657
11658 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
11659 the DFA interface for Pentium processors.
11660 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
11661 (attr_pent_pair, ix86_pent_find_pair): Remove.
11662 (ix86_sched_reorder_pentium): Remove.
11663 (ix86_sched_reorder): Remove reordering for Pentium.
11664 * i386.md (Pentium scheduling): Rewrite using DFA description.
11665
3e638a90
JH
11666Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
11667
11668 * cfganal.c (can_fallthru): Fix fast path.
11669 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
11670 with edges to the next block.
11671
b7c9bf28
JH
11672Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
11673 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
11674
11675 * final.c (end_final): Use C trees to output data structures for profiling.
11676
11677 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5692c7bc
ZW
11678 (profile.o): New dependency profile.h
11679 (final.o): New dependency profile.h
11680 * profile.h: New file. New global structure profile_info.
11681 * final.h (count_edges_instrumented_now): Declare.
11682 (current_function_cfg_checksum): Declare.
11683 (function_list): New structure.
11684 (functions_head, functions_tail): New static variables.
11685 (end_final): Emits more data, removed some -ax stuff.
11686 (final): Stores function names and chcksums.
11687 * gcov-io.h (__write_gcov_string): New function.
11688 (__read_gcov_string): New function.
11689 * gcov.c (read_profile): New function.
11690 (create_program_flow_graph): Uses read_profile instead of reading
b7c9bf28 11691 da_file.
5692c7bc
ZW
11692 (read_files): Removed da_file checking, it's done by read_profile now.
11693 * libgcc2.c (bb_function_info): New structure.
11694 (bb): New field in structure, removed some -ax stuff.
11695 (__bb_exit_func): Changed structure of da_file.
11696 * profile.c (count_edges_instrumented_now): New global variable.
11697 (current_function_cfg_checksum): New global variable.
11698 (max_counter_in_program): New global variable.
11699 (get_exec_counts): New function.
11700 (compute_checksum): New function.
11701 (instrument_edges): Sets count_edges_instrumented_now.
11702 (compute_branch_probabilities): Uses get_exec_counts instead of
b7c9bf28 11703 reading da_file.
5692c7bc
ZW
11704 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
11705 (init_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 11706 now.
5692c7bc 11707 (end_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 11708 now.
5692c7bc 11709 * gcov.texi: Updated information about gcov file format.
b7c9bf28 11710
786de7eb
KH
117112002-05-09 Kazu Hirata <kazu@cs.umass.edu>
11712
11713 * sbitmap.c: Fix formatting.
11714 * scan.c: Likewise.
11715 * scan-decls.c: Likewise.
11716 * sched-deps.c: Likewise.
11717 * sched-ebb.c: Likewise.
11718 * sched-rgn.c: Likewise.
11719 * sched-vis.c: Likewise.
11720 * sdbout.c: Likewise.
11721 * sibcall.c: Likewise.
11722 * simplify-rtx.c: Likewise.
11723 * ssa.c: Likewise.
11724 * ssa-ccp.c: Likewise.
11725 * ssa-dce.c: Likewise.
11726 * stmt.c: Likewise.
11727 * stor-layout.c: Likewise.
11728 * stringpool.c: Likewise.
11729
b7764693
DM
117302002-05-09 David S. Miller <davem@redhat.com>
11731
11732 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
11733
4e7d5d27
DM
117342002-05-07 David S. Miller <davem@redhat.com>
11735
11736 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
11737 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
11738 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
11739 library implementation clobbers the output before the inputs
11740 are fully consumed, use stack temporary for the output.
11741
f979570e
JT
117422002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
11743
11744 * config/netbsd.h (CPP_SPEC): Remove.
11745 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
11746 * config/i386/netbsd.h (CPP_SPEC): Define.
11747 * config/ns32k/netbsd.h (CPP_SPEC): Define.
11748 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
11749 * config/sparc/netbsd.h (CPP_SPEC): Define.
11750 * config/vax/netbsd.h (CPP_SPEC): Define.
11751
a6a2274a
KH
117522002-05-08 Kazu Hirata <kazu@cs.umass.edu>
11753
11754 * read-rtl.c: Fix formatting.
11755 * real.c: Likewise.
11756 * recog.c: Likewise.
11757 * regclass.c: Likewise.
11758 * regmove.c: Likewise.
11759 * reg-stack.c: Likewise.
11760 * reload1.c: Likewise.
11761 * reload.c: Likewise.
11762 * resource.c: Likewise.
11763 * rtlanal.c: Likewise.
11764 * rtl.c: Likewise.
11765 * rtl-error.c: Likewise.
11766
461b48d5
JDA
117672002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
11768
11769 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
11770 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
11771
95d075ff
BS
117722002-05-08 Bernd Schmidt <bernds@redhat.com>
11773
11774 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
11775 use __SSE2__ macro instead.
11776 * config/i386/xmmintrin.h: Likewise.
11777
2d4cc6a7
JJ
117782002-05-08 Janis Johnson <janis187@us.ibm.com>
11779
11780 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
11781 and use it in all invocations of these macros. Clean up comments.
11782 * rtl.c (rtl_check_failed_flag): Add an argument for the name
11783 of the flag access macro whose check failed.
11784 * doc/rtl.texi (Flags): Document additional flag uses.
11785
3f8ffc7c
RS
117862002-05-08 Robert Spier <rspier@pobox.com>
11787 Neil Booth <neil@daikokuya.demon.co.uk>
11788
11789 PR preprocessor/6521
11790 * cppfiles.c (handle_missing_header): Don't do anything
11791 different for <> includes.
11792doc:
11793 * cppopts.texi: Update documentation for -MG.
11794
b9e2d17b
NB
117952002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
11796
11797 * cpplex.c (cpp_interpret_charconst): Truncate as well as
11798 sign-extend.
11799doc:
11800 * cpp.texi: Clarify multichar charconst valuation.
11801
8d8269fa
MM
118022002-05-08 Mark Mitchell <mark@codesourcery.com>
11803
11804 * doc/invoke.texi: Document -mwindiss option.
11805
29b91443
JM
118062002-05-08 Jason Merrill <jason@redhat.com>
11807
11808 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
11809
11810 * dwarf2out.c (gen_type_die): Abort on broken recursion.
11811
11812 PR c++/6381
11813 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
11814 REAL_CST.
11815
6c76b950
NC
118162002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
11817
11818 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
11819 little-endian multilibs to override arm/thumb multilibs.
a5c76ee6 11820 Do not build hardware floating point multilibs, nor apcs-26
6c76b950
NC
11821 multilibs for the Thumb.
11822
f90bf7ca
MM
118232002-05-08 Mark Mitchell <mark@codesourcery.com>
11824
11825 PR c/6569.
11826 * varasm.c (mark_weak): New function.
11827 (merge_weak): Use it. Do not call declare_weak.
11828 (declare_weak): Use merge_weak.
11829
1e150f2c
JH
11830Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
11831
11832 * cse.c (dead_libcall_p): Update counts.
11833 (delete_trivially_dead_insns): Update call of dead_libcall_p.
11834
969d70ca
JH
11835Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
11836
11837 * cfglayout.c (function_tail_eff_head): Rename to ...
11838 (function_footer): ... this one.
11839 (unlink_insn_chain): New functions.
11840 (label_for_bb): Only call block_label and emit debug message.
11841 (record_effective_endpoints): Actually unlink the headers and footers.
11842 (fixup_reorder_cahin): Re-insert the unlinked sequences.
11843 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
11844 * cfglayout.h (struct reorder_block_def): New fields footer/header;
11845 remove eff_head/eff_end.
11846 * rtl.h (set_first_insn): Declare.
11847 * emit-rtl.c (set_first_insn): New function.
11848
11849 * cfglayout.c (fixup_reorder_chain): Dump duplicated
11850 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
11851 cfg_layout_duplicate_bb): New global function.
11852 (duplicate_insn_chain): New static function.
11853 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
11854 cfg_layout_duplicate_bb): Declare.
11855 (struct reorder_block_def): Add "original" field.
11856 * emit-rtl.c (emit_copy_of_insn_after): New function.
11857 * rtl.h (emit_copy_of_insn_after): Declare.
11858
11859 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
11860 (fixup_reorder_chain): properly handle edges to exit block.
11861
11862Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11863 Jan Hubicka <jh@suse.cz>
11864
11865 * basic-block.h (note_prediction_to_br_prob): declare.
11866 * c-semantics.c: Inlucde predit.h
11867 (expand_stmt): predict GOTO_STMT as not taken.
11868 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
11869 (cleanup_cfg): Do not free tail_recursion_list.
11870 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
11871 (flow_delete_block): Kill predictions past end of basic block.
11872 * output.h (delete_unreachable_blocks): Declare.
11873 * predict.c (predicted_by_p, process_note_predictions,
11874 process_note_prediction, last_block_p): New function.
11875 (estimate_probability): Bypass loop on PRED_CONTINUE;
11876 do not handle noreturn heuristics; kill PRED_RETURN; add
11877 PRED_EARLY_RETURN.
11878 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
11879 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
11880 * predict.h (IS_TAKEN): New constant.
11881 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
11882 * rtl.c (NOTE_INSN_PREDICTION): New.
11883 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
11884 New macro.
11885 (insn_note): add NOTE_INSN_PREDICTION.
11886 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
11887 CFG; free tail_recursion_label_list.
11888 * stmt.c: Include predict.h;
11889 (return_prediction): New.
11890 (expand_value_return): Use it.
11891 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
11892
41f8d041
RS
118932002-05-08 Richard Sandiford <rsandifo@redhat.com>
11894
11895 * config/mips/mips.md: Name the unspecs with define_constant.
11896 (*HILO_delay): Rename to 'hilo_delay' (no star).
11897 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
11898 (reload_outdi, reload_outsi): Likewise.
11899
9cabb1d8
KH
119002002-05-07 Kazu Hirata <kazu@cs.umass.edu>
11901
11902 * toplev.c: Fix formatting.
11903
4c76f856
JJ
119042002-05-07 Janis Johnson <janis187@us.ibm.com>
11905
11906 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
11907 * configure.in (ac_rtlflag_checking): New.
11908 * doc/install.texi (--enable-checking): Document RTL flag checking.
11909
44a147ad
NB
119102002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
11911
11912 * c-common.c (c_common_init): Set options->unsigned_wchar.
11913 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
11914 group target dependencies.
11915 (init_builtins, cpp_handle_option): Update.
11916 * cpplex.c (cpp_interpret_charconst): Update.
11917 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
11918 signed_char to unsigned_char, group target dependencies.
11919 * defaults.h (WCHAR_UNSIGNED): Remove.
11920 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
11921config:
11922 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
11923 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
11924 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
11925 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
11926 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
11927doc:
11928 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
11929
cace4f93
MM
119302002-05-07 Mark Mitchell <mark@codesourcery.com>
11931
11932 * fixinc/inclhack.def (windiss_math1): New fix.
11933 (windiss_math2): Likewise.
11934 (windiss_valist): Likewise.
11935 * fixinc/fixincl.x: Regenerated.
11936
e2ff6cee
AJ
119372002-05-07 Andreas Jaeger <aj@suse.de>
11938
11939 * genautomata.c (output_internal_min_issue_delay_func): Add
11940 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
11941 (output_internal_trans_func): Likewise.
11942
bdad4be5
JL
11943Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
11944
11945 * pa.c (hppa_profile_hook): Use force_reg to get the address
11946 of the profile hook into an appropriate pseudo register.
11947
a1ffecd9
MM
119482002-05-07 Mark Mitchell <mark@codesourcery.com>
11949
11950 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
11951 (LINK_START_SPEC): Handle it.
11952 (LINK_OS_SPEC): Likewise.
11953 (CPP_SPEC): Likewise.
11954 (STARTFILE_SPEC): Likewise.
11955 (LIB_SPEC): Likewise.
11956 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
11957 all platforms.
11958 (CRTSAVRES_DEFAULT_SPEC): New macro.
11959 (LIB_WINDISS_SPEC): New macro.
11960 (CPP_OS_WINDISS_SPEC): Likewise.
11961 (STARTFILE_WINDISS_SPEC): Likewise.
11962 (ENDFILE_WINDISS_SPEC): Likewise.
11963 (LINK_START_WINDISS_SPEC): Likewise.
11964 (LINK_OS_WINDISS_SPEC): Likewise.
11965 * config/rs6000/windiss.h: New file.
e2ff6cee 11966
df966bff
AH
119672002-05-07 Aldy Hernandez <aldyh@redhat.com>
11968
a5c76ee6 11969 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
df966bff 11970
db84f1bd
DM
119712002-05-06 David S. Miller <davem@redhat.com>
11972
11973 * config/sparc/sparc.md (shift insns): Do not mask off
11974 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
11975 take care of it.
11976
818c0c94
RH
119772002-05-06 Richard Henderson <rth@redhat.com>
11978
11979 PR c++/6212
11980 * expr.c (highest_pow2_factor_for_type): New.
11981 (expand_assignment): Use it.
11982
61e0b50f
AH
119832002-05-06 Aldy Hernandez <aldyh@redhat.com>
11984
818c0c94
RH
11985 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
11986 unspec_volatile.
11987 ("altivec_mfvscr"): Same.
61e0b50f 11988
5a63e069
JJ
119892002-05-06 Janis Johnson <janis187@us.ibm.com>
11990
11991 * rtl.h (struct rtx_def): Update comments.
11992 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
11993 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
11994 RTL_FLAG_CHECK macros with list of expected RTL codes.
11995 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
11996 (rtl_check_failed_flag): New.
11997 * reload1.c (reload): Use REG macro before changing rtx to MEM.
11998 (reload_cse_noop_set_p): Check rtx code before using access macro.
11999 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
12000 before using access macro.
12001
4afe3952
JJ
120022002-05-06 Janis Johnson <janis187@us.ibm.com>
12003
12004 * doc/rtl.texi (Flags): Update to reflect current usage.
12005
1f77b5da
RS
120062002-05-06 Roger Sayle <roger@eyesopen.com>
12007
12008 PR opt/3995
12009 * fold-const.c (sign_bit_p): New function.
12010 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
818c0c94 12011 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1f77b5da
RS
12012 Reapply fold when converting (A & C) == C into (A & C) != 0.
12013 (fold_binary_op_with_conditional_arg): Fix typo in comment.
12014
a5a49440
NB
120152002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
12016
12017 * c-common.c (warn_multichar): New.
12018 (c_common_init): Set CPP's warn_multichar.
12019 * c-common.h (warn_multichar): New.
12020 * c-decl.c (warn_multichar): Remove.
12021 * c-lex.c (lex_charconst): Update.
12022 * c-tree.h (warn_multichar): Remove.
12023 * cppexp.c (eval_token): Sign-extend charconst value.
12024 * cppinit.c (cpp_create_reader): Set warn_multichar.
12025 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
12026 each character. Update prototype. Sign-extend the result.
12027 * cpplib.h: Fix conditions.
12028 (struct cpp_options): Add new warning flag.
12029 (cpp_interpret_charconst): Update prototype.
12030doc:
12031 * cpp.texi: Update documentation.
12032
83e0be55
VM
120332002-05-06 Vladimir Makarov <vmakarov@redhat.com>
12034
12035 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
12036 Fix typo in usage of allof instead of unit.
12037
688ec718
RH
120382002-05-06 Richard Henderson <rth@redhat.com>
12039
12040 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
12041 and any jump or call for IN.
12042
f6536266
BS
120432002-05-06 Bernd Schmidt <bernds@redhat.com>
12044
e2ff6cee 12045 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
f6536266
BS
12046 -msse2.
12047 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
e2ff6cee 12048
0316d49b
RS
120492002-05-06 Roger Sayle <roger@eyesopen.com>
12050
12051 * fold-const.c (lshift-double): Cast the high word to an unsigned
12052 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
12053 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
12054 avoid compiler warning. (fold): Remove redundant code from
12055 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
12056
5d50fab3
JL
120572002-05-06 Jeff Law <law@redhat.com>
12058
12059 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
12060 * pa.c (pa_adjust_cost): Remove all true dependency cost
12061 adjustments. Also remove support for non-DFA scheduling.
12062 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
12063 to adjust true dependency costs. Update various comments.
12064 (7100lc, 7200, 7300 scheduling): Simplify by combining the
12065 FP ALU & MPY units into a single unit.
12066
a17a104c
CM
120672002-05-06 Catherine Moore <clm@redhat.com>
12068
12069 * config/v850/v850.c (compute_register_save_size): Make sure
818c0c94 12070 to count all of the registers that will be saved.
a17a104c 12071
7799175f
JH
12072Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
12073
12074 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
12075
0ac941a0
DM
120762002-05-06 David S. Miller <davem@redhat.com>
12077
12078 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
12079 allow result to overlap input operands in memory.
12080
95ff5d3f
NB
120812002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
12082
12083doc:
12084 * cpp.texi: Update multichar charconst docs.
12085
639e8b0c
NB
120862002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
12087
12088 * cpplex.c (cpp_interpret_charconst): Sign-extend each
12089 character. Don't ignore excess characters. Treat
12090 multicharacter character constants as signed.
12091 (cpp_parse_escape): Clarify diagnostic.
12092
84ea5bc1
JJ
120932002-05-05 Jakub Jelinek <jakub@redhat.com>
12094
12095 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
12096 use add instead of shift.
12097 (ashldi3_sp64): Likewise.
12098 (ashlsi3_const1, ashldi3_const1): Remove.
12099 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
12100 * config/sparc/sparc.c (const1_operand): New.
12101
40cd22f2
JT
121022002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
12103
12104 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
12105
cac01076
JJ
121062002-05-05 Jakub Jelinek <jakub@redhat.com>
12107
12108 PR target/6561
12109 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
12110
98791e3a
RH
121112002-05-05 Richard Henderson <rth@redhat.com>
12112
12113 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
12114 memory latency adjustments.
12115 (alpha_variable_issue): Remove.
12116 (alpha_use_dfa_pipeline_interface): New.
12117 (alpha_multipass_dfa_lookahead): New.
12118 * config/alpha/alpha.md: Remove define_function_unit scheduling;
12119 include new dfa scheduling.
12120 (attr type): Add none.
12121 (blockage): Use it.
12122 * config/alpha/ev4.md: New.
12123 * config/alpha/ev5.md: New.
12124 * config/alpha/ev6.md: New.
12125
309527ce
DM
121262002-05-05 David S. Miller <davem@redhat.com>
12127
12128 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
12129
68252e27
KH
121302002-05-05 Kazu Hirata <kazu@cs.umass.edu>
12131
12132 * cse.c: Fix formatting.
12133 * emit-rtl.c: Likewise.
12134
30cc9d00
VM
121352002-05-05 Vladimir Makarov <vmakarov@redhat.com>
12136
12137 * genautomata.c (initiate_states): Add additional guard to
12138 initialize `units_array'.
12139
deb09eff
VM
121402002-05-05 Vladimir Makarov <vmakarov@redhat.com>
12141
12142 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
12143 process_unit_to_form_the_same_automaton_unit_lists,
12144 form_the_same_automaton_unit_lists
12145 check_unit_distributions_to_automata): New prototypes and
12146 functions.
12147 (check_automata): Rename it into `check_automata_insn_issues'.
12148 (unit_decl): New fields `the_same_automaton_unit' and
12149 `the_same_automaton_message_reported_p'.
12150 (unit_decl_t): New typedef.
12151 (the_same_automaton_lists): New gloval variable.
12152 (unit_regexp, unit_set_el, units_array, units_cmp,
12153 output_get_cpu_unit_code_func): Use the typedef.
12154 (evaluate_max_reserv_cycles): Increment
12155 `description->max_insn_reserv_cycles'.
12156 (initiate_states): Don't increment `max_cycles_num'.
12157 (transform_insn_regexps): Move code around transformation of
12158 regexps from `generate'.
12159 (generate): Remove call of `transform_insn_regexps'.
12160 (expand_automata): Call `transform_insn_regexps' and
12161 `check_unit_distributions_to_automata'. Check errors before
12162 `generate'.
12163
12164 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
12165 automaton `ultrasparc3_1'.
e2ff6cee 12166
2443d4e1
NB
121672002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
12168
12169 * c-common.c (c_common_init): Set up CPP arithmetic.
12170 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
12171 something reasonable for the host.
12172 (sanity_checks): Add checks.
12173 (cpp_read_main_file): Call sanity_checks() from here...
12174 (cpp_post_options): ... not here.
12175 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
12176 * cpplib.h (struct cpp_options): New member int_precision.
12177
791a949f
FS
121782002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12179
12180 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
12181
091fb516
DM
121822002-05-04 David S. Miller <davem@redhat.com>
12183
f60ebeb7
DM
12184 * config/sparc/linux.h, config/sparc/linux64.h
12185 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
12186
214c6394
DM
12187 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
12188 more RTX codes.
12189 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
12190
091fb516
DM
12191 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
12192 of SETs.
12193
f2fdc802
TJ
121942002-05-05 Tim Josling <tej@melbpc.org.au>
12195
e2ff6cee 12196 * treelang; New directory for new sample language treelang.
f2fdc802 12197
3d90d290
NB
121982002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
12199
12200 * Makefile.in (c-lex.o): Update.
12201 * c-lex.c: Include target.h.
12202 (cb_register_builtins): New.
12203 (init_c_lex): Set builtins callback.
12204 * c-lex.h (cpp_define, cpp_assert): New prototypes.
12205 * cppinit.c (init_builtins): Use callback, including for
12206 GXX_WEAK.
12207 * cpplib.h (struct cpp_callbacks): New member.
12208 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
12209 (TARGET_INITIALIZER): Update.
12210 * target.h (struct gcc_target): New hook.
12211 * tree.c (default_register_cpp_builtins): New.
12212 * tree.h (default_register_cpp_builtins): New.
12213doc:
12214 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
12215
625458d0
NB
122162002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
12217
12218 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
12219 (cpp_post_options): Move sanity checks to...
12220 (sanity_checks): New.
12221 * cpplex.c (maybe_read_ucs): Fix prototype.
12222 (parse_string, cpp_parse_escape): Cast for %c format specifier.
12223 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
12224 if necessary.
12225
916b60b7
BS
122262002-05-04 Bernd Schmidt <bernds@redhat.com>
12227
12228 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
12229 builtins. Use V2DI patterns instead of TI for logical operations.
12230 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
12231 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
12232 (ix86_expand_builtins): Change the pattern used for movntdq.
12233 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
12234 sse2_nandv2di3): New patterns.
12235 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
12236 on operands.
12237 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
12238 (cvtdq2pd): Correct mode on operand 1.
12239 (sse2_umulsidi3): Describe without unspec.
12240 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
12241 machine modes.
12242 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
12243 (ashlv2di3): Likewise, from sse2_ashlv2di3.
12244 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
12245 ashlv4si3, ashlv2di3): Use SImode for shift count.
12246 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
12247 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
12248 New patterns.
12249 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
12250 New typedefs.
12251 (__m128i, __m128d): New macros.
12252 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
12253 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
12254 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
12255 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
12256 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
e2ff6cee 12257 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
916b60b7
BS
12258 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
12259 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
e2ff6cee 12260 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
916b60b7
BS
12261 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
12262 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
12263 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
12264 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
12265 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
12266 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
12267 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
12268 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
12269 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
12270 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
12271 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
12272 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
12273 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
12274 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
12275 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
12276 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
12277 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
12278 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
12279 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
12280 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
12281 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
12282 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
12283 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
12284 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
12285 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
12286 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
12287 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
12288 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
12289 functions.
e2ff6cee 12290 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
916b60b7
BS
12291 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
12292
c26fbbca
KH
122932002-05-04 Kazu Hirata <kazu@cs.umass.edu>
12294
12295 * dwarf2out.c: Fix formatting.
12296 * varasm.c: Likewise.
12297
0387639b
DE
122982002-05-04 David Edelsohn <edelsohn@gnu.org>
12299
12300 PR c/6543
12301 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
12302 clobber and use result as temporary value.
12303
8a28dbcc
JH
12304Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
12305
12306 * expr.c (force_operand): Use expand_simple_* to handle more
12307 cases.
12308
4268e8bb
NB
123092002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
12310
12311 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
12312 and sign-extension.
12313 (lex_charconst): Update for change in prototype of
12314 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
12315 appropriately.
12316 * cpphash.h (BITS_PER_CPPCHAR_T): New.
12317 * cppinit.c (cpp_create_reader): Initialize them for no
12318 change in semantics.
12319 (cpp_post_options): Add sanity checks.
12320 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
12321 and truncation issues. Calculate in type cppchar_t.
12322 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
12323 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
12324 run-time dependent precision correctly. Return whether the
12325 result is signed or not.
12326 * cpplib.c (dequote_string): Use cppchar_t; update.
12327 * cpplib.h (cppchar_signed_t): New.
12328 struct cpp_options): New precision members.
12329 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
ae1a07e0 12330 * cppexp.c (eval_token): Update.
4268e8bb 12331
af54350e
DM
123322002-05-03 David S. Miller <davem@redhat.com>
12333
2ce04b6b
DM
12334 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
12335 * config/sparc/sparc.c (sparc_rtx_costs): New function
12336 implementing RTX_COSTS and CONST_COSTS.
12337 * config/sparc/sparc.h (CONST_COSTS): Delete.
12338 (RTX_COSTS_CASES): Define.
12339 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
12340 the work.
12341
a1d9bd0c
DM
12342 * config/sparc/sparc.md (DFA schedulers): Split out...
12343 * config/sparc/cypress.md, config/sparc/hypersparc.md,
12344 config/sparc/sparclet.md, config/sparc/supersparc.md,
12345 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
12346
e87bb82e
DM
12347 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
12348 checks on it, always defined for Sparc.
12349
af54350e
DM
12350 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
12351 Tweak, and add more detailed comments.
12352
935bfb44
ZW
123532002-05-03 Zack Weinberg <zack@codesourcery.com>
12354
12355 * Re-apply patch accidentally reverted with
12356 DFA scheduler merge: remove all rules and variables to slurp
12357 source files out of libiberty and rebuild them with HOST_CC.
12358 ($(HOST_PREFIX_1)varray.o): New rule.
12359 (genattrtab rule): Word wrap.
12360
fa7a0712
JT
123612002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
12362
12363 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
12364 (CPP_SUBTARGET_SPEC): Define.
12365 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
12366 cpp_subtarget specs.
12367 (CPP_SPEC): Redefine to include %(cpp_subtarget).
12368
14c93978
DM
123692002-05-03 David S. Miller <davem@redhat.com>
12370
12371 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
12372 * target.h (struct gcc_target): Delete cycle_display member.
12373
14d118d6
DM
12374 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
12375 (rtx_needs_barrier): Delete reference to cycle_display unspec.
12376 (ia64_sched_reorder2): Mention need for cycle display handling
12377 once such notes exist.
935bfb44 12378
b3ae1ccd
RH
123792002-05-03 Richard Henderson <rth@redhat.com>
12380
12381 * real.c (etoasc): Strip most trailing zeros for clarity.
12382 * sched-vis.c: Include real.h.
12383 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
12384 * Makefile.in (sched-vis.o): Add real.h.
12385
8f39865a
DM
123862002-05-03 David S. Miller <davem@redhat.com>
12387
12388 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
12389 no longer needed.
12390
b44140e7
AH
123912002-05-03 Aldy Hernandez <aldyh@redhat.com>
12392
935bfb44
ZW
12393 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
12394 when we get an out of range literal.
12395 (altivec_expand_ternop_builtin): Same.
12396 (altivec_expand_unop_builtin): Same.
12397 (altivec_expand_builtin): Same, for dss.
12398 (altivec_expand_builtin): Use trees instead of rtl when
12399 determining literal argument validity.
b44140e7 12400
aaaed752
DM
124012002-05-03 David S. Miller <davem@redhat.com>
12402
12403 Delete cycle display scheduling hook.
12404 * config/ia64/ia64.c (ia64_cycle_display,
12405 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
12406 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
12407 and use emit_insn_before instead of ia64_emit_insn_before.
12408 * config/ia64/ia64.md (unspec usage): Delete cycle display.
12409 (cycle_display): Delete insn pattern.
12410 * config/sparc/sparc.md (unspec usage): Delete cycle display.
12411 (cycle_display): Delete insn pattern.
12412 * config/sparc/sparc.c (sparc_cycle_display,
12413 TARGET_SCHED_CYCLE_DISPLAY): Delete.
12414 * doc/md.texi (cycle_display): Don't mention.
12415 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
935bfb44 12416
b37c2614
RH
124172002-05-03 Richard Henderson <rth@redhat.com>
12418
12419 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
12420 * recog.h: Declare them.
12421
12422 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
12423 * config/sparc/sparc.md: Use store_data_bypass_p instead.
12424 * config/sparc/sparc-protos.h: Update.
935bfb44 12425
e1c1132e
JT
124262002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
12427
12428 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
12429 -D__arch64__. Add -D_LP64.
12430 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
12431 from sparc.h.
12432 (CPP_ARCH64_SPEC): Likewise.
12433 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
12434 (NO_BUILTIN_SIZE_TYPE): Undef.
12435
0b2fb0d7
VM
124362002-05-03 Vladimir Makarov <vmakarov@redhat.com>
12437
12438 * genautomata.c (min_issue_delay_pass_states): Change return type
12439 in the prototype.
12440 (min_issue_delay_pass_states): Change the algorithm.
12441 (min_issue_delay): Set up min_insn_issue_delay for the state.
12442 (output_min_issue_delay_table): Interchange the nested loops and
12443 and initiate min_insn_issue_delay for states.
935bfb44 12444
3d4ce12a
JH
12445Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
12446
12447 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
12448 jump is simplejump.
12449
12450Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
37ad04a5
JH
12451
12452 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
12453 sequence.
12454
b5482208
RH
124552002-05-03 Richard Henderson <rth@redhat.com>
12456
12457 PR opt/6534
12458 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
12459 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
12460 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
12461 code before JUMP, not EARLIEST.
12462
5a3085c5
JM
124632002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
12464
12465 * c-format.c (check_format_info_main): Don't check for presence of
12466 parameter for * width until after operand number has been read,
12467 and only check for it if format parameters are available.
12468 Fixes PR c/6547.
12469
40039424
JT
124702002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
12471
12472 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
12473 (LINK_SPEC): Undef before defining.
12474
8157303b
JJ
124752002-05-03 Jakub Jelinek <jakub@redhat.com>
12476
12477 PR preprocessor/6489
12478 * tradcpp.c (fixup_newlines): New.
12479 (main, finclude): Use it.
12480
66319f5c
RS
124812002-05-03 Richard Sandiford <rsandifo@redhat.com>
12482
12483 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
12484 * config/mips/mips.c (mips_unique_section): Strip encoding from
12485 decl name.
12486
ce8076ad
JJ
124872002-05-03 Jakub Jelinek <jakub@redhat.com>
12488
12489 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
12490 mode.
12491
975c6e4e
RO
124922002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12493
12494 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
12495 (Specific): Removed buildstats references.
12496 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
12497 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
12498 Accomodate Solaris versions beyond 8.
12499 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
12500 (Specific, *-*-solaris2.8): Removed, obsolete.
12501
d70e94ec
JJ
125022002-05-03 Jakub Jelinek <jakub@redhat.com>
12503
12504 PR target/6542
12505 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
12506 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
12507 fill leaf_reg_remap with identity.
12508 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
12509
6b148bd9
KH
125102002-05-03 Kazu Hirata <kazu@cs.umass.edu>
12511
12512 * config/h8300/crti.asm: Remove trailing spaces.
12513 * config/h8300/h8300.c: Likewise.
12514 * config/h8300/lib1funcs.asm: Likewise.
12515
609688f3
JM
125162002-05-02 Jason Merrill <jason@redhat.com>
12517
12518 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
12519 * c-decl.c (c_init_decl_processing): Use it.
12520 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
12521 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
12522 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
12523
3b03c671
KH
125242002-05-03 Kazu Hirata <kazu@cs.umass.edu>
12525
12526 * regrename.c: Fix formatting.
12527 * tree.c: Likewise.
12528
3b4961bd
JH
12529Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
12530
12531 * i386.md (attribute memory): Handle compares properly.
12532
19cba4a0
JH
12533Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
12534
3b4961bd 12535 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
19cba4a0
JH
12536 to none.
12537
797a6ac1
KH
125382002-05-02 Kazu Hirata <kazu@cs.umass.edu>
12539
12540 * function.c: Fix formatting.
12541
6d0de005
JH
125422002-05-02 Jan Hubicka <jh@suse.cz>
12543
12544 * haifa-sched.c (schedule_insn): Print table of instructions and
12545 reservations.
12546 (sched_block): Do not print ready list at verbosity level 1.
12547 * sched-vis.c (print_insn): Make global.
12548 * sched-ebb.c (ebb_print_insn): Rename from...
12549 (print_insn): ... this one.
12550 * sched-int.h (print_insn): Declare
12551
0bfb9a69
RH
125522002-05-02 Richard Henderson <rth@redhat.com>
12553
12554 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
12555 emitted by cycle_display.
12556
6b976d99
LR
125572002-05-02 Loren J. Rittle <ljrittle@acm.org>
12558
12559 * doc/install.texi (*-*-freebsd*): Update to latest status.
12560
0a295052
JJ
125612002-05-02 Jakub Jelinek <jakub@redhat.com>
12562
12563 PR target/6540
12564 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
12565 * config/float-sparc.h: Assume 128-bit long double if
12566 __LONG_DOUBLE_128__ is defined.
12567
842d5d6c
VM
125682002-05-02 Vladimir Makarov <vmakarov@redhat.com>
12569
12570 * genattrtab.c (write_function_unit_info): Add a dummy element
12571 when num_units == 0.
12572
3d7a6309
HB
125732002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12574
12575 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
12576 TYPE_MODE (double_type_node) instead of DFmode.
12577
1b6763cf
JH
12578Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
12579
12580 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
12581 jumps post reload.
12582 * toplev.c (rest_of_compilation): Revert Richard's patch.
12583
b303008e
JDA
125842001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
12585
12586 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
12587
6ed7412a
CM
125882002-05-02 Catherine Moore <clm@redhat.com>
12589
12590 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
12591
e0a2f705
KH
125922002-05-02 Kazu Hirata <kazu@hxi.com>
12593
b32d6163 12594 * combine.c: Fix comment typos.
e0a2f705
KH
12595 * expr.c: Likewise.
12596 * genautomata.c: Likewise.
12597 * stmt.c: Likewise.
12598 * tree.h: Likewise.
12599
38e23049
JM
126002002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
12601
12602 * doc/install.texi: State GNAT version requirements.
12603
40f4a97d
NC
126042002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
12605
12606 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
12607 of the frame pointer or arg pointer register which strict register
12608 checking is not enabled.
12609
0d6d6892
AH
126102002-05-02 Aldy Hernandez <aldyh@redhat.com>
12611
b5482208 12612 * gcc.dg/altivec-8.c: New.
0d6d6892 12613
b5482208
RH
12614 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
12615 PRE_INC and PRE_DEC for altivec modes.
0d6d6892 12616
abaa8559
BK
126172002-05-01 Bruce Korb <bkorb@gnu.org>
12618
12619 * fixinc/check.tpl(set-writable): make sure the function exists first
12620 * fixinc/inclhack.def(alpha_assert): fix test_text
12621 * fixinc/tests/base/assert.h: add in missing result
12622
ecab2143
JL
126232002-05-01 Jeff Law <law@redhat.com>
12624
12625 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
12626 'T' constraint.
12627
ea619b46
JB
126282002-05-01 Joel Brobecker <brobecker@gnat.com>
12629
12630 * dbxout.c (dbxout_type): Emit size information for range types,
12631 as well, but only when using GDB extensions.
12632
c72931a6
RH
126332002-05-01 Richard Henderson <rth@redhat.com>
12634
12635 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
12636 target-independent gnu binutils date test.
12637
2150ad33
RH
126382002-05-01 Richard Henderson <rth@redhat.com>
12639
12640 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
12641 info before expunging the block.
12642
1651cc96
JJ
126432002-05-01 Jakub Jelinek <jakub@redhat.com>
12644
12645 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
12646 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
12647 -M -or -MM is in effect.
12648
8998d5bf
ZW
126492002-05-01 Zack Weinberg <zack@codesourcery.com>
12650
12651 * config.gcc: Correct test of --enable-obsolete. Obsolete all
12652 A29k configurations.
12653 * doc/install.texi: Update to match.
12654
a81eed10
FS
126552002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12656
12657 PR bootstrap/6514
12658 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
12659 for duplicates. Always loop over whole list.
12660
8d53318f
RK
12661Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12662
12663 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
12664
4109b118
JS
126652002-05-01 Joel Sherrill <joel@OARcorp.com>
12666
12667 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
12668 support routines.
12669
c4a9c570
JS
126702002-05-01 Joel Sherrill <joel@OARcorp.com>
12671
12672 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
12673
ea112fc4
DE
126742002-05-01 David Edelsohn <edelsohn@gnu.org>
12675
12676 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
12677 (nabs_nopower): Same.
12678 (floatdisf2): New pattern.
12679 (absdi2): Convert to define_insn_and_split.
12680 (nabsdi2): Same.
12681 (trunctfsf2): Same.
12682 (floatditf2): Same.
12683 (floatsitf2): Same.
12684 (fix_trunctfdi2): Same.
12685 (fix_trunctfsi2): Same.
12686
dda78254
JM
126872002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
12688
12689 * doc/install.texi: Update Texinfo version requirement
12690 documentation.
12691
26aeede4
JJ
126922002-05-01 Jakub Jelinek <jakub@redhat.com>
12693
12694 PR target/6512, PR target/5628
12695 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
12696 when memory is not aligned.
12697 (movdf_insn_v9only_vis): Likewise.
12698 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
12699 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
12700 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
12701
9b7bc465
AH
127022002-05-01 Aldy Hernandez <aldyh@redhat.com>
12703
8998d5bf 12704 * gcc.dg/altivec-7.c: New.
9b7bc465 12705
8998d5bf 12706 * config/rs6000/altivec.h: Cleanup.
9b7bc465 12707
08b57fb3
AH
127082002-04-30 Aldy Hernandez <aldyh@redhat.com>
12709
8998d5bf
ZW
12710 * doc/invoke.texi (Option Summary): Add -mvrsave=.
12711 (RS/6000 and PowerPC Options): Document -mvrsave=.
08b57fb3 12712
8998d5bf
ZW
12713 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
12714 (rs6000_altivec_vrsave_string): Same.
12715 (rs6000_override_options): Call rs6000_parse_vrsave_option.
12716 (rs6000_parse_vrsave_option): New.
12717 (rs6000_stack_info): Only generate vrsave instructions when
12718 TARGET_ALTIVEC_VRSAVE.
08b57fb3 12719
8998d5bf
ZW
12720 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
12721 (rs6000_altivec_vrsave_string): Define extern.
12722 (rs6000_altivec_vrsave): Same.
12723 (TARGET_ALTIVEC_VRSAVE): New.
08b57fb3 12724
8e8c38cd
RH
127252002-04-30 Richard Henderson <rth@redhat.com>
12726
12727 PR opt/6516
12728 * toplev.c (rest_of_compilation): Don't run cross-jump before
12729 bb-reorder.
12730
4be9e9cb
TR
127312002-04-30 Tom Rix <trix@redhat.com>
12732
8998d5bf 12733 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4be9e9cb
TR
12734 check which_alternative.
12735
1eeeb6a4
KH
127362002-04-30 Kazu Hirata <kazu@hxi.com>
12737
12738 * cpplex.c: Fix comment formatting.
12739 * function.c: Likewise.
12740 * integrate.c: Likewise.
12741 * regrename.c: Likewise.
12742 * sibcall.c: Likewise.
12743 * simplify-rtx.c: Likewise.
12744 * tree-inline.c: Likewise.
12745
ed9d6ff9
JDA
127462002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
12747
12748 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
12749 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
12750 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
12751 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
12752 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
12753 * pa/x-ada: New file. Define ADA_CFLAGS.
12754
1f2641b6
HPN
127552002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
12756
12757 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
12758 from MMIX_LAST_REGISTER_FILE_REGNUM.
12759 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
12760 (struct machine_function): New member highest_saved_stack_register
12761 previously static variable in mmix.c.
12762 (MACHINE_DEPENDENT_REORG): Define.
12763 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
12764 (MMIX_OUTPUT_REGNO): New.
12765 (mmix_target_asm_function_prologue): Move calculation of last used
12766 saved-stack-register into...
12767 (mmix_machine_dependent_reorg): New function. Update to also handle
12768 !TARGET_ABI_GNU.
12769 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
12770 register names, simplify somewhat by new variable regno.
12771 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
12772 register.
12773 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
12774 emitting register names.
12775 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
12776 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
12777 Remove fixed FIXME.
12778 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
12779 Declare.
12780
12781 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
12782
73985940
RH
127832002-04-30 Richard Henderson <rth@redhat.com>
12784
12785 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
12786 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
12787 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
12788 emit_tfmode_cvt): New.
12789 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
12790 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
12791 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
12792 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
12793 * config/sparc/sparc-protos.h: Update.
12794
2b46bc67
JJ
127952002-04-30 Janis Johnson <janis187@us.ibm.com>
12796
12797 * install.texi (Final install): Add to the list of info to include
12798 in a report of a successful bootstrap, and add link to 3.1 list.
12799
3d34cd91
JH
12800Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
12801
12802 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
12803 (mode): Add vector modes
12804 (i387): Kill attribute.
12805 (unit): New attribute.
12806 (length_immediate): Grok new types.
12807 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
12808 (modrm): Use "unit".
12809 (memory): Handle MMX/SSE properly.
12810 (scheduling descriptions): Kill uses of fop1.
12811 (sse, mmx, fp patterns): Set type and mode properly.
12812
243e5500 12813Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
3193c415 12814
30482eb0
JL
12815 * pa.c (override_options): Default to PA8000 scheduling.
12816 * doc/invoke.texi (HP-PA options): Mention newly added 7300
12817 scheduling parameter.
12818
3193c415
JL
12819 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
12820 handling of double precision multiplies.
12821
12822 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
12823 fpdiv and fpsqrt instructions.
12824 (7200 & 7300 scheduling): Fix typo in handling of
12825 store-load and store-store penalties.
12826
c0a34cb7
GP
128272002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12828
12829 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
12830 mips. Add two missing commas.
12831
8bce0628
PC
128322002-04-30 Paolo Carlini <pcarlini@unitus.it>
12833
12834 * doc/contrib.texi (Contributors): Update Paolo Carlini's
12835 and Benjamin Kosnik's entries.
12836
84643cbf
DM
128372002-04-29 David S. Miller <davem@redhat.com>
12838
12839 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
12840 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
12841 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
12842 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
12843
da6886f6
FS
128442002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12845
12846 * combine.c (find_split_point): Use gen_int_mode.
12847
fae15c93
VM
128482002-04-29 Vladimir Makarov <vmakarov@redhat.com>
12849
12850 Merging code from dfa-branch:
8998d5bf 12851
fae15c93
VM
12852 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
12853
12854 * genautomata.c (output_reserv_sets): Fix typo.
12855
12856 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
12857
12858 * genautomata.c (output_reserv_sets): Remove
12859 next_cycle_output_flag.
12860
12861 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
12862
8998d5bf
ZW
12863 * sched-rgn.c (init_ready_list): Make the DFA code handle
12864 USE/CLOBBER insns in the same way as the traditional
12865 scheduler.
12866 (new_ready): Similarly..
fae15c93
VM
12867
12868 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
12869
12870 * haifa-sched.c (schedule_block): Change the DFA state only after
12871 issuing insn.
12872
12873 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
12874
12875 * pa.c (hppa_use_dfa_pipeline_interface): New function.
12876 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
12877 (override_options): Add PA7300 scheduling support.
12878 (pa_adjust_cost): Update various comments. Properly
12879 handle anti and output dependencies when using the
12880 DFA scheduler.
12881 (pa_issue_rate): Add PA7300 scheduling support.
12882 (pa_can_combine_p): Call extract_insn before calling
12883 constrain_operands (taken from mainline tree).
12884 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
12885 * pa.md (cpu attr): Add 7300. Rewrite pipeline
12886 descriptions using DFA descriptions. Add PA7300
12887 scheduling support.
12888
12889 2002-03-30 David S. Miller <davem@redhat.com>
12890
12891 Add UltraSPARC-III DFA scheduling support.
12892 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
12893 Update FP conditional move on register insn patterns to use it, as
12894 appropriate.
12895 (define_attr cpu): Add ultrasparc3.
12896 (define_attr us3load_type): New, update integer load patterns to
12897 set it, as appropriate.
12898 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
12899 (rest): Add UltraSPARC3 scheduling description.
12900 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
12901 (PROCESSOR_ULTRASPARC3): New.
12902 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
12903 ({ASM,CPP}_CPU_SPEC): Likewise.
12904 (REGISTER_MOVE_COST): Likewise.
12905 (RTX_COSTS): Likewise.
12906 * config/sparc/sparc.c (sparc_override_options,
12907 sparc_initialize_trampoline, sparc64_initialize_trampoline,
12908 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
12909 sparc_issue_rate): Likewise.
12910 * config/sparc/sol2.h: Likewise.
12911 * config/sparc/sol2-sld-64.h: Likewise.
12912 * config/sparc/linux64.h: Likewise.
8998d5bf 12913
fae15c93
VM
12914 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
12915
12916 * doc/md.texi: Add comments about usage the latency time for the
12917 different dependencies and about case when two or more conditions
12918 in different define_insn_reservations returns TRUE for an insn.
12919
12920 * doc/md.texi: Add reference for automaton based pipeline
12921 description.
8998d5bf 12922
fae15c93
VM
12923 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
12924
12925 * doc/passes.texi: Add missed information about genattrtab.
12926
12927 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
12928
12929 * genautomata.c (output_automata_list_transition_code): Check
12930 automata_list on NULL.
12931
12932 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
12933
12934 * genautomata.c (output_insn_code_cases,
12935 output_automata_list_min_issue_delay_code,
12936 output_automata_list_transition_code,
12937 output_automata_list_state_alts_code): Comment the functions.
12938
12939 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
12940
12941 * genautomata.c (automata_list_el_t): New typedef.
12942 (get_free_automata_list_el,free_automata_list_el,
12943 free_automata_list, automata_list_hash, automata_list_eq_p,
12944 initiate_automata_lists, automata_list_start, automata_list_add,
12945 automata_list_finish, finish_automata_lists,
12946 output_insn_code_cases, output_automata_list_min_issue_delay_code,
12947 output_automata_list_transition_code,
12948 output_automata_list_state_alts_code, add_automaton_state,
12949 form_important_insn_automata_lists): New functions and prototypes.
12950 (insn_reserv_decl): Add members important_automata_list and
12951 processed_p.
12952 (ainsn): Add members important_p.
12953 (automata_list_el): New structure.
12954 (first_free_automata_list_el, current_automata_list,
12955 automata_list_table): New global variables.
12956 (create_ainsns): Initiate member important_p.
12957 (output_internal_min_issue_delay_func): Generate the switch and
12958 call output_insn_code_cases.
12959 (output_internal_trans_func, output_internal_state_alts_func):
12960 Ditto.
12961 (generate): Call initiate_automata_lists.
12962 (automaton_states): New global variable.
12963 (expand_automata): Call form_important_insn_automata_lists.
12964 (write_automata): Call finish_automata_lists.
8998d5bf 12965
fae15c93
VM
12966 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
12967
12968 * genautomata.c (add_excls, add_presence_absence): Check that
8998d5bf 12969 cpu units in the sets belong the same automaton.
fae15c93
VM
12970
12971 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
12972 about that cpu units in the sets belong the same automaton.
12973
12974 * doc/md.texi: Ditto.
8998d5bf 12975
2799d721
VM
12976 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
12977 Nitin Gupta <niting@noida.hcltech.com>
8998d5bf 12978
fae15c93
VM
12979 * config/sh/sh.c (sh_use_dfa_interface): New function.
12980
12981 (sh_issue_rate): New Function.
12982 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
12983 TARGET_SCHED_ISSUE_RATE: define.
12984
12985 * config/sh/sh.md: Add DFA based pipeline description for SH4.
12986
8998d5bf
ZW
12987 (define_attr insn_class): New attribute used for DFA
12988 scheduling.
fae15c93
VM
12989 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
12990 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
12991 cmpeqdi_t): Likewise.
12992
12993 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
8998d5bf 12994 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
fae15c93
VM
12995 ex_group.
12996 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
8998d5bf 12997
fae15c93
VM
12998 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
12999
13000 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
13001 break.
13002
13003 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
13004
13005 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
13006 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
13007 necessary.
13008 (output_dfa_start_func): Initiate new variable insn_codes_length,
13009 (write_automata): Output definition of the new variable.
8998d5bf 13010
fae15c93
VM
13011 2001-10-02 David S. Miller <davem@redhat.com>
13012
13013 * haifa-sched.c (advance_one_cycle): New function.
13014 (schedule_block): Use it.
13015 (queue_to_ready): Use it, and also make sure to advance the DFA
13016 state on all stall cycles, not just those where insn_queue links
13017 are found.
13018
13019 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
13020
13021 * haifa-sched.c (max_issue): Remove last_p argument. Only return
13022 non-zero if the highest-priority instruction could be scheduled.
13023 (choose_ready): Remove last argument from max_issue call.
13024
13025 2001-09-28 David S. Miller <davem@redhat.com>
13026
13027 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
13028 ultrasparc and 3 for other multi-issue sparcs.
13029
13030 2001-09-27 David S. Miller <davem@redhat.com>
13031
13032 * config/sparc/sparc.md (cycle_display): New pattern.
13033 * config/sparc/sparc.c (sparc_cycle_display): New.
13034 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
13035
13036 2001-09-25 David S. Miller <davem@redhat.com>
13037
13038 Convert all of Sparc scheduling to DFA
13039 * config/sparc/sparc.md: Kill all define_function_unit
13040 directives and replace with DFA equivalent.
13041 * config/sparc/sparc.c (ultrasparc_adjust_cost,
13042 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
13043 ultra_fpmode_conflict_exists, ultra_find_type,
13044 ultra_build_types_avail, ultra_flush_pipeline,
13045 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
13046 ultrasparc_variable_issue, ultrasparc_sched_init,
13047 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
13048 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
13049 ultra_cur_hist, ultra_cycles_elapsed): Kill.
13050 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
13051 ultrasparc_store_bypass_p): New.
13052 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
13053 Declare.
13054
13055 2001-09-24 David S. Miller <davem@redhat.com>
13056
13057 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
13058 ready->vec[foo] not ready[foo].
13059
13060 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
13061
13062 * doc/md.texi: Correct examples for define_insn_reservations
13063 `mult' and `div'.
13064
13065 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
13066
13067 * genautomata.c (create_automata): Print message about creation of
13068 each automaton.
13069 (generate): Remove printing meease about creation of
13070 automata.
13071
13072 2001-09-05 David S. Miller <davem@redhat.com>
13073
13074 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
13075 * config/sparc/linux64.h: Likewise.
13076
13077 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
13078
13079 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
13080 schedule_block, sched_init, sched_finish): Add missed calls of
13081 use_dfa_pipeline_interface.
13082
13083 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
13084 Ditto.
13085
13086 * sched-vis.c (get_visual_tbl_length): Ditto.
8998d5bf 13087
fae15c93
VM
13088 2001-08-27 Richard Henderson <rth@redhat.com>
13089
13090 * genattr.c (main): Emit state_t even when not doing scheduling.
13091
13092 2001-08-27 Richard Henderson <rth@redhat.com>
13093
13094 * genautomata.c (expand_automata): Always create a description.
13095
13096 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
13097
8998d5bf 13098 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
fae15c93
VM
13099 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
13100 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
13101 RTL constructions.
13102
13103 * genattr.c (main): New variable num_insn_reservations. Increase
13104 it if there is DEFINE_INSN_RESERVATION. Output automaton based
13105 pipeline hazard recognizer interface.
13106
13107 * genattrtab.h: New file.
13108
13109 * genattrtab.c: Include genattrtab.h.
13110 (attr_printf, check_attr_test, make_internal_attr,
13111 make_numeric_value): Move protypes into genattrtab.h. Define them
13112 as external.
13113 (num_dfa_decls): New global variable.
13114 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
13115 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
13116 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
13117 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
13118
13119 * genautomata.c: New file.
13120
13121 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
13122
8998d5bf 13123 * sched-int.h: (curr_state): Add the external definition for
fae15c93
VM
13124 automaton pipeline interface.
13125 (haifa_insn_data): Add comments for members blockage and units.
13126
13127 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
13128 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
13129 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
13130 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
13131 TARGET_SCHED_DFA_POST_CYCLE_INSN,
13132 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
13133 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
13134 macros.
13135 (TARGET_SCHED): Use the new macros.
13136
13137 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
13138 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
13139 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
13140 dfa_bubble): New members in gcc_target.sched.
13141
8998d5bf 13142 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
fae15c93
VM
13143 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
13144 (insn_queue): Redefine it as pointer to array.
13145 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
13146 INSN_QUEUE_SIZE.
13147 (max_insn_queue_index_macro_value): New variable.
13148 (curr_state, dfa_state_size, ready_try): New varaibles for
13149 automaton interface.
13150 (ready_element, ready_remove, max_issue): New function prototypes
13151 for automaton interface.
13152 (choose_ready): New function prototype.
13153 (insn_unit, blockage_range): Add comments.
13154 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
13155 FUNCTION_UNITS_SIZE == 0.
13156 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
13157 actual_hazard, potential_hazard): Add comments.
13158 (insn_cost): Use cost -1 as undefined value. Remove
13159 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
13160 pipeline interface.
13161 (ready_element, ready_remove): New functions for automaton
13162 interface.
13163 (schedule_insn): Add new code for automaton pipeline interface.
13164 (queue_to_ready): Add new code for automaton pipeline interface.
13165 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
13166 (debug_ready_list): Print newline when the queue is empty.
13167 (max_issue): New function for automaton pipeline interface.
13168 (choose_ready): New function.
13169 (schedule_block): Add new code for automaton pipeline interface.
13170 Print ready list before scheduling each insn.
13171 (sched_init): Add new code for automaton pipeline interface.
13172 Initiate insn cost by -1.
13173 (sched_finish): Free the current automaton state and finalize
13174 automaton pipeline interface.
13175
13176 * sched-rgn.c: Include target.h.
13177 (init_ready_list, new_ready, debug_dependencies): Add new code for
13178 automaton pipeline interface.
13179
13180 * sched-vis.c: Include target.h.
13181 (get_visual_tbl_length): Add code for automaton interface.
13182 (target_units, print_block_visualization): Add comments.
13183
8998d5bf 13184 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
fae15c93
VM
13185 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
13186 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
13187 (getruntime.o, genautomata.o): New entries.
13188 (genattrtab.o): Add new dependency file genattrtab.h.
13189 (genattrtab): Add new dependencies. Link it with `libm.a'.
13190 (getruntime.o, hashtab.o): New entries for canadian cross.
13191
13192 * doc/md.texi: Description of automaton based model.
13193
13194 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
13195 Add comments.
13196 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
13197 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
13198 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
13199 TARGET_SCHED_DFA_POST_CYCLE_INSN,
13200 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
13201 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
13202 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
13203 hook descriptions.
13204 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
13205 MAX_DFA_ISSUE_RATE): New macro descriptions.
13206
13207 * doc/contrib.texi: Add dfa based scheduler contribution.
13208
13209 * doc/gcc.texi: Add more information about genattrtab.
13210
a2ff290c
RK
13211Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13212
13213 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
13214 adjust_address_nv call.
13215
f97903cc
JJ
132162002-04-29 Janis Johnson <janis187@us.ibm.com>
13217
13218 * doc/install.texi (Testing): Provide additional information, and
13219 a stronger encouragement, for running the testsuites.
13220
f41a6bf1
DD
132212002-04-29 DJ Delorie <dj@redhat.com>
13222
13223 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
13224 given in upper case.
13225
d8af0868
RO
132262002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13227
13228 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
13229 Solaris 2 <widec.h> if missing.
13230 * fixinc/fixincl.x: Regenerate.
13231 * fixinc/tests/base/widec.h: New file.
13232
1034407f
NC
132332002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
13234
13235 * toplev.c (f_options): Add "profile" switch so that
13236 -fno-profile can be used to disable -p.
13237
fbe5eb6d
BS
132382002-04-29 Bernd Schmidt <bernds@redhat.com>
13239
13240 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
13241 UV2DImode.
13242 * tree.c (build_common_tree_nodes_2): Likewise.
13243 * tree.h (enum tree_index): Likewise.
13244 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
13245
13246 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
13247 entries.
13248 (init_mmx_sse_builtins): Initialize SSE2 builtins.
13249 (ix86_expand_builtin): Add support for SSE2 builtins.
13250 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
13251 (VALID_SSE_REG_MODE): Use it.
13252 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
13253 (enum ix86_builtins): Add SSE2 builtins.
13254 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
13255 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
13256 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
13257 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
13258 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
13259 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
13260 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
13261 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
13262 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
13263 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
13264 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
13265 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
13266 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
13267 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
13268 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
13269 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
13270 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
13271 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
13272 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
13273 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
13274 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
13275 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
13276 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
13277 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
13278 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
13279 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
13280 lfence_insn): New patterns.
13281 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
13282 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
13283
44aefada
JH
13284Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
13285
13286 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
13287
d5482cdc
GP
132882002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13289
13290 * doc/contrib.texi (Contributors): Add Paolo Carlini and
13291 Janis Johnson.
13292 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
13293 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
13294 and CPU instead of cpu.
13295
2c4b77f3
JH
13296Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
13297
13298 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
13299 variables.
13300 (lang_independent_options): Add -fif-conversion, -fif-conversion2
13301 (rest_of_compilation): Do if conversion only when asked for.
13302 (parse_options_and_default_flags): Set new variables to 1 for -O1
13303 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
13304
3de72741
JH
13305Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
13306
13307 * i386.c (dbx64_register_map): Fix typo.
13308
8aa18a7d
JH
13309Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
13310
13311 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
13312 real_one_half, real_bb_freq_max): New static variables.
13313 (debug_profile_bbauxs): Kill.
13314 (process_note_predictions): Kill unused variable.
13315 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
13316 volatile double.
13317 (propagate_freq): Use REAL_ARITHMETICS.
13318 (estimate_bb_frequencies): Likevise; init new static variables.
13319 * Makefile.in (predict.o): Add dependency on real.h
13320
1bbad4c6
DM
133212002-04-28 David S. Miller <davem@redhat.com>
13322
13323 PR target/6500
13324 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
13325 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
13326 several {reads,writes} instead.
13327 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
13328 Define.
13329
3ef3f384
DM
133302002-04-27 David S. Miller <davem@redhat.com>
13331
13332 PR target/6494
13333 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
13334 of the stack bias.
13335
13336 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
13337 including signal.h and sys/ucontext.h, not needed.
13338
ec493bcb
HPN
133392002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
13340
13341 * varasm.c (output_constant_def): Correct test for not calling
13342 ENCODE_SECTION_INFO for INTEGER_CST.
13343
60284a59
NB
133442002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
13345
13346 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
13347 keep most cases as function eval_token.
13348 (eval_token): New function.
13349 (_cpp_parse_expr): Read token here for improved diagnostics.
13350 Don't use op_as_text. Detect bad ':' here.
13351 (reduce): Don't detect bad ':' here.
13352 (op_as_text): Remove.
13353 * cpphash.h (_cpp_test_assertion): Change prototype.
13354 * cpplib.c (_cpp_test_assertion): Change prototype.
13355
349a4b40
RH
133562002-04-28 Richard Henderson <rth@redhat.com>
13357
13358 PR c/5154
8998d5bf 13359 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
349a4b40
RH
13360 (ggc_mark_rtx_children): New.
13361
7a03f82f
JJ
133622002-04-28 Jakub Jelinek <jakub@redhat.com>
13363
13364 PR target/6496
13365 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
13366 after call peepholes for UltraSPARC.
13367 (call + jump 64-bit peepholes): Remove.
13368
80103f96
FS
133692002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13370
13371 PR c/6497
13372 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
13373 result as temporary value.
13374
06990986
JJ
133752002-04-28 Jakub Jelinek <jakub@redhat.com>
13376
13377 PR c++/6396
13378 * toplev.c (rest_of_compilation): Only run regrename and copy
13379 propagation if optimizing.
13380
a20fd5ac
JJ
133812002-04-28 Jakub Jelinek <jakub@redhat.com>
13382
13383 PR optimization/6475
13384 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
13385 register of REGNO_DECL (i).
13386 * Makefile.in (reload1.o): Add $(TREE_H).
13387
87ed109f
NB
133882002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
13389
13390 * cppexp.c (lex): Update to use state.skip_eval.
13391 (struct op): Remove prio and flags members.
13392 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
13393 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
13394 (LEFT_ASSOC): New macro.
13395 (optab): New table of operator priorities and flags.
13396 (SHIFT): Update.
13397 (_cpp_parse_expr): Clean up logic. Return bool. Use a
13398 malloc-ed parser stack.
13399 (reduce): New; reduce the operator stack.
13400 (_cpp_expand_op_stack): Expand the operator stack as necessary.
13401 * cpphash.h (struct op): Predeclare.
13402 (struct cpp_reader): New members op_stack, op_limit.
13403 (struct lexer_state): New member skip_eval.
13404 (_cpp_parse_expr): Update.
13405 (_cpp_expand_op_stack): New.
13406 * cpplib.c (do_if): Update.
13407 * cppinit.c (cpp_create_reader): Create op stack.
13408 (cpp_destroy): And destroy it.
13409 * cpplib.h (CPP_LAST_CPP_OP): Correct.
13410 (TTYPE_TABLE): Correct.
13411
45806a3f
FS
134122002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13413
13414 PR c/6343
13415 * c-decl.c (duplicate_decls): Call merge_weak.
13416 * c-pragma.c (apply_pragma_weak): Warn about misuse.
13417 * output.h (merge_weak): Prototype merge_weak.
13418 * varasm.c (merge_weak): New function.
13419 (declare_weak): Make sure we don't give an error on VAR_DECLs.
13420 Mark RTL with SYMBOL_REF_WEAK.
13421
a6227154
KG
134222002-04-27 Kurt Garloff <garloff@suse.de>
13423
13424 * tree-inline.c (inlinable_function_p): Improve heuristics
13425 by using a smoother function to cut down allowable inlinable size.
13426 * param.def: Add parameters max-inline-insns-single,
13427 max-inline-slope, min-inline-insns that determine the exact
13428 shape of the above function.
13429 * param.h: Likewise.
13430
94a50397
RH
134312002-04-26 Richard Henderson <rth@redhat.com>
13432
13433 * c-parse.in (malloced_yyss, malloced_yyvs): New.
13434 (yyoverflow): Re-add. Set them.
13435 (free_parser_stacks): New.
13436 * c-common.h: Declare it.
13437 * c-lex.c (c_common_parse_file): Call it.
13438
9c0a0632
RH
134392002-04-26 Richard Henderson <rth@redhat.com>
13440
13441 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
13442 for fallthru search.
13443
b875d2ee
EC
134442002-04-26 Eric Christopher <echristo@redhat.com>
13445
13446 PR optimization/3700
13447 * config/mips/mips.c (mips_issue_rate): Define. New function.
13448 (TARGET_SCHED_ISSUE_RATE): Use.
13449
1db828df
DM
134502002-04-25 David S. Miller <davem@redhat.com>
13451
13452 PR target/6422
13453 * reorg.c (optimize_skip): Do not allow exception causing
13454 instructions to be considered for delay slots.
13455 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
13456 (relax_delay_slots): Do not try to consider exception causing
13457 instructions as redundant.
13458
ae5d234e
RH
134592002-04-26 Richard Henderson <rth@redhat.com>
13460
13461 PR c/5225
13462 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
13463
7d793e9b
MM
134642002-04-26 Mark Mitchell <mark@codesourcery.com>
13465
13466 PR bootstrap/6445
13467 * config/i386/i386.md (untyped_call): Return the value in a float
13468 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
13469 TARGET_80387.
13470
b13ab42c
AO
134712002-04-26 Alexandre Oliva <aoliva@redhat.com>
13472
13473 * tree.c (tree_int_cst_lt): Compare constants whose types differ
13474 in unsigned-ness correctly.
13475
5e56f909
JDA
134762002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
13477
13478 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
13479 portable runtime model.
13480
bde3c0c0
RH
134812002-04-26 Richard Henderson <rth@redhat.com>
13482
a6227154 13483 * c-parse.in (yyoverflow): Revert.
bde3c0c0 13484
5276df18
DE
134852002-04-26 David Edelsohn <edelsohn@gnu.org>
13486 Richard Henderson <rth@redhat.com>
13487
13488 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
13489 result as temporary value.
13490
b84a3874
RH
134912002-04-26 Richard Henderson <rth@redhat.com>
13492
13493 PR c/3581
13494 * c-common.c (fix_string_type): Split out of ...
13495 (combine_strings): ... here. Take a varray, not a tree list.
13496 (c_expand_builtin_printf): Use fix_string_type.
13497 * c-common.h: Update decls.
13498 * c-parse.in (string): Remove. Update all uses to use STRING
13499 instead, and not call combine_strings.
13500 (yylexstring): New.
13501 (_yylex): Use it.
13502 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
13503 (build_asm_stmt): Likewise.
13504 * objc/objc-act.c (my_build_string): Use fix_string_type.
13505 (build_objc_string_object): Build varray for combine_strings.
13506
d8ae8cd4
BT
135072002-04-26 Bo Thorsen <bo@suse.co.uk>
13508
13509 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
13510 x86-64.
13511
f8b954fc
NB
135122002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
13513
13514 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
13515 (HAVE_NO_R_OPERAND): Remove.
13516 (HAVE_VALUE): Remove.
13517 (op_to_prio): Update.
13518 (UNARY): Don't alter flags.
13519 (_cpp_parse_expr): want_value used to indicate whether
13520 a number or unary operator is expected next. Distinguish
13521 unary and binary +/-.
13522 (op_as_text): Update for unary operators.
13523
6052bef0
RH
135242002-04-25 Richard Henderson <rth@redhat.com>
13525
13526 PR c/2161
13527 * c-parse.in (yyoverflow): New.
13528
5c5b2283
RH
135292002-04-25 Richard Henderson <rth@redhat.com>
13530
13531 PR c/2098
13532 * c-common.c (shorten_compare): Simplfy conditions leading to
13533 the generation of a warning.
13534
28ce94d4
RH
135352002-04-25 Richard Henderson <rth@redhat.com>
13536
13537 PR c/2035
13538 * expmed.c (extract_bit_field): Fall through to generic code rather
13539 than aborting on subreg special case.
13540
6bfd0c63
DM
135412002-04-25 David S. Miller <davem@redhat.com>
13542
13543 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
13544 for DECL being NULL.
13545
7a430e3b
SC
135462002-04-25 Steve Christiansen <smc@us.ibm.com>
13547
13548 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
13549
45c42d7d
EB
135502002-04-25 Eric Botcazou <ebotcazou@multimania.com>
13551
13552 * c-decl.c (grokdeclarator): Remove outdated ??? note
13553 on invalid declaration of flexible array members.
13554
eb7715a4
RH
135552002-04-25 Richard Henderson <rth@redhat.com>
13556
13557 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
13558
cf5ee720
UW
135592002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
13560
13561 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
13562 needed by the compiler, even if they are used as global regs.
13563
d604bca3
MH
135642002-04-25 Matt Hiller <hiller@redhat.com>
13565
13566 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
13567 functions.
13568 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
13569 of the corresponding functions.
13570 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
13571 New prototypes.
b875d2ee 13572
d604bca3
MH
135732002-04-25 Matt Hiller <hiller@redhat.com>
13574
13575 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
13576
13577 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
13578 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
13579 registers, adjust comment accordingly.
13580 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
13581 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
13582 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
13583 for coprocessor registers.
13584 (ADDITIONAL_REGISTER_NAMES): Include
13585 ALL_COP_ADDITIONAL_REGISTER_NAMES.
b875d2ee 13586
d604bca3
MH
13587 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
13588 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
13589 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
13590 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
13591 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
13592
13593 (mips_char_to_class): Adjust comment to include coprocessor
13594 constraint letters.
13595
13596 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
13597 New functions.
13598 (mips_reg_names, mips_regno_to_class): Include coprocessor
13599 information.
13600 (mips_sw_reg_names): Ditto, make non-static.
13601 (mips_move_1word): Handle moves to and from coprocessor registers.
13602 (mips_move_2words): Handle moves to and from coprocessor
13603 registers.
13604 (mips_class_max_nregs, mips_register_move_cost): Handle
13605 coprocessor register classes.
13606 (override_options): Initialize mips_char_to_class and
13607 mips_hard_regno_mode_ok properly for coprocessor registers.
13608
13609 * config/mips/mips.md (movdi_internal, movdi_internal2,
13610 movsi_internal1, movsi_internal2): Add constraint-sets for
13611 coprocessor registers.
13612 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
13613 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
13614 isn't mips.
13615 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
13616 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
13617 isn't mips.
13618 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
13619 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
13620 isn't mips.
13621 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
13622 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
13623 isn't mips.
b875d2ee 13624
d604bca3
MH
13625 * doc/tm.texi: Document feature.
13626
b9a26d09
NB
136272002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
13628
13629 * integrate.c (function_attribute_inlinable_p): Simplify.
13630 Check the table pointer is not NULL.
13631
ab5973b7
SB
136322002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
13633
13634 * doc/c-tree.texi: Fix typo in introduction.
13635
ff45c01e
NB
136362002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
13637
13638 * c-common.h (c_common_parse_file): Update.
13639 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
13640 * c-lex.c (YYDEBUG): Get from c-lex.h.
13641 (c_common_parse_file): Update.
13642 * c-lex.h (YYDEBUG, yydebug): New.
13643 * c-parse.in (YYDEBUG): Get from c-lex.h.
13644 (c_set_yydebug): Remove.
13645 * c-tree.h (c_set_yydebug): Remove.
13646 * langhooks-def.h (lhd_do_nothing_i): New.
13647 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
13648 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
13649 * langhooks.c (lhd_do_nothing_i): New.
13650 (lhd_set_yydebug): Remove.
13651 * langhooks.h (struct lang_hooks): Update.
13652 * toplev.c (set_yydebug): New.
13653 (compile_file): Update call to parse_file hook.
13654 (decode_d_option): Update.
13655objc:
13656 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
13657
fcae219a
R
13658Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
13659
13660 * loop.c (load_mems): Don't change the interface of called functions.
13661
13662 * calls.c (expand_call): Take current_function_pretend_args_size
13663 into account when setting argblock for sibcalls.
13664
d0fea45a
MH
136652002-04-24 Matt Hiller <hiller@redhat.com>
13666
13667 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
13668 * c-lex.c: Ditto.
13669
13670 * cpplex.c (skip_line_comment): Process comment one multibyte
13671 character at a time rather than one char at a time, if
13672 appropriate.
13673 (parse_string): Process string one multibyte character at a time
13674 rather than one char at a time, if appropriate.
13675 * c-lex.c (lex_string): Lex and copy multibyte strings
13676 appropriately.
13677 * cpplib.h (cppchar_t): Change to unsigned.
13678
2d1b5436
RH
136792002-04-24 Richard Henderson <rth@redhat.com>
13680
13681 PR c/3467
13682 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
13683 for c99.
13684
5e039e6b
R
13685Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
13686
13687 * sh.c (sh_va_arg): If argument was passed by reference,
13688 dereference the pointer.
309d8365
R
13689
13690 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
51214775
R
13691
13692 * sh.md (divsi3_i4_media): Use match_operand for input values
13693 rather than hard registers.
13694 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
13695 unnecessarily through hard registers. Keep copies of pseudo
13696 registers outside of the libcall sequence.
13697
13698 * sh.md (casesi_shift_media): Add modes.
b700634a
R
13699
13700 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
13701 values in memory.
13702
349ae713
NB
137032002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
13704
13705 * attribs.c (c_common_attribute_table): Move table and handlers
13706 to c-common.c.
13707 (format_attribute_table, lang_attribute_table,
13708 lang_attribute_common): Remove.
13709 (init_attributes): Replace NULL pointers with pointers to the
13710 empty table.
13711 (handle_packed_attribute, handle_nocommon_attribute,
13712 handle_common_attribute, handle_noreturn_attribute,
13713 handle_noinline_attribute, handle_always_inline_attribute,
13714 handle_used_attribute, handle_unused_attribute,
13715 handle_const_attribute, handle_transparent_union_attribute,
13716 handle_constructor_attribute, handle_destructor_attribute,
13717 handle_mode_attribute, handle_section_attribute,
13718 handle_aligned_attribute, handle_weak_attribute,
13719 handle_alias_attribute, handle_visibility_attribute,
13720 handle_no_instrument_function_attribute, handle_malloc_attribute,
13721 handle_no_limit_stack_attribute, handle_pure_attribute,
13722 handle_deprecated_attribute, handle_vector_size_attribute,
13723 vector_size_helper): Move to c-common.c.
13724 * c-common.c (c_common_attribute_table,
13725 handle_packed_attribute, handle_nocommon_attribute,
13726 handle_common_attribute, handle_noreturn_attribute,
13727 handle_noinline_attribute, handle_always_inline_attribute,
13728 handle_used_attribute, handle_unused_attribute,
13729 handle_const_attribute, handle_transparent_union_attribute,
13730 handle_constructor_attribute, handle_destructor_attribute,
13731 handle_mode_attribute, handle_section_attribute,
13732 handle_aligned_attribute, handle_weak_attribute,
13733 handle_alias_attribute, handle_visibility_attribute,
13734 handle_no_instrument_function_attribute, handle_malloc_attribute,
13735 handle_no_limit_stack_attribute, handle_pure_attribute,
13736 handle_deprecated_attribute, handle_vector_size_attribute,
13737 vector_size_helper): Move from attribs.c.
13738 * c-common.h (c_common_attribute_table,
13739 c_common_format_attribute_table): New.
13740 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
13741 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
13742 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
13743 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
13744 (LANG_HOOKS_INITIALIZER): Update.
13745 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
13746 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
13747 * target.h: Update comment.
13748 * tree.c (default_target_attribute_table): Remove.
13749 * tree.h (default_target_attribute_table, format_attribute_table,
13750 lang_attribute_table, lang_attribute_common): Remove.
13751objc:
13752 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
13753 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
13754
84f0ace0
JM
137552002-04-24 Jason Merrill <jason@redhat.com>
13756
13757 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
13758 * dwarf2out.c (dwarf_attr_name): Support it.
13759 (gen_array_type_die): Emit it.
13760 (lookup_type_die): No special handling for VECTOR_TYPE.
13761 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
13762
120eaf28
RH
137632002-04-24 Richard Henderson <rth@redhat.com>
13764
13765 * config/mips/mips.md (movdi_usd): Renumber.
13766
e732178c
DM
137672002-04-24 David S. Miller <davem@redhat.com>
13768
13769 PR target/6420
13770 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
13771 32-bit Sparc and current_function_returns_struct is true.
13772
e879eb2f
JH
13773Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
13774
13775 * loop.c (canonicalize_condition): Use gen_int_mode.
13776
4287a893
AH
137772002-04-24 Aldy Hernandez <aldyh@redhat.com>
13778
13779 * config/rs6000/altivec.h: Cleanup file. Add non individual
13780 variants.
13781 (vec_vaddubm): New.
13782 (vec_vadduhm): New.
13783 (vec_vadduwm): New.
13784 (vec_vaddfp): New.
13785 (vec_vaddcuw): New.
13786 (vec_vaddubs): New.
13787 (vec_vaddsbs): New.
13788 (vec_vadduhs): New.
13789 (vec_vadduws): New.
13790 (vec_vaddsws): New.
13791 (vec_vand): New.
13792 (vec_vandc): New.
13793 (vec_vavgub): New.
13794 (vec_vavgsb): New.
13795 (vec_vavguh): New.
13796 (vec_vavgsh): New.
13797 (vec_vavguw): New.
13798 (vec_vavgsw): New.
13799 (vec_vrfip): New.
13800 (vec_vcmpbfp): New.
13801 (vec_vcmpequb): New.
13802 (vec_vcmpequh): New.
13803 (vec_vcmpequw): New.
13804 (vec_vcmpeqfp): New.
13805 (vec_vcmpgefp): New.
13806 (vec_vcmpgtub): New.
13807 (vec_vcmpgtsb): New.
13808 (vec_vcmpgtuh): New.
13809 (vec_vcmpgtsh): New.
13810 (vec_vcmpgtuw): New.
13811 (vec_vcmpgtsw): New.
13812 (vec_vcmpgtfp): New.
13813 (vec_vcmpgefp): New.
13814 (vec_vcfux): New.
13815 (vec_vcfsx): New.
13816 (vec_vctsxs): New.
13817 (vec_vctuxs): New.
13818 (vec_vexptefp): New.
13819 (vec_vrfim): New.
13820 (vec_lvx): New.
13821 (vec_lvebx): New.
13822 (vec_lvehx): New.
13823 (vec_lde): Add vector float variant.
13824 (vec_lvewx): New.
13825 (vec_lvxl): New.
13826 (vec_vlogefp): New.
13827 (vec_vmaddfp): New.
13828 (vec_vmhaddshs): New.
13829 (vec_vmaxub): New.
13830 (vec_vmaxsb): New.
13831 (vec_vmaxuh): New.
13832 (vec_vmaxsh): New.
13833 (vec_vmaxuw): New.
13834 (vec_vmaxsw): New.
13835 (vec_vmaxsw): New.
13836 (vec_vmaxfp): New.
13837 (vec_vmrghb): New.
13838 (vec_vmrghh): New.
13839 (vec_vmrghw): New.
13840 (vec_vmrglb): New.
13841 (vec_vmrglh): New.
13842 (vec_vmrglw): New.
13843 (vec_vminub): New.
13844 (vec_vminsb): New.
13845 (vec_vminuh): New.
13846 (vec_vminsh): New.
13847 (vec_vminuw): New.
13848 (vec_vminsw): New.
13849 (vec_vminfp): New.
13850 (vec_vmladduhm): New.
13851 (vec_vmhraddshs): New.
13852 (vec_msumubm): New.
13853 (vec_vmsummbm): New.
13854 (vec_vmsumuhm): New.
13855 (vec_vmsumshm): New.
13856 (vec_vmsumuhs): New.
13857 (vec_vmsumshs): New.
13858 (vec_vmuleub): New.
13859 (vec_vmulesb): New.
13860 (vec_vmuleuh): New.
13861 (vec_vmulesh): New.
13862 (vec_vmuloub): New.
13863 (vec_mulosb): New.
13864 (vec_vmulouh): New.
13865 (vec_vmulosh): New.
13866 (vec_vnmsubfp): New.
13867 (vec_vnor): New.
13868 (vec_vor): New.
13869 (vec_vpkuhum): New.
13870 (vec_vpkuwum): New.
13871 (vec_vpkpx): New.
13872 (vec_vpkuhus): New.
13873 (vec_vpkshss): New.
13874 (vec_vpkuwus): New.
13875 (vec_vpkswss): New.
13876 (vec_vpkshus): New.
13877 (vec_vpkswus): New.
13878 (vec_vperm): New.
13879 (vec_vrefp): New.
13880 (vec_vrlb): New.
13881 (vec_vrlh): New.
13882 (vec_vrlw): New.
13883 (vec_vrfin): New.
13884 (vec_vrsqrtefp): New.
13885 (vec_vsel): New.
13886 (vec_vslb): New.
13887 (vec_vslh): New.
13888 (vec_vslw): New.
13889 (vec_vsldoi): New.
13890 (vec_vsl): New.
13891 (vec_vslo): New.
13892 (vec_vspltb): New.
13893 (vec_vsplth): New.
13894 (vec_vspltw): New.
13895 (vec_vspltisb): New.
13896 (vec_vspltish): New.
13897 (vec_vspltisw): New.
13898 (vec_vsrb): New.
13899 (vec_vsrh): New.
13900 (vec_vsrw): New.
13901 (vec_vsrab): New.
13902 (vec_vsrah): New.
13903 (vec_vsraw): New.
13904 (vec_vsr): New.
13905 (vec_vsro): New.
13906 (vec_stvx): New.
13907 (vec_stvebx): New.
13908 (vec_stvehx): New.
13909 (vec_stvewx): New.
13910 (vec_stvxl): New.
13911 (vec_vsububm): New.
13912 (vec_vsubuhm): New.
13913 (vec_vsubuwm): New.
13914 (vec_vsubfp): New.
13915 (vec_vsubcuw): New.
13916 (vec_vsububs): New.
13917 (vec_vsubsbs): New.
13918 (vec_vsubuhs): New.
13919 (vec_vsubshs): New.
13920 (vec_vsubuws): New.
13921 (vec_vsubsws): New.
13922 (vec_vsum4ubs): New.
13923 (vec_vsum4sbs): New.
13924 (vec_vsum4shs): New.
13925 (vec_vsum2sws): New.
13926 (vec_vsumsws): New.
13927 (vec_vrfiz): New.
13928 (vec_vupkhsb): New.
13929 (vec_vupkhpx): New.
13930 (vec_vupkhsh): New.
13931 (vec_vupklsb): New.
13932 (vec_vupklpx): New.
13933 (vec_vupklsh): New.
13934 (vec_vxor): New.
13935
cff27795
EB
139362002-04-23 Eric Botcazou <ebotcazou@multimania.com>
13937
13938 PR c/5430
13939 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
13940 added literals from substracted literals.
13941 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
13942 (fold) [associate]: Preserve MINUS_EXPR if needed.
13943
952bca84
ZW
139442002-04-23 Zack Weinberg <zack@codesourcery.com>
13945
13946 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
13947 are obsoleted.
13948
50cb2154
TT
139492002-04-23 Tom Tromey <tromey@redhat.com>
13950
13951 * gcc.c: Added --resource. For PR java/6314.
13952
271f61fb
DB
139532002-04-23 David O'Brien <obrien@FreeBSD.org>
13954
9566d1e9 13955 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
271f61fb
DB
13956 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
13957 these libraries.
13958
bdabbc80
DB
139592002-04-23 David O'Brien <obrien@FreeBSD.org>
13960
13961 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
13962
74411039
JH
13963Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
13964
13965 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
13966 workaround.
13967 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
13968 (ix86_expand_clrstr): Fix typo.
13969 * loop.c (gen_load_of_final_value): New.
13970 (loop_givs_rescan, strength_reduce, check_dbra_loop):
13971 Use it.
13972
1a887f86
RS
139732002-04-23 Roger Sayle <roger@eyesopen.com>
13974
13975 * builtins.c (builtin_memset_gen_str): New function.
13976 (expand_builtin_memset): Optimize the case of constant length, but
13977 unknown value.
13978
8d3441e0
AH
139792002-04-23 Aldy Hernandez <aldyh@redhat.com>
13980
cff27795
EB
13981 * config/rs6000/altivec.h (vec_step): Remove extraneous
13982 parentheses.
13983 (vec_ctu): Cast return.
8d3441e0 13984
f6f315fe
AM
139852002-04-23 Alan Modra <amodra@bigpond.net.au>
13986
13987 PR target/6413
13988 * function.h: (struct function): Add profile_label_no field.
13989 (current_function_profile_label_no): Define.
13990 * function.c: (profile_label_no): New static var.
13991 (expand_function_start): Increment it, and copy to
13992 current_function_profile_label_no.
13993 * output.h (profile_label_no): Delete.
13994 * final.c (profile_label_no): Delete.
13995 (profile_function): Use current_function_profile_label_no.
13996 (final_end_function): Don't increment profile_label_no here.
13997 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
13998 profile_label_no with current_function_profile_label_no.
13999 * config/pa/pa.c (current_function_number): Delete.
14000 (pa_output_function_prologue): Don't output profile label here.
14001 (hppa_profile_hook): Use label_no param rather than
14002 current_function_number.
14003 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
14004 * config/pa/pa.h: .. here.
14005 (FUNCTION_PROFILER): Output profile label here.
14006
d239cdc0
EC
140072002-04-22 Eric Christopher <echristo@redhat.com>
14008
14009 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
14010 patch of 2002-04-09 due to binutils issues.
14011 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
14012
04428ad4
AH
140132002-04-22 Aldy Hernandez <aldyh@redhat.com>
14014
cff27795
EB
14015 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
14016 constraint to 'o' for m=r and r=m alternatives.
14017 ("*movv8hi_internal1"): Same.
14018 ("*movv16qi_internal1"): Same.
14019 ("*movv4sf_internal1"): Same.
04428ad4 14020
2adc7f12
JJ
140212002-04-22 Janis Johnson <janis187@us.ibm.com>
14022
14023 * rtl.h (RTX_FLAG): New macro.
14024 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
14025 * final.c (alter_subreg): Use macro to access rtx flag.
14026 * integrate.c (copy_rtx_and_substitute): Use new access macro.
14027 * print-rtl.c (print_rtx): Use new access macro.
14028
14029 * cse.c (insert): Check rtx code before accessing flag.
14030
14031 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
14032 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
14033 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
14034 convert_const_symbol_ref, make_canonical, make_alternative_compare,
14035 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
14036 simplify_test_exp, optimize_attrs, simplify_by_exploding,
14037 find_and_mark_used_attributes, unmark_used_attributes,
14038 add_values_to_cover, simplify_with_current_value,
14039 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
14040 copy_rtx_unchanging, main): Use new access macros.
14041
b7c89afe
TR
140422002-04-22 Tom Rix <trix@redhat.com>
14043
14044 * expmed.c (init_expmed): Generate shifted constant once.
14045
9340544b
ZW
140462002-04-22 Zack Weinberg <zack@codesourcery.com>
14047
14048 * c-lex.c (lex_charconst): Call convert to get constant in
14049 proper type; don't just smash the type field.
14050 Fixes PR c/6300.
14051
14052 * config.gcc: Add list of obsolete configurations. Disallow
14053 building these without --enable-obsolete.
14054 * doc/install.texi: Document --enable-obsolete and obsoletion
14055 policy. Mention obsoletion of individual targets in
14056 appropriate places.
14057
f942d7a5
RH
140582002-04-22 Richard Henderson <rth@redhat.com>
14059
14060 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
14061
140622002-04-22 Mark Mitchell <mark@codesourcery.com>
8ed8f731
MM
14063
14064 PR f/6138.
14065 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
14066 (walk_fixup_memory_subreg): Likewise.
14067 (fixup_var_refs_insn): Adjust accordingly.
14068 (fixup_var_refs_1): Likewise.
14069
232b0b45
UW
140702002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
14071
14072 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
14073 LIBPATH_ARCH64_SPEC): Define.
14074 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
14075 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
14076 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
14077 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
14078
1b61552b
JS
140792002-04-22 Joel Sherrill <joel@OARcorp.com>
14080
14081 * gthr-rtems.h: Correct prototypes to remove warnings.
14082
0fe854a7
RH
140832002-04-22 Richard Henderson <rth@redhat.com>
14084
14085 PR c/6344
14086 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
14087
14088 * gcse.c (free_insn_expr_list_list): New.
14089 (clear_modify_mem_tables): Use it. Fix bit set usage.
14090 (canon_list_insert): Use EXPR_LISTs for expressions.
14091 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
14092
af0d16cd
NB
140932002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
14094
14095 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
14096 file change and include code to _cpp_pop_buffer.
14097 * cpphash.h (struct pending_option): Predeclare.
14098 (struct cpp_reader): New member next_include_file.
14099 (_cpp_pop_file_buffer): Update.
14100 (_cpp_push_next_buffer): Update, rename.
14101 * cppinit.c (cpp_destroy): Free include chain and pending here.
14102 (cpp_finish_options): Simplify.
14103 (_cpp_push_next_buffer): Rename and clean up.
14104 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
14105 Clarify.
14106 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
14107
0d918572
AH
141082002-04-22 Aldy Hernandez <aldyh@redhat.com>
14109
0fe854a7
RH
14110 * config/rs6000/altivec.h (vec_xor): Add variant for both args
14111 being vector signed int.
14112 (vec_andc): Same.
14113 (vec_xor): Add variant for both args being vector signed char.
14114 Remove redundant variant.
14115 (vec_andc): Same.
0d918572 14116
77e2c290
DM
141172002-04-21 David S. Miller <davem@redhat.com>
14118
14119 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
14120 compare mode in output RTL.
14121
ee2ca2a2
DE
141222002-04-22 David Edelsohn <edelsohn@gnu.org>
14123
14124 * config/rs6000/rs6000.c (rs6000_override_options): Correct
14125 style and formatting of previous patch.
14126
894bdff6
AM
141272002-04-22 Alan Modra <amodra@bigpond.net.au>
14128
14129 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
14130 flag_pic for ABI_AIX.
14131
562a5c27
NB
141322002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
14133
14134 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
14135 * cppfiles.c (read_include_file): Similarly.
14136 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
14137 uxstrdup ustrchr, ufputs): Similarly.
14138 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
14139 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
14140 cpp_ideq, parse_identifier, parse_number): Similarly.
14141 * cpplib.c (struct directive, dequote_string, D, run_directive,
14142 cpp_push_buffer): Similarly.
14143 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
14144 _cpp_create_definition, check_trad_stringification,
14145 cpp_macro_definition): Similarly.
14146
9ac3b1be
NB
141472002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
14148
14149 * cppmacro.c (funlike_invocation_p): Don't step back
14150 over CPP_EOF.
14151
9dda4cc8
DE
141522002-04-21 David Edelsohn <edelsohn@gnu.org>
14153
14154 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
14155 labelno.
14156
20764052
JM
141572002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
14158
14159 * doc/invoke.texi: Remove Chill references.
14160 * doc/gcc.texi: Update last modified date.
14161
26b29884
KH
141622002-04-20 Kazu Hirata <kazu@hxi.com>
14163
14164 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
14165 push and pop. Replace add.l with add.w.
14166
59184677
TM
141672002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
14168
14169 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
14170 multiply instructions for H8/300H case.
14171
b1113e0a
TM
141722002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
14173
14174 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
14175 Bum three instructions from each routine.
14176
b03e38e1
NB
141772002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
14178
14179 * Makefile.in: Update.
14180 * decl.c (push_c_function_context, pop_c_function_context,
14181 mark_c_function_context): Rename for consistency.
14182 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
14183 * c-tree.h (push_c_function_context, pop_c_function_context,
14184 mark_c_function_context): Rename for consistency.
14185 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
14186 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
14187 * function.c (init_lang_status, save_lang_status,
14188 restore_lang_status, mark_lang_status, free_lang_status):
14189 Move to langhooks.h.
14190 (push_function_context_to, pop_function_context_from,
14191 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
14192 Update.
14193 * function.h (init_lang_status, save_lang_status,
14194 restore_lang_status, mark_lang_status, free_lang_status):
14195 Move to langhooks.h.
14196 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
14197 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
14198 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
14199 LANG_HOOKS_FUNCTION_INITIALIZER): New.
14200 (LANG_HOOKS_INITIALIZER): Update.
14201 (lhd_do_nothing_f): New.
14202 * langhooks.h (struct lang_hooks_for_functions): New.
14203 (struct lang_hooks): New hooks.
14204 * langhooks.c (lhd_do_nothing_f): New.
14205objc:
14206 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
14207 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
14208
db430d26
DM
142092002-04-19 David S. Miller <davem@redhat.com>
14210
14211 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
14212 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
14213
0f2a3457
JJ
142142002-04-19 Jakub Jelinek <jakub@redhat.com>
14215
14216 PR optimization/3756
14217 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
14218 x = ((int) y < 0) ? cst1 : cst2.
14219
ce5e43d0
JJ
142202002-04-19 Jakub Jelinek <jakub@redhat.com>
14221
14222 PR c/6358
14223 * function.c: Reapply patch for c/6358.
14224 (expand_function_end): Copy decl_rtl's mode, not
14225 current_function_return_rtx mode.
14226
142272002-04-19 Joel Sherrill <joel@OARcorp.com>
9eb83f6c
JS
14228
14229 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
14230 targets.
14231
40e7f8ea
TT
142322002-04-19 Tom Tromey <tromey@redhat.com>
14233
14234 * doc/install.texi (Specific): Update status of Solaris 2.8.
14235 For PR libgcj/6158.
14236
62a12b27
AS
142372002-04-19 Andreas Schwab <schwab@suse.de>
14238
14239 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
14240 (PUT_REAL): Restore old definition.
14241
1405141b
DN
142422002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
14243 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14244
14245 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
14246 binutils 2.11.2 and higher generate smaller binaries than Sun's
14247 native tools.
14248
303a3927
MM
142492002-04-19 Mark Mitchell <mark@codesourcery.com>
14250
14251 PR c++/6352
14252 * toplev.c (rest_of_compilation): Do not defer functions for which
14253 TREE_SYMBOL_REFERENCED has already been set.
14254
de80110b
JH
14255Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
14256
14257 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
14258 alternative.
14259
ab393bf1
NB
142602002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
14261
14262 * builtins.c: Include langhooks.h.
14263 (lang_type_promotes_to): Remove.
14264 (expand_builtin_va_arg): Use new hook.
14265 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
14266 (simple_type_promotes_to): Move to c-typeck.c.
14267 * c-common.h (simple_type_promotes_to): Remove.
14268 * c-decl.c (duplicate_decls, grokdeclarator): Update.
14269 * c-format.c: Include langhooks.h.
14270 (check_format_types): Update.
14271 * c-tree.h (c_type_promotes_to): New.
14272 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
14273 (type_lists_compatible_p): Update.
14274 * langhooks-def.h (lhd_type_promotes_to): New.
14275 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
14276 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
14277 * langhooks.c (lhd_type_promotes_to): New.
14278 * langhooks.h (struct lang_hooks_for_types): New hook.
14279 * tree.h (lang_type_promotes_to): Remove.
14280objc:
14281 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
14282
0cd3301b
RH
142832002-04-18 Richard Henderson <rth@redhat.com>
14284
58533fa2 14285 * function.c: Revert patch for c/6358.
0cd3301b
RH
14286
142872002-04-18 Richard Henderson <rth@redhat.com>
14288
58533fa2
RH
14289 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
14290 blocks. Handle multiple references to the TRAP block. Handle
14291 non-adjacent THEN and OTHER blocks.
0cd3301b 14292
58533fa2
RH
142932002-04-18 Richard Henderson <rth@redhat.com>
14294
14295 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
14296 crash with no type for by-mode libcalls.
14297
14298 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
0cd3301b 14299
57174693
BW
143002002-04-18 Bob Wilson <bob.wilson@acm.org>
14301
14302 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
14303 __xtensa_nonlocal_goto): Use a syscall instructions to flush
14304 the register windows.
14305
46468cd9
ZW
143062002-04-18 Zack Weinberg <zack@codesourcery.com>
14307
14308 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
14309 appropriate. Document need for extended precision even when
14310 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
14311 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
14312 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
14313 instead of relying on later syntax error when REAL_WIDTH > 5.
14314 * real.c: Define NE based only on whether or not we have a
14315 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
14316 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
14317 define GET_REAL and PUT_REAL as simple memcpy operations; no
14318 need to byteswap or round.
14319 Use #error instead of #ifdef-ing out the entire file, for
14320 prompt error detection.
14321
14322 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
14323
2f82dbf8
DM
143242002-04-18 David S. Miller <davem@redhat.com>
14325
14326 * config/sparc/sparc.h (BRANCH_COST): Define.
14327
14328 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
14329 does it.
14330
566576e7
HPN
143312002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
14332
14333 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
14334 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
14335 propagate_block calls after relaxation loop using new variable
14336 stabilized_prop_flags.
14337
51dcde6f
RH
143382002-04-18 Richard Henderson <rth@redhat.com>
14339
14340 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
14341 (ia64_va_arg): Expect variable sized types by reference.
14342 * config/ia64/ia64-protos.h: Update.
46468cd9 14343 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
51dcde6f
RH
14344 ia64_function_arg_pass_by_reference.
14345
26406018
RH
143462002-04-18 Richard Henderson <rth@redhat.com>
14347
46468cd9
ZW
14348 * ifcvt.c: Include except.h.
14349 (block_has_only_trap): Break out from find_cond_trap.
14350 (find_cond_trap): Use it. Always delete the trap block.
14351 (merge_if_block): Allow then block null. Be less simplistic about
14352 what insns can end a block.
14353 * Makefile.in (ifcvt.o): Depend on except.h.
96b453dc 14354
26406018
RH
14355 * config/ia64/ia64.md (trap, conditional_trap): New.
14356
a3acf46d
JJ
143572002-04-18 Jakub Jelinek <jakub@redhat.com>
14358
14359 PR c/6358
14360 * function.c (assign_parms): Assign hard current_function_return_rtx
14361 register here...
14362 (expand_function_end): ...not here.
14363
7a228918
NB
143642002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
14365
14366 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
14367 * c-tree.h (c_incomplete_type_error): New.
14368 * c-typeck.c (require_complete_type, build_component_ref): Update.
14369 (incomplete_type_error): Rename.
14370 * langhooks-def.h (lhd_incomplete_type_error): New.
14371 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
14372 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
14373 * langhooks.c (lhd_incomplete_type_error): New.
14374 * langhooks.h (struct lang_hooks_for_types): New hook.
14375 * tree.c (size_in_bytes): Use new hook.
14376 * tree.h (incomplete_type_error): Remove.
14377objc:
14378 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
14379
f18664c1
ZW
143802002-04-18 Zack Weinberg <zack@codesourcery.com>
14381
14382 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
14383 TARGET_FLOAT_FORMAT blocks.
14384
8ecab453
GP
143852002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14386
14387 * doc/install.texi (Downloading the source): Do not mention Chill
14388 any longer, but mention Ada.
14389 (Configuration): Do not mention Chill any longer.
14390
528d8489
HPN
143912002-04-18 Hans-Peter Nilsson <hp@axis.com>
14392
14393 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
14394
91da27c5
JH
14395Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
14396
14397 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
14398 in last patch.
14399
a32db605
JJ
144002002-04-18 Jakub Jelinek <jakub@redhat.com>
14401
14402 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
14403 instead of unsigned_type.
14404
5a28d8cc
JH
14405Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
14406
14407 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
14408 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
14409 later.
14410
3d980b9f
BS
144112002-04-18 Bernd Schmidt <bernds@redhat.com>
14412
14413 * attribs.c (vector_type_node_list): New static variable.
14414 (handle_vector_size_attribute): Use it to avoid generating a
14415 new type node each time we are called.
14416
2e676d78
BS
14417 * combine.c (subst): Avoid trying to make a vector mode subreg of
14418 an integer constant.
14419 (gen_lowpart_for_combine): Likewise.
46468cd9 14420
58c2956c
RS
144212002-04-18 Roger Sayle <roger@eyesopen.com>
14422 Jakub Jelinek <jakub@redhat.com>
14423
14424 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
14425 for integer constant c (if x has unsigned type or sign bit is not
14426 set in c). This folds the zero/sign extension into the bit-wise and
14427 operation.
14428
692efa8e
JJ
144292002-04-18 Jakub Jelinek <jakub@redhat.com>
14430
14431 PR middle-end/6205
14432 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
14433 otherwise xorps.
14434
1372d4ce
NY
144352002-04-17 NIIBE Yutaka <gniibe@m17n.org>
14436
14437 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
14438
169ce44d
NC
144392002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
14440
14441 * gcc.c (read_specs): Detect and fail if an attempt is made to
14442 rename a spec string to an already existing string.
14443
b30d2115
UW
144442002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
14445
14446 * config/s390/s390.c (legitimize_pic_address): Do not generate
14447 illegal address constant without CONST.
14448
d6964c30
KG
144492002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14450
14451 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
14452 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14453
7c82a1ed
UW
144542002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
14455
14456 PR optimization/6305
14457 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
14458 to make sure previous reloads are taken into account. Generate
14459 better code if one operand is an in-range immediate constant.
14460
58db9d1a
AH
144612002-04-16 Andrew Haley <aph@cambridge.redhat.com>
14462
14463 * doc/install.texi (Building): libgcj requires GNU make.
14464
2a732575
JJ
144652002-04-17 Jakub Jelinek <jakub@redhat.com>
14466
14467 PR bootstrap/6315
14468 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
14469 even if hard quad and register is not floating.
14470 (movtf reg<-mem split): Disallow splitting if hard quad and
14471 register is floating.
14472 (movtf mem<-reg split): Likewise.
14473 * config/sparc/sparc.c (fp_register_operand): New predicate.
14474 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
14475
75a65e46
ZW
144762002-04-17 Zack Weinberg <zack@codesourcery.com>
14477
14478 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
14479 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
14480 (unprotoize.o): Ditto. Build from protoize.c. Define
14481 UNPROTOIZE on command line.
14482 * protoize.c: Include cppdefault.h. Delete include_defaults.
14483 (in_system_include_dir): Use cpp_include_defaults (defined in
14484 cppdefault.o).
14485 * unprotoize.c: Delete file.
14486
650f0e97
AH
144872002-04-17 Aldy Hernandez <aldyh@redhat.com>
14488
46468cd9
ZW
14489 * config/rs6000/altivec.h (vec_ld): Add array variants.
14490 (vec_lde): Same.
14491 (vec_ldl): Same.
650f0e97 14492
71a0ab0c 144932002-04-17 Alan Matsuoka <alanm@redhat.com>
46468cd9 14494 Aldy Hernandez <aldyh@redhat.com>
71a0ab0c 14495
46468cd9
ZW
14496 * config/rs6000/altivec.h: Define __ALTIVEC__.
14497 (bool): New.
14498 (__pixel): New.
14499 (pixel): New.
14500 (vec_cfux): New.
14501 (vec_vmaddfp): New.
14502 (vec_vsldoi): New.
14503 Add parentheses to all macro arguments.
71a0ab0c 14504
ff2c46ac
RH
145052002-04-16 Richard Henderson <rth@redhat.com>
14506
14507 PR c++/6320
14508 * except.c (remove_eh_handler): Insert inner regions at beginning
14509 of sibling chain. Refactor expressions.
14510
f1ba94dd
RH
145112002-04-16 Richard Henderson <rth@redhat.com>
14512
f0871dfe
RH
14513 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
14514 * config/sparc/sol2-gas-bi.h: New file.
14515 * config.gcc (sparc*-solaris): Add it as needed.
14516 * configure.in (AS_SPARC64_FLAG): Remove check.
14517 * config.in, configure: Regenerate.
14518
14519 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
14520
145212002-04-16 Richard Henderson <rth@redhat.com>
14522
14523 * config/mips/mips.c (override_options): Don't override N32 for
14524 a 64-bit ISA.
409d3c60 14525
f1ba94dd
RH
14526 PR 6202
14527 * config/mips/mips.md (can_delay): Split out of existing define_delays.
14528 (HILO_delay): Set can_delay false.
14529
178c3eff
DJ
145302002-04-16 Dale Johannesen <dalej@apple.com>
14531
14532 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
14533 instruction addresses.
14534 (rs6000_output_function_epilogue): Likewise.
14535
7d6f6369
PC
145362002-04-16 Paolo Carlini <pcarlini@unitus.it>
14537
14538 * c-parse.in (poplevel, compstmt_start,
14539 compstmt_primary_start): Add ending ';', in accordance
14540 with POSIX.
14541
8947df0c
RH
145422002-04-16 Richard Henderson <rth@redhat.com>
14543
14544 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
14545 Adjust tm_file order to get TARGET_DEFAULT set properly.
14546 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
14547 * doc/install.texi (sparc-solaris): Update.
14548
3148ad6d
DJ
145492002-04-16 Dale Johannesen <dalej@apple.com>
14550
14551 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
14552 comparison operands do not match each other or if modes of
14553 conditions do not match result.
14554
014cb9b6 145552002-04-16 Hartmut Penner <hpenner@de.ibm.com>
562a69be 14556
014cb9b6
HP
14557 PR target/6305
14558 * config/s390/s390.md (mulsidi3): Set both subregs of the
46468cd9 14559 multiword register.
562a69be 14560
014cb9b6 145612002-04-16 Aldy Hernandez <aldyh@redhat.com>
4c8c0dec 14562
8947df0c 14563 * config/rs6000/altivec.h (vec_addc): Type check.
4c8c0dec 14564
a9772b60
JJ
145652002-04-16 Jakub Jelinek <jakub@redhat.com>
14566
14567 PR middle-end/6279
14568 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
14569
14570 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
14571
861829ed
RH
145722002-04-15 Richard Henderson <rth@redhat.com>
14573
14574 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
14575 call_really_used_regs too.
14576
bcf2fe9c
RH
145772002-04-15 Richard Henderson <rth@redhat.com>
14578
14579 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
14580
629111c7
DM
145812002-04-15 David S. Miller <davem@redhat.com>
14582
14583 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
14584 as being CLOBBERed.
14585
98ef3137
JJ
145862002-04-16 Jakub Jelinek <jakub@redhat.com>
14587
14588 PR c/6290
14589 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
14590 CONST_VECTOR is { 0, ... 0 }.
14591
0aa911c5
LR
145922002-04-15 Loren J. Rittle <ljrittle@acm.org>
14593
14594 * doc/install.texi (Installing GCC: Configuration): Clarify
14595 the only supported ways to configure gcc.
14596
83248d49 145972002-04-15 Roland McGrath <roland@frob.com>
46468cd9 14598
83248d49
RM
14599 * config.gcc (alpha*-*-gnu*): New target configuration.
14600 * config/alpha/gnu.h: New file for it.
14601 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
14602
b2123dc0
MM
146032002-04-16 Mark Mitchell <mark@codesourcery.com>
14604
14605 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
14606 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
14607 * tree.h (expand_start_stmt_expr): Update prototype.
14608 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
14609 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
14610 on the STMT_EXPR created for the inline function.
46468cd9 14611
8fe2d853
RH
146122002-04-15 Richard Henderson <rth@redhat.com>
14613
14614 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
14615 config/i386/linux-aout.h, config/i386/linux-oldld.h,
14616 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
14617 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
14618 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
14619 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
14620 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
14621 Define __gnu_linux__, not gnu_linux.
14622 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
14623
07cdae91
MM
146242002-04-15 Mark Mitchell <mark@codesourcery.com>
14625
14626 Remove Chill front end.
14627 * gcc.c (default_compilers): Remove Chill entries.
14628 * ch: Remove directory.
14629 * doc/frontends.texi: Remove information about Chill.
14630 * doc/sourcebuild.texi: Likewise.
14631 * doc/standards.texi: Likewise.
14632
41823c5e
DR
146332002-04-15 Douglas B Rupp <rupp@gnat.com>
14634
14635 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
14636 (LONGLONG_STANDALONE): Define.
14637
eb29ddb6
DM
146382002-04-15 David S. Miller <davem@redhat.com>
14639
14640 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
14641 Call emit_library_call with LCT_NORMAL.
14642 (sparc_initialize_trampoline): Use LCT_foo instead of
14643 magic constant in emit_library_call invocations.
14644 (sparc64_initialize_trampoline): Likewise.
14645 (sparc_profile_hook): Likewise.
14646 * config/sparc/sparc.md: Likewise.
14647
14648 * config/sparc/sparc.c (sparc_extra_constraint_check):
14649 Fix type of argument 'c'.
14650 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
14651 Likewise.
14652
bd6bec6b
GDR
146532002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
14654
14655 * diagnostic.h (output_buffer_state): Redefine.
14656 (output_format_decoder): New macro.
14657 (output_prefixing_rule): Likewise.
14658 (output_line_cutoff): Likewise.
14659 (diagnostic_format_decoder): Adjust.
14660 (diagnostic_prefixing_rule): Likewise.
14661 (diagnostic_line_cutoff): Likewise.
14662 (diagnostic_state): Likewise.
14663 (diagnostic_kind_count): Likewise.
14664 (diagnostic_buffer): Now a macro.
14665
14666 * diagnostic.c (diagnostic_buffer): Remove definition.
14667 (output_is_line_wrapping): Adjust.
14668 (set_real_maximum_length): Likewise.
14669 (output_set_maximum_length): Likewise.
14670 (init_output_buffer): Likewise.
14671 (lhd_print_error_function): Likewise.
14672 (output_do_verbatim): Likewise.
14673
ebef4e8c
NB
146742002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
14675
14676 * cpperror.c (print_location): Don't print include chain
14677 if line == 0.
14678 (cpp_begin_message): Update to use DL_ macros.
14679 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
14680 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
14681 cpp_notice, cpp_notice_from_errno): Remove.
14682 (cpp_error, cpp_error_with_line): Update to take a diagnostic
14683 level.
14684 (cpp_errno): New.
14685 * cppexp.c (CPP_ICE): Remove.
14686 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
14687 lex, integer_overflow, _cpp_parse_expr): Update.
14688 * cppfiles.c (read_include_file, find_include_file,
14689 handle_missing_header, _cpp_read_file, remap_filename): Update.
14690 * cpphash.h (enum error_type): Remove.
14691 (_cpp_begin_message): Update.
14692 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
14693 cpp_handle_option, cpp_post_options): Update.
14694 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
14695 skip_whitespace, parse_identifier, parse_slow, parse_string,
14696 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
14697 cpp_interpret_charconst): Update.
14698 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
14699 lex_macro_node, do_undef, glue_header_name, parse_include,
14700 do_include_common, read_flag, do_line, do_linemarker, do_ident,
14701 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
14702 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
14703 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
14704 _cpp_pop_buffer, do_diagnostic): Update.
14705 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
14706 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
14707 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
14708 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
14709 cpp_notice, cpp_notice_from_errno): Remove.
14710 (cpp_error, cpp_error_with_line): Update to take a diagnostic
14711 level.
14712 (cpp_errno): New.
14713 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
14714 collect_args, enter_macro_context, save_parameter, parse_params,
14715 _cpp_create_definition, check_trad_stringification,
14716 cpp_macro_definition): Update.
14717 * cppmain.c (cpp_preprocess_file): Update.
14718 * fix-header.c (read_scan_file): Update.
14719
c19a3859
AS
147202002-04-14 Andreas Schwab <schwab@suse.de>
14721
14722 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
14723
10fdbed6
JD
147242002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
14725
14726 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
14727
77660a9a
MM
147282002-04-13 Mark Mitchell <mark@codesourcery.com>
14729
14730 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
14731 not gnu_hurd.
14732
e0ff1ded
HPN
147332002-04-13 Hans-Peter Nilsson <hp@axis.com>
14734
14735 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
14736
2341c7ea
JS
147372002-04-13 Joel Sherrill <joel@OARcorp.com>
14738
14739 * config/sparc/t-elf: Enable v8 multilibs. Impacts
14740 sparc-elf and sparc-rtems targets.
14741
d29350c0
MM
147422002-04-13 Mark Mitchell <mark@codesourcery.com>
14743
14744 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
14745 defined, and __gnu_hurd__ wherever __GNU__ is defined.
14746 * arm/linux-elf.h: Likewise.
14747 * cris/aout.h: Likewise.
14748 * cris/linux.h: Likewise.
14749 * i370/linux.h: Likewise.
14750 * i386/gnu.h: Likewise.
14751 * i386/linux-aout.h: Likewise.
14752 * i386/linux-oldld.h: Likewise.
14753 * i386/linux.h: Likewise.
14754 * i386/linux64.h: Likewise.
14755 * ia64/linux.h: Likewise.
14756 * m68k/linux-aout.h: Likewise.
14757 * m68k/linux.h: Likewise.
14758 * mips/linux.h: Likewise.
14759 * pa/pa-linux.h: Likewise.
14760 * pj/linux.h: Likewise.
14761 * rs6000/sysv4.h: Likewise.
14762 * s390/linux.h: Likewise.
14763 * sh/linux.h: Likewise.
14764 * sparc/linux-aout.h: Likewise.
14765 * sparc/linux.h: Likewise.
14766 * sparc/linux64.h: Likewise.
14767 * xtensa/linux.h: Likewise.
14768
fc552851
RS
147692002-04-13 Richard Sandiford <rsandifo@redhat.com>
14770
14771 * stmt.c (check_unique_operand_names): Expect operand names to
14772 be strings rather than identifiers. Use simple_cst_equal to
14773 compare them.
14774 (resolve_operand_name_1): Make same identifier to string change here.
14775 * c-parse.in (asm_operand): Convert a named operand into a string.
14776 * cp/parse.y (asm_operand): Likewise.
14777
1d405c5e
AS
147782002-04-13 Andreas Schwab <schwab@suse.de>
14779
14780 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
14781
c740732f
MM
147822002-04-12 Mark Mitchell <mark@codesourcery.com>
14783
14784 Revert these changes:
14785
14786 2002-04-06 Mark Mitchell <mark@codesourcery.com>
14787
14788 PR c++/5571
14789 * stor-layout.c (layout_decl): Reset the RTL for the decl.
14790
3fc602a0
RH
147912002-04-12 Richard Henderson <rth@redhat.com>
14792
14793 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
14794 (sparc*-*-solaris): Clean up header files.
14795 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
14796 and plan on generating 64-bit code.
14797 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
14798 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
14799 * config/sparc/sol2-sld-64.h: Rename ...
14800 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
14801 for AS_SPARC64_FLAG not defined.
14802 * config/sparc/sol2-gld-bi.h: New.
14803 * config/sparc/sol2-sld.h: Remove.
14804 * config/sparc/sol26-sld.h: New.
14805 * config/sparc/sol2.h: Tidy comments.
14806 * doc/install.texi: Document sparc-solaris configury changes.
14807
2f15e255
RH
148082002-04-12 Richard Henderson <rth@redhat.com>
14809
14810 * recog.c (offsettable_address_p): Match the logic in adjust_address.
14811
14812 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
14813 in 64-bit mode only. Use only for 32-bit or MEDLOW.
14814
cc8475cb
RO
148152002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14816
14817 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
14818
6f133a4a
JL
14819Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
14820
ef1b8858 14821 * pa.c (pa_can_combine_p): Call extract_insn before calling
6f133a4a
JL
14822 constrain_operands.
14823
1329e600
DR
148242002-04-12 Douglas B Rupp <rupp@gnat.com>
14825
14826 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
14827 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
14828 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2d424b9f 14829 (CPP_PREDEFINES): Handle __declspec.
1329e600
DR
14830 * config/i386/t-interix (USER_H): Remove.
14831
0339d239
DD
148322002-04-12 DJ Delorie <dj@redhat.com>
14833
14834 * integrate.c (compare_blocks): Make comparisons safe for when
14835 sizeof(int) < sizeof(char *).
14836 (find_block): Likewise.
14837
cc4d5fec
JH
148382002-04-12 Jan Hubicka <jh@suse.cz>
14839 David Edelsohn <edelsohn@gnu.org>
14840
14841 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
14842 registers.
14843 (symbol_ref_operand): New.
14844 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
14845 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
14846
93215a1b
AS
148472002-04-12 Andreas Schwab <schwab@suse.de>
14848
14849 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
14850 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
14851 overrides the definition in config/svr4.h.
46468cd9 14852
1d80248e
EN
148532002-04-12 Eric Norum <eric.norum@usask.ca>
14854
14855 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
14856 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
14857 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
14858 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
14859 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
14860 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
14861 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
14862 definitions to config/rtems.h and make the targets more similar.
14863
fa1591cb
RK
14864Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14865
fa06ab5c
RK
14866 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
14867 POINTERS_EXTEND_UNSIGNED.
14868 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
14869 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
14870
fa1591cb
RK
14871 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
14872 not specified.
14873
12e85a0e
R
14874Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
14875
14876 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
14877 depends on TARGET_SHMEDIA, not TARGET_SH5.
14878
1ab3e58a
HPN
148792002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
14880
14881 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
14882 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
14883
18778292
R
14884Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
14885
14886 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
14887 no r0 clobber.
14888
9002507c
AS
148892002-04-12 Andreas Schwab <schwab@suse.de>
14890
14891 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
14892
9be40833
RH
148932002-04-12 Richard Henderson <rth@redhat.com>
14894
14895 PR bootstrap/4191
14896 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
14897
14898 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
14899 modes spanning multiple hard regs.
46468cd9 14900
9be40833
RH
14901 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
14902
3d9268b6
JDA
149032002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14904
14905 * pa.c (pa_output_function_prologue): Don't accumulate the total
14906 number of code bytes when using TARGET_64BIT, or gas, SOM and not
14907 the portable runtime.
14908 (output_deferred_plabels): Handle 64bit plabels.
14909 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
14910 generating pic code using the GAS assembler for object formats that
14911 are not SOM (ie., ELF32 and ELF64).
14912 (output_millicode_call): Check attribute type if attribute length is 28.
14913 Likewise use $PIC_pcrel$0. Only call get_attr_length and
14914 dbr_sequence_length once.
14915 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
14916 dbr_sequence_length once.
14917 * pa.h (TARGET_SOM): Define if not defined.
14918 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
14919 with GAS and not SOM.
14920 (jump, call_internal_reg, call_value_internal_reg): Likewise.
14921 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
14922
d360fd18
DB
149232002-04-11 David O'Brien <obrien@FreeBSD.org>
14924
14925 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
14926 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
14927 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
14928 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
14929 elfos.h and dbxelf.h values are fine now.
14930 * config/i386/freebsd.h, config/alpha/freebsd.h
14931 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
14932
5b8fcab6
DB
149332002-04-11 David O'Brien <obrien@FreeBSD.org>
14934
14935 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
14936 or set Acpu or Amachine. Reformat.
14937 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
14938 define.
14939 (LINK_SPEC): Do not need to undef.
14940 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
14941 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
14942 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
14943 define.
14944 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
14945 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
14946 (LINK_SPEC): Do not need to undef.
14947 (DONT_USE_BUILTIN_SETJMP): Do not define.
14948 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
14949 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
14950 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
14951 Remove trailing spaces.
14952 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
14953 __ELF__, or set Acpu or Amachine. Reformat.
14954 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
14955 define.
14956
fee42cc1
DB
149572002-04-11 David O'Brien <obrien@FreeBSD.org>
14958
14959 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
14960 all other *-*-freebsd* targets.
14961
77a403e4
RH
149622002-04-11 Richard Henderson <rth@redhat.com>
14963
14964 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
14965
cf0005c6
DB
149662002-04-11 David O'Brien <obrien@FreeBSD.org>
14967
14968 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
14969 Include {cpu}/{cpu}.h thru tm_file.
14970 (alpha*-*-linux*ecoff): Remove target.
14971 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
14972 (LINK_SPEC): Remove, is not OS independent.
14973 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
14974 (LINK_SPEC): Do not need to #undef any longer.
14975 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
14976 any longer.
14977 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
14978 __ELF__.
14979 (LINK_SPEC): Moved here from alpha/elf.h.
14980 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
14981 SUB_CPP_PREDEFINES.
14982 * config/alpha/linux-ecoff.h: Remove.
14983 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
14984 (CPP_SPEC): Define _POSIX_SOURCE as needed.
14985 (CPP_SUBTARGET_SPEC): Do not define.
14986 (LINK_SPEC): Do not need to #undef any longer.
14987 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
14988 * config/alpha/vms.h: Likewise.
14989
9be40833 149902002-04-11 Richard Sandiford <rsandifo@redhat.com>
7825d1cf
RS
14991
14992 * doc/extend.texi: Remove old claim that typedefs cannot have
14993 an alignment attribute.
14994
010f87c4
JJ
149952002-04-11 Jakub Jelinek <jakub@redhat.com>
14996
14997 PR optimization/6177
14998 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
14999 bitpos is 0 and bitsize CONCAT size.
15000
578fc63d
JJ
150012002-04-11 Jakub Jelinek <jakub@redhat.com>
15002
15003 PR c/6223
15004 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
15005
bf9b85ce
DB
150062002-04-10 David O'Brien <obrien@FreeBSD.org>
15007
15008 * config/alpha/freebsd.h: Minor reformatting.
15009 (CPP_SPEC): Define ELF and add cpp_subtarget.
15010 (ASM_SPEC): No longer needed.
15011
7425707d
RH
150122002-04-11 Richard Henderson <rth@redhat.com>
15013
15014 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
15015 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
15016 (dimode mem/zero splitter): New.
15017
1a05e874
HPN
150182002-04-11 Hans-Peter Nilsson <hp@axis.com>
15019
15020 * config/cris/cris.c (cris_override_options): Tweak error message
15021 for PIC not implemented.
15022
15023 * config/cris/cris.h: Tweak comments related to parameter-passing.
15024
15025 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
15026
6f3d0447
RH
150272002-04-10 Richard Henderson <rth@redhat.com>
15028
15029 * except.c (add_ehl_entry): Allow duplicates after landing pad
15030 creation.
15031
174bf2b1
DE
150322002-04-10 David Edelsohn <edelsohn@gnu.org>
15033
15034 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
15035
03f10472
TM
150362002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
15037
15038 * c-decl.c (c_init_decl_processing): Move generation of
15039 decls for g77_integer_type_node and friends from here ...
15040 * c-common.c (c_common_nodes_and_builtins): ... to here.
15041
2f460a0a
UW
150422002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
15043
15044 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
15045 is only used as frame pointer when frame_pointer_needed is true.
15046
0be5cf85
RE
150472002-04-10 Richard Earnshaw <rearnsha@arm.com>
15048
15049 PR target/817
15050 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
15051 for the fact that the pool entry uses two words.
15052 (movdf_hard_insn): Similarly. Also, ADR instruction can span
15053 1k bytes.
15054 (movdf_soft_insn): Similarly.
15055 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
15056 for the fact that the pool entry uses three words.
15057
bf6d4777
RS
150582002-04-10 Richard Sandiford <rsandifo@redhat.com>
15059
15060 * config/mips/mips.c (mips_va_arg): When using the struct version
15061 of the EABI va_list, allow arguments in the register save area to
15062 take up less room than a stack argument.
15063
c2e9dc85
RH
150642002-04-10 Richard Henderson <rth@redhat.com>
15065
15066 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
15067 if EXPAND_INITIALIZER.
15068
bc8e8e97
RH
150692002-04-09 Richard Henderson <rth@redhat.com>
15070
15071 * config/alpha/alpha.md (movdi_er_maybe_g): New.
15072 * config/alpha/alpha.c (alpha_expand_mov): Use it.
15073
a6a063b8
AM
150742002-04-10 Alan Modra <amodra@bigpond.net.au>
15075
15076 PR optimization/6233
15077 * rtlanal.c (pure_call_p): New function.
15078 * rtl.h (pure_call_p): Declare.
15079 * loop.c (prescan_loop): Use it to set has_nonconst_call.
15080 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
15081
7b2e1077
EC
150822002-04-09 Eric Christopher <echristo@redhat.com>
15083
15084 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
15085 information to .comm directive.
15086
d8a50944
RH
150872002-04-09 Richard Henderson <rth@redhat.com>
15088
15089 PR c/5078
15090 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
15091
6a58eee9
RH
150922002-04-09 Richard Henderson <rth@redhat.com>
15093
15094 * basic-block.h (flow_delete_block_noexpunge): Declare.
15095 (expunge_block_nocompact): Declare.
15096 * cfg.c (expunge_block_nocompact): Split out from ...
15097 (expunge_block): ... here.
15098 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
15099 (flow_delete_block_noexpunge): Split out from ...
15100 (flow_delete_block): ... here.
15101 * cfgcleanup.c (delete_unreachable_blocks): Compact while
15102 removing dead blocks.
15103 * except.c (exception_handler_labels): Remove.
15104 (exception_handler_label_map): New.
15105 (struct eh_region): Add aka member.
15106 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
15107 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
15108 (for_each_eh_label, for_each_eh_label_1): New.
15109 (init_eh): Register exception_handler_label_map.
15110 (free_eh_status): Use free_region.
15111 (find_exception_handler_labels): Use the map, not the list.
15112 (remove_exception_handler_label): Likewise.
15113 (maybe_remove_eh_handler): Likewise.
15114 (remove_eh_handler): Use the region aka bitmap.
15115 * except.h (exception_handler_labels): Remove.
15116 (for_each_eh_label): Declare.
15117 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
15118 * loop.c (invalidate_loops_containing_label): New.
15119 (find_and_verify_loops): Use it. Use for_each_eh_label.
15120 * sched-rgn.c (is_cfg_nonregular): Use
15121 current_function_has_exception_handlers.
15122
b47374fa
RH
151232002-04-09 Richard Henderson <rth@redhat.com>
15124
15125 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
15126 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
15127 Do not return changed status.
15128 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
15129 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
15130 New functions that do return changed status.
15131 * sbitmap.h: Update decls.
15132 * gcse.c, lcm.c: Use _cg functions as needed.
15133
1951818c
R
15134Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
15135
15136 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
15137 (sh64-*-elf*, sh-*-rtemself*): Likewise.
15138 * config/sh/embed_bb.c: New file.
15139 * config/sh/embed-elf.h: New file.
15140 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
15141 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
15142 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
15143 __PTRDIFF_TYPE__ .
15144 (SUBTARGET_CPP_PTR_SPEC): Don't define.
15145 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
15146 Add subtarget_asm_endian_spec.
15147 (ASM_SPEC): Use subtarget_asm_endian_spec.
15148 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
15149 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
15150 (WCHAR_UNSIGNED): Define.
15151 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
15152 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
15153 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
15154 Fix value.
15155 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
15156 (sh_adjust_cost): Likewise.
15157 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
15158 __PTRDIFF_TYPE__ .
15159 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
15160 (WCHAR_TYPE_SIZE): Likewise.
15161 (ASM_SPEC): Use subtarget_asm_endian_spec.
15162 (SH_ELF_WCHAR_TYPE): #undef/ #define.
15163 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
15164 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
15165 (MAX_WCHAR_TYPE_SIZE): Don't #define .
15166 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
15167 (USER_LABEL_PREFIX): Don't #undef /#define .
15168 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
15169 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
15170 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
15171 (ASM_SPEC): Likewise.
15172 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
15173 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
15174 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
15175 (LIB2FUNCS_EXTRA): Define.
15176 * t-sh64 (LIB2FUNCS_EXTRA): Define.
15177 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
15178 (LIB1ASMFUNCS_CACHE): Define.
15179 (LIB2FUNCS_EXTRA): Redefine empty.
15180
34295799
RH
151812002-04-08 Richard Henderson <rth@redhat.com>
15182
15183 * reorg.c (get_branch_condition): Use reversed_comparison_code.
15184
e8766a39
SC
151852002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15186
15187 * config/m68hc11/larith.asm (__map_data_section): Fix condition
15188 and optimize for size.
15189 (__do_global_ctors): Fix pointer comparison.
15190 (__do_global_dtors): Likewise.
15191
f451b552
DM
151922002-04-09 David S. Miller <davem@redhat.com>
15193
15194 * config/sparc/sparc.c (sparc_extra_constraint_check): New
15195 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
15196 allow reloading pseudos.
15197 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
15198 * config/sparc/sparc-protos.h: Declare it.
15199
15200 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
15201 unsigned comparison warning.
15202 (output_restore_regs): Mark leaf_function as unused.
15203
1ce7f3c2
RK
15204Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15205
15206 * expr.c (is_aligning_offset): New function.
15207 (expand_expr, case COMPONENT_EXPR): Call it.
15208
7a31a340
DM
152092002-04-08 David S. Miller <davem@redhat.com>
15210
15211 PR target/6082
15212 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
15213
15214 Make init_priority work on Sparc when using GNU ld.
15215 * config/sparc/linux.h, config/sparc/linux64.h,
15216 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
15217 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
15218 * config/sparc/sol2-gld.h: New file to do the same.
15219 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
15220 sparc/sol2-gld.h to tm_file.
15221
15222 PR optimization/4328
15223 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
15224 * doc/md.texi: Document it.
15225 * config/sparc/sparc.md (movdi_insn_sp64_novis,
15226 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
15227 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
15228 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
15229 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
15230
11579f33
AJ
152312002-04-08 Andreas Jaeger <aj@suse.de>
15232
15233 * stmt.c (expand_asm_operands): Revert last patch from Richard
15234 Henderson.
15235
b57215d9
GP
152362002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15237
15238 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
15239 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
15240
152412002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15242
15243 * doc/contrib.texi (Contributors): Add David O'Brien.
15244
534d0cc0
AM
152452002-04-08 Alan Modra <amodra@bigpond.net.au>
15246
15247 * configure.in (auto-build.h): Use target_alias and build_alias
15248 when running configure.
15249 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
15250 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
15251 * configure: Regenerate.
15252
19fe522a
DM
152532002-04-07 David S. Miller <davem@redhat.com>
15254
15255 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
15256
bf2d0b8e
JDA
152572002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
15258
15259 PR 5933
15260 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
15261 generating 32-bit pic code.
15262
477cdac7
JT
152632002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
15264
15265 * cppinit.c (cpp_create_reader): Initialize
15266 discard_comments_in_macro_exp.
15267 (COMMAND_LINE_OPTIONS): Add "-CC" option.
15268 (cpp_handle_option): Handle "-CC" option.
15269 * cpplex.c (save_comment): If saving a C++ comment in
15270 a directive, convert it to a C comment.
15271 (_cpp_lex_direct): Pass second comment start character to
15272 save_comment to indicate comment type.
15273 * cpplib.c (_cpp_handle_directive): If processing
15274 a "#define" directive and discard_comments_in_macro_exp
15275 is false, re-enable saving of comments.
15276 (lex_macro_node): If discard_comments_in_macro_exp is false,
15277 discard any comments before the macro identifier.
15278 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
15279 member.
15280 * cppmacro.c (cpp_get_token): If expanding a macro while
15281 processing a directive, discard any comments we might encounter.
15282 (parse_params): If discard_comments_in_macro_exp is false,
15283 ignore comments in the macro parameter list.
15284 * gcc.c (cpp_unique_options): Add "-CC" option.
15285 (option_map): Map "--comments-in-macros" to "-CC".
15286 * doc/cppopts.texi: Document "-CC" option.
15287 * f/lang-specs.h: Add "-CC" option.
15288 * testsuite/gcc.dg/cpp/maccom1.c: New test.
15289 * testsuite/gcc.dg/cpp/maccom2.c: New test.
15290 * testsuite/gcc.dg/cpp/maccom3.c: New test.
15291 * testsuite/gcc.dg/cpp/maccom4.c: New test.
15292 * testsuite/gcc.dg/cpp/maccom5.c: New test.
15293 * testsuite/gcc.dg/cpp/maccom6.c: New test.
15294
f1526122
JDA
152952002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
15296
15297 PR middle-end/6180
15298 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
15299
b1896e61
MM
153002002-04-06 Mark Mitchell <mark@codesourcery.com>
15301
0154eaa8
MM
15302 PR c++/5571
15303 * stor-layout.c (layout_decl): Reset the RTL for the decl.
15304
b1896e61
MM
15305 PR opt/5120
15306 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
15307 RTX_UNCHANGING_P for the functions arguments when a tail call
15308 is made.
15309
b0148884
JM
153102002-04-06 Jason Merrill <jason@redhat.com>
15311
15312 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
15313 (parse_options_and_default_flags): Set them appropriately.
15314 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
15315
392fc5b0
HPN
153162002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
15317
15318 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
15319 here.
15320
15321 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
15322 semicolon.
15323
15324 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
15325 types come in by-reference. Fix typo in comment.
15326
2d69e3cb
DM
153272002-04-05 David S. Miller <davem@redhat.com>
15328
15329 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
15330 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
15331 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
15332 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
15333
153342002-04-05 David S. Miller <davem@redhat.com>
15335
15336 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
15337 are not going to emit return instructions, emit at least a nop
15338 for the sake of sane backtraces.
15339
5f9fb0e3
RH
153402002-04-05 Richard Henderson <rth@redhat.com>
15341
15342 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
15343
49f37a0d
JJ
153442002-04-05 Jakub Jeilnek <jakub@redhat.com>
15345
15346 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
15347
974a3101
AO
153482002-04-05 Alexandre Oliva <aoliva@redhat.com>
15349
15350 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
15351 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
15352 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
15353
2e04a694
AS
153542002-04-05 Andreas Schwab <schwab@suse.de>
15355
a40179bd 15356 * c-convert.c: Include c-common.h.
2e04a694
AS
15357 * Makefile.in (c-convert.o): Updated.
15358
1f785b7c
JJ
153592002-04-05 Jakub Jelinek <jakub@redhat.com>
15360
15361 * mklibgcc.in: Use separate libgcc.map for each multilib.
15362 * Makefile.in (distclean): Don't remove libgcc.map here.
15363
4d2fb38b
JJ
153642002-04-05 Jakub Jelinek <jakub@redhat.com>
15365
15366 * Makefile.in (s-mlib): Handle --disable-multilib by separate
15367 genmultilib invocation.
15368
bb63e5a0
RS
153692002-04-04 Richard Sandiford <rsandifo@redhat.com>
15370
15371 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
15372 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
15373 to num_gprs for symmetry.
15374 * config/mips/mips.c: Adjust accordingly.
15375
8ab80eaa
NB
153762002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
15377
15378 * c-common.c (truthvalue_conversion): Rename, update.
15379 * c-common.h (c_common_truthvalue_conversion): New.
15380 * c-convert.c (convert): Update.
15381 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
15382 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
15383 * c-typeck.c (build_binary_op, build_unary_op,
15384 build_conditional_expr): Update.
15385 * fold-const.c (constant_boolean_node, fold): Use langhook.
15386 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
15387 * langhooks.h (struct lang_hooks): New hook.
15388 * stmt.c (expand_decl_cleanup): Use langhook.
15389 * tree.h (truthvalue_conversion): Remove.
15390objc:
15391 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
15392
a2e9374a
AM
153932002-04-05 Alan Modra <amodra@bigpond.net.au>
15394
15395 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
15396 Add rules to make null object file.
15397
64d08263
JB
153982002-04-04 Jim Blandy <jimb@redhat.com>
15399
15400 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
15401 macro formal parameter names.
15402
aa7634dd
DM
154032002-04-04 David S. Miller <davem@redhat.com>
15404
15405 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
15406
ecc114f7
RH
154072002-04-04 Richard Henderson <rth@redhat.com>
15408
15409 PR middle-end/5099
15410 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
15411 Support copies into and out of memory. Don't accept allows_reg
15412 and allows_mem as gospel.
15413
c4484b8f
RH
154142002-04-04 Richard Henderson <rth@redhat.com>
15415
15416 PR opt/6165
15417 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
15418 (write_dependence_p): Likewise.
15419
39002160
RH
154202002-04-04 Richard Henderson <rth@redhat.com>
15421
15422 * predict.c (estimate_bb_frequencies): Do frequency calculation
15423 with a volatile temporary.
15424
f53ebe71
UW
154252002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
15426
15427 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
15428
15e0ecab
JJ
154292002-04-04 Jakub Jelinek <jakub@redhat.com>
15430
15431 PR c++/6119
15432 * final.c (final_start_function): Don't bump profile_label_no here...
15433 (final_end_function): ...but here.
15434
ffd386b0
JJ
154352002-04-04 Jakub Jelinek <jakub@redhat.com>
15436
15437 * config/sparc/sparc.md (pic): New attribute.
15438 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
15439 into stack slots.
15440 (split after do_builtin_setjmp_setup): New.
15441
8b156b3e
JJ
154422002-04-04 Jakub Jelinek <jakub@redhat.com>
15443
15444 PR fortran/6106
15445 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
15446 change.
15447
014c0998
JJ
154482002-04-04 Jakub Jelinek <jakub@redhat.com>
15449
15450 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
15451 UNITS_PER_WORD for zero sized aggregates.
15452
4d8611d9
DM
154532002-04-03 David S. Miller <davem@redhat.com>
15454
15455 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
15456 one-character spec for this, just use %(link_gcc_c_sequence).
15457
b03ad99d
DM
154582002-04-03 David S. Miller <davem@redhat.com>
15459
15460 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
15461 handling.
15462
823fbbce
JDA
154632002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
15464
15465 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
15466 (DWARF_FRAME_RETURN_COLUMN): Move.
15467 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15468 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
15469 * pa.c (except.h, predict.h): Include.
15470 (FRP): Delete.
15471 (store_reg_modify, set_reg_plus_d): Revise prototypes.
15472 (output_ascii): Add cast.
15473 (store_reg_modify): Revise to add frame notes.
15474 (set_reg_plus_d): Likewise.
15475 (compute_frame_size): Include space for eh data registers in frame if
15476 the current function calls eh_return.
15477 (hppa_expand_prologue): Ensure register %r2 is saved if the current
15478 function calls eh_return. Save eh data registers if the current
15479 function calls eh_return. Fix code to add frame notes. Emit
15480 blockage to prevent insns with frame notes being scheduled in the
15481 delay slot of calls.
15482 (hppa_expand_epilogue): Restore eh data registers and do final stack
15483 adjustment if the current function calls eh_return. Don't add frame
15484 notes.
15485 (output_call): Revise for change in length of call insn. Don't do
15486 return pointer adjustment for an unconditional jump in the delay slot
15487 of a call when using frame notes.
15488 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
15489 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
15490 (ARG_POINTER_CFA_OFFSET): Define.
15491 * pa.md (return_external_pic): New pattern.
15492 (prologue): Correct formatting. Use return_external_pic if current
15493 function calls eh_return.
15494 (call_internal_symref, call_value_internal_symref,
15495 sibcall_internal_symref, sibcall_value_internal_symref): Change default
15496 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
15497 respectively.
15498 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
15499
15500 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
15501 list of targets to check using "nop" insn.
15502 * configure: Rebuilt.
15503
4078e224
AM
155042002-04-04 Alan Modra <amodra@bigpond.net.au>
15505
15506 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
15507
bbd7687d
DM
155082002-04-03 David S. Miller <davem@redhat.com>
15509
15510 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
15511 library sequence passed to the linker.
15512 (LINK_COMMAND_SPEC): Use it.
15513 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
15514 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
15515 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15516
659e5a7a
JM
155172002-04-03 Jason Merrill <jason@redhat.com>
15518
15519 * except.c (struct eh_status): Remove protect_list.
15520 (begin_protect_partials, end_protect_partials): Remove.
15521 (add_partial_entry): Remove.
15522 * except.h: Remove prototypes.
15523
15524 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
15525 expand_decl_cleanup_eh.
15526
15527 PR c++/5636
15528 * tree.h (CLEANUP_EH_ONLY): New macro.
15529 * stmt.c (expand_decl_cleanup_eh): New fn.
15530 (expand_cleanups): Check CLEANUP_EH_ONLY.
15531 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
15532 Use expand_decl_cleanup_eh.
15533 (expand_stmt): Adjust.
15534 * c-common.h: Adjust prototype.
15535
053d3344
HPN
155362002-04-04 Hans-Peter Nilsson <hp@axis.com>
15537
15538 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
15539 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
15540 (cris_target_asm_function_epilogue): Ditto.
15541 (cris_initial_frame_pointer_offset): Ditto.
15542 (cris_simple_epilogue): Ditto.
15543 (cris_expand_builtin_va_arg): Variable-size types come in
15544 by-reference.
15545
61ab5260
DM
155462002-04-03 David S. Miller <davem@redhat.com>
15547
15548 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
15549 little-endian.
15550 (set_fast_math): Correct 'fsr' type.
15551
ef4f94ac
RH
155522002-04-03 Richard Henderson <rth@redhat.com>
15553
36c2272c 15554 PR opt/3569
ef4f94ac
RH
15555 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
15556 * toplev.c (check_global_declarations): Use it.
15557 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
15558 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
15559 (LANG_HOOKS_DECLS): Add it.
15560 * langhooks.c (lhd_warn_unused_global_decl): New.
15561 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
15562 * c-objc-common.c (c_warn_unused_global_decl): New.
15563 * c-tree.h (c_warn_unused_global_decl): Declare.
15564 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
15565
599bba86
NB
155662002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
15567
15568 * langhooks-def.h (lhd_set_decl_assembler_name,
15569 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
15570 (LANG_HOOKS_INITIALIZER): Update.
15571 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
15572 * langhooks.h (struct lang_hooks): New hook.
15573 * tree.c (set_decl_assembler_name): Move to langhooks.c.
15574 (lang_set_decl_assembler_name): Remove.
15575 (init_obstacks): Don't set hook.
15576 (decl_assembler_name): New function.
15577 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
15578 (decl_assembler_name): New.
15579 (lang_set_decl_assembler_name): Remove.
15580
cf7b8b0d
JJ
155812002-04-03 Jakub Jelinek <jakub@redhat.com>
15582
15583 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
15584 works properly with .hidden symbols.
15585 * configure: Rebuilt.
15586 * config.in: Rebuilt.
15587 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
15588 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
15589 properly with .hidden symbols.
15590
faf6db38
JJ
155912002-04-03 Jakub Jelinek <jakub@redhat.com>
15592
15593 PR middle-end/6102
15594 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
15595 USE argument.
15596
68c17f30
RH
155972002-04-03 Richard Henderson <rth@redhat.com>
15598
15599 PR opt/4120
15600 * sched-rgn.c (sets_likely_spilled): New.
15601 (sets_likely_spilled_1): New.
15602 (add_branch_dependences): Use it.
15603
6584b4aa
RH
156042002-04-02 Richard Henderson <rth@redhat.com>
15605
15606 PR opt/4311
15607 * loop.h (LOOP_FIRST_PASS): New.
15608 * loop.c (strength_reduce): Mind it when deciding to unroll.
15609 * toplev.c (rest_of_compilation): Set it.
15610
0acf409f
DM
156112002-04-02 David S. Miller <davem@redhat.com>
15612
15613 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
15614 mems_ok_for_ldd_peep when the order of the loads being examined
15615 is reversed.
15616 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
15617 existing comment to increase comprehension of this situation.
15618
85654444
ZW
156192002-04-02 Zack Weinberg <zack@codesourcery.com>
15620
15621 * config/sh/sh.md: Don't use union real_extract.
15622
543828ca
RH
156232002-04-02 Richard Henderson <rth@redhat.com>
15624
15625 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
15626
39ed301b
DB
156272002-04-02 David O'Brien <obrien@FreeBSD.org>
15628
15629 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
15630 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
15631 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
15632 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
15633 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
15634 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
15635 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
15636 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
15637 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
15638 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
15639 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
15640 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
15641 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
15642 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
15643 Include as many configury headers via tm_file as possible. This
15644 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
15645 * config/openbsd-oldgas.h: New file.
15646 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
15647 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
15648 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
15649 config/i386/i386-coff.h, config/i386/i386-interix.h,
15650 config/i386/iscdbx.h, config/i386/linux-aout.h,
15651 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
15652 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
15653 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
15654 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
15655 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
15656 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
15657 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
15658 config/i386/vxi386.h: Do not directly include configury headers.
15659 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
15660 Directly include configury headers that are no longer automatically
15661 included by the above headers.
15662 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
15663 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
15664 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
15665 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
15666 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
15667 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
15668 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
15669 (TARGET_VERSION): Define.
15670 * config/i386/beos-elf.h, config/i386/freebsd.h,
15671 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
15672 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
15673 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
15674 config/i386/sco5.h, config/i386/sysv4.h
15675 (TARGET_VERSION): Do not need to protect.
15676 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
15677 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
15678 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
15679 config/i386/i386-interix.h, config/i386/linux-aout.h,
15680 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
15681 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
15682 (YES_UNDERSCORES): Do not define - not needed.
15683 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
15684 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
15685 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
15686 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
15687 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
15688 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
15689 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
15690 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
15691
9432c136
EB
156922002-04-02 Eric Botcazou <ebotcazou@multimania.com>
15693 Richard Henderson <rth@redhat.com>
15694
15695 PR c/5484
15696 * function.c (assign_temp): Accept either type or decl argument.
15697 Detect variables whose size is too large to fit into an integer.
15698 * stmt.c (expand_decl): Pass the decl, not the type.
15699
058b1275
DB
157002002-04-02 David O'Brien <obrien@FreeBSD.org>
15701
15702 * protoize.c: Match include directory usage with cppdefault.c.
15703
5add6d1a 157042002-04-03 Jeffrey A Law (law@redhat.com)
9be40833 15705 Hans-Peter Nilsson <hp@bitrange.com>
5add6d1a
JL
15706
15707 * combine.c (simplify_comparison): Avoid narrowing a comparison
15708 with a paradoxical subreg when doing so would drop signficant bits.
15709
1e533e4b
SE
157102002-04-02 Steve Ellcey <sje@cup.hp.com>
15711
15712 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
15713 if POINTERS_EXTEND_UNSIGNED is defined.
15714
7a145e92
RH
157152002-04-02 Richard Henderson <rth@redhat.com>
15716
15717 PR opt/3967
15718 * local-alloc.c (contains_replace_regs): LO_SUM may contain
15719 replace regs.
15720
3a079822
RH
157212002-04-02 Richard Henderson <rth@redhat.com>
15722
15723 * doc/standards.texi: Document required freestanding libc entry points.
15724
c94ccb87
AM
157252002-04-02 Alan Modra <amodra@bigpond.net.au>
15726
15727 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
15728 associated splitter. Remove MQ constraint.
15729 (ctrdi_internal4): Correct CCmode clobber.
15730
fe660a1a
JDA
157312002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
15732
15733 * milli64.S ($$dyncall): New function.
15734 * t-linux (LIB1ASMFUNCS): Revise module list.
15735 (LIB1ASMSRC): Use pa/milli64.S.
15736
eadc0202
RH
157372002-04-02 Richard Henderson <rth@redhat.com>
15738
15739 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
15740 rename solaris_sys_varargs_h.
15741
a1471322
RK
15742Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15743
15744 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
15745 the same mode as its component.
15746
c8b94768
RH
157472002-04-02 Richard Henderson <rth@redhat.com>
15748
15749 PR opt/190
15750 * final.c (this_is_asm_operands): Export.
15751 * output.h (this_is_asm_operands): Declare.
15752 * config/i386/i386.c (print_operand): Error odd asm operands.
15753
161eb4fc
RH
157542002-04-02 Richard Henderson <rth@redhat.com>
15755
15756 PR opt/420
15757 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
15758
b88a94c6
RH
157592002-04-01 Richard Henderson <rth@redhat.com>
15760
15761 PR target/1538
15762 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
15763 * fixinc/fixincl.x: Rebuild.
15764
72e32876
RH
157652002-04-01 Richard Henderson <rth@redhat.com>
15766
15767 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
15768 (atomic_alloc, atomic_free): New.
15769 (SIZE, MASK_FOR, PTR_IN): New.
15770 (emergency_reg_state, emergency_reg_state_free): New.
15771 (emergency_labeled_state, emergency_labeled_state_free): New.
15772 (reg_state_alloced, labeled_state_alloced): New.
15773 (alloc_reg_state, free_reg_state): New.
15774 (alloc_label_state, free_label_state, free_label_states): New.
15775 (push, pop, dup_state_stack, free_state_stack): Use them.
15776 (desc_label_state): Likewise.
15777 (uw_frame_state_for): Free label states and state stack.
15778 (uw_update_reg_address): Eliminate warnings.
15779
84d76074
VM
157802002-04-01 Vladimir Makarov <vmakarov@redhat.com>
15781
15782 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
9be40833 15783 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
84d76074 15784
dffd7eb6
NB
157852002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
15786
15787 * c-decl.c (grokdeclarator): Update.
15788 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
15789 * c-tree.h (c_mark_addressable): New.
15790 * c-typeck.c (default_function_array_conversion, build_unary_op,
15791 build_array_ref, convert_for_assignment): Update.
15792 (mark_addressable): Rename.
15793 * calls.c (try_to_integrate, expand_call): Use langhook.
15794 * expr.c (expand_expr): Use langhook.
15795 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
15796 * langhooks.h (struct lang_hooks): New hook.
15797 * stmt.c (expand_asm_operands): Use langhook.
15798 * tree.h (mark_addressable): Remove.
15799objc:
15800 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
15801
544ef5b5
BW
158022002-04-01 Bob Wilson <bob.wilson@acm.org>
15803
9be40833
RH
15804 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
15805 in previous change.
544ef5b5 15806
bcf88f9b
BW
158072002-04-01 Bob Wilson <bob.wilson@acm.org>
15808
15809 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
15810 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
15811
ceef8ce4
NB
158122002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
15813
15814 * c-common.c (unsigned_conversion_warning, convert_and_check,
15815 unsigned_type, signed_type, shorten_compare,
15816 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
15817 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
15818 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
15819 New.
15820 * c-decl.c (grokdeclarator): Update.
15821 * c-format.c (check_format_types): Update.
15822 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
15823 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
15824 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
15825 * convert.c (convert_to_integer): Use new hooks.
15826 * expmed.c (make_tree): Use new hooks.
15827 * expr.c (store_expr): Use new hooks.
15828 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
15829 all_ones_mask_p, unextend, fold): Use new hooks.
15830 * langhooks.h (struct lang_hooks_for_types): New hooks.
15831 * tree.h (signed_or_unsigned_type, signed_type,
15832 unsigned_type): Remove.
15833objc:
15834 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
15835 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
15836
1d9ad0e0
RH
158372002-03-31 Richard Henderson <rth@redhat.com>
15838
15839 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
15840 (desc_frgr_mem): Fix reference to f16-f31.
15841
d544bc39
KG
158422002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15843
15844 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
15845 RTVEC_ELT): Const-ify.
d8750784
KG
15846 * varray.h (VARRAY_CHECK): Const-ify.
15847 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
15848 ggc_mark_rtvec, ggc_mark): Const-ify.
d544bc39 15849
b18101c7
NB
158502002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
15851
15852 * diagnostic.c: Include langhooks-def.h.
15853 * Makefile.in (diagnostic.o): Update.
15854
48a7a235
NB
158552002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
15856
15857 * c-common.c (c_unsafe_for_reeval): Rename.
15858 * c-common.h (c_unsafe_for_reeval): Rename.
15859 * c-decl.c (finish_incomplete_decl): Rename.
15860 (c_init_decl_processing): Don't set langhook.
15861 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
15862 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
15863 * c-objc-common.c (c_objc_common_init): Don't set langhook.
15864 * c-tree.h (finish_incomplete_decl): Rename.
15865 * langhooks-def.h (lhd_unsafe_for_reeval): New.
15866 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
15867 (LANG_HOOKS_INITIALIZER): Update.
15868 * langhooks.c (lhd_unsafe_For_reeval): New.
15869 * langhooks.h (struct langhooks): New hooks.
15870 * toplev.c (incomplete_decl_finalize_hook): Remove.
15871 (wrapup_global_declarations): Update.
15872 * tree.c (lang_unsafe_for_reeval): Remove.
15873 (unsafe_for_reeval): Update.
15874 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
15875 Remove.
15876objc:
15877 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
15878 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
15879
7cb32822
NB
158802002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
15881
15882 * diagnostic.c (print_error_function): Remove.
15883 (default_print_error_function): Rename.
15884 (report_error_function): Update.
15885 * diagnostic.h (print_error_function): Remove.
15886 (default_print_error_function): Remove.
15887 * langhooks-def.h (struct diagnostic_context): Predeclare.
15888 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
15889 (LANG_HOOKS_INITIALIZER): Update.
15890 * langhooks.h (struct diagnostic context): Predeclare.
15891 (struct lang_hooks): New hook.
15892
1db02437
FS
158932002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15894
15895 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
15896 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
15897 !flag_pic.
15898 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
15899 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
15900 of PIC_OFFSET_TABLE_REGNUM thruout.
15901 * config/rs6000/rs6000.md: Likewise.
15902 * config/rs6000/darwin.h: Likewise.
15903
3bf1e984
RK
15904Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15905
15906 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
15907 unsigned HOST_WIDE_INT, not unsigned int.
15908
0864c526
JJ
159092002-03-31 Jakub Jelinek <jakub@redhat.com>
15910
15911 PR middle-end/6096, middle-end/6098, middle-end/6099
15912 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
15913 CODE_LABELs.
15914 (fill_slots_from_thread): Likewise.
15915
105b2084
JJ
159162002-03-31 Jakub Jelinek <jakub@redhat.com>
15917
15918 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
15919 floating fields in float regs.
15920 (function_arg_record_value_2): Likewise.
15921
db08fddf
HPN
159222002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
15923
15924 * config/mmix/mmix.md (define_constants): Remove misleading
15925 FIXME. Add MMIX_fp_rO_OFFSET.
15926 ("nonlocal_goto_receiver"): Don't have stack-frame address of
15927 saved rO as part of the pattern. Remove FIXME.
15928 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
15929 here, at output-time.
15930
4f31cce8
JJ
159312002-03-31 Jakub Jelinek <jakub@redhat.com>
15932
15933 PR middle-end/6100
15934 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
15935 REG_BR_PRED.
15936 (output_v9branch): Likewise.
15937
ba2b7435
AO
159382002-03-31 Alexandre Oliva <aoliva@redhat.com>
15939
15940 * gcc.c: Revert previous patch for now.
15941 * config/i386/djgpp.h: Likewise.
15942
aa66aa5f 159432002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8f840f57
HPN
15944
15945 * config/mmix/crti.asm (_init): Register _fini with atexit.
15946 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
15947
41ba8a20
RH
159482002-03-31 Richard Henderson <rth@redhat.com>
15949
15950 PR target/3997
15951 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
15952 (ASM_OUTPUT_DEF_FROM_DECLS): New.
15953
adc186ef
RH
159542002-03-31 Richard Henderson <rth@redhat.com>
15955
15956 * libgcc2.c (__bb_exit_func): Make static.
15957
9be40833 15958 * config/alpha/alpha.md (trap): New.
a7648399 15959
9602f5a0
RH
159602002-03-31 Richard Henderson <rth@redhat.com>
15961
15962 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
15963 promoted argument types; build trap.
15964 (expand_builtin_trap): New.
15965 (expand_builtin): Use it.
15966 * stmt.c (expand_nl_goto_receivers): Likewise.
15967 * expr.h (expand_builtin_trap): Declare.
15968 * libfuncs.h (LTI_abort, abort_libfunc): New.
15969 * optabs.c (init_optabs): Init abort_libfunc.
15970
1a0a7539
AO
159712002-03-31 Alexandre Oliva <aoliva@redhat.com>
15972
15973 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
15974 (LINK_COMMAND_SPEC): ... from here.
7b2e1077 15975 (init_gcc_specs): Duplicate it here too, omitting
1a0a7539
AO
15976 shared_name in the second copy.
15977 (init_spec): Test for duplicate
15978 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
15979
b5de1a27
DM
159802002-03-30 David S. Miller <davem@redhat.com>
15981
15982 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
15983 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
15984
78414d74 159852002-03-30 Roger Sayle <roger@eyesopen.com>
9be40833 15986 Richard Henderson <rth@redhat.com>
78414d74 15987
9be40833
RH
15988 * regmove.c (combine_stack_adjustments_for_block): Avoid
15989 emitting a stack adjustment of zero bytes. Let delete_insn
15990 update bb->head.
78414d74 15991
33074e5f
RH
159922002-03-30 Richard Henderson <rth@redhat.com>
15993
15994 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
15995 (sparc_emitting_epilogue): New.
15996 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
15997 * config/sparc/sparc-protos.h: Update.
15998 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
15999 (TARGET_SWITCHES): Update.
16000 * config/sparc/sparc.md (return): Remove.
16001 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
16002 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
16003 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
16004 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
16005 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
16006 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
16007 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
16008 Remove MASK_EPILOGUE.
16009 * doc/invoke.texi: Update.
16010
606cc056
DB
160112002-03-30 Daniel Berlin <dan@dberlin.org>
16012
16013 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
16014 CPP will start the file for us.
7b2e1077 16015
bdbe5b8d
RH
160162002-03-30 Richard Henderson <rth@redhat.com>
16017
16018 PR target/5446
16019 * config/ia64/ia64.c (group_barrier_needed_p): Special case
16020 prologue_allocate_stack.
16021 (ia64_single_set): Use insn codes for recognition of special
16022 cases, not rtl matching.
16023 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
16024
4ab95d82
JH
16025Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
16026
16027 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
16028
89a8b315
RH
160292002-03-30 Richard Henderson <rth@redhat.com>
16030
16031 PR target/6032
16032 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
16033 or -fomit-frame-pointer with profiling.
16034 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
16035 (FUNCTION_PROFILER): Do nothing.
16036 (PROFILE_HOOK): New.
16037 * config/sparc/sparc.c (sparc_override_options): Don't check
16038 code models for profiling.
16039 (sparc_function_profiler): Remove.
16040 (sparc_profile_hook): New.
16041 * config/sparc/sparc-protos.h: Update.
16042
30984c57
JJ
160432002-03-30 Jakub Jelinek <jakub@redhat.com>
16044
16045 PR optimization/6086
16046 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
16047 of SUBREG of volatile MEM or because the MEM was mode dependent,
16048 return CLOBBER instead of unmodified SUBREG.
16049
1540f9eb
JH
16050Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
16051
89a8b315
RH
16052 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
16053 when not optimizing.
1540f9eb
JH
16054
16055 * toplev.c (rest_of_compilation): Cann mark_constant_function
16056 only when optimizing.
16057
89a8b315
RH
16058 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
16059 are NULL.
1540f9eb
JH
16060
16061 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
16062 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
16063 (try_optimize_cfg): clear all AUX fields.
16064
16065 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
16066 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
16067 (ix86_address_cost): Be prepared for SUBREGed registers.
16068 (legitimate_address_p): Accept SUBREGed registers.
16069
70d95bac
RH
160702002-03-29 Richard Henderson <rth@redhat.com>
16071
16072 PR target/5672
16073 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
16074
d3294cd9
FS
160752002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16076
16077 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
16078 for aggregate and TFmode types.
16079
a106c875
HPN
160802002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
16081
16082 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
16083
7d7a5d6f
RH
160842002-03-29 Richard Henderson <rth@redhat.com>
16085
6e2d670b 16086 PR target/5886
7d7a5d6f
RH
16087 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
16088 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
16089
30c99a84
RH
160902002-03-29 Richard Henderson <rth@redhat.com>
16091
6e2d670b 16092 PR target/6041
30c99a84
RH
16093 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
16094 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
16095 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
16096 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
16097 conditional.
16098 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
16099
02a566dc
DJ
161002002-03-29 Dale Johannesen <dalej@apple.com>
16101
16102 * loop.c (combine_movables): Do allow combination of pseudos.
16103
bc3a44db
LR
161042002-03-29 Loren J. Rittle <ljrittle@acm.org>
16105
16106 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
16107 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
16108 No functional change except ...
16109 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
16110 * doc/install.texi (*-*-freebsd*): Document port configuration.
16111
b0c48229
NB
161122002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
16113
16114 * Makefile.in (convert.o, calls.o, expmed.o): Update.
16115 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
16116 Use new hooks.
16117 * builtin-types.def (BT_PTRMODE): Update.
16118 * c-common.c (type_for_size): Rename c_common_type_for_size.
16119 (type_for_mode): Similarly.
16120 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
16121 Use new hook.
16122 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
16123 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
16124 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
16125 Redefine.
16126 * c-typeck.c (common_type, comptypes, default_conversion):
16127 Use new hooks.
16128 * calls.c: Include langhooks.h.
16129 (emit_library_call_value_1): Use new hooks. Avoid redundant
16130 calls.
16131 * convert.c: Include langhooks.h
16132 (convert_to_pointer, convert_to_integer): Use new hooks.
16133 * except.c (init_eh): Similarly.
16134 * expmed.c: Include langhooks.h.
16135 (expand_mult_add): Use new hooks.
16136 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
16137 try_casesi): Similarly.
16138 * fold-const.c (optimize_bit_field_compare, make_range,
16139 decode_field_reference, fold_truthop, fold): Similarly.
16140 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
16141 put_var_into_stack): Similarly.
16142 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
16143 LANG_HOOKS_TYPE_FOR_SIZE): New.
16144 (LANG_HOOKS_TYPES_INITIALIZER): Update.
16145 * langhooks.h (lang_hooks_for_types): New hooks.
16146 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
16147 * tree.c (get_unwidened, get_narrower): Similarly.
16148 * tree.h (type_for_mode, type_for_size): Remove.
16149 * varasm.c (force_const_mem): Use new hooks.
16150 * utils2.c (nonbinary_modular_operation): Update.
16151objc:
16152 * objc-act.c (handle_impent): Update.
16153 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
16154 Redefine.
16155
e206a74f
SE
161562002-03-29 Steve Ellcey <sje@cup.hp.com>
16157
16158 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
16159 * config/ia64/ia64.c (basereg_operand): New.
16160 * config/ia64/ia64-protos.h (basereg_operand): Declare.
16161 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
16162
7d9b6378
HPN
161632002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
16164
16165 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
16166 unwind information when frame_pointer_needed.
16167 (mmix_assemble_integer): Tweak wording in comment.
16168
f1e639b1
NB
161692002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
16170
16171 * Makefile.in (except.o): Update.
16172 * except.c: Include langhooks.h.
16173 (init_eh): Use langhook.
16174 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
16175 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
16176 (LANG_HOOKS_INITIALIZER): Update.
16177 * langhooks.h (lang_hooks_for_types): New.
16178 (struct lang_hooks): Add it.
16179 * tree.c (make_lang_type_fn, make_lang_type): Remove.
16180 * tree.h (make_lang_type_fn, make_lang_type): Remove.
16181config:
16182 * alpha/alpha.c: Include langhooks.h.
16183 (alpha_build_va_list): Use langhook.
16184 * d30v/d30v.c: Include langhooks.h.
16185 (d30v_build_va_list): Use langhook.
16186 * i386/i386.c: Include langhooks.h.
16187 (ix86_build_va_list): Use langhook.
16188 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
16189 * s390/s390.c: Include langhooks.h.
16190 (s390_build_va_list): Use langhook.
16191 * stormy16/stormy16.c: Include langhooks.h.
16192 (stormy16_build_va_list): Use langhook.
16193
f17f9332
JJ
161942002-03-29 Jakub Jelinek <jakub@redhat.com>
16195
16196 PR c++/5964
16197 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
16198 attributes.
16199 (length): Compute variable length for branches/calls/jumps here.
16200 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
16201 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
16202 define branch_type attribute.
16203 (divsi3_sp32): Maximum length is 6 not 7.
16204 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
16205 call_address_untyped_struct_value_sp32,
16206 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
16207 * config/sparc/sparc.c (empty_delay_slot): New function.
16208 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
16209 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
16210
0a0440c9
JJ
162112002-03-29 Jakub Jelinek <jakub@redhat.com>
16212
16213 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
16214 nonzero_bits if not needed.
16215 (nonzero_bits) [XOR]: Likewise.
16216 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
16217 reg_last_set_mode and mode are both MODE_INT, but not equal.
16218 (record_value_for_reg): Compute reg_last_set_nonzero_bits
16219 in nonzero_bits_mode for MODE_INT modes.
16220
c9045f47
RH
162212002-03-28 Richard Henderson <rth@redhat.com>
16222
16223 PR target/5715
16224 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
16225 to GAS. Correct drift between alternatives.
16226
f8ed1958
RH
162272002-03-28 Richard Henderson <rth@redhat.com>
16228
16229 PR target/6087
16230 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
16231
54e20385
LR
162322002-03-28 Alexandre Oliva <aoliva@redhat.com>
16233
16234 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
16235 emulation to the linker.
16236
162372002-03-28 Loren J. Rittle <ljrittle@acm.org>
16238
16239 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
16240 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
16241
8bc52806
JL
16242Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
16243
16244 * combine.c (simplify_and_const_int): Make sure to apply mask
16245 when force_to_mode returns a constant integer. PR3311.
16246
279dccc5
JDA
162472002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
16248
16249 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
16250
62aaa62c
GP
162512002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16252
16253 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
16254 and Objective-C Dialect Options.
16255
b8de5050
RH
162562002-03-28 Richard Henderson <rth@redhat.com>
16257
16258 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
16259 comparison should be done vs !=0 not >0 return code. Tidy cases.
16260
619708cc
RH
162612002-03-28 Richard Henderson <rth@redhat.com>
16262
16263 * c-decl.c (finish_function): New arg can_defer_p. Pass it
16264 on to c_expand_body.
16265 * c-tree.h (finish_function): Update decl.
16266 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
16267
b1d874d7
JH
16268Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
16269
16270 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
16271
f5eb5fd0
JH
16272Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
16273
16274 * rtlanal.c: Include flags.h
16275 (may_trap_p): Do not mark FP operations if trapping
16276 if !flag_trapping_math
16277 * Makefile.in (rtlanal.o): Add dependency on flag.h
16278 * ifcvt.c (noce_operand_ok): Avoid the lameness.
16279
81b4c798
ZW
162802002-03-27 Zack Weinberg <zack@codesourcery.com>
16281
16282 * mips.md: Use dconst1, not 1.0, as first argument of
16283 REAL_VALUE_LDEXP. Don't use union real_extract.
16284
55a2ea2a
AM
162852002-03-28 Alan Modra <amodra@bigpond.net.au>
16286
16287 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
16288 rather than $target. Heed program_prefix and
16289 program_transform_name. Search for gas in cross-compiler case too.
16290 "test -x" rather than "test -f".
16291 (gcc_cv_ld): Likewise.
16292 (gcc_cv_nm): Heed program_prefix and program_transform_name.
16293 (gcc_cv_objdump): Likewise.
16294 * configure: Regenerate.
16295
7ffb4fd2
NB
162962002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
16297
16298 * Makefile.in (attribs.o): Update.
16299 * attribs.c: Include langhooks.h.
16300 (decl_attributes): Use langhook.
16301 * c-decl.c (insert_default_attributes): Rename.
16302 * c-tree.h (c_insert_default_attributes): New.
16303 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
16304 (LANG_HOOKS_INITIALIZER): Update.
16305 * langhooks.h (struct lang_hooks): New hook.
16306 * tree.h (insert_default_attributes): Remove.
16307objc:
16308 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
16309
e4dbaed5
AS
163102002-03-27 Andreas Schwab <schwab@suse.de>
16311
16312 * config/i386/i386.c (classify_argument): Also check for
16313 QUAL_UNION_TYPE.
16314
18b467f1
RO
163152002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16316
16317 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
16318 any more.
16319
d337d653
JH
16320Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
16321
16322 * i960.md (ret): Set PC.
16323 (nonlocal_goto): Fix expander.
16324 * builtins.c (epxand_builin_longjmp): Check that we've emitted
16325 some jump or call.
16326
218aa620
JH
16327Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
16328
16329 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
16330 of libcall regions.
16331
e27a4eaf
ZD
16332Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16333
16334 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
16335 assigning to BLOCK_FOR_INSN directly.
16336
8a12f34c
JH
16337Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
16338
16339 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
16340
c9d892a8
NB
163412002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
16342
16343 * c-common.c (c_expand_expr): Fix prototype.
16344 * c-common.h (c_expand_expr): Always declare, update.
16345 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
16346 * c-objc-common.c (c_objc_common_init): No global hook.
16347 * expr.c (expand_expr): Use langhook.
16348 * expr.h (enum expand_modifier): Conditionally declare.
16349 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
16350 (LANG_HOOKS_INITIALIZER): Update.
16351 * langhooks.c (lhd_expand_expr): New.
16352 * langhooks.h (struct lang_hooks): New hook.
16353 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
16354 (lang_independent_init): Don't default hook.
16355objc:
16356 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
16357
6dad5a56
RH
163582002-03-27 Richard Henderson <rth@redhat.com>
16359
16360 PR target/6054
16361 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
16362 TARGET_CONST_GP. Simplify conditions.
16363
59f96879
RH
163642002-03-27 Richard Henderson <rth@redhat.com>
16365
16366 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
16367 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
16368 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
16369
f3f1190d
DS
163702002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
16371
16372 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
16373 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
16374 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
16375 Remove unnecessary masks.
16376 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
16377 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
16378 -mwindows, -mdll switches and their negations.
16379
31c816cf
NB
163802002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
16381
16382 * gcc-common.c (lang_mark_false_label_stack): Remove.
16383 * ggc.h (lang_mark_false_label_stack): Similarly.
16384
7b2e1077 163852002-03-26 Vladimir Makarov <vmakarov@redhat.com>
aee8f532
VM
16386
16387 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
16388
16389 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
16390 or __rtems_ is defined.
16391
1ef9531b
RH
163922002-03-26 Richard Henderson <rth@redhat.com>
16393
16394 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
16395 if a non-trivial load was emitted.
16396 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
16397 in high+extra+low case.
16398
300d4093
RH
163992002-03-26 Richard Henderson <rth@redhat.com>
16400
16401 * config.gcc (sparc*-solaris): Use float_format=sparc.
16402
b3689904
RH
164032002-03-26 Richard Henderson <rth@redhat.com>
16404
16405 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
16406 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
16407 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
16408 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
16409 (WINT_TYPE_SIZE): Fix at 32.
16410
1eefb6c1
RH
164112002-03-26 Richard Henderson <rth@redhat.com>
16412
16413 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
16414 until after eh landing pad generation.
16415 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
16416 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
16417
361ea006
RH
164182002-03-26 Richard Henderson <rth@redhat.com>
16419
16420 * expr.h (ADD_PARM_SIZE): One more convert for INC.
16421
1de38a88
PE
164222002-03-26 Phil Edwards <pme@gcc.gnu.org>
16423
16424 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
16425 and warning switches.
16426 (cc1_options): Likewise.
16427
d7e60e95 164282002-03-26 Hans Boehm <Hans_Boehm@hp.com>
361ea006 16429
d7e60e95
HB
16430 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
16431 Restore more of the signal context. Set no_reg_stack_frame.
16432 * config/ia64/unwind-ia64.c (unw_state_record):
16433 Add no_reg_stack_frame, comments.
16434 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
16435 (uw_update_context): Adjust bsp when unwinding from leaf,
16436 but not signal frame.
16437
7032923b
DE
164382002-03-26 David Edelsohn <edelsohn@gnu.org>
16439
16440 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
16441
8be56275
BW
164422002-03-26 Bob Wilson <bob.wilson@acm.org>
16443
16444 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
16445
56fbb855
RE
164462002-03-26 Richard Earnshaw <rearnsha@arm.com>
16447
16448 PR target/5621
16449 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
16450 "Add a pool_range attribute", which was lost during the ARM/Thumb
16451 merge.
16452
3437320b
BW
164532002-03-26 Bob Wilson <bob.wilson@acm.org>
16454
16455 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
16456 a register into the MAC16 accumulator.
16457
173028e5
AC
164582002-03-26 Andrew Cagney <ac131313@redhat.com>
16459
16460 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
16461 (Warning Options): Document -Wswitch-enum.
16462 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
16463 -Wswitch.
16464 (warn_switch_enum): Define variables.
16465 * flags.h (warn_switch_enum): Declare variables.
16466 * stmt.c (expand_end_case_type): When warn_switch_enum /
16467 -Wswitch-enum, perform switch checks.
16468 Fix PR c/5044.
7b2e1077 16469
e14365a7
RE
164702002-03-26 Richard Earnshaw <rearnsha@arm.com>
16471
16472 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
16473 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
16474 (reload_muladdsi_compare0_scratch): Delete.
16475
46fc709d
LR
164762002-03-26 Loren J. Rittle <ljrittle@acm.org>
16477
16478 * doc/install.texi (*-*-freebsd*): Update.
16479
f36dea3c
RH
164802002-03-26 Richard Henderson <rth@redhat.com>
16481
8e5fe23f
RH
16482 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
16483 (SUB_PARM_SIZE): Cast DEC to ssizetype.
16484
16485 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
16486 types from the normal argument frame.
16487
f36dea3c
RH
16488 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
16489 variable sized objects by reference.
16490 (sparc_va_arg): Receive them by reference too.
16491
1447dc69
HP
164922002-03-26 Hartmut Penner <hpenner@de.ibm.com>
16493
16494 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
7b2e1077 16495 code to not restoring global registers.
1447dc69 16496
4f0ade92
NB
164972002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
16498
16499 * Makefile.in (ggc-common.o): Update.
16500 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
16501 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
16502 * c-tree.h (c_mark_tree): New.
16503 * ggc-common.c: Include langhooks.h.
16504 (gcc_mark_trees): Use new langhook.
16505 * ggc-callbacks.c: Delete file.
16506 * ggc.h (lang_mark_tree): Remove.
16507 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
16508 (LANG_HOOKS_INITIALIZER): Update.
16509 * langhooks.h (struct lang_hooks): New hook.
16510objc:
16511 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
16512
caba570b
ZW
165132002-03-25 Zack Weinberg <zack@codesourcery.com>
16514
16515 * doc/cpp.texi: Exclude entire Top node from printed manual.
16516 Move option index after directive index. Insert page breaks
16517 before GFDL and concept index. Index environment variables
16518 with command line options.
16519 * doc/cppenv.texi: Use @vtable for environment variable list.
16520 Add paragraph explaining semantics of empty elements in path
16521 variables. Exclude a cross-reference to Fishkill from the
16522 manpage. Remove an unnecessary cross-reference of the entry
16523 right above the referer. Don't use @anchor in text that goes
16524 into manpage.
16525 * doc/cppopts.texi: Cross-reference the environment variables
16526 section, not the specific environment variable, for consistency.
16527
6b2e80b7
RH
165282002-03-25 Richard Henderson <rth@redhat.com>
16529
16530 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
16531 anywhere in the block. Don't refer to insns that have been
16532 removed from the chain. Iterate backward through the new insns.
16533 Don't refer to edges that have been removed.
16534
67e469d7
AM
165352002-03-26 Alan Modra <amodra@bigpond.net.au>
16536
16537 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
16538 test for overflow of constant.
16539
f2356393
RE
165402002-03-25 Richard Earnshaw <rearnsha@arm.com>
16541
16542 PR target/2623
16543 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
16544 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
16545 these patterns on arm_archv4.
16546
355426ab
DS
165472002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
16548
16549 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
16550 int".
16551
15e5ad76
ZW
165522002-03-25 Zack Weinberg <zack@codesourcery.com>
16553
16554 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
16555 float_handled, float_handler, float_signal, set_float_handler,
16556 and do_float_handler. Set handler for SIGFPE to crash_signal.
16557 * toplev.h: Don't prototype do_float_handler.
16558
16559 * c-lex.c: Fold parse_float into lex_number. Make warning
16560 about portability of hex float constants more informative, and
16561 don't issue it on top of a syntax error.
16562 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
16563 their callers.
16564 * real.h: Define REAL_VALUE_ABS here...
16565 * simplify-rtx.c: ... not here. Fold check_fold_consts,
16566 simplify_unary_real, simplify_binary_real, and
16567 simplify_binary_is2orm1 into their callers.
16568 * tree.c: Fold build_real_from_int_cst_1 into caller.
16569
16570 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
16571
16572 * tsystem.h: Include float.h here...
16573 * libgcc2.c: ... not here.
16574
56ae9405
NC
165752002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
16576
16577 Fixes for: PR bootstrap/3591, target/5676
16578 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
16579 defined. Do not disable exceptions or rtti.
16580 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
16581 mcore.h. Disable exceptions and rtti, since they are not
16582 supported by EPOC.
16583
c88770e9
NB
165842002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
16585
16586 * c-decl.c (maybe_build_cleanup): Remove.
16587 * expr.c (expand_expr): Use langhook.
16588 * langhooks-def.h (lhd_return_null_tree,
16589 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
16590 (LANGHOOKS_INITIALIZER): Update.
16591 * langhooks.c (lhd_return_null_tree): New.
16592 * langhooks.h (struct lang_hooks): New hook.
16593 * tree-inline.c (initialize_inlined_parameters): Use langhook.
16594 * tree.h (maybe_build_cleanup): Remove.
16595
2ed1f154
JJ
165962002-03-25 Jakub Jelinek <jakub@redhat.com>
16597
16598 * regrename.c (build_def_use): Move recog_memoized
16599 before extract_insn.
16600
6ddae612
JJ
166012002-03-25 Jakub Jelinek <jakub@redhat.com>
16602
16603 PR target/6043
16604 * expr.c (emit_group_store): Handle storing into CONCAT.
16605
ea475b23
JJ
166062002-03-25 Jakub Jelinek <jakub@redhat.com>
16607
16608 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
16609 corresponding MATCH_DUP.
16610
e7d482b9
RH
166112002-03-24 Richard Henderson <rth@redhat.com>
16612
cd39fc13
RH
16613 * unroll.c (unroll_loop): Zero label_map.
16614
e7d482b9
RH
16615 * gcse.c: Include except.h.
16616 * Makefile.in (gcse.o): Update.
16617
1bd6476f
RH
166182002-03-24 Richard Henderson <rth@redhat.com>
16619
16620 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
16621 Do resolve_unique_section before shared data clause.
16622
2e6c150a
RH
166232002-03-24 Richard Henderson <rth@redhat.com>
16624
16625 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
16626
b29afcf8
RH
166272002-03-24 Richard Henderson <rth@redhat.com>
16628
15e5ad76 16629 * recog.c (peephole2_optimize): Split blocks when EH insns are
b29afcf8
RH
16630 generated in the middle of a block. Do global life update if
16631 zapped EH edges.
16632
05ed1296
RH
166332002-03-24 Richard Henderson <rth@redhat.com>
16634
16635 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
16636
3ddbb8a9
NB
166372002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
16638
16639 preprocessor/3951
15e5ad76 16640 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3ddbb8a9
NB
16641 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
16642 (init_dependency_output): Don't make no_output decision here.
16643
740b77b6
AC
166442002-03-24 Andrew Cagney <ac131313@redhat.com>
16645
16646 * stmt.c (check_for_full_enumeration_handling): Remove tests of
16647 warn_switch. Update description.
16648 (expand_end_case_type): Call check_for_full_enumeration_handling
16649 when warn_switch.
16650
7590cfd0
SC
166512002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16652
16653 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
16654 (m68hc11_split_move): Call it to see if the source and destination
16655 operands use the same direction auto inc/dec mode, otherwise make the
c61f581f 16656 source an offsetable memory operand and generate an add.
7590cfd0 16657
2e3d3481
SC
166582002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16659
16660 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
16661 register for operand 2.
16662 ("*subsi3_zero_extendqi"): Likewise.
16663 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
16664 bits so that it is compatible with a pop.
16665 ("*andhi3_gen"): Likewise.
16666 ("xorhi3"): Likewise.
16667
2784528c
NB
166682002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
16669
16670 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
16671 -pedantic here...
16672 (cpp_post_options): ... not here.
16673
aaf93206
NB
166742002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
16675 Aldy Hernandez <aldyh@redhat.com>
16676
16677 Removal of separate preprocessor cpp0.
16678
16679 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
16680 cpp0, install-common): Update.
16681 * c-common.c (flag_preprocess_only): New.
16682 (c_common_init): Preprocess for -E.
16683 * c-common.h (flag_preprocess_only): New.
16684 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
16685 * c-objc-common.c (c_init_decl_processing): Exit quickly
16686 for NULL return from c_common_init.
16687 * cpplib.h (cpp_preprocess_file): New.
16688 * cppmain.c (main, general_init, pfile, progname): Remove.
16689 (do_preprocessing): Rename cpp_preprocess_file, don't call
16690 cpp_finish. Don't close stdout here.
16691 (setup_callbacks): Update prototype.
16692 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
16693 Update.
16694 * tradcpp.c (main): Ignore -quiet.
16695objc:
16696 * lang-specs.h (default_compilers): Preprocess with cc1obj.
16697
c6e6f5c1
RH
166982002-03-24 Richard Henderson <rth@redhat.com>
16699
16700 PR optimization/5742
16701 * machmode.def: Add inner mode field to complex modes.
16702 * config/mips/mips.c (mips_function_value): Always define. Add
16703 new argument to handle libcalls.
16704 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
16705 (FUNCTION_VALUE): Likewise.
16706 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
16707 * config/mips/mips-protos.h: Update.
16708
d88e57d1
RH
167092002-03-23 Richard Henderson <rth@redhat.com>
16710
16711 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
16712 * config/sparc/sparc-protos.h: Update.
16713 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
16714
6dfaf9ba
RH
167152002-03-23 Richard Henderson <rth@redhat.com>
16716
16717 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
16718 _start or _init begins the text segment.
16719
0c769cf8
DE
167202002-03-23 David Edelsohn <edelsohn@gnu.org>
16721
16722 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
16723 not HOST_WIDEST_INT.
16724 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
16725
64e92a26
RE
167262002-03-23 Richard Earnshaw <rearnsha@arm.com>
16727
16728 PR java/5489
16729 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
16730 operand argument to output_return_instruction.
15e5ad76 16731 * arm.c (arm_print_operand, case 'd'): If the operand is
64e92a26
RE
16732 const_true_rtx then just return.
16733 (arm_print_operand, case 'D'): If the operand is const_true_rtx
16734 then abort.
16735
d6961341
AC
167362002-03-23 Andrew Cagney <ac131313@redhat.com>
16737
16738 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
16739 (Warning Options): Document -Wswitch-default.
16740 * toplev.c (W_options): Add -Wswitch-default. Update comment on
16741 -Wswitch.
16742 (warn_switch_default): Define variable.
16743 (warn_switch): Update comment.
16744 * flags.h (warn_switch_default): Declare variable.
16745 (warn_switch): Update comment.
16746 * stmt.c (expand_end_case): Check for and, when
16747 warn_switch_no_default, warn of a missing default case.
15e5ad76 16748
d4c5ac1f
AM
167492002-03-23 Alan Modra <amodra@bigpond.net.au>
16750
bbaa9790
AM
16751 * real.h (N): Special case 128 bit doubles.
16752
d4c5ac1f
AM
16753 * combine.c (simplify_comparison): When widening modes, ignore
16754 sign extension on CONST_INTs.
16755
84bf8c2c
BW
167562002-03-22 Bob Wilson <bob.wilson@acm.org>
16757
16758 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
16759 passed to adjust_address. Fix comment formatting.
16760
16761
b216cd4a
ZW
167622002-03-22 Zack Weinberg <zack@codesourcery.com>
16763
16764 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
16765 Always make REAL_VALUE_TYPE a struct containing an array of
16766 HOST_WIDE_INT, not a double. Tidy up the code deciding how
16767 big it is. Don't declare or use union real_extract.
16768
16769 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
16770 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
16771 (print_operand), config/arm/arm.c (output_move_double),
16772 config/arm/arm.md (consttable_4, consttable_8),
16773 config/romp/romp.c (output_fpops), config/s390/s390.h
16774 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
16775 (xtensa_output_literal): Don't use union real_extract.
16776
16777 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
16778 (sfmode_constant_to_ulong), config/ns32k/merlin.h
16779 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
16780 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
16781 (PRINT_OPERAND): Don't use local version of union
16782 real_extract.
16783
16784 * config/convex/convex.c (check_float_value), config/vax/vax.c
16785 (vax_float_literal), config/m88k/m88k.md (divdf3),
16786 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
16787 config/pdp11/pdp11.c (output_move_quad): Don't do host
16788 arithmetic on target floating point quantities.
16789
16790 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
16791 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
16792
16793 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
16794 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
16795
16796 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
16797 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
16798 INFINITY.
16799 * print-rtl.c (print_rtx): Disable code which needs
16800 floating-point emulator.
16801 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
16802 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
16803 depending on HOST_FLOAT_FORMAT to be defined properly.
16804
16805 * config/1750a/1750a.c (get_double, float_label): Delete.
16806 (print_operand): Delete huge commented-out chunk. Use
16807 REAL_VALUE_TO_DECIMAL.
16808 * config/1750a/1750a-protos.h: Delete prototypes of deleted
16809 functions.
16810 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
16811 IEEE_FLOAT_FORMAT.
16812 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
16813 Use REAL_VALUE_TO_DECIMAL as ELF version does.
16814 * config/m88k/m88k.c (real_power_of_2_operand,
16815 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
16816 real_extract out of the union; run the input through
16817 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
16818 from that into the union.
16819 * config/pdp11/pdp11.c (output_move_double): Rearrange
16820 parentheses to make automatic indenter happy.
16821
16822 * doc/tm.texi (Cross-compilation): Rename node to "Floating
16823 Point" and rewrite to describe current situation. Also adjust
16824 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
16825 match code.
16826 * doc/rtl.texi: Adjust cross reference.
16827
a8cacfd2
BW
168282002-03-22 Bob Wilson <bob.wilson@acm.org>
16829
16830 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
16831 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
16832 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
16833 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
16834 prevent use of sp as a reload register.
16835 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
16836 non_acc_reg_operand.
16837 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
16838 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
16839 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
16840 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
16841
d4e6133f
NB
168422002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
16843
b216cd4a
ZW
16844 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
16845 * cpplex.c (unterminated): Delete.
16846 (parse_string): No string literal may extend over multiple
16847 lines. Suppress the error when preprocessing assembly.
d4e6133f
NB
16848 * cppmain.c (scan_translation_unit): Strings are single-line.
16849
b216cd4a 16850 * doc/cpp.texi: Update to match.
d4e6133f 16851
65e6c005
JJ
168522002-03-22 Jakub Jelinek <jakub@redhat.com>
16853
16854 PR optimization/5854
16855 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
16856 Shut up warnings.
16857 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
16858 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
16859 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
16860 const0 if scratch register was not allocated.
16861 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
16862 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
16863 with GEN_INT (...).
16864 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
16865 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
16866 with GEN_INT (...) everywhere. Remove constraints in define_split
16867 patterns.
16868 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
16869 require scratch register for setting 0 into regs/non-pushable memory.
16870
7f48c9e1
AO
168712002-03-22 Alexandre Oliva <aoliva@redhat.com>
16872
16873 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
16874 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
16875
909de5da
PE
168762002-03-22 Phil Edwards <pme@gcc.gnu.org>
16877
16878 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
16879 * cppinit.c (cpp_create_reader): On by default.
16880 (cpp_handle_option): Handle -W[no-]endif-labels.
16881 (cpp_post_options): Also enable if -pedantic.
16882 * cpplib.c (do_else): Use it.
16883 (do_endif): Likewise.
16884 * doc/cppopts.texi: Document new option.
16885 * doc/invoke.texi: Document new option.
16886
d8bf17f9
LB
168872002-03-22 Lars Brinkhoff <lars@nocrew.org>
16888
16889 * config/i386/i386.c, config/i386/i386.md: Change all occurences
16890 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
16891
70e0ccd0
AO
168922002-03-22 Alexandre Oliva <aoliva@redhat.com>
16893
16894 * flow.c (calculate_global_regs_live): Clear aux fields of
16895 ENTRY and EXIT.
16896
68882f0f
JJ
168972002-03-22 Jakub Jelinek <jakub@redhat.com>
16898
16899 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
16900 REG or MEM subregs, pass rtx * instead of rtx to it.
16901 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
16902 rtx * instead of rtx to alter_subreg.
16903 * config/m32r/m32r.c (gen_split_move_double): Likewise.
16904 * config/pj/pj.c (pj_output_rval): Likewise.
16905
648fe28b
RH
169062002-03-22 Richard Henderson <rth@redhat.com>
16907
16908 PR target/3177
16909 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
16910 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
16911 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
16912 (ia64_expand_prologue): Look at int_regs, not words, for number
16913 of incomming int regs.
16914
e8dcd824
AM
169152002-03-22 Andrew MacLeod <amacleod@redhat.com>
16916
16917 * expr.c (expand_expr): A RESULT_DECL is part of a call.
16918
96327cdc
JH
16919Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
16920
16921 * toplev.c (flag_loop_optimize, flag_crossjumping):
16922 New static variables.
16923 (rest_of_compilation): Conditionalize crossjumping and
16924 loop optimizer.
16925 (parse_options_and_default_flags): Default loop_optimize and
16926 crossjumping.
16927 (lang_independent_options): Add -fcrossjumping and -floop-optimize
16928 * invoke.texi (crossjumping, loop-optimize): Document.
16929
bc185257
RS
169302002-03-22 Richard Sandiford <rsandifo@redhat.com>
16931
16932 * real.c (eiisneg): Move outside #ifdef NANS.
16933
0a2ed1f1
JH
16934Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
16935
16936 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
16937 frequencies match; avoid match on different loop depths.
16938 (try_crossjump_to_bb): Kill tests that no longer brings time
16939 savings.
16940 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
16941 updating code.
16942 (split_edge): Likewise.
16943
16944 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
16945 variable.
16946
16947 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
16948 * cfgrtl.c: Include insn-config.h
16949 (split_block) Dirtify block in presence of conditional execution
16950
4d72536e
RS
169512002-03-22 Richard Sandiford <rsandifo@redhat.com>
16952
16953 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
16954 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
16955 (function_arg): Constify CUMULATIVE_ARGS.
16956 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
16957 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
16958 (UNITS_PER_DOUBLE): New macro.
16959 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
16960 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
16961 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
16962 fp_regs and stack_words.
16963 (EABI_FLOAT_VARARGS_P): New macro.
16964 * config/mips/mips.c (struct mips_arg_info): New.
16965 (mips_arg_info): New function.
16966 (function_arg_advance): Use it. Add adjustment instructions here
16967 rather than in function_arg.
16968 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
16969 for VOIDmode at the beginning of the function.
16970 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
16971 (function_arg_pass_by_reference): Likewise.
16972 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
16973 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
16974 (mips_va_start): Likewise. Use the new stack_words field of
16975 CUMULATIVE_ARGS to set up overflow area. Reformat.
16976 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
16977 doubles and other types, aligning the overflow pointer for non-doubles
16978 too. Remove some code duplication. Replace hard-coded constants.
16979
e6f884cd
RS
169802002-03-22 Richard Sandiford <rsandifo@redhat.com>
16981
16982 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
16983 (CLASS_UNITS): Undefine.
16984 (CLASS_MAX_NREGS): Use FP_INC.
16985 * config/mips/mips.c (compute_frame_size): Likewise.
16986 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
16987
10cf9bde
NB
169882002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
16989
16990 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
16991 prototype, and handle lexing numbers and identifiers.
16992 (parse_identifier): Update to new form of parse_slow.
16993 (parse_number): Fast path only, use parse_slow otherwise.
16994 (_cpp_lex_direct): Update calls to parse_number.
16995
fbc2782e
DD
169962002-03-21 DJ Delorie <dj@redhat.com>
16997
16998 * bb-reorder.c (make_reorder_chain_1): Protect against
16999 when redundant edges are omitted.
17000 * predict.c (dump_prediction): Likewise.
17001
fba39eaf
RH
170022002-03-21 Richard Henderson <rth@redhat.com>
17003
17004 PR target/5996
17005 * fixinc/inclhack.def (solaris_stdio_tag): New.
17006 * fixinc/fixincl.x: Regenerate.
17007
eba80994
EB
170082002-03-21 Eric Botcazou <ebotcazou@multimania.com>
17009
17010 PR c/5597
17011 * c-typeck.c (process_init_element): Flag non-static
17012 initialization of a flexible array member as illegal.
17013
2a78758b
AM
170142002-03-22 Alan Modra <amodra@bigpond.net.au>
17015
17016 * config/rs6000/t-linux64: New.
17017 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
17018 t-ppccomm. Use t-rs6000 and t-linux64.
17019 (powerpc64-*-gnu* <tmake_file>): Likewise.
bac015e7
AM
17020 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
17021 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
17022 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2a78758b 17023
2cb921f4
AH
170242002-03-21 Aldy Hernandez <aldyh@redhat.com>
17025
eba80994
EB
17026 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
17027 flag_really_no_inline instead of optimize == 0.
2cb921f4 17028
eba80994 17029 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2cb921f4 17030
eba80994 17031 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2cb921f4 17032
eba80994 17033 * flags.h (flag_really_no_inline): New.
2cb921f4 17034
659e5a7a 17035 * c-common.c (c_common_post_options): Initialize
eba80994 17036 flag_really_no_inline.
2cb921f4 17037
eba80994 17038 * toplev.c (flag_really_no_inline): New.
2cb921f4 17039
239b8b9d
JJ
170402002-03-21 Jakub Jelinek <jakub@redhat.com>
17041
17042 * config/avr/avr.md (length): Fix length computation for
17043 conditional branches.
17044
43577e6b
NB
170452002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
17046
17047 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
17048 sdbout.o, profile.o): Update.
17049 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
17050 langhook.
17051 * c-common.h (gettags): Move here from tree.h.
17052 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
17053 insert_block, getdecls, kept_level_p, global_bindings_p): New.
17054 * dbxout.c (dbxout_init): Use getdecls langhook.
17055 * expr.c (expand_expr): Use insert_block langhook.
17056 * fold-const.c: Include langhooks.h.
17057 (fold_range_test, fold_binary_op_with_conditional_arg,
17058 fold): Use global_bindings_p langhook.
17059 * integrate.c (expand_inline_function): Use insert_block langhook.
17060 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
17061 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
17062 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
17063 LANG_HOOKS_GETDECLS): New.
17064 (LANG_HOOKS_INITIALIZER): Update.
17065 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
17066 langhook.
17067 * langhooks.h (struct lang_hooks_for_decls): New.
17068 (struct lang_hooks): Update.
17069 * profile.c: Include langhooks.h.
17070 (output_func_start_profiler): Use new langhooks.
17071 * sdbout.c: Include langhooks.h.
17072 (sdbout_init, sdbout_finish): Use getdecls langhook.
17073 * stmt.c: Include langhooks.h.
17074 (expand_fixup, fixup_gotos): Use new langhooks.
17075 * stor-layout.c: Include langhooks.h.
17076 (variable_size): Use global_bindings_p langhook.
17077 * toplev.c (compile_file): Use getdecls langhook.
17078 * tree-inline.c (remap_block): Use insert_block langhook.
17079 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
17080 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
17081
5b19b10c
RH
170822002-03-21 Richard Henderson <rth@redhat.com>
17083
17084 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
17085 constants in .data when -fpic.
17086
e05af335
GP
170872002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17088
17089 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
17090 where appropriate.
17091
60ffc997
TT
170922002-03-21 Tom Tromey <tromey@redhat.com>
17093
17094 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
17095
75897075
RK
17096Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17097
a73afd69 17098 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
46399021 17099
75897075
RK
17100 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
17101
312687cf
EB
171022002-03-21 Eric Botcazou <ebotcazou@multimania.com>
17103 Richard Henderson <rth@redhat.com>
17104
17105 PR c/5354
17106 * c-common.c (c_expand_expr): Preserve result of a statement
17107 expression if needed.
17108
f0e1f482
JJ
171092002-03-21 Jakub Jelinek <jakub@redhat.com>
17110
17111 PR bootstrap/4195
17112 * genrecog.c (maybe_both_true_mode): Remove.
17113 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
17114 * machmode.def (Pmode): Likewise.
17115
c14b9960
JW
17116Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
17117
17118 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
17119 (nonlocal_mentioned_p_1): New function.
17120 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
17121 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
17122 (mark_constant_function): Recognize pure functions.
17123 * rtl.h (global_reg_mentioned_p): New prototype.
17124 * rtlanal.c (global_reg_mentioned_p,
17125 global_reg_mentioned_p_1): New function.
17126
aaa4d130
RO
171272002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17128
17129 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
17130 UNIX assert.h.
17131 * fixinc/fixincl.x: Regenerate.
17132
e5c4bd1b
JM
171332002-03-20 Jason Merrill <jason@redhat.com>
17134
17135 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
17136
852b81bb
MM
171372002-03-20 Michael Meissner <meissner@redhat.com>
17138
17139 * doc/invoke.texi (Optimize Options): Document that -O2 sets
17140 -fstrict-aliasing.
17141
86d8c251
BW
171422002-03-20 Bob Wilson <bob.wilson@acm.org>
17143
17144 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
17145 ".literal_position" directive before the constant pool.
17146
0a39c350
GP
171472002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17148
17149 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
17150 Add Craig Rodrigues.
17151 Add Brad Lucier to testers.
17152
71a83373
JJ
171532002-03-20 Jakub Jelinek <jakub@redhat.com>
17154
17155 PR target/4792
17156 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
17157 to if_then_else.
17158 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
17159 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
17160 instead of insn_extract.
17161
a29b099d
JJ
171622002-03-20 Jakub Jelinek <jakub@redhat.com>
17163
17164 PR bootstrap/4192
71a83373 17165 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
a29b099d
JJ
17166
17167 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
17168 stmt if some case has been output.
17169
048b1c95
JJ
171702002-03-20 Jakub Jelinek <jakub@redhat.com>
17171
17172 PR c/5972
17173 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
17174 movsfcc_1, movdfcc_1): Add %O2.
17175 * config/i386/i386.c (print_operand): Handle %ON.
17176 Print . before float condition codes in Sun as cmov syntax.
17177 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
17178 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
17179 no longer true.
17180
f4864588
PB
171812002-03-20 Philip Blundell <pb@nexus.co.uk>
17182
17183 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
17184 return instruction if PC was popped.
17185
3a307de4
BW
171862002-03-20 Bob Wilson <bob.wilson@acm.org>
17187
17188 * config/xtensa/xtensa.md: Remove unused type attributes.
17189 (adddi_carry, subddi_carry): Change type attribute to "multi".
17190
048b1c95 171912002-03-19 Dale Johannesen <dalej@apple.com>
ed7d44bc
DJ
17192
17193 PR optimization/5999, middle-end/5731
17194 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
17195 multiplications by reciprocals.
17196
7afff7cf
NB
171972002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
17198
17199 * Makefile.in: Update.
17200 * c-common.c: Include langhooks.h.
17201 (inline_forbidden_p): Use new hook.
17202 * diagnostic.c: Include langhooks.h.
17203 (format_with_decl, announce_function,
17204 default_print_error_function): Use new hook.
17205 * dwarf2out.c (dwarf2_name): Use new hook.
17206 * function.c: Include langhooks.h.
17207 (init_function_start): Use new hook.
17208 * langhooks-def.h (lhd_decl_printable_name): New.
17209 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
17210 (LANGHOOKS_INITIALIZER): Update.
17211 * langhooks.c (lhd_decl_printable_name): New.
17212 * langhooks.h (struct lang_hooks): New hook.
17213 * toplev.c (decl_name, decl_printable_name): Remove.
17214 (open_dump_file): Use new hook.
17215 (process_options): Remove old hook.
17216 * tree.h (decl_printable_name): Remove.
17217objc:
17218 * objc-act.c (objc_init): Remove old hook.
17219 (objc_printable_name): Export.
17220 * objc-act.h (objc_printable_name): New.
17221 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
17222
f78ce0b7
JB
172232002-03-19 Jim Blandy <jimb@redhat.com>
17224
17225 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
17226 the start_source_file debug hook, not the current line number.
17227
15b5aef3
RH
172282002-03-19 Richard Henderson <rth@redhat.com>
17229
17230 * flow.c (EH_USES): Provide default.
17231 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
17232 * doc/tm.texi (EH_USES): New.
17233
17234 * config/ia64/ia64.c (ia64_eh_uses): New.
17235 * config/ia64/ia64-protos.h: Update.
17236 * config/ia64/ia64.h (EH_USES): New.
17237
02a7a3fd
RH
172382002-03-19 Richard Henderson <rth@redhat.com>
17239
17240 * varasm.c (output_constant_def): Fix stupid typo.
17241
93f82d60
RH
172422002-03-19 Richard Henderson <rth@redhat.com>
17243
2842be05 17244 PR 5879
93f82d60
RH
17245 * except.c (current_function_has_exception_handlers): New.
17246 * except.h: Declare it.
17247 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
17248 Combine tests that disable all sibcalls for the function.
17249
ed4fbfa0
OH
172502002-03-19 Olivier Hainque <hainque@act-europe.fr>
17251
17252 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
17253 for INTEGER_CST.
17254
ebf0e888
RH
172552002-03-19 Richard Henderson <rth@redhat.com>
17256
1e82682b 17257 PR 5977, 5991
ebf0e888
RH
17258 * config/ia64/ia64.c: Revert 2002-03-01 patch.
17259 * config/ia64/ia64.h (INIT_EXPANDERS): New.
17260
e37b38d7
JB
172612002-03-19 Jim Blandy <jimb@redhat.com>
17262
17263 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
17264 name, even if the replacement list contains no tokens, as required
17265 by Dwarf.
17266
2a4ea326
JM
172672002-03-19 Jason Merrill <jason@redhat.com>
17268
f9d09ae5
JM
17269 * varasm.c (globalize_decl): Get the name from the RTL, not
17270 DECL_ASSEMBLER_NAME.
17271
2a4ea326
JM
17272 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
17273
99b96edb
BW
172742002-03-19 Bob Wilson <bob.wilson@acm.org>
17275
17276 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
17277 subdi_carry): Define.
17278
3774b567
DE
172792002-03-19 David Edelsohn <edelsohn@gnu.org>
17280
17281 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
17282 about -fpic/-fPIC if extra_warnings set.
17283
21ef78aa
DE
172842002-03-19 David Edelsohn <edelsohn@gnu.org>
17285
17286 * expr.c (expand_expr): Sign-extend CONST_INT generated from
17287 TREE_STRING_POINTER.
0c2fdcdf 17288 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
21ef78aa 17289
91d4b3fd
RK
17290Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17291
17292 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
17293 in favor of SP if FRAME_POINTER_REQUIRED is false.
17294
2496c7bd
LB
172952002-03-19 Lars Brinkhoff <lars@nocrew.org>
17296
17297 * emit-rtl.c (gen_int_mode): New function.
17298 * rtl.h: Prototype for it.
17299 * combine.c (make_extraction, simplify_comparison), expmed.c
17300 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
17301 (convert_modes, store_field), optabs.c (expand_fix),
17302 simplify-rtx.c (neg_const_int, simplify_unary_real),
17303
17304 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
17305 Use it instead of GEN_INT (trunc_int_for_mode (...)).
17306
f735a153
JJ
173072002-03-19 Jakub Jelinek <jakub@redhat.com>
17308
17309 PR c/5656
17310 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
17311 convert_parm_for_inlining.
17312 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
17313 Define.
17314 * langhooks-def.h: Likewise.
17315 * objc/objc-lang.c: Likewise.
17316 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
17317 function.
17318 * tree-inline.c (initialize_inlined_parameters):
17319 Call convert_parm_for_inlining lang hook if needed.
17320 * c-typeck.c (c_convert_parm_for_inlining): New function.
17321 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
17322
1929c971
MM
173232002-03-18 Mark Mitchell <mark@codesourcery.com>
17324
b216cd4a 17325 * calls.c (precompute_arguments): Do not assume that temporaries
1929c971
MM
17326 can be destroyed after expanding the argument.
17327 (expand_call): Likewise.
17328
c79ca0ac
EC
173292002-03-15 Eric Christopher <echristo@redhat.com>
17330
17331 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
17332 Fix register preference on last change.
17333 * config/mips/mips.c (mips_return_in_memory): New function.
17334 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
17335 * config/mips/mips-protos.h: Declare.
17336 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
17337 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
17338
07e2e444
AO
173392002-03-18 Alexandre Oliva <aoliva@redhat.com>
17340
1bfbbbcf
AO
17341 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
17342 a register too.
17343 (anddi3, iorsi3): Likewise.
17344
c066429e
AO
17345 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
17346 use %gprel for symbols that are going to be placed in linkonce
17347 sections.
17348
07e2e444
AO
17349 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
17350 RETURN_ADDRESS_POINTER_REGNUM to $ra.
17351 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
17352 not needed. Disregard leaf_function_p().
17353 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
17354 mips16 frame pointer.
17355 * config/mips/mips.md (store ra): Only to small SP offsets.
17356 2001-08-22 Graham Stott <grahams@redhat.com>
17357 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
17358 return a REG rtx for the return address register.
17359
eb8e00ea
BW
173602002-03-18 Bob Wilson <bob.wilson@acm.org>
17361
17362 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
17363 constant-pool addresses as "mode-dependent".
17364 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
17365
cbb92744
JJ
173662002-03-18 Jakub Jelinek <jakub@redhat.com>
17367
17368 PR target/5740
17369 * expr.c (emit_group_load): Use extract_bit_field if
17370 needed for CONCAT arguments.
17371
657d9449
RE
173722002-03-18 Richard Earnshaw <rearnsha@arm.com>
17373
91f3a802 17374 PR target/4863
657d9449
RE
17375 * arm.md (tablejump): Make this a define_expand. For PIC add the
17376 offset to the base of the table.
17377 (thumb_tablejump): Matcher for Thumb tablejump insn.
17378 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
17379 as the difference of two labels.
17380 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
17381 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
17382 tables in the code.
17383 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
17384 * arm.c (get_jump_table_size): If the table is not in the text
17385 section, return zero.
c79ca0ac 17386
5d5603e2
BS
173872002-03-18 Bernd Schmidt <bernds@redhat.com>
17388
17389 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
17390 of gen_rtx_SUBREG.
17391 (arm_reload_out_hi): Use gen_lowpart instead of
17392 gen_rtx_SUBREG to access QImode components.
17393 * config/arm/arm.md: Disable zero_extend split for QImode
17394 subregs in BIG_ENDIAN mode.
17395 (storehi_bigend): Match use of least significant byte.
17396 (storeinthi): Remove extraneous SUBREG.
66c17b64 17397 Add missing construction of operands[2].
5d5603e2
BS
17398 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
17399 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
17400 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
17401
df15fbc7
AH
174022002-03-18 Aldy Hernandez <aldyh@redhat.com>
17403
2496c7bd
LB
17404 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
17405 any_operand.
df15fbc7 17406
b83b7fa3
RH
174072002-03-17 Richard Henderson <rth@redhat.com>
17408
17409 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
17410 explicitly.
17411
6f7c00fe
HPN
174122002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
17413
17414 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
17415 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
17416
155038f2
KG
174172002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17418
720d42fa
KG
17419 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
17420
155038f2
KG
17421 * predict.c (estimate_bb_frequencies): Delete unused variables.
17422
e6542f4e
RH
174232002-03-17 Richard Henderson <rth@redhat.com>
17424
17425 * config/ia64/ia64.c (ia64_attribute_table): Move before
17426 targetm definition. Make static.
17427
52dabb6c
NB
174282002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
17429
17430 * c-common.h (yyparse, c_common_parse_file): New.
17431 * c-lang.c: Include c-common.h.
17432 (LANG_HOOKS_PARSE_FILE): Redefine.
17433 * c-lex.c: Include c-common.h.
17434 (yyparse): Rename c_common_parse_file. Call yyparse.
17435 * c-parse.in (yyparse): Remove macro.
17436 * c-tree.h (yyparse_1): Remove.
17437 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
17438 (LANG_HOOKS_INITIALIZER): Update.
17439 * langhooks.h (struct lang_hoooks): New hook parse_file.
17440 * toplev.c (compile_file): Use parse_file hook.
17441 * tree.h (yyparse): Remove.
e6542f4e 17442 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
52dabb6c 17443
b5ffe606
HPN
174442002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
17445
ba82f58b
HPN
17446 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
17447 float_truncate, not fix.
17448 ("*truncdfsf2_real"): Ditto.
17449 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
17450
b5ffe606
HPN
17451 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
17452
c8d1b2b7
AO
174532002-03-16 Alexandre Oliva <aoliva@redhat.com>
17454
cfb773f9
AO
17455 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
17456 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
17457 where appropriate. Make the second reference to
17458 leaf_function_p a function call, as intended. Reindented.
17459
4dffef52
AO
17460 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
17461 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
17462
4f5bd6d7
AO
17463 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
17464 add register to non-constant into sp.
17465
c8d1b2b7
AO
17466 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
17467 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
17468 (mips16_gp_pseudo_rtx): Lose.
17469 (INIT_EXPANDERS): Deleted.
17470 * config/mips/mips.c (mips_init_machine_status): New.
17471 (mips_free_machine_status): New.
17472 (mips_mark_machine_status): New.
17473 (override_options): Set them.
17474 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
17475 (struct machine_function): ... new. Replaced all references.
17476 (mips_add_gc_roots): Don't mark them.
17477 (embedded_pic_fnaddr_reg): New, extracted from...
17478 (embedded_pic_offset): ... here.
17479 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
17480 (movsi): Likewise.
17481
b3124fac
NB
174822002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
17483
17484 * cppinit.c: Revert -MD removal.
17485
121449b6
SC
174862002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
17487
17488 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
17489 soft registers by default for 68HC12.
17490 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
17491 when compiling with -fomit-frame-pointer.
17492 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
17493 (expand_epilogue): Likewise.
17494 (m68hc11_gen_rotate): Use exg when rotating by 8.
17495
840e2ff1
SC
174962002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
17497
17498 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
17499 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
17500 (splits): Remove unused add splits.
17501 ("*addhi3_68hc12"): Tune constraints.
17502 ("addhi_sp"): Try to use X instead of Y in all cases and if the
17503 constant fits in 8-bits and D is dead use abx/aby instructions.
17504 ("*addhi3"): Remove extern declaration of ix_reg.
17505 ("*subsi3"): Optimize and provide new split.
17506 ("subhi3"): Cleanup.
17507 ("*subhi3_sp"): Avoid saving X if we know it is dead.
17508 (arith splits): For 68hc12 save the address register on the stack
17509 and do the arithmetic operation with a pop.
17510
3c9a5efe
SC
175112002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
17512
17513 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
17514 allocating QImode in address registers.
17515 ("*movqi_m68hc11"): Likewise.
17516
e41f3392
JH
17517Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
17518
17519 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
17520
576786b0
NB
175212002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
17522
17523 * cppinit.c (print_help): Display -MD and -MMD.
17524 Don't display usage string. Update assertion syntax and
17525 typo.
17526 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
17527 (cpp_handle_option): Update.
17528
1ac458d4
CD
175292002-03-15 Chris Demetriou <cgd@broadcom.com>
17530
17531 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
17532 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
17533 and define it so that regardless of target CPU size,
17534 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
17535 of "int" rather than "long."
17536
1fcd592b
RH
175372002-03-15 Richard Henderson <rth@redhat.com>
17538
17539 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
17540 size as a tree.
17541
a0df6910
SC
175422002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
17543
17544 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
17545 ("tstqi" split): Avoid using memory for tstqi on address register.
17546 (splits): Remove constraints.
17547 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
17548 ("cmpdf", "cmpsf"): Remove since not used.
17549 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
17550 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
17551
015a2e59
SC
175522002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
17553
17554 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
17555 ("neghi2"): Tighten constraints.
17556 ("one_cmplsi2"): Optimize and simplify split.
17557 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
17558
cd28557c
SC
175592002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
17560
17561 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
17562 and split of AND operation to clear the upper bits.
17563 ("*logicalsi3_zextqi"): Likewise.
17564 ("*logicallhi3_zexthi_ashift8"): Likewise.
17565 ("*logicalsi3_silshr16"): Likewise.
17566 ("logicalsi3_silshl16"): Likewise.
17567 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
17568
932657df
SC
175692002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
17570
17571 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
17572 (m68hc11_indirect_p): New function.
17573 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
17574 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
17575 TARGET_M6812.
17576 (asm_print_register): Likewise.
17577 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
17578 (m68hc11_indirect_p): Declare.
17579 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
17580 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
17581 (TARGET_SWITCHES): New option -mrelax.
17582 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
17583 destination.
17584 ("iorsi3", "xorsi3"): Likewise.
17585 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
17586 ("*andhi3_mem"): New to handle destination in memory with bclr
17587 and a scratch register.
17588 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
17589 ("*andhi3_const"): New when operand2 is constant.
17590 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
17591 ("*andhi3_gen"): Cleanup of the old "andhi3".
17592 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
17593 ("xorqi3"): Update constraints.
17594
fdffea1a
SC
175952002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
17596
17597 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
17598 for reg_equiv_memory_loc when the operand is a register that does
17599 not get a hard register (stack location).
17600 (tst_operand): After reload, accept all memory operand.
17601 (symbolic_memory_operand): Fix detection of symbolic references.
17602 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
17603 accept symbols and any constant.
17604
6272bc68
SC
176052002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
17606
17607 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
17608 note on the insn that sets the soft frame register.
17609 (must_parenthesize): ix and iy are also reserved names.
17610 (print_operand_address): One more place where parenthesis are required
17611 to avoid confusion with register names.
17612 (m68hc11_gen_movhi): Allow push of stack pointer.
17613 (m68hc11_check_z_replacement): Fix handling of parallel with a
17614 clobber.
17615 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
17616 the replacement register is.
17617 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
17618 and D8_REGS classes.
17619 (MODES_TIEABLE_P): All modes are tieable except QImode.
17620
1d2d9def
SC
176212002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
17622
17623 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
17624 (___subdi3): Likewise.
17625 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
17626 (__map_data_section): Optimize 68hc11 case.
17627
a0ccf503
SC
176282002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
17629
17630 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
17631 than a shift to avoid adding a register with itself.
17632 (m68hc11_memory_move_cost): Take into account NO_REGS.
17633 (m68hc11_register_move_cost): Update and use memory move cost
17634 for soft registers.
17635 (m68hc11_address_cost): Make cost of valid offset not 0 so that
17636 it gives more opportunities to cse to optimize.
17637 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
17638 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
17639
6e4ae815
MM
176402002-03-15 Mark Mitchell <mark@codesourcery.com>
17641
17642 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
17643 * c-common.def (CLEANUP_STMT): New tree node.
17644 * c-common.h (CLEANUP_DECL): New macro.
17645 (CLEANUP_EXPR): Likewise.
17646 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
17647 * expr.c (expand_expr): Tidy.
17648 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
17649 * tree-inline.c (initialize_inlined_parameters): Clean up
17650 new local variables.
17651
a42519be
JJ
176522002-03-15 Jakub Jelinek <jakub@redhat.com>
17653
17654 PR bootstrap/4128
17655 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
17656 before movrXX only, use reg_overlap_mentioned_p.
17657 Only special case NE if just one insn can be generated.
17658
15409448
JM
176592002-03-15 Jason Merrill <jason@redhat.com>
17660
17661 * varasm.c (assemble_variable): Call resolve_unique_section before
17662 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
17663 of error_mark_node.
17664
3a4edb44
RE
176652002-03-15 Richard Earnshaw <rearnsha@arm.com>
17666
17667 PR target/5170
17668 * arm.md (split pattern for thumb shiftable immediates): Add comment
17669 explaining non-obvious test.
17670
32defa36
RE
176712002-03-15 Richard Earnshaw <rearnsha@arm.com>
17672
17673 PR target/5712
17674 * arm.md (movaddr, movaddr_insn): Delete.
17675
5cc90635
JM
176762002-03-15 Jason Merrill <jason@redhat.com>
17677
17678 * toplev.c (wrapup_global_declarations): Clarify variable handling.
17679 -fkeep-static-consts doesn't apply to comdats.
17680
ecb0eece
RH
176812002-03-14 Richard Henderson <rth@redhat.com>
17682
17683 * c-decl.c: Include c-pragma.h.
17684 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
17685 (finish_function): Tidy.
17686 * c-pragma.c: Include c-common.h.
17687 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
17688 (handle_pragma_weak): Use them.
17689 (init_pragma): Register pending_weaks.
17690 * c-pragma.h (maybe_apply_pragma_weak): Declare.
17691 * print-tree.c (print_node): Print DECL_WEAK.
17692 * varasm.c (mark_weak_decls): Remove.
17693 (remove_from_pending_weak_list): Remove.
17694 (add_weak): Remove.
17695 (asm_emit_uninitialised): Call globalize_decl for weak commons.
17696 (weak_decls): Make a tree_list.
17697 (declare_weak): Cons weak_decls directly.
17698 (globalize_decl): Remove weak_decls elements directly.
17699 (weak_finish): Simplify weak_decls walk. Don't weaken unused
17700 symbols. Don't pretend to handle aliases.
17701 (init_varasm_once): Update weak_decls registry.
17702 * Makefile.in: Update dependencies.
17703
98d2b17e
RH
177042002-03-14 Richard Henderson <rth@redhat.com>
17705
17706 PR target/5312
17707 * config/ia64/ia64.c: Include tm_p.h last.
17708 (gen_nop_type): Remove duplicate definition.
17709 (cycle_end_fill_slots): Set sched_data for second L slot.
17710 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
17711 (nop_cycles_until): Fix typos.
17712
f2f4927e
JJ
177132002-03-15 Jakub Jelinek <jakub@redhat.com>
17714
17715 PR optimization/5891
17716 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
17717
5025a549
DM
177182002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
17719
17720 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
17721 descriptors correctly.
17722
03e9dbc9
MM
177232002-03-14 Michael Meissner <meissner@redhat.com>
17724
17725 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
17726 100, allowing MAX_UNROLLED_INSNS to be overridden.
17727
17728 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
17729 --param.
17730
17731 * unroll.c (params.h): Include.
17732 (MAX_UNROLLED_INSNS): Delete, now in params.h.
17733
17734 * doc/invoke.texi (--param max-unroll-insns): Document.
17735
17736 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
17737
12249385
RE
177382002-03-14 Richard Earnshaw <rearnsha@arm.com>
17739
17740 * arm.md: Fix warnings about constraints in peepholes and splits.
17741
f0cce04a
ZW
177422002-03-14 Zack Weinberg <zack@codesourcery.com>
17743
17744 * cpphash.h (struct lexer_state): Remove line_extension member.
17745 * cpplib.c (dequote_string, do_linemarker): New functions.
17746 (linemarker_dir): New data object.
17747 (DIRECTIVE_TABLE): No longer need to interpret #line in
17748 preprocessed source. Delete obsolete comment about return
17749 values of handlers.
17750 (end_directive, directive_diagnostics, _cpp_handle_directive):
17751 Don't muck with line_extension.
17752 (directive_diagnostics): No need to issue warnings for
17753 linemarkers here.
17754 (_cpp_handle_directive): Issue warnings for linemarkers here,
17755 when appropriate. Dispatch linemarkers to do_linemarker, not
17756 do_line.
17757 (do_line): Code to handle linemarkers split out to do_linemarker.
17758 Convert escape sequences in filename argument, both places.
17759
17760 * cppmacro.c (quote_string): Rename cpp_quote_string and
17761 export. All callers changed.
17762 * cpplib.h (cpp_quote_string): Prototype.
17763 * cppmain.c (print_line): Call cpp_quote_string on to_file
17764 before printing it.
17765
17766 * doc/cpp.texi: Document that escapes are now interpreted in
17767 #line and in linemarkers, and that non-printing characters are
17768 converted to octal escapes when linemarkers are generated.
17769
17770Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
83a49407
JH
17771
17772 * emit-rtl.c (try_split): Use delete_insns.
17773 * recog.c (split_all_insns): Fix terminating condition.
17774
c882c7ac
RE
177752002-03-14 Richard Earnshaw <rearnsha@arm.com>
17776 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
17777
17778 PR target/5828
17779 * arm.c (arm_output_epilogue): Fix floating-point register save
17780 adjustment when using a frame pointer.
17781
3f26edaa
RS
177822002-03-14 Richard Sandiford <rsandifo@redhat.com>
17783
17784 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
17785 * config/mips/mips.c (compute_frame_size): Retrofit them here.
17786 (save_restore_insns, mips_expand_epilogue): And here.
17787 (build_mips16_call_stub): And here.
17788 (mips_function_value): Use the new macros to decide whether a single
17789 or complex float can be returned in floating-point registers. Return
17790 a parallel rtx in the complex case.
17791
1e3881c2
JH
17792Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
17793
17794 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
17795 call after liveness analysis.
17796
17797 * recog.c (split_insn): Use delete_insn_and_edges.
17798
17799 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
17800 instructions to have branch prediction notes.
17801 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
17802
200ef634
GK
178032002-03-14 Geoffrey Keating <geoffk@redhat.com>
17804
17805 * configure.in: Don't pass -Wno-long-long to a ADA compiler
17806 that doesn't support it.
17807 * configure: Regenerate.
17808
0b82d204
JJ
178092002-03-13 Jakub Jelinek <jakub@redhat.com>
17810
17811 PR target/5626
17812 * config/sparc/sparc.md (normal_branch, inverted_branch,
17813 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
17814 inverted_fp_branch): Adjust calls to output_cbranch.
17815 Set length attribute.
17816 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
17817 output_v9branch. Set length attribute.
17818 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
17819 predicates.
17820 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
17821 (output_cbranch): Likewise. Handle far branches.
17822 (output_v9branch): Handle far branches.
17823 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
17824 Adjust prototypes.
17825 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
17826 noov_compare64_op predicates.
17827
7a8de19b
JM
178282002-03-13 Jason Merrill <jason@redhat.com>
17829
17830 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
17831 into the function and constify it.
17832 * gthr-dce.h, gthr-solaris.h: Likewise.
17833
2a55fd42
DE
178342002-03-13 David Edelsohn <edelsohn@gnu.org>
17835
17836 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
17837 * config/rs6000/rs6000.c (rs6000_va_arg): Use
17838 std_expand_builtin_va_arg if not ABI_V4.
17839
19c5b1cf
JM
178402002-03-13 Jason Merrill <jason@redhat.com>
17841
17842 * varasm.c (globalize_decl): New fn.
17843 (assemble_start_function): Use it.
17844 (asm_emit_uninitialized): Use it.
17845 (assemble_alias): Use it.
17846 (assemble_variable): Use it.
17847
2a15f5e1
HPN
178482002-03-13 Hans-Peter Nilsson <hp@axis.com>
17849
17850 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
f0cce04a 17851 2002-03-12 internal visibility change.
2a15f5e1
HPN
17852 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
17853 visibility into SYMBOL_REF_FLAG.
17854
c0a3eeac
UW
178552002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
17856
17857 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
17858 VOIDmode operand. Add compile-time optimization for constant results.
17859
a1652cee
JM
178602002-03-12 Jason Merrill <jason@redhat.com>
17861
17862 * c-typeck.c (convert_for_assignment): Don't allow conversions
17863 between pointers and references. Only allow lvalues to convert to
17864 reference.
17865
c52a375d
HP
178662002-03-13 Hartmut Penner <hpenner@de.ibm.com>
17867
f0cce04a
ZW
17868 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
17869 before prologue, to avoid scheduling problems.
c52a375d 17870
e387e99b
JJ
178712002-03-13 Jakub Jelinek <jakub@redhat.com>
17872
17873 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
17874 (ELIMINABLE_REGS): Add sfp->sp.
17875 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
17876
178772002-03-13 Jakub Jelinek <jakub@redhat.com>
09948ece
JJ
17878
17879 PR optimization/5892
17880 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
17881
4061c1a3
JJ
178822002-03-13 Jakub Jelinek <jakub@redhat.com>
17883
17884 * loop.c (basic_induction_var): Don't call convert_modes if mode
17885 classes are different.
17886
5b43fed1
RH
178872002-03-12 Richard Henderson <rth@redhat.com>
17888
9f53e965
RH
17889 PR optimization/5901
17890 * function.c (reposition_prologue_and_epilogue_notes): Position
17891 the markers after/before the last/first insn not deleted.
17892
178932002-03-12 Richard Henderson <rth@redhat.com>
17894
17895 PR optimization/5878
5b43fed1
RH
17896 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
17897 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
17898 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
17899
17900 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
17901 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
17902 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
17903
17904 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
17905 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
17906 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
17907 also. Don't set it if not flag_pic.
17908 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
17909 to be INVALID_REGNUM when not used.
17910
4e9bb42b
AH
179112002-03-13 Aldy Hernandez <aldyh@redhat.com>
17912
5b43fed1
RH
17913 * expmed.c (store_bit_field): Reset alias set for memory.
17914 (extract_bit_field): Same.
4e9bb42b 17915
2f9834e8
KG
179162002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17917
17918 * c-common.c (c_tree_code_type, c_tree_code_length,
17919 c_tree_code_name, add_c_tree_codes): Delete.
17920 * c-common.h (add_c_tree_codes): Delete.
17921 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
17922 Define.
17923 * c-objc-common.c (c_objc_common_init): Don't call
17924 add_c_tree_codes, instead set lang_unsafe_for_reeval.
17925 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
17926 objc_tree_code_name, add_objc_tree_codes): Delete.
17927 (objc_init): Don't call add_objc_tree_codes.
17928 * objc/objc-lang.c (tree_code_type, tree_code_length,
17929 tree_code_name): Define.
17930 * toplev.c (lang_independent_init): Don't set
17931 tree_code_length[IDENTIFIER_NODE].
17932 * tree.c (tree_code_type, tree_code_length, tree_code_name):
17933 Delete definitions, moved to language front-ends.
17934 * tree.def (IDENTIFIER_NODE): Hardwire the length.
17935 * tree.h (tree_code_type, tree_code_length, tree_code_name):
17936 Const-ify.
17937 (tree_code_length): Change type to unsigned char.
17938
36ad2436
RH
179392002-03-12 Richard Henderson <rth@redhat.com>
17940
17941 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
17942 internal visibility change.
17943
0ae02efa
BW
179442002-03-12 Bob Wilson <bob.wilson@acm.org>
17945
17946 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
17947 validize_mem() instead of change_address to avoid clobbering
17948 memory attributes.
17949
35bb2bee
NB
179502002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
17951
17952 * c-lex.h (position_after_whitespace): Remove.
17953
62ae2529
JJ
179542002-03-12 Jakub Jelinek <jakub@redhat.com>
17955
17956 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
17957 (lex_string): Use unsigned char pointers.
17958
6a45951f
UW
179592002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
17960
17961 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
17962 is not a valid memory_operand.
17963
e2fb85da
BW
179642002-03-12 Bob Wilson <bob.wilson@acm.org>
17965
17966 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
17967 * config/xtensa/lib1funcs.asm: Fix copyright to include
17968 special case for libgcc files.
17969 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
17970 (__divsi3): Likewise.
17971 (__umodsi3): Likewise.
17972 (__modsi3): Likewise.
17973 * config/xtensa/lib2funcs.S: Fix copyright to include
17974 special case for libgcc files.
17975
5b8619f8
TR
179762002-03-12 Tom Rix <trix@redhat.com>
17977
17978 * collect2.c (resolve_lib_name): Move outside of
f0cce04a 17979 OBJECT_FORMAT_COFF ifdef.
5b8619f8
TR
17980 (ignore_library): Same.
17981
089c8f97
BW
179822002-03-12 Bob Wilson <bob.wilson@acm.org>
17983
17984 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
17985
958c70ff
BW
179862002-03-12 Bob Wilson <bob.wilson@acm.org>
17987
17988 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
17989 to function_section before writing out the constant pool.
17990
a65c591c
DE
179912002-03-12 David Edelsohn <edelsohn@gnu.org>
17992
17993 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
17994 zero_constant.
17995 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
17996
179972002-03-12 Alan Modra <amodra@bigpond.net.au>
17998
17999 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
18000 (adddi3): Likewise.
18001 (movdf): Likewise.
18002 (movdi): Likewise.
18003 (cmpsi splitter): Likewise.
18004 (modsi3): Fail if <= 0.
18005 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
18006 redundant test when HOST_BITS_PER_WIDE_INT != 32.
18007 (reg_or_sub_cint64_operand): Likewise.
18008 (num_insns_constant_wide): Optimize sign extension.
18009 (rs6000_legitimize_address): Likewise.
18010
17720332
AM
180112002-03-12 Andrew MacLeod <amacleod@redhat.com>
18012
18013 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
18014 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
18015
cd49f073
AM
180162002-03-12 Andrew MacLeod <amacleod@redhat.com>
18017
18018 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
18019 address calculation.
18020
6a4e49c1
UW
180212002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
18022
18023 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
18024 scratch register to DImode / TImode.
18025 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
18026 register used does not overlap the target.
18027
54b6670a
KG
180282002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18029
18030 * Makefile.in (debug.o): Depend on debug.h.
18031 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
18032 * debug.c (do_nothing_debug_hooks): Likewise.
18033 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
18034 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
18035 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
18036 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
18037 * dwarfout.c (dwarf_debug_hooks): Likewise.
18038 * integrate.c (output_inline_function): Likewise.
18039 * objc/objc-act.c (synth_module_prologue): Likewise.
18040 * sdbout.c (sdb_debug_hooks): Likewise.
18041 * toplev.c (debug_hooks): Likewise.
18042 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
18043
2465bf76
KG
180442002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18045
18046 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
18047 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
18048 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
18049 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
18050 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
18051 * defaults.h (POINTER_SIZE): Define.
18052 * doc/tm.texi (POINTER_SIZE): Document default.
18053
53f3e9ca
KG
180542002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18055
18056 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
18057
44d3eb5b
RH
180582002-03-11 Richard Henderson <rth@redhat.com>
18059
18060 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
18061 if rebuild_label_notes_after_reload.
18062
4a085d2e
HPN
180632002-03-12 Hans-Peter Nilsson <hp@axis.com>
18064
18065 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
18066 emit pic register load if "internal" visibility.
18067 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
18068 (cris_expand_builtin_va_arg): Do all computations on trees.
18069
bc204393
RH
180702002-03-11 Richard Henderson <rth@redhat.com>
18071
18072 * rtlanal.c: Include recog.h.
18073 (keep_with_call_p): Fix thinko.
18074 * Makefile.in (rtlanal.o): Update dependencies.
18075
6b8b9d7b
CM
180762002-03-11 Chris Meyer <cmeyer@gatan.com>
18077
18078 * genflags.c (gen_insn): Use IS_VSPACE.
18079 * genoutput.c (output_insn_data): Likewise.
18080 (process_template): Likewise.
18081
6c40858f
RH
180822002-03-11 Richard Henderson <rth@redhat.com>
18083
18084 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
18085
40adaa27
NB
180862002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
18087
18088 * Makefile.in: Update.
6c40858f 18089 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
40adaa27 18090 Update documentation.
6c40858f
RH
18091 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
18092 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
40adaa27 18093
049b03f4
ZW
180942002-03-11 Zack Weinberg <zack@codesourcery.com>
18095
18096 * Makefile.in: Give texi2pod its input file as a command line
18097 argument, not on stdin.
18098
61eece67
DN
180992002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
18100 Daniel Berlin <dan@dberlin.org>
18101
18102 C++ alias analysis improvement.
f0cce04a 18103 * alias.c (record_component_aliases): Record aliases for base
61eece67
DN
18104 classes too.
18105
a65c591c
DE
181062002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
18107
ff080aba
UW
18108 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
18109
1682dbb1
DR
181102002-03-11 Douglas B Rupp <rupp@gnat.com>
18111
fa2d765a
DR
18112 * toplev.c (vms_fopen): Remove, not needed.
18113
6f1fd286
DR
18114 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
18115
b230e057
DR
18116 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
18117
cb9a8e97
DR
18118 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
18119 for FP, already done later.
18120
1682dbb1
DR
18121 * toplev.c (debug_args): Add entry for VMS_DEBUG.
18122 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
18123
3fcaac1d
RS
181242002-03-11 Richard Sandiford <rsandifo@redhat.com>
18125
18126 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
18127 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
18128 LARGEST_EXPONENT_IS_NORMAL for the given mode.
18129 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
18130 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
18131 (ediv, emul, eldexp, esqrt): Likewise.
18132 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
18133 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
18134 (saturate): New function.
18135 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
18136 (make_nan): Use a saturation value instead of a NaN if
18137 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
18138 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
18139 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
18140 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
18141 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
18142 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
18143 !ROUND_TOWARDS_ZERO.
18144 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
18145 (ROUND_TOWARDS_ZERO): Document.
18146
d25558be
AJ
181472002-03-11 Andreas Jaeger <aj@suse.de>
18148
18149 * cfg.c (dump_flow_info): Remove unused variable.
18150
c71f9ae7
HPN
181512002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
18152
18153 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
18154 computations on trees.
18155
561c9153
RH
181562002-03-10 Richard Henderson <rth@redhat.com>
18157
932b4e3e 18158 PR 5693:
561c9153
RH
18159 * reload.c (copy_replacements_1): New.
18160 (copy_replacements): Use it to recurse through the rtx.
18161
26b738be
RH
181622002-03-10 Richard Henderson <rth@redhat.com>
18163
18164 * loop.c (strength_reduce): Compute number of iterations as
18165 unsigned HOST_WIDE_INT.
18166
8d8a083e
RH
181672002-03-10 Richard Henderson <rth@redhat.com>
18168
18169 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
18170 to move away from the end of the block.
18171
32810ba3
NB
181722002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
18173
18174 PR preprocessor/5899
18175 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
d25558be 18176
2b03d201
KG
181772002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18178
f90c544c
KG
18179 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
18180
2b03d201
KG
18181 * attribs.c (decl_attributes): Fix signed/unsigned warning.
18182
3ec1b4cb
HPN
181832002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
18184
18185 * config/mmix/mmix.c: Improve comments.
18186 (mmix_target_asm_function_prologue): Drop variable
18187 empty_stack_frame. Don't allocate unused slot above fp.
18188 (mmix_target_asm_function_epilogue): Mirror prologue changes.
18189 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
18190 brace in first column.
18191 (enum reg_class): Ditto.
18192 (FIRST_PARM_OFFSET): Now 0.
18193 (USER_LABEL_PREFIX): Remove #if 0:d definition.
18194
27e486c5
KG
181952002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18196
18197 * combine.c (make_extraction): Fix error in last change.
18198
0139adca
KG
181992002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18200
18201 * c4x.c (c4x_fp_reglist): Const-ify.
18202 * cris.c (cris_print_operand): Likewise.
18203 * i386.c (ix86_va_arg): Likewise.
18204 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
18205 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
18206 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
18207 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
18208 * mcore.h (regno_reg_class): Likewise.
18209 * mips.c (gen_int_relational): Likewise.
18210 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
18211 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
a4334c36 18212 * pdp11.c (move_costs): Likewise.
0139adca
KG
18213 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
18214 * s390.c (s390_branch_condition_mnemonic, regclass_map):
18215 Likewise.
18216 * s390.h (regclass_map): Likewise.
18217 * sh.c (shift_amounts): Likewise.
a4334c36 18218 * sh.md (rotlsi3): Likewise.
0139adca 18219
889b90a1
GK
182202002-03-09 Geoffrey Keating <geoffk@redhat.com>
18221
18222 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
18223 (ne0+5): Use new clobber to generate proper shift pattern.
18224 Patch by Michael Matz <matz@kde.org>.
18225
2877e0ae
AS
182262002-03-09 Andreas Schwab <schwab@suse.de>
18227
18228 * gcc.c (validate_all_switches): Also handle `%W{...}'.
18229
79b51cd7
GK
182302002-03-09 Geoffrey Keating <geoffk@redhat.com>
18231
18232 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
18233
e0f1be5c
JJ
182342002-03-09 Jakub Jelinek <jakub@redhat.com>
18235
18236 PR middle-end/5877
18237 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
18238 even for non-representable constants.
18239
0a7ec763
RK
18240Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18241
93fe8e92
RK
18242 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
18243 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
18244 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
18245 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
18246 (pop_function_context): Compute MAY_SHARE parameter for
18247 fixup_var_refs.
18248 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
18249 (gen_mem_addressof): Call fixup_var_refs with new parm.
18250
0a7ec763
RK
18251 * combine.c (make_extraction): Don't make extension of CONST_INT.
18252
a85cd407
AO
182532002-03-09 Alexandre Oliva <aoliva@redhat.com>
18254
9445b814
AO
18255 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
18256 in o32 and o64 ABIs.
18257 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
18258 but getting fixed-size structs passed in registers regardless of
18259 padding in o32 and o64 ABIs.
18260
a85cd407
AO
18261 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
18262 offset before loading address of argument passed by transparent
18263 reference.
18264
c51fbe40
JDA
182652002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
18266
18267 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
18268
918e70dd
AO
182692002-03-09 Alexandre Oliva <aoliva@redhat.com>
18270
18271 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
18272 marker such that registers after it are saved.
18273
3070dd00
KG
182742002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18275
18276 * sparc.c (arith_4096_operand): Fix error in last change.
18277
e25d11b0
AO
182782002-03-08 Alexandre Oliva <aoliva@redhat.com>
18279
18280 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
18281 defaults for MEABI.
18282
41daaf0e
AH
182832002-03-08 Aldy Hernandez <aldyh@redhat.com>
18284
5b43fed1
RH
18285 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
18286 vectors.
41daaf0e 18287
fa139b00
AH
182882002-03-08 Aldy Hernandez <aldyh@redhat.com>
18289
5b43fed1 18290 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
fa139b00 18291
c51d95ec
JH
18292Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
18293
18294 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
18295 removed; fix return value.
18296 * combine.c (combine_instructions): Dirtify blocks where we failed to
18297 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
18298 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
18299
3b25fbfe
KG
183002002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18301
18302 * gcse.c (insert_insn_end_bb): Fix typo in last change.
18303
189ae0f4
JH
18304Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
18305
18306 * recog.c (peephole2_optimize): Re-distribute EH edges.
18307
24965e7a
NB
183082002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
18309
18310 * expr.c (expand_expr): Use unsave lang hook.
18311 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
18312 (LANG_HOOKS_INITIALIZER): Update.
18313 * langhooks.h (struct lang_hooks): New hook unsave.
18314 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
18315 (unsave_expr_1): Remove unused lang_unsave_expr_now.
18316 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
18317 (unsave_expr_now): Remove.
18318 * tree.h (unsave_expr_now, lang_unsave,
18319 lang_unsave_expr_now): Remove.
18320 (lhd_unsave): New.
18321
1e4e95d6
AJ
183222002-03-08 Andreas Jaeger <aj@suse.de>
18323
18324 * flow.c (propagate_block_delete_insn): Remove unused variable.
18325
054ef905
KH
183262002-03-08 Kazu Hirata <kazu@hxi.com>
18327
18328 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
18329 insn length for memory load/store.
18330
5304400d 183312002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
1e4e95d6 18332
5304400d
CR
18333 * doc/install.texi (--with-libiconv-prefix): Document.
18334
81034129
MB
183352002-03-08 Michael Y. Brukman <myb2@cornell.edu>
18336
18337 * doc/sourcebuild.texi: Fix typo.
18338
71db7d03
JJ
183392002-03-08 Jakub Jelinek <jakub@redhat.com>
18340
18341 PR c/3711
18342 * builtins.c (std_expand_builtin_va_arg): Do all computations on
18343 trees.
18344
127c1ba5
RK
18345Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18346
18347 * rtl.c (copy_most_rtx): Move from here ...
18348 * emit-rtl.c (copy_most_rtx): ... to here.
18349
8a13c092
AO
183502002-03-08 Alexandre Oliva <aoliva@redhat.com>
18351
5faae4f7
AO
18352 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
18353 SUBTARGET_CPP_SIZE_SPEC.
18354 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
18355
8a13c092
AO
18356 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
18357
4ec59de2
MH
183582002-03-07 Matt Hiller <hiller@redhat.com>
18359
18360 * gensupport.c (first_dir_md_include): Renamed from include;
18361 change all references.
18362 (last_dir_md_include): Renamed from last_include; change all
18363 references.
18364 (init_md_reader): Unconditionally initialize base_dir whether or
18365 not filename is a relative path.
18366
12f61e77
AO
183672002-03-07 Alexandre Oliva <aoliva@redhat.com>
18368
95356058
AO
18369 * config/fp-bit.c (_unord_f2): Compile it in even if
18370 US_SOFTWARE_GOFAST is enabled.
18371
12f61e77
AO
18372 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
18373 NULL_RTX. Set all HFmode operations as NULL_RTX.
18374 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
18375 NULL_RTX, try reversing the comparison and the operands.
18376
6d7a1c4c
UW
183772002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
18378
18379 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
18380 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
18381 and MATCH_OP_DUP.
18382
66d54344
JH
18383Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
18384
18385 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
18386
068473ec
JH
18387Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
18388
18389 * basic-block.h (fixup_abnormal_edges): Declare.
18390 * reload1.c (fixup_abnormal_edges): New function.
18391 * reg-stack.c (convert_regs): Use it.
18392
18393 * gcse.c (insert_insn_end_bb): Handle trapping insns.
18394
18395 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
18396
71925bc0
RS
183972002-03-07 Richard Sandiford <rsandifo@redhat.com>
18398
18399 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
18400 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
18401 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
18402 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
18403 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
18404 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
18405 unless x and y could be infinite.
18406 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
18407 Check that the common type of both arguments is a real, even for
18408 targets without unordered comparisons. Allow an integer argument
18409 to be compared against a real.
18410 (expand_tree_builtin): Use expand_unordered_cmp.
18411 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
18412 * cse.c (fold_rtx): Likewise. Fix indentation.
18413 * fold-const.c (fold_real_zero_addition_p): New.
18414 (fold): Use it, and the new HONOR_... macros.
18415 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
18416 * jump.c (reversed_comparison_code_parts): After searching for
18417 the true comparison mode, use HONOR_NANS to decide whether it
18418 can be safely reversed.
18419 (reverse_condition_maybe_unordered): Remove IEEE check.
18420 * simplify-rtx.c (simplify_binary_operation): Use the new macros
18421 to decide which simplifications are valid. Allow the following
18422 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
18423 and (a - -b) to (a + b).
18424 (simplify_relational_operation): Use HONOR_NANS.
18425 * doc/tm.texi: Document the MODE_HAS_... macros.
18426
145d3bf2
RE
184272002-03-07 Richard Earnshaw <rearnsha@arm.com>
18428
18429 * combine.c (simplify_comparison): If simplifying a logical shift
18430 right and compare with constant, force the comparison to unsigned.
18431
76a773f3
AH
184322002-03-07 Aldy Hernandez <aldyh@redhat.com>
18433
5b43fed1 18434 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
76a773f3 18435
5b43fed1
RH
18436 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
18437 -mabi=no-altivec
18438 (alt_reg_names): Remove % for vrsave.
76a773f3 18439
ab55f58c
RH
184402002-03-06 Richard Henderson <rth@redhat.com>
18441
5ddec02e 18442 PR optimization/5844
ab55f58c
RH
18443 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
18444 if used indicates we've already emitted one copy of an operand.
18445 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
18446 (gen_split): Supply a non-null used.
18447
e16e3291
UW
184482002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
18449
5b43fed1 18450 * reload1.c (reload): Unshare all rtl after reload is done.
e16e3291 18451
1e4e95d6 18452 * simplify-rtx.c (simplify_plus_minus): Do not abort,
e16e3291
UW
18453 but simply fail if the expression is too complex to simplify.
18454 (simplify_gen_binary): Handle simplify_plus_minus failures.
18455
2ca6672b
JH
18456Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
18457
18458 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
18459 consistently call delete_trivially_dead_insns after CSE and GCSE;
18460 fix DFI_life dumping; do jump threading after liveness; do crossjumping
18461 after liveness2; update comment in last crossjumping.
18462 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
18463
31d0dd4f
JL
18464Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
18465
d094b0b3
JL
18466 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
18467 after completing fast dead code elimination.
18468
31d0dd4f
JL
18469 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
18470 COMPARE operator.
1e4e95d6 18471
f2b958b1
PE
184722002-03-06 Phil Edwards <pme@gcc.gnu.org>
18473
18474 * version.c: Fix misplaced leading blanks on first line.
18475
a2877a09
JH
18476Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
18477
18478 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
18479
fe477d8b
JH
18480Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
18481
18482 * cfgcleanup.c (mentions_nonequal_regs): New function.
18483 (thread_jump): Use it.
18484 * toplev.c (rest_of_compilation): Run jump threading after
18485 liveness.
18486
2041cde4
JJ
184872002-03-06 Jakub Jelinek <jakub@redhat.com>
18488
18489 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
18490 patch.
18491
82d68d46
JH
18492Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
18493
18494 * predict.c (estimate_bb_frequencies): Do not reload the
18495 frequencies from notes.
18496
3dec4024
JH
18497Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
18498
18499 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
18500 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
18501
18502 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
18503 delete_noop_moves): Return indeger.
18504 * flow.c (ndead): New variable.
18505 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
18506 BB argument; update callers.
18507 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
18508 (life_analysis): Do not call purge_all_dead_edges.
18509 (update_life_info): Return number of deleted insns; print statistics.
18510 (update_life_info_in_dirty_blocks): likewise.
18511 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
18512 return number of insns deleted.
18513
18514 * cse.c: Include timevar.h
18515 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
18516 iterate until stabilizes; print statistics; return number of killed
18517 insns.
18518 * Makefile.in: (cse.o): Add timevar.h dependency
18519 * rtl.h (delete_trivially_dead_insns): New.
18520 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
18521 * toplev.c (rest_of_compilation): Update callers.
18522
18523 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
18524 (try_optimize_cfg): Do not update liveness.
18525 (cleanup-cfg): Loop until try_optimize_cfg and dead code
18526 removal stabilizes; use delete_trivially_dead_insns.
18527
18528 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
18529
c7544dd8
ZW
185302002-03-05 Zack Weinberg <zack@codesourcery.com>
18531
18532 * cppmain.c (setup_callbacks): Disable #pragma and #ident
18533 callbacks when processing assembly language.
18534
50b424a9
JDA
185352002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
18536
18537 * pa.h (ASM_FILE_END): Define.
18538 * som.h (ASM_FILE_END): Delete.
18539
18540 * pa.c (function_arg): Don't pass floats in general registers in
18541 indirect calls if TARGET_ELF32.
18542
6185f217
RH
185432002-03-05 Richard Henderson <rth@redhat.com>
18544
18545 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
18546
3020a4b2
DS
185472002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
18548
18549 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
18550
65649daa
JJ
185512002-03-05 Jakub Jelinek <jakub@redhat.com>
18552
18553 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
18554 -r command line. Don't hide any symbols if not building
18555 shared libgcc.
18556
5a1a3e5e
JH
18557Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
18558
18559 * cfg.c (dump_flow_info): Warn about profile mismatches.
18560 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
18561 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
18562
170c56da
JJ
185632002-03-05 Jakub Jelinek <jakub@redhat.com>
18564
18565 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
18566 wide volatile memory by parts.
18567
6d051694
JJ
185682002-03-05 Jakub Jelinek <jakub@redhat.com>
18569
18570 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
18571 is NULL.
18572
28bcfd4d
RH
185732002-03-05 Richard Henderson <rth@redhat.com>
18574
5b43fed1 18575 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
28bcfd4d 18576
75227a33
GK
185772002-03-04 Geoffrey Keating <geoffk@redhat.com>
18578
18579 * toplev.c (documented_lang_options): Document more
18580 language-specific options.
18581 * doc/invoke.texi (Warning Options): Correct documentation for
18582 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
18583 * c-decl.c (c_decode_option): Use a table to handle warning options.
18584
4f1aac42
HPN
185852002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
18586
18587 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
18588 parameter to mmix_encode_section_info.
18589 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
18590 relocatably. Always produce ELF, not mmo if linking relocatably.
18591 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
18592 first is non-zero, don't add symbol prefix.
18593 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
18594 prototype accordingly.
18595
12345543
KW
185962002-03-04 Krister Walfridsson <cato@df.lth.se>
18597
18598 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
18599
8e97db8f
JM
186002002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
18601
18602 * configure.in: Increase required makeinfo version to 4.1.
18603 * configure: Regenerate.
18604
06487868
GK
186052002-03-04 Geoffrey Keating <geoffk@redhat.com>
18606
18607 * .cvsignore: Remove *.info* and genrtl*; these files are generated
18608 elsewhere now.
18609
cff42170
JM
186102002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
18611
18612 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
18613 * doc/invoke.texi: Fix @math uses.
18614
974a7f56
JH
18615Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
18616
18617 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
18618 removal
18619
3b7d0e98
AH
186202002-03-03 Aldy Hernandez <aldyh@redhat.com>
18621
5b43fed1
RH
18622 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
18623 (powerpc-*-eabisimaltivec*): Same.
3b7d0e98 18624
5b43fed1 18625 * config/rs6000/t-ppcendian: New.
3b7d0e98 18626
65f2f288
HB
186272002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18628
18629 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
18630 nonimmediate_src_operand and nonimmediate_lsrc_operand to
18631 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
18632
8ce0a8a5
RH
186332002-03-03 Richard Henderson <rth@redhat.com>
18634
18635 * toplev.c (rest_of_decl_compilation): Revert last two changes.
18636
ba31d94e
ZW
186372002-03-03 Zack Weinberg <zack@codesourcery.com>
18638
18639 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
18640 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
18641 tree.c, config/m68k/m68k.c:
18642 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
18643 REAL_ARITHMETIC blocks unconditional. Delete some further
18644 #ifdef blocks predicated on REAL_ARITHMETIC.
18645 * flags.h, toplev.c: Delete remaining references to
18646 flag_pretend_float.
18647
18648 * doc/invoke.texi: Remove documentation of -fpretend-float.
18649 * doc/tm.texi: Describe the various REAL_* macros as provided by
18650 real.h, not by the target configuration files.
18651
18652 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
18653 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
18654 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
18655 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
18656 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
18657 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
18658 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
18659 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
18660 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
18661 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
18662 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
18663 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
18664 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
18665 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
18666 config/xtensa/xtensa.h:
18667 Do not define, undefine, or mention in comments any of
18668 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
18669 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
18670 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
18671 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
18672 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
18673 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
18674 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
18675 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
18676 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
18677
9a571cfd
KG
186782002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18679
e81dd381
KG
18680 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
18681 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
18682 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
18683 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
18684 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
18685 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
18686 Delete.
18687 * defaults.h (BITS_PER_WORD): Define.
ba31d94e 18688 * doc/tm.texi (BITS_PER_WORD): Document default value.
e81dd381 18689
9a571cfd
KG
18690 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
18691 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
18692 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
18693
ca7558fc
KG
186942002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18695
18696 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
18697 lieu of explicit sizeof/sizeof.
18698 * i386.c (override_options, ix86_init_mmx_sse_builtins,
18699 ix86_expand_builtin): Likewise.
18700 * mips.c (mips_add_gc_roots): Likewise.
18701 * mmix.c (mmix_output_condition): Likewise.
18702 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
18703 altivec_init_builtins): Likewise.
18704 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
18705 * cppexp.c (Nsuff, parse_number): Likewise.
18706 * cppinit.c (builtin_array_end): Likewise.
18707 * gcc.c (n_default_compilers, process_command): Likewise.
18708 * genpreds.c (output_predicate_decls): Likewise.
18709 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
18710 * lcm.c (N_ENTITIES): Likewise.
18711 * stor-layout.c (set_sizetype): Likewise.
ba31d94e 18712
41c78c88
RH
187132002-03-03 Richard Henderson <rth@redhat.com>
18714
18715 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
18716 for types or labels.
18717
9e9b71e6
RH
187182002-03-03 Richard Henderson <rth@redhat.com>
18719
18720 * c-decl.c (start_decl): Initialized variables are not common.
18721
c26a6db8
PB
187222002-03-02 Per Bothner <per@bothner.com>
18723
18724 * gcc.c (option_map): Suport new --bootclasspath option.
18725 --CLASSPATH is now just an alias for --classpath.
18726
9e8aab55
RH
187272002-03-02 Richard Henderson <rth@redhat.com>
18728
18729 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
18730 load if "internal" visibility.
18731 * doc/extend.texi: Document visibility meanings.
18732
b3bbd220
RH
187332002-03-02 Richard Henderson <rth@redhat.com>
18734
18735 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
18736 to functions as well.
18737
b14707c3
RH
187382002-03-02 Richard Henderson <rth@redhat.com>
18739
18740 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
18741 (handle_visibility_attribute): Don't call assemble_visibility.
18742 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
18743 without asmspec. Invoke assemble_alias when needed.
18744 * varasm.c (maybe_assemble_visibility): New.
18745 (assemble_start_function, assemble_variable, assemble_alias): Use it.
18746
b2003250
RH
187472002-03-02 Richard Henderson <rth@redhat.com>
18748
18749 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
18750 invoke ENCODE_SECTION_INFO with first call flag.
18751
18752 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
18753 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
ba31d94e 18754 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
b2003250
RH
18755 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
18756 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
18757 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
18758 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
18759 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
18760 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
18761 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
18762 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
18763 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
ba31d94e
ZW
18764 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
18765 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
b2003250
RH
18766 config/mcore/mcore-protos.h, config/mcore/mcore.c,
18767 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
18768 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
ba31d94e 18769 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
b2003250
RH
18770 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
18771 config/sh/sh.h, config/sparc/sparc.h,
18772 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
18773 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
18774 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
18775 FIRST argument. As needed, examine it and do nothing.
18776
ba31d94e 18777 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
b2003250
RH
18778 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
18779 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
18780
18781 * config/arm/t-pe (pe.o): Add dependencies.
18782
5c60f03d
KG
187832002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18784
18785 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
18786 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
18787 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
18788 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
18789 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
18790 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
18791 * defaults.h (BITS_PER_UNIT): Define.
18792 * doc/tm.texi (BITS_PER_UNIT): Document default value.
18793
86855e8c
KH
187942002-03-02 Kazu Hirata <kazu@hxi.com>
18795
18796 * config/h8300/h8300-protos.h: Add a prototype for
18797 compute_a_shift_length.
18798 * config/h8300/h8300.c (h8300_asm_insn_count): New.
18799 (compute_a_shift_length): Likewise.
18800 (h8300_adjust_insn_length): Do not adjust insn length of shift
18801 insns.
18802 * config/h8300/h8300.md (anonymous shift patterns): Use
18803 compute_a_shift_length.
18804
f6041ed8
RK
18805Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18806
35aa3c1c
RK
18807 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
18808 trunc_int_for_mode.
18809
f6041ed8
RK
18810 * emit-rtl.c (offset_address): Call update_temp_slot_address.
18811
27b41650
KG
188122002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18813
18814 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
18815 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
18816 * flags.h (flag_zero_initialized_in_bss): Declare.
18817 * toplev.c (flag_zero_initialized_in_bss): New flag.
18818 (lang_independent_options): Add flag_zero_initialized_in_bss.
18819 * tree.c (initializer_zerop): New function.
18820 * tree.h (initializer_zerop): Declare.
18821 * varasm.c (assemble_variable): If we can emit bss, put zero
18822 initializers in the bss section.
18823
ca734b39
AM
188242002-03-02 Alan Modra <amodra@bigpond.net.au>
18825
18826 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
18827 like more than one symbol per .weak directive.
18828
49b72306
RH
188292002-03-01 Richard Henderson <rth@redhat.com>
18830
18831 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
18832 adjust argument_pointer by pretend_args_size.
18833 (ia64_va_start): Adjust va_start address by -pretend_args_size.
18834
fbf0fe41
KH
188352002-03-01 Kazu Hirata <kazu@hxi.com>
18836
18837 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
18838
0010687d
JH
18839Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
18840
18841 * toplev.c (rest_of_compilation): Delete dead jumptables before
18842 loop.
18843 * flow.c (delete_dead_jumptables): Make global.
18844 * rtl.h (delete_dead_jumptables): Declare.
18845
9429c84c
DE
188462002-03-01 David Edelsohn <edelsohn@gnu.org>
18847
18848 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
18849 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
0c2fdcdf 18850 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
9429c84c 18851
f0b6f9a6
KH
188522002-03-01 Kazu Hirata <kazu@hxi.com>
18853
18854 * config/h8300/h8300-protos.h: Fix formatting.
18855 * config/h8300/h8300.c: Likewise.
18856 * config/h8300/h8300.h: Likewise.
18857
bc8db8a1
KH
188582002-03-01 Kazu Hirata <kazu@hxi.com>
18859
18860 * config/h8300/h8300.c (print_operand): Support 16-bit
18861 constant addresses.
18862 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
18863
32b069d3
RH
188642002-02-28 Richard Henderson <rth@redhat.com>
18865
18866 * expmed.c (store_bit_field): Prevent generation of CONCATs;
18867 pun complex values as integers; use gen_lowpart instead of
18868 gen_rtx_SUBREG.
18869 (extract_bit_field): Likewise.
18870
79c4e63f
AM
188712002-03-01 Alan Modra <amodra@bigpond.net.au>
18872 David Edelsohn <edelsohn@gnu.org>
18873
18874 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
18875 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
18876 (SUPPORTS_WEAK): Likewise.
18877 * output.h (add_weak): Add tree param.
18878 * varasm.c (add_weak): Likewise. Save decl.
18879 (struct weak_syms): Add decl field.
18880 (mark_weak_decls): New function.
18881 (init_varasm_once): ggc_add_root mark_weak_decls.
18882 (assemble_start_function): Use ASM_WEAKEN_DECL.
18883 (assemble_variable): Likewise.
18884 (assemble_alias): Likewise.
18885 (declare_weak): Pass decl to add_weak.
18886 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
18887 (remove_from_pending_weak_list): Declare and define for
18888 ASM_WEAKEN_DECL.
18889 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
18890 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
18891 * defaults.h (SUPPORTS_WEAK): Likewise.
18892 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
18893 .weak for code sym. Do emit .size for descriptor sym.
18894 (ASM_DECLARE_FUNCTION_SIZE): Define.
18895 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
18896 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
18897 .lglobl unless TARGET_XCOFF. Formatting fixes.
18898 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
18899 .weak for code sym.
18900 (HANDLE_PRAGMA_WEAK): Remove.
18901 (ASM_WEAKEN_LABEL): Remove.
18902 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
18903
6f30f1f1
JM
189042002-03-01 Jason Merrill <jason@redhat.com>
18905
18906 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
18907 (TARGET_EXPR_CLEANUP): New macro.
18908
7879b81e
SE
189092002-02-28 Steve Ellcey <sje@cup.hp.com>
18910
18911 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
18912 to take ptr_extend into account as third type of extension.
18913 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
18914 fields used by SUBREG_PROMOTED_UNSIGNED_P.
18915 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
18916 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
18917 * calls.c (precompute_arguments): Use new macro.
18918 (expand_call): Ditto.
18919 * combine.c (nonzero_bits): Ditto.
18920 (record_promoted_value): Ditto.
18921 * expr.c (store_expr): Ditto.
18922 (expand_expr): Ditto.
18923 * function.c (assign_parms): Ditto.
18924
42d579d8
AO
189252002-02-28 Alexandre Oliva <aoliva@redhat.com>
18926
18927 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
18928 override -shared and -shared-libgcc.
18929
e0054185
DB
189302002-02-28 David O'Brien <obrien@FreeBSD.org>
18931
18932 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
18933 of "ultrasparc".
18934 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
18935 to be broken.
18936
abda4f1c
RH
189372002-02-28 Richard Henderson <rth@redhat.com>
18938
18939 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
18940 4 cycle latency from MM producers.
18941 (ia64_internal_sched_reorder): Likewise with pipeline flush.
18942
c0f08649
JJ
189432002-02-28 Jakub Jelinek <jakub@redhat.com>
18944
18945 * mklibgcc.in: Don't use GNU make extension.
18946
f79f2651
NB
189472002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
18948
18949 * c-parse.in (STATIC): New terminal.
18950 (scspec): New non-terminal. Update productions accordingly.
18951 (program): Remove bogus ifc / end ifc.
18952 (array_declarator): Simplify production using STATIC.
18953
001e3fee
JM
189542002-02-28 Jim Meyering <meyering@lucent.com>
18955
18956 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
18957 \a still means TARGET_BELL.
18958
89076bb3
RH
189592002-02-28 Richard Henderson <rth@redhat.com>
18960
18961 * haifa-sched.c (sched_emit_insn): New.
18962 (schedule_block): Use last_scheduled_insn to track last insn.
18963 * sched-int.h (sched_emit_insn): Prototype.
18964 * config/ia64/ia64.c (last_issued): Remove.
18965 (ia64_variable_issue): Don't set it.
18966 (nop_cycles_until): Use sched_emit_insn.
18967
e3aaacf4
AM
189682002-02-28 Andrew MacLeod <amacleod@redhat.com>
18969
18970 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
18971 extended constants.
18972
7f473594
KH
189732002-02-28 Kazu Hirata <kazu@hxi.com>
18974
18975 * config/h8300/h8300.c: Fix formatting.
18976 * config/h8300/h8300.h: Likewise.
18977
b96c434c
MM
189782002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
18979
18980 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
18981 which may overwrite the high byte of the frame pointer.
18982
9b420a6a
BT
189832002-02-28 Bo Thorsen <bo@suse.de>
18984
18985 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
18986 (STARTFILE_SPEC): Add 64 bit files.
18987 (ENDFILE_SPEC): Likewise.
18988
6f30f1f1 189892002-02-28 Jason Merrill <jason@redhat.com>
46cfb101
JM
18990
18991 * c-decl.c (finish_function): Only warn about missing return
18992 statement with -Wreturn-type.
18993
70da1d03
JH
18994Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
18995
18996 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
18997
18998 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
18999 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
19000
38c1593d
JH
19001Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
19002
19003 * basic-block.h (BB_REACHABLE): Renumber.
19004 (BB_DIRTY, BB_NEW): New flags.
19005 (clear_bb_flags): Declare.
19006 (update_life_info_in_dirty_blocks): Declare.
19007 * cfg.c (clear_bb_flags): New function.
19008 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
19009 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
19010 reorder_insns, emit_insn_after): Mark block as dirty.
19011 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
19012 (update_life_info_in_dirty_blocks): New function.
19013 * recog.c (apply_change_group): Dirtify block.
19014
19015 * cse.c (cse_insn): Reorder emitting of jump insn to keep
19016 cfg consistent.
19017 * gcse.c (delete_null_pointer_checks): Likewise.
19018
19019 * toplev.c (dump_file_index): Move cse2 after bp,
19020 add DFI_null
19021 (dump_file_info): Similary.
19022 (rest_of_compilation): Avoid most of CFG rebuilds;
19023 do first if converision after null pointer checks, do cse2
19024 after branch prediction; avoid full liveness rebuild after
19025 initializing subregs.
19026 * invoke.texi (-d options): Document -du, renumber.
19027
19028 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
19029 (notice_new_block): Do not set BB_UPDATE_LIFE.
19030 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
19031 merge_blocks_move_successor_nojumps, merge_blocks,
19032 try_crossjump_to_edge): Likewise.
19033 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
19034 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
19035 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
19036 (merge_of_block): Do not use life_data_ok.
19037 (find_if_case_1): Do not use SET_UPDATE_LIFE.
19038 (if_convert): Use BB_DIRTY mechanizm to update life.
19039 * lcm.c (optimize_mode_switching): Update
19040 update_life_info_in_dirty_blocks
19041
63e1b1c4
NB
190422002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
19043
19044 * Makefile.in (integrate.o): Update.
19045 * c-decl.c (copy_lang_decl): Rename.
19046 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
19047 * integrate.c: Include langhooks.h.
19048 (copy_decl_for_inlining): Update to use langhook.
19049 * langhooks-def.h (lhd_do_nothing_t,
19050 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
19051 (LANG_HOOKS_INITIALIZER): Update.
19052 * langhooks.c (lhd_do_nothing_t): New.
19053 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
19054 * tree.h (copy_lang_decl): Remove.
19055objc:
19056 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
19057
f472fa29
AM
190582002-02-27 Andrew MacLeod <amacleod@redhat.com>
19059
ba31d94e 19060 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
f472fa29
AM
19061 POST_DEC, and POST_MODIFY.
19062
273cf2e4
ZW
190632002-02-27 Zack Weinberg <zack@codesourcery.com>
19064
19065 * c-typeck.c (digest_init): Remove unused parameter; all
19066 callers changed.
19067
4e07d762
GK
190682002-02-27 Geoffrey Keating <geoffk@redhat.com>
19069
19070 * expmed.c (expand_shift): Correctly test for low part of a
19071 subreg.
19072
6bc627b3
UW
190732002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19074
19075 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
19076 insn UIDs with insn addresses.
19077
f458d1d5
ZW
190782002-02-27 Zack Weinberg <zack@codesourcery.com>
19079
19080 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
19081 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
19082 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
19083 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
19084 gcc.c, toplev.c: Delete code implementing -traditional mode.
19085
19086 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
19087 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
19088 Document removal of -traditional mode for compilation, and
19089 remove documentation only relevant to that mode.
19090
19091 * config/nextstep.h, config/ptx4.h, config/svr4.h,
19092 config/convex/convex.h, config/d30v/d30v.h,
19093 config/i386/dgux.h, config/i386/osf1elf.h,
19094 config/i386/osfelf.h, config/i386/osfrose.h,
19095 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
19096 config/m68k/hp310.h, config/m88k/dgux.h,
19097 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
19098 config/m88k/m88k.h, config/m88k/openbsd.h,
19099 config/mips/abi64.h, config/mips/osfrose.h,
19100 config/mips/svr4-5.h, config/mips/svr4-t.h,
19101 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
19102 config/stormy16/stormy16.h: Remove all references to
19103 -traditional from target specs. Delete all mention of the
19104 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
19105 delete a couple of commented-out definitions of
19106 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
19107 to -traditional.
19108
19109 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
19110 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
19111
e0b3a8ff
ZW
191122002-02-27 Zack Weinberg <zack@codesourcery.com>
19113
19114 * mklibgcc.in: Don't use \n in a line subject to
19115 interpretation by echo.
19116
5c6a85b7
GS
191172002-02-27 Graham Stott <grahams@redhat.com>
19118
72b05af1
GS
19119 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
19120 Constify NAME.
19121
7d104885
GS
19122 * loop.c (prescan_loop): Handle PARALLEL.
19123
8ed805d2
GS
19124 * unroll.c (loop_iterations): Return 0 if the add_val for
19125 a BIV is REG.
19126
fd478a0a
GS
19127 * final.c (output_operand_lossage): Constify PFX_STR.
19128
5c6a85b7
GS
19129 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
19130
cd98ad03
JH
19131Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
19132
19133 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
19134 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
19135
639ae55b
JH
19136Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
19137
19138 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
19139
e808ec9c
NB
191402002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
19141
19142 * cpplex.c (_cpp_lex_token): Handle directives in macro
19143 arguments.
19144 * cpplib.c (_cpp_handle_directive): Save and restore state
19145 if parsing macro args when entering a directive.
19146 * cppmacro.c (collect_args): No need to handle directives
19147 in macro arguments.
19148 (enter_macro_context, replace_args): Use the original macro
19149 definition in case it was redefined whilst collecting arguments.
19150doc:
19151 * cpp.texi: Update.
19152
f585a356
DE
191532002-02-26 David Edelsohn <edelsohn@gnu.org>
19154
19155 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
19156 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
19157 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
19158 method on AIX.
19159 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
19160 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
19161 (load_toc_v4_PIC_2): Same.
19162
191632002-02-26 Alan Modra <amodra@bigpond.net.au>
19164
19165 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
19166
d699058e
RH
191672002-02-26 Richard Henderson <rth@redhat.com>
19168
19169 * config/alpha/alpha.md (ashldi_se): Re-enable.
19170
eadccfbb
RH
191712002-02-26 Richard Henderson <rth@redhat.com>
19172
19173 * config/alpha/alpha.c (alpha_encode_section_info): Examine
19174 MODULE_LOCAL_P; improve commentary.
19175
7080ada1
ZW
191762002-02-26 Zack Weinberg <zack@codesourcery.com>
19177
19178 * doc/cpp.texi: Clarify documentation of relationship between
19179 #line and #include.
19180
b42cff6b
KH
191812002-02-26 Kazu Hirata <kazu@hxi.com>
19182
19183 * config/h8300/h8300-protos.h: Update the prototype for
19184 compute_logical_op_length. Add the prototype for
19185 compute_logical_op_cc.
19186 * config/h8300/h8300.c (compute_logical_op_length): Figure out
19187 code from operands.
19188 (compute_logical_op_cc): New.
19189 * config/h8300/h8300.md: Combine all the logical op patterns
19190 in HImode and SImode. Use compute_logical_op_cc.
19191
831c4e87
KC
191922002-02-26 Kelley Cook <kelleycook@comcast.net>
19193
19194 * config/i386/i386.c (print_operand): Don't append ATT-style
19195 length suffixs to x87 opcodes when in Intel mode.
19196
ff88fe10
RS
191972002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
19198
19199 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
19200 (init_emit_once): Update calls.
19201 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
19202 (init_syntax_once): Prototype.
19203
d4108589
JDA
192042002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
19205
19206 * pa-linux.h (LIB_SPEC): Update definition.
19207 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
19208
e013f3c7
RH
192092002-02-26 Richard Henderson <rth@redhat.com>
19210
19211 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
19212 if we emitted a stop bit.
19213
9e944a16
JJ
192142002-02-26 Jakub Jelinek <jakub@redhat.com>
19215
19216 * configure.in (libgcc_visibility): Substitute.
19217 * configure: Rebuilt.
19218 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
19219 defined symbols .hidden.
19220
47bd70b5
JJ
192212002-02-26 Jakub Jelinek <jakub@redhat.com>
19222
19223 * attribs.c (c_common_attribute_table): Add visibility.
19224 (handle_visibility_attribute): New function.
19225 * varasm.c (assemble_visibility): New function.
19226 * output.h (assemble_visibility): Add prototype.
19227 * tree.h (MODULE_LOCAL_P): Define.
19228 * crtstuff.c (__dso_handle): Use visibility attribute.
19229 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
19230 for MODULE_LOCAL_P symbols too.
19231 * config/ia64/ia64.c (ia64_encode_section_info): Handle
19232 MODULE_LOCAL_P symbols the same way as local symbols.
19233 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
19234 into .sdata/.sbss by the user.
19235 * doc/extend.texi (Function Attributes): Document visibility
19236 attribute.
19237
6d73371a
JJ
192382002-02-26 Jakub Jelinek <jakub@redhat.com>
19239
19240 PR debug/5770
19241 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
19242 STRING_CST initializer spanning the whole variable without
19243 embedded zeros.
19244 If expand_expr returned MEM, don't use it.
19245
06e224f7
AO
192462002-02-26 Alexandre Oliva <aoliva@redhat.com>
19247
19248 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
19249 generate a die for the lexical block.
19250
40367e2d
KH
192512002-02-26 Kazu Hirata <kazu@hxi.com>
19252
19253 * config/h8300/h8300-protos.h: Add a prototype for
19254 compute_logical_op_length.
19255 * config/h8300/h8300.c (compute_logical_op_length): New.
19256 * config/h8300/h8300.md (anonymous logical patterns): Use
19257 compute_logical_op_length for length.
19258
0e98f924
AH
192592002-02-26 Aldy Hernandez <aldyh@redhat.com>
19260
831c4e87
KC
19261 * dwarf2out.c (modified_type_die): Do not call type_main_variant
19262 for vectors.
19263 (gen_type_die): Same.
0e98f924 19264
831c4e87 19265 * attribs.c (handle_vector_size_attribute): Set debug information.
0e98f924 19266
a50cfd52
DE
192672002-02-26 Daniel Egger <degger@fhm.edu>
19268
831c4e87
KC
19269 * config/rs6000/rs6000.md: Swap define_insn attributes to
19270 fix incorrect generation of merge high instructions instead
19271 of merge low.
a50cfd52 19272
b7997284
AH
192732002-02-26 Aldy Hernandez <aldyh@redhat.com>
19274
831c4e87
KC
19275 * c-typeck.c (really_start_incremental_init): Use
19276 bitsize_zero_node for vectors.
b7997284 19277
376aec5d
AH
192782002-02-26 Aldy Hernandez <aldyh@redhat.com>
19279
831c4e87
KC
19280 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
19281 ("*set_vrsave_internal"): Same.
376aec5d 19282
3b40e71b
RH
192832002-02-25 Richard Henderson <rth@redhat.com>
19284
19285 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
19286 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
19287
232b8f52
JJ
192882002-02-25 Jakub Jelinek <jakub@redhat.com>
19289
19290 PR target/5755
19291 * config/i386/i386.c (ix86_return_pops_args): Only pop
19292 fake structure return argument if it was passed on the stack.
19293
67282790
JM
192942002-02-25 Jason Merrill <jason@redhat.com>
19295
19296 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
19297 RESULT_DECL.
19298
5c181756
AO
192992002-02-25 Alexandre Oliva <aoliva@redhat.com>
19300
19301 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
19302 link with shared_name only.
19303 * doc/invoke.texi (Link Options): Document new behavior.
19304
6786d201
AH
193052002-02-25 Aldy Hernandez <aldyh@redhat.com>
19306
831c4e87 19307 * c-typeck.c (push_init_level): Handle vectors.
6786d201 19308
7d6040e8
AO
193092002-02-25 Alexandre Oliva <aoliva@redhat.com>
19310
19311 * config/sparc/sparc.c (const64_high_operand): Zero-extend
19312 operands of SPARC_SETHI_P.
19313 (input_operand): Likewise.
19314 (sparc_emit_set_const32): Likewise.
19315 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
19316 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
19317 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
19318 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
19319 (movdi_insn_sp64_vis): Likewise.
19320 (movdi split, movdf split): Use SETHI32.
19321 * doc/md.texi: Document SPARC constraints L, M and N.
19322
b188f760
AH
193232002-02-25 Aldy Hernandez <aldyh@redhat.com>
19324
831c4e87
KC
19325 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
19326 ("*set_vrsave_internal"): use mfspr for Darwin.
b188f760 19327
831c4e87
KC
19328 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
19329 gen_get_vrsave_internal.
b188f760 19330
8041889f
RK
19331Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19332
19333 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
19334
a47ed310
NB
193352002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
19336
19337 * cpplex.c (cpp_interpret_charconst): Get signedness or
19338 otherwise of wide character constants correct.
19339 * cppexp.c (lex): Get signedness of wide charconsts correct.
19340
cb8f73be
RK
19341Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19342
19343 * optabs.c (widen_operand): Only call convert_modes for
19344 promoted SUBREG if signedness matches.
19345 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
19346
2450e0b8
NB
193472002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
19348
19349 * cpplib.c (glue_header_name): Use local buffer to build up
19350 header name.
19351
70b6aaed
NB
193522002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
19353
19354 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
19355
6be580c7
KH
193562002-02-23 Kazu Hirata <kazu@hxi.com>
19357
19358 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
19359 H8/300[HS] separately.
19360 * config/h8300/h8300.md: Remove the early clobber constraint
19361 from bit field patterns.
19362
35dad9f1
KH
193632002-02-23 Kazu Hirata <kazu@hxi.com>
19364
19365 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
19366 register_operand.
19367 (mulhisi3): Likewise.
19368 (umulqisi3): Likewise.
19369 (umulhisi3): Likewise.
19370
ab8e2228
NB
193712002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
19372
19373 * cppinit.c (output_deps): Correct test for stdout output.
19374 (init_dependency_output): Cure warning.
19375
ac6f8a15
RK
19376Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19377
19378 * expr.c (store_expr): When converting expression to promoted
19379 equivalent type, allow using SUBREG_REG of TARGET as the target
19380 of the expansion of EXP.
19381 * loop.c (basic_induction_var, case SUBREG): Always look inside.
19382 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
19383 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
19384 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
19385 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
19386
f282ffb3
JM
193872002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
19388
19389 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
19390 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
19391 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
19392
44c5edc0
JJ
193932002-02-23 Jakub Jelinek <jakub@redhat.com>
19394
19395 PR optimization/5747
19396 * loop.c (scan_loop): Update reg info if move_movables created new
19397 pseudos.
19398
f98e43c0
DE
193992002-02-23 David Edelsohn <edelsohn@gnu.org>
19400
19401 * gcc.c (init_gcc_spec): Revert last change.
19402
e72247f4
DE
194032002-02-23 David Edelsohn <edelsohn@gnu.org>
19404
19405 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
19406 gpc_reg_operand constraint.
19407
194082002-02-23 Alan Modra <amodra@bigpond.net.au>
19409
19410 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
19411 Simplify comparison of `low'.
19412 (add_operand): Fix formatting.
19413 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
57deb3a1 19414 (mask_operand): Disallow mask to wrap in 64-bit mode.
e72247f4
DE
19415 (rs6000_stack_info): Remove redundant test setting push_p.
19416 (output_toc): Fix formatting.
19417 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
19418 cc_reg_not_cr0_operand constraint.
19419 (booldi3, boolcdi3 splitters): Same.
19420
a5c30531
AH
194212002-02-23 Aldy Hernandez <aldyh@redhat.com>
19422
831c4e87 19423 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
a5c30531 19424
43710f9f
DE
194252002-02-22 David Edelsohn <edelsohn@gnu.org>
19426
19427 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
19428 gcc invoked with -shared-libgcc.
19429
3256b817
JJ
194302002-02-22 Jakub Jelinek <jakub@redhat.com>
19431
19432 PR c++/5748
19433 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
19434 decl if any of elements was TREE_USED.
19435
9e0625a3
AO
194362002-02-22 Alexandre Oliva <aoliva@redhat.com>
19437
19438 * config/sparc/sol2.h: Don't include sys/mman.h.
19439 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
19440 (arith_4096_operand): Don't throw high bits away.
19441 (const64_operand): Take sign extension of CONST_INTs into account.
19442 (const64_high_operand, sparc_emit_set_const32): Likewise.
19443 (GEN_HIGHINT64): Likewise.
19444 (sparc_emit_set_const64_quick1): Likewise.
19445 (const64_is_2insns): Likewise.
19446 (print_operand): Use trunc_int_for_mode for sign extension.
19447 * config/sparc/sparc.h (SMALL_INT32): Likewise.
19448 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
19449 chars. Assume CONST_INT is already properly sign-extended.
19450 (movdi split): Sign-extend each SImode part.
19451 (andsi3 split): Don't mask high bits off, so that result
19452 remains properly sign-extend.
19453 (iorsi3 split): Likewise.
19454 (xorsi3 split): Likewise.
19455
54fec3d5
RS
194562002-02-22 Richard Sandiford <rsandifo@redhat.com>
19457
19458 * fold-const.c (fold): Fix typo in comments.
19459
667ada9b
DN
194602002-02-21 Diego Novillo <dnovillo@redhat.com>
19461
19462 * Makefile.in (langhooks.o): Update dependencies.
19463
29ac78d5
DN
194642002-02-21 Diego Novillo <dnovillo@redhat.com>
19465
19466 * langhooks.c: Include flags.h.
19467
6aa77e6c
AH
194682002-02-21 Aldy Hernandez <aldyh@redhat.com>
19469
19470 * testsuite/gcc.dg/attr-alwaysinline.c: New.
19471
19472 * c-common.c (c_common_post_options): Set inline trees by
19473 default.
19474
19475 * doc/extend.texi (Function Attributes): Document always_inline
19476 attribute.
19477 Update documentation about inlining when not optimizing.
19478
19479 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
19480
19481 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
19482 unless DECL_ALWAYS_INLINE.
19483
19484 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
19485 unless DECL_ALWAYS_INLINE.
19486 (c_disregard_inline_limits): Disregard if always_inline set.
19487
19488 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
19489 Disregard if always_inline set.
19490 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
19491 unless DECL_ALWAYS_INLINE.
19492
19493 * attribs.c (handle_always_inline_attribute): New.
19494 (c_common_attribute_table): Add always_inline.
19495
19496 * config/rs6000/altivec.h: Add prototypes for builtins
19497 requiring the always_inline attribute.
19498
c410d49e
EC
194992002-02-21 Eric Christopher <echristo@redhat.com>
19500
19501 * expmed.c (store_bit_field): Try to simplify the subreg
19502 before generating a new one when when the mode size of
19503 value is less than maxmode.
19504
e3c8ea67
RH
195052002-02-21 Richard Henderson <rth@redhat.com>
19506
19507 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
19508 than gen_rtx_PLUS to form the sum.
19509 * explow.c (force_reg): Rearrange to not allocate new pseudo
19510 when force_operand returns a register.
19511 * expr.c (expand_assignment): Allow offset_rtx expansion to
19512 return a sum. Do not force addresses into registers.
19513 (expand_expr): Likewise.
19514 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
19515 to canonicalize arithmetic that didn't simpify.
19516 (simplify_plus_minus): New argument force; update
19517 all callers. Don't split CONST unless we can do something with it,
19518 and wouldn't lose the constness of the operands.
19519
19520 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
19521 that we generated earlier.
19522
c1a046e5
TT
195232002-02-21 Tom Tromey <tromey@redhat.com>
19524
19525 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
19526 (output_line_info): Use constant `1', with a long explanatory
19527 comment.
19528 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
19529
31fbaad4
R
19530Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
19531
19532 * jump.c (redirect_jump): If old label has no UID, don't try to
19533 delete it.
19534
a7f52356
R
19535Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
19536
19537 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
19538 If input is constant, do shifts at compile time.
19539
924fcc4e
JM
195402002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
19541
19542 * doc/extend.texi: Fix some more overfull hboxes.
19543
e5a20888
JJ
195442002-02-21 Jakub Jelinek <jakub@redhat.com>
19545
19546 PR optimization/4994
19547 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
19548 register moves.
19549
195502002-02-21 Jakub Jelinek <jakub@redhat.com>
22273300
JJ
19551
19552 PR c++/4574
19553 * expr.h (expand_and): Add mode argument.
19554 * expmed.c (expand_and): Add mode argument.
19555 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
19556 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
19557 * except.c (expand_builtin_extract_return_addr): Likewise.
19558 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
19559 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
19560 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
19561 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
19562 * config/c4x/c4x.md: Use GEN_INT (x) instead of
19563 gen_rtx (CONST_INT, VOIDmode, x).
19564
7133e992
JJ
195652002-02-21 Jakub Jelinek <jakub@redhat.com>
19566
19567 PR c/4697:
19568 * stmt.c (warn_if_unused_value): Move side effects test once more.
19569
e2ec05a6
TG
195702002-02-20 Torbjorn Granlund <tege@swox.com>
19571
19572 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
831c4e87 19573 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
e2ec05a6 19574
9dd791c8
AO
19575Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
19576
19577 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
19578 SUBREG or ZERO_EXTEND.
19579
7ab56274
R
19580Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
19581
19582 * sh.h (current_function_anonymous_args): Remove.
19583 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
19584 of current_function_varargs and current_function_stdarg is set.
19585 * sh.c (sh_expand_prologue): Check current_function_varargs /
19586 current_function_stdarg / TARGET_SH5 instead of
19587 current_function_anonymous_args.
19588
19589 * sh64.h (TARGET_VERSION): Define.
19590
b1765bde
DE
195912002-02-20 David Edelsohn <edelsohn@gnu.org>
19592
19593 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
19594 VRSAVE_REGNO on TARGET_ALTIVEC.
19595
195962002-02-20 Alan Modra <amodra@bigpond.net.au>
19597
19598 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
19599 bits of SImode const_int.
19600 (includes_rshift_p): Likewise.
19601 (print_operand): Call mask_operand and mask64_operand with correct
c410d49e 19602 mode.
b1765bde
DE
19603 (rs6000_output_function_epilogue): Pad traceback table to word.
19604 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
19605 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
19606 mask64_operand with correct mode.
b1765bde
DE
19607 (FUNCTION_ARG_REGNO_P): Correct parentheses.
19608
149d6f9e
JJ
196092002-02-20 Jakub Jelinek <jakub@redhat.com>
19610
19611 PR debug/4461
19612 * varasm.c (get_pool_constant_mark): New.
19613 * rtl.h (get_pool_constant_mark): Add prototype.
19614 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
19615 be represented if it has not been output.
19616
4161da12
AO
196172002-02-20 Alexandre Oliva <aoliva@redhat.com>
19618
19619 * combine.c (do_SUBST): Sanity check substitutions of
19620 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
19621 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
19622 CONST_INT into its operand.
19623 (known_cond): Likewise, for ZERO_EXTEND.
19624 * simplify-rtx.c (simplify_unary_operation): Fix condition to
19625 allow for simplification of wide modes. Reject CONST_INTs in
19626 ZERO_EXTEND when their actual mode is not given.
19627
3704ef74
AO
196282002-02-20 Alexandre Oliva <aoliva@redhat.com>
19629
19630 * c-decl.c (pushdecl): If no global declaration is found for an
19631 extern declaration in block scope, try a limbo one.
19632
7552da58
JJ
196332002-02-20 Jakub Jelinek <jakub@redhat.com>
19634
19635 PR c++/4401
19636 * c-common.c (pointer_int_sum): Moved from...
19637 * c-typeck.c (pointer_int_sum): ...here.
19638 * c-common.h (pointer_int_sum): Add prototype.
19639
00fae85d
JJ
196402002-02-20 Jakub Jelinek <jakub@redhat.com>
19641
19642 PR c++/5713
19643 * c-decl.c (duplicate_decls): Return 0 if issued error about
19644 redeclaration.
19645
4636c87e
JJ
196462002-02-20 Roger Sayle <roger@eyesopen.com>
19647 Jakub Jelinek <jakub@redhat.com>
19648
19649 PR c/4389
19650 * tree.c (host_integerp): Ensure that the constant integer is
19651 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
19652 when pos is zero or non-zero respectively. Clarify comment.
19653 * c-format.c (check_format_info_recurse): Fix host_integerp
19654 usage; the pos argument should be zero when assigning to a
19655 signed HOST_WIDE_INT.
19656
59bef189
RH
196572002-02-20 Richard Henderson <rth@redhat.com>
19658
19659 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
19660 of the operand, rather than assuming TImode.
19661 (ix86_expand_binop_builtin): Cope with commutative patterns
19662 using nonimmediate_operand for both operands.
19663 (ix86_expand_timode_binop_builtin): Likewise.
19664 (ix86_expand_store_builtin): Validate operand 1.
19665 (ix86_expand_unop1_builtin): Likewise.
19666
9338ffe6 196672002-02-20 Philip Blundell <philb@gnu.org>
c410d49e 19668
9338ffe6
PB
19669 PR 5705
19670 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
19671
f322b423
RH
196722002-02-20 Richard Henderson <rth@redhat.com>
19673
19674 PR c/5615
19675 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
19676
d94084f7
TT
196772002-02-20 Tom Tromey <tromey@redhat.com>
19678
19679 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
19680 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
19681 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
19682 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
19683 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
19684 unconditionally.
19685
37fa124a
AM
19686Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
19687
19688 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
19689 for (const_int 0) in X not just INTVAL.
19690
6e5bb5ad
JM
196912002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
19692
19693 * doc/extend.texi: Avoid or reduce overfull hboxes.
19694
420e7dfa
DN
196952002-02-20 Diego Novillo <dnovillo@redhat.com>
19696
19697 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
19698 operations if the field does not start at a mode boundary.
19699
1b7a2af6
JS
197002001-02-20 Joel Sherrill <joel@OARcorp.com>
19701
19702 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
19703 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
19704 Also done for -Acpu and -Amachine.
19705
56cd5b95
NB
197062002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
19707
19708 * cppinit.c (init_dependency_output): Take deps output file
19709 from -o if none given with -MF. Suppress normal output.
c410d49e 19710 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
56cd5b95
NB
19711 * doc/cpp.texi, doc/invoke.texi: Update.
19712
042cdf71
ZW
197132002-02-19 Zack Weinberg <zack@codesourcery.com>
19714
19715 * toplev.c (output_quoted_string): Write unprintable
19716 characters with octal escapes.
19717
c1f11548
DE
197182002-02-19 David Edelsohn <edelsohn@gnu.org>
19719
19720 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
19721 really_call_used[VRSAVE_REGNO] if not Altivec.
19722
197232002-02-19 Alan Modra <amodra@bigpond.net.au>
c410d49e 19724
c1f11548
DE
19725 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
19726 MODE_MASK.
19727 (constant_pool_expr_1): Fix formatting.
19728 (rs6000_legitimize_reload_address): Likewise.
19729
c964d90e
RK
19730Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19731
19732 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
19733 now that we have one.
19734
ae34ac46
ZW
197352002-02-19 Zack Weinberg <zack@codesourcery.com>
19736
19737 * tree.h (struct tree_common): Remove aux. Add unused_0 at
19738 end of first block of bitfields (which was only seven bits);
19739 rename dummy to unused_1; remove comment which is no longer true.
19740
293c28ee
GS
197412002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
19742
19743 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
19744
7b8781c8
PB
197452002-02-19 Philip Blundell <pb@nexus.co.uk>
19746
0cb6c58d 19747 PR 5399
7b8781c8
PB
19748 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
19749 if generating PIC.
19750
19751 PR 5054
19752 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
19753 arm_is_longcall_p rather than inspecting call-type cookie
19754 directly.
19755 (call_value_insn) [TARGET_THUMB]: Likewise.
19756
5c464583
GS
197572002-02-19 Graham Stott <grahams@redhat.com>
19758
19759 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
19760
71c061e6
DE
197612002-02-19 David Edelsohn <edelsohn@gnu.org>
19762
19763 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
19764 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6d1def5c 19765 (FP_SAVE_INLINE): Delete.
71c061e6
DE
19766
19767 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
19768 * config/rs6000/eabi.asm: Remove ABI save restore routines.
19769 * config/rs6000/t-ppccomm: Build crtsavres.o.
19770 * config/rs6000/crtsavres.asm: New file.
19771
3a7731fd
PB
197722002-02-19 Philip Blundell <philb@gnu.org>
19773
19774 * config/arm/arm.c (use_return_insn): Don't reject interrupt
19775 functions.
19776 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
19777 (output_return_instruction): Allow interrupt functions to return with
19778 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
19779 (arm_expand_prologue): Subtract 4 before stacking LR in an
19780 interrupt function.
19781
14f583b8
PB
197822002-02-19 Philip Blundell <pb@nexus.co.uk>
19783
19784 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
19785 decl, not just FUNCTION_DECL.
19786 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
19787 (arm_assemble_integer): Likewise.
19788 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
19789 marked local.
c410d49e 19790
4cb7482c
MG
197912002-02-19 matthew green <mrg@eterna.com.au>
19792
19793 * config.gcc (sparc-*-netbsdelf*): Enable target.
19794 (sparc64-*-netbsd*): New target.
19795 * config/sparc/netbsd-elf.h: New file.
19796 * config/sparc/t-netbsd64: New file.
19797
2df3a718
GS
197982002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
19799
19800 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
19801
77f6c1eb
RS
198022002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
19803
19804 * doc/invoke.texi: explicitly list the style guidelines that
19805 -Weffc++ checks for.
19806
fd973d56
JH
19807Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
19808
19809 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
19810
30518e45
NB
198112002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
19812
19813 PR other/5718
19814 * gcc.c (cpp_unique_options): Treat -o as indicating object file
19815 only if not -E. If -E, pass -o through to the preprocessor.
19816
39ea5704
KH
198172002-02-19 Kazu Hirata <kazu@hxi.com>
19818
19819 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
19820 register number with an appropriate macro.
19821
7355dba7
BM
198222002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
19823
19824 * doc/rtl.texi (Constants): Close @code tag.
19825
91c8aa9e
AH
198262002-02-19 Aldy Hernandez <aldyh@redhat.com>
19827
19828 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
19829 ("mmx_uavgv4hi3"): Same.
19830 ("pmulhrwv4hi3"): Same.
19831
19832 * tree-inline.c (walk_tree): Handle vectors.
19833
19834 * c-common.c (constant_expression_warning): Handle vectors.
19835 (overflow_warning): Same.
19836
19837 * sched-deps.c (sched_analyze_2): Handle vectors.
19838
19839 * rtlanal.c (rtx_unstable_p): Handle vectors.
19840 (rtx_varies_p): Same.
19841 (count_occurrences): Same.
19842 (regs_set_between_p): Same.
19843 (modified_between_p): Same.
19844 (modified_in_p): Same.
19845 (volatile_insn_p): Same.
19846 (volatile_refs_p): Same.
19847 (side_effects_p): Same.
19848 (may_trap_p): Same.
19849 (inequality_comparisons_p): Same.
19850 (replace_regs): Same.
19851 (computed_jump_p_1): Same.
19852
19853 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
19854 argument.
19855 (inner_mode_array): New.
19856 (copy_rtx): Handle vectors.
19857 (copy_most_rtx): Same.
19858 (rtx_equal_p): Same.
19859 (get_mode_alignment): Adjust for vectors.
19860
19861 * resource.c (mark_referenced_resources): Handle vectors.
19862 (mark_set_resources): Same.
19863
19864 * reload1.c (eliminate_regs): Handle vectors.
19865 (elimination_effects): Same.
19866 (scan_paradoxical_subregs): Same.
19867
19868 * reload.c (subst_reg_equivs): Handle vectors.
19869
19870 * regrename.c (scan_rtx): Handle vectors.
19871
19872 * regclass.c (reg_scan_mark_refs): Handle vectors.
19873
19874 * recog.c (find_single_use_1): Handle vectors.
19875
19876 * local-alloc.c (equiv_init_varies_p): Handle vectors.
19877 (contains_replace_regs): Same.
19878 (memref_referenced_p): Same.
19879
19880 * integrate.c (copy_rtx_and_substitute): Handle vectors.
19881 (subst_constants): Same.
19882
19883 * genattrtab.c (attr_copy_rtx): Handle vectors.
19884 (encode_units_mask): Same.
19885 (clear_struct_flag): Same.
19886 (count_sub_rtxs): Same.
19887
19888 * gcse.c (want_to_gcse_p): Handle vectors.
19889 (oprs_unchanged_p): Same.
19890 (hash_expr_1): Same.
19891 (oprs_not_set_p): Same.
19892 (expr_killed_p): Same.
19893 (compute_transp): Same.
19894 (store_ops_ok): Same.
19895
19896 * function.c (purge_addressof_1): Do not allow paradoxical subregs
19897 of vectors.
19898 (fixup_var_refs_1): Same.
19899 (instantiate_virtual_regs_1): Same.
19900
19901 * fold-const.c (operand_equal_p): Handle vectors.
19902 (fold): Same.
19903 (rtl_expr_nonnegative_p): Same.
19904
19905 * flow.c (mark_used_regs): Handle vectors.
19906
19907 * df.c (df_uses_record): Handle vectors.
19908
19909 * cselib.c (cselib_subst_to_values): Handle vectors.
19910 (cselib_mem_conflict_p): Same.
19911 (hash_rtx): Same.
19912
19913 * cse.c (canon_reg): Handle vectors.
19914 (fold_rt): Same.
19915 (cse_process_notes): Same.
19916 (count_reg_usage): Same.
19917 (canon_hash): Same.
19918
19919 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
19920
19921 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
19922
19923 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
19924 (gen_rtx): Handle CONST_VECTOR.
19925 (gen_const_vector_0): New.
19926 (copy_rtx_if_shared): CONST_VECTORs can be shared.
19927 (reset_used_flags): Same.
19928 (copy_insn_1): Same.
19929 (initializer_constant_valid_p): Handle VECTOR_CST.
19930
19931 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
19932
19933 * doc/rtl.texi (Constants): Document const_vector.
19934 (CONST0_RTX): Update for vectors.
19935 (RTL sharing): Same.
19936
19937 * print-tree.c (print_node): Add case for VECTOR_CST.
19938
19939 * tree.h (TREE_VECTOR_CST_ELTS): New.
19940 (struct tree_vector): New.
19941 (union tree_node): Add vector node.
19942 (build_vector): Add prototype.
19943
19944 * tree.def (VECTOR_CST): New.
19945
19946 * tree.c (build_vector): New.
19947
19948 * expmed.c (make_tree): Handle CONST_VECTOR.
19949
19950 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
19951 (CONST_VECTOR_ELT): New.
19952 (CONST_VECTOR_NUNITS): New.
19953
19954 * machmode.h (GET_MODE_INNER): New.
19955 (DEF_MACHMODE): Accept 8th arg.
19956
19957 * machmode.def: Add 8th argument for vector inner mode.
19958 Add inner vector modes for vectors.
19959
19960 * rtl.def (VEC_CONST): Remove.
19961 (CONST_VECTOR): New.
19962
19963 * expr.c (clear_storage): Allow vectors.
19964 (is_zeros_p): Handle VECTOR_CST.
19965
19966 * varasm.c (output_constant_pool): Handle vectors.
19967 (rtx_const): Add veclo and vechi fields.
19968 (kind): Add RTX_VECTOR.
19969 (decode_rtx_const): Add case for vector.
19970
19971 * config/rs6000/rs6000-protos.h: Add zero_constant.
c410d49e 19972
91c8aa9e
AH
19973 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
19974 constants. Force easy vector constants into memory.
19975 (easy_vector_constant): New.
19976 (emit_easy_vector_constant): New.
19977 (rs6000_legitimize_reload_address): Do not generate bad reloads on
19978 darwin.
19979
19980 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
19981 instruction does.
19982 ("altivec_lvxl"): Same.
19983 (altivec_lvebx): Same.
19984 (altivec_lvehx): Same.
19985 (altivec_lvewx): Same.
19986 ("*movv4si_const0"): New.
19987 ("*movv4sf_const0"): New.
19988 ("*movv8hi_const0"): New.
19989 ("*movv16qi_const0"): New.
19990
d4d6d0ce
KH
199912002-02-18 Kazu Hirata <kazu@hxi.com>
19992
19993 * config/h8300/h8300.c (notice_update_cc): Use
19994 cc_status.value2.
19995
4915d3aa
KH
199962002-02-18 Kazu Hirata <kazu@hxi.com>
19997
19998 * config/h8300/h8300.md (divmod patterns): Change the
19999 constraints for operands[1] to register_operand.
20000
82be00ee
KH
200012002-02-18 Kazu Hirata <kazu@hxi.com>
20002
20003 * config/h8300/h8300-protos.h: Remove the prototype for
20004 p_operand.
20005 * config/h8300/h8300.c (p_operand): Remove.
20006 * config/h8300/h8300.md: Replace p_operand with
20007 const_int_operand.
20008
1768c26f
PB
200092002-02-18 Philip Blundell <pb@nexus.co.uk>
20010
20011 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
20012 comment.
20013 (output_return_instruction): Allow use of LDR to unstack
20014 return addresss even for interrupt handlers or when
20015 interworking. If compiling for ARMv5, use interworking-safe
20016 return instructions by default. Remove duplicated code and
20017 lengthy "strcat" sequences.
20018
ccd84f51
FS
200192002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
20020
20021 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
20022 (LINK_EH_SPEC): Define.
20023 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
20024
2c153108
UW
200252002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
20026
20027 * config/s390/s390.c (s390_emit_prologue): Do not set the
20028 frame_related flag for call-clobbered registers.
20029
e95d6b23
JH
20030Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
20031
20032 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
20033 (construct_container): Fix handling of SSE operands.
20034 (ix86_expand_builtin): Fix handling of 64bit pointers.
20035 (mmx_maskmovq_rex): New pattern.
20036
c43a12b5
JH
20037Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
20038
20039 * regrename.c (kill_set_value): Handle subregs properly.
20040
aeb85a15
DB
200412002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
20042
20043 * objc/objc-act.c (handle_impent): Remove leading '*'
c410d49e 20044 from objc_class_name.
aeb85a15 20045
a615ca3e
RH
200462002-02-17 Richard Henderson <rth@redhat.com>
20047
20048 * config/alpha/alpha.c (some_small_symbolic_operand,
20049 some_small_symbolic_operand_1, split_small_symbolic_operand,
20050 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
20051 Handle small SYMBOL_REFs anywhere, not just inside memories.
20052 * config/alpha/alpha-protos.h: Update.
20053 * config/alpha/alpha.h (PREDICATE_CODES): Update.
20054 * config/alpha/alpha.md (small symbolic operand splitter): Update.
20055
ddb28441
RM
200562002-02-17 Roland McGrath <roland@frob.com>
20057
20058 * config.gcc (powerpc-*-gnu-gnualtivec*,
20059 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
20060 * config/rs6000/gnu.h: New file.
20061 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
20062 Grok "gnu" in rs6000_abi_name.
20063 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
20064 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
20065 Grok -mcall-gnu analogous to -mcall-linux et al.
20066 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
20067 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
20068 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
20069
f6f8ada3
JJ
200702002-02-17 Jakub Jelinek <jakub@redhat.com>
20071
20072 PR c/3444:
20073 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
20074 shortening.
20075
e16b32fc
PT
200762002-02-17 Philipp Thomas <pthomas@suse.de>
20077
20078 * config/cris/cris.h: Undefine STARTFILE_SPEC and
20079 ENDFILE_SPEC before (re)defining them.
20080
f9477efd
KH
200812002-02-17 Kazu Hirata <kazu@hxi.com>
20082
20083 * config/h8300/h8300.c: Fix formatting.
20084 * config/h8300/h8300.h: Likewise.
20085
404ae494
PT
200862002-02-17 Philipp Thomas <pthomas@suse.de>
20087
20088 * doc/tm.texi: Explain why empty strings should not be
20089 marked for translation.
20090
a52453cc
PT
200912002-02-17 Philipp Thomas <pthomas@suse.de>
20092
20093 * final.c (output_operand_lossage): Changed to accept
20094 printf style arguments. Change calls where necessary.
20095 * output.h (output_operand_lossage): Change declaration
20096 accordingly. Update copyright.
20097 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
20098 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
20099 Update copyright date where necessary.
c410d49e 20100
a52453cc
PT
20101 * config/i386/i386.c (print_operand): Likewise. Remove use of
20102 sprintf.
20103
20104 * config/cris/cris.c (cris_operand_lossage): Likewise.
20105 Rename parameter so that exgettext recognizes it as
20106 translatable message.
20107 (LOSE_AND_RETURN): Rename parameter to msgid.
20108
1c11abc4
KH
201092002-02-17 Kazu Hirata <kazu@hxi.com>
20110
20111 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
20112 hard coded register number with an appropriate macro.
20113 (HARD_REGNO_MODE_OK): Likewise.
20114 (ARG_POINTER_REGNUM): Likewise.
20115 (STATIC_CHAIN_REGNUM): Likewise.
20116 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
20117 * config/h8300/h8300.md (define_constants): Define more
20118 register numbers.
20119
a5d17ff3
PT
201202002-02-17 Philipp Thomas <pthomas@suse.de>
20121
20122 * config/i386/i386.h: Don't mark empty strings for translation.
20123
1a7289c4
L
201242002-02-16 H.J. Lu <hjl@gnu.org>
20125
20126 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
20127
afb58288
ZW
201282002-02-16 Zack Weinberg <zack@codesourcery.com>
20129
20130 * cppinit.c (merge_include_chains): Check for brack being
20131 NULL before attempting to merge it with qtail.
20132
d2af4dbd
AC
201332002-02-16 Andrew Cagney <ac131313@redhat.com>
20134
20135 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
20136 DBX_DEBUG.
20137
2e1ed1e3
JDA
201382002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
20139
20140 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
20141
604c75b2
JDA
201422002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
20143
20144 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
20145 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
20146 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
20147
1a42b072
RK
20148Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20149
7303604f 20150 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
1a42b072
RK
20151 now only if !TARGET_FIX.
20152 (*movsi_nt_vms_fix): New pattern.
20153
c2ea1ac6
DR
201542002-02-16 Douglas B Rupp <rupp@gnat.com>
20155
20156 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
20157 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
20158 (alpha_sa_mask, alpha_sa_size): Reflect above change.
20159 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
20160 (alpha_start_function, alpha_expand_epilogue): Likewise.
20161 (unicosmk_gen_dsib): Likewise.
20162
725e58b1
RK
20163Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20164
20165 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
20166
13e58269
UW
201672002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
20168
c410d49e 20169 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
13e58269
UW
20170 check_and_change_labels, s390_final_chunkify): Delete.
20171 (s390_split_branches, s390_chunkify_pool): New functions.
20172 (s390_function_prologue): Call them.
c410d49e 20173
13e58269
UW
20174 * config/s390/s390.h (S390_REL_MAX): Delete.
20175 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
20176
c410d49e 20177 * config/s390/s390.md (cjump, icjump, jump): Fix length
13e58269
UW
20178 attribute calculation.
20179
20180
34d1b01d
DE
201812002-02-15 David Edelsohn <edelsohn@gnu.org>
20182
20183 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
20184 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
20185
be5cc51a
JDA
201862002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
20187
20188 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
20189 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
20190 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
20191
ee96ce90
RS
201922002-02-15 Richard Sandiford <rsandifo@redhat.com>
20193
20194 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
20195
05fa709d
RS
201962002-02-15 Richard Sandiford <rsandifo@redhat.com>
20197
20198 * reload.c (find_dummy_reload): Check that an output register
20199 is valid for its mode.
20200
4606272b
AO
202012002-02-14 Alexandre Oliva <aoliva@redhat.com>
20202
9a360704
AO
20203 * combine.c (known_cond): After replacing the REG of a SUBREG, try
20204 to simplify it.
20205
4606272b
AO
20206 * function.c (assign_parms): Demote promoted argument passed by
20207 transparent reference.
20208
e62d89a1
JS
202092001-02-14 Joel Sherrill <joel@OARcorp.com>
20210
20211 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
20212 -Acpu() and -Amachine() to eliminate warnings.
20213
6c4cf695
UW
202142002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
20215
20216 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
20217
037f11ef
KH
202182002-02-14 Kazu Hirata <kazu@hxi.com>
20219
20220 * config/h8300/h8300-protos.h: Update the prototype for
20221 const_costs.
20222 * config/h8300/h8300.c (const_costs): Treat SET as a little
20223 more expensive operation.
20224 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
20225 reference to const_costs.
20226
fdc76b09
HPN
202272002-02-14 Hans-Peter Nilsson <hp@axis.com>
20228
20229 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
20230
d76e6800
JJ
202312002-02-14 Jakub Jelinek <jakub@redhat.com>
20232
20233 PR c/5503:
20234 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
20235 use arguments from newtype.
20236
5ae590d7
EC
202372002-02-13 Eric Christopher <echristo@redhat.com>
20238
20239 * config/mips/mips.c (override_options): Add check for march/mipsX
20240 on the same command line. Fix error message in cpu processing.
20241 Remove architecture and ISA checks.
20242
b8513691
AH
202432002-02-14 Aldy Hernandez <aldyh@redhat.com>
20244
831c4e87 20245 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
b8513691 20246
831c4e87 20247 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
b8513691 20248
78c875e8
AH
202492002-02-14 Aldy Hernandez <aldyh@redhat.com>
20250
831c4e87
KC
20251 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
20252 alternatives.
20253 ("*movv8hi_internal1"): Same.
20254 ("*movv16qi_internal1"): Same.
20255 ("*movv4sf_internal1"): Same.
78c875e8 20256
831c4e87
KC
20257 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
20258 not push_reload for altivec modes.
78c875e8 20259
d76e6800 202602002-02-13 Joel Sherrill <joel@OARcorp.com>
f22b4bc4
JS
20261
20262 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
20263 all RTEMS targets including removal of #includes from config/*/rtems*.h
20264 file and adding them to tm_file setting. Added xm_defines=POSIX to
20265 many targets.
20266 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
20267 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
20268 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
20269 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
20270 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
20271 config/m68k/rtemself.h: Ditto.
20272 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
20273 config/mips/rtems64.h: Ditto.
20274 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
20275 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
20276 Ditto.
20277 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
20278 config/sparc/rtemself.h: Ditto.
20279 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
20280 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
20281 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
20282 more like arm-elf.
20283 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
20284 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
20285 target made more similar to i386-elf.
20286 * config/i386/t-rtems-i386: Added soft float support and multilibs.
20287 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
20288 be similar to config/m68k/t-m68kelf.
20289 * gthr-rtems.h: Encapsulate with extern "C" for C++.
20290
8686336f
JH
20291Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
20292
20293 * regmove.c (kill_value): Handle subregs.
20294
558740bf
JH
20295Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
20296
20297 * i386.md (mul patterns): Allow memory operand to be first;
20298 add expanders where needed; fix constraints.
20299 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
20300 Allow memory operand to be the first.
20301
20302 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
20303 operands.
20304
21117a17
JJ
203052002-02-13 Jakub Jelinek <jakub@redhat.com>
20306
20307 PR c/5681:
20308 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
20309 GET_MODE (x).
20310
ec65b2e3
JJ
203112002-02-13 Jakub Jelinek <jakub@redhat.com>
20312
20313 PR optimization/5547:
20314 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
20315 all valid IA-32 address modes involving non-scaled %ebx and
20316 GOT/GOTOFF as displacement.
20317
ce50cae8
UW
203182002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
20319
20320 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
20321 after emitting ltorg insns.
20322
20323 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
20324 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
20325 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
20326 *abssf2): Fix "op_type" attribute.
20327
09eb789b
DR
203282002-02-13 Douglas B Rupp <rupp@gnat.com>
20329
2dbe67bb
DR
20330 * mkconfig.sh: Avoid using a subshell redirect.
20331 ($output.T): Change to $(output)T.
20332 (ENABLE_NLS): Remove unneeded undef.
20333
ea5b9a1f
DR
20334 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
20335 * config/alpha/x-vms (libsubdir): Define.
20336
3deb00ce
DR
20337 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
20338 register frame procedures. Optimize retrieving context.
20339
09eb789b
DR
20340 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
20341 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
20342 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
20343
1abade85
RK
20344Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20345
20346 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
20347 Make same change as for find_base_value.
20348
c283e63f
KH
203492002-02-13 Kazu Hirata <kazu@hxi.com>
20350
20351 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
20352 of QImode and SImode.
20353
86039100
KH
203542002-02-13 Kazu Hirata <kazu@hxi.com>
20355
20356 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
20357 length computation of movsi.
20358 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
20359
e1429da0
KH
203602002-02-13 Kazu Hirata <kazu@hxi.com>
20361
20362 * config/h8300/h8300.md (subqi3): Tighten the predicate for
20363 operands[2] to register_operand.
20364
aebfea10
JH
20365Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
20366
20367 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
20368
0ec4e2a8
AH
203692002-02-12 Aldy Hernandez <aldyh@redhat.com>
20370
831c4e87
KC
20371 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
20372 for altivec_lvx* and altivec_stvx*.
20373 ("*movv4si_internal"): Add constraint for loading from GPRs.
20374 ("*movv8hi_internal1"): Same.
20375 ("*movv16qi_internal1"): Same.
20376 ("*movv4sf_internal1"): Same.
0ec4e2a8 20377
831c4e87 20378 * config/rs6000/rs6000.c (altivec_register_operand): New.
0ec4e2a8 20379
831c4e87
KC
20380 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
20381 altivec_register_operand.
0ec4e2a8 20382
b007569d
HPN
203832002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
20384
20385 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
20386 handle SYMBOL_REF.
20387
e6834654
SS
203882002-02-13 Stan Shebs <shebs@apple.com>
20389
831c4e87
KC
20390 * c-typeck.c (digest_init): Handle vectors.
20391 (really_start_incremental_init): Same.
20392 (pop_init_level): Same.
20393 (process_init_element): Same.
e6834654 20394
831c4e87 20395 * varasm.c (output_constant): Same.
e6834654 20396
831c4e87
KC
20397 * expr.c (clear_storage): Same.
20398 (store_constructor): Same.
e6834654 20399
d9b3eb63
EC
204002002-02-12 Eric Christopher <echristo@redhat.com>
20401
20402 * explow.c (hard_function_value): Add comment explaining
20403 signed/unsigned comparison.
20404
56d44285
JJ
204052002-02-12 Jakub Jelinek <jakub@redhat.com>
20406
20407 * jump.c (never_reached_warning): Add finish argument.
20408 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
20409 real insn after end.
20410 * rtl.h (never_reached_warning): Adjust prototype.
20411 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
20412 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
20413 never_reached_warning.
20414
fc209487
GS
204152002-02-12 Graham Stott <grahams@redhat.com>
20416
20417 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
20418
1e41e866
KH
204192002-02-12 Kazu Hirata <kazu@hxi.com>
20420
20421 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
20422 logical shifts on H8/300.
20423 (shift_alg_si): Improve several shifts on H8/300.
20424 (get_shift_alg): Likewise.
20425
a36a47ad
GS
204262002-02-12 Graham Stott <grahams@redhat.com>
20427
20428 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
20429
0aacc8ed
RK
20430Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20431
20432 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
20433 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
20434
a02ac966
HPN
204352002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
20436
20437 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
20438 non-CONST_INT through default_assemble_integer.
20439 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
20440 <case 8>: Abort for CONST_DOUBLE.
20441
d6e06ddc
JDA
204422002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
20443
20444 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
20445 is specified.
20446 * config/pa/pa-linux.h (LIB_SPEC): Delete.
20447 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
20448
515342a8
AH
204492002-02-11 Andrew Haley <aph@cambridge.redhat.com>
20450
20451 * config/stormy16/stormy16.md (zero_extendqihi2): New.
20452
cddd8b72
AO
204532002-02-11 Alexandre Oliva <aoliva@redhat.com>
20454
66df7a98
AO
20455 * regrename.c (regrename_optimize): Don't accept a
20456 part-clobbered register if the replaced register is not part
20457 clobbered.
20458
841404cd
AO
20459 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
20460 take padding into account when computing the argument value.
20461
1d1ade42
AO
20462 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
20463
cddd8b72
AO
20464 * combine.c (try_combine): Apply substitutions in
20465 CALL_INSN_FUNCTION_USAGE too.
20466
5c665b88
AH
204672002-02-11 Aldy Hernandez <aldyh@redhat.com>
20468
77f6c1eb
RS
20469 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
20470 __builtin_altivec_abs*.
20471 (bdesc_abs): New.
5c665b88 20472
77f6c1eb
RS
20473 * config/rs6000/rs6000.h (rs6000_builtins): Add
20474 ALTIVEC_BUILTIN_ABS*.
5c665b88 20475
77f6c1eb
RS
20476 * config/rs6000/altivec.h: Use const char for builtins expecting
20477 literals.
20478 (vec_abs): New versions for C and C++.
20479 (vec_abss): Same.
5c665b88 20480
3494f1b4
KH
204812002-02-10 Kazu Hirata <kazu@hxi.com>
20482
20483 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
20484 using Pmode.
20485
72431aef
KH
204862002-02-10 Kazu Hirata <kazu@hxi.com>
20487
20488 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
20489 constant definition from h8300.md.
20490 (FRAME_POINTER_REGNUM): Likewise.
20491 * config/h8300/h8300.md (define_constants): Add FP_REG.
20492
87e4ee91
KH
204932002-02-10 Kazu Hirata <kazu@hxi.com>
20494
20495 * config/h8300/h8300.c (print_operand): Remove redundant code.
20496
9c188705
KH
204972002-02-10 Kazu Hirata <kazu@hxi.com>
20498
20499 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
20500 * config/h8300/h8300.c (byte_reg): Make it static.
20501
fba78abb
RH
205022002-02-10 Richard Henderson <rth@redhat.com>
20503
20504 PR c/5623
20505 * c-typeck.c (incomplete_type_error): Handle flexible array members.
20506
65739e62
RH
205072002-02-10 Richard Henderson <rth@redhat.com>
20508
20509 PR c++/5624
20510 * tree.c (append_random_chars): Don't abort if main_input_filename
20511 does not exist.
20512
247cb9df
HPN
205132002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
20514
20515 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
20516
232bd029
KH
205172002-02-10 Kazu Hirata <kazu@hxi.com>
20518
65739e62 20519 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
232bd029
KH
20520 (pushhi1): Likewise.
20521
276ef573
JDA
205222002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
20523
20524 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
20525 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
20526
617e9ee5
DB
205272002-02-09 David O'Brien <obrien@FreeBSD.org>
20528
20529 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
20530 remove MASK_VIS.
20531 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
20532
6dfa4005
KH
205332002-02-09 Kazu Hirata <kazu@hxi.com>
20534
20535 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
20536 a half of an SImode register on H8/300.
20537
749e7b80
JH
20538Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
20539
20540 * i386.md (movdi_2): Add missing '!'.
20541
ca77d87c
KH
205422002-02-09 Kazu Hirata <kazu@hxi.com>
20543
20544 * config/h8300/h8300.h: Fix formatting. Remove commented-out
20545 definitions.
20546
16c96304
KH
205472002-02-09 Kazu Hirata <kazu@hxi.com>
20548
20549 * config/h8300/h8300.md (length): Correct the distance valid
20550 for the short branch.
20551
a364bc90
KH
205522002-02-09 Kazu Hirata <kazu@hxi.com>
20553
20554 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
20555
e4ec2cac
AO
205562002-02-09 Alexandre Oliva <aoliva@redhat.com>
20557
a138247b
AO
20558 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
20559 registers in SImode.
20560 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
20561 part-clobbered.
20562
2b1fd83f
AO
20563 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
20564 patch.
d9b3eb63 20565
fa5322fa
AO
20566 Contribute sh64-elf.
20567 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
20568 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
20569 (sh_cannot_modify_jumps_p): New function.
20570 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
20571 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
20572 (sh_ms_bitfield_layout_p): New function.
20573 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
20574 Zack Weinberg <zack@codesourcery.com>
20575 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
20576 expand_simple_binop instead of expand_binop.
20577 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
20578 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
20579 use of .quad and .uaquad.
20580 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
20581 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
20582 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
20583 * config/sh/sh.md (movdi_const, movdi_const_32bit,
20584 movdi_const_16bit): Make sure all CONSTs have modes.
20585 (sym2PIC): Ditto, but by adjusting all callers.
20586 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
20587 if the prologue calls the SHmedia argument decoder or register
20588 saver.
20589 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
20590 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
20591 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
20592 (sh_expand_epilogue): Don't emit USE of return target register.
20593 (prepare_move_operands): Legitimize DImode PIC addresses.
20594 (sh_media_register_for_return): Skip tr0, used to initialize the
20595 PIC register.
20596 (sh_expand_prologue): Remove explicit USE of return register.
20597 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
20598 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
20599 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
20600 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
20601 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
20602 EXTRA_CONSTRAINT_T.
20603 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
20604 (MOVI_SHORI_BASE_OPERAND_P): New.
20605 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
20606 (EXTRA_CONSTRAINT_T): Define in terms of them.
20607 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
20608 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
20609 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
20610 alternatives supporting TARGET_REGS.
20611 (UNSPEC_GOTPLT): New constant.
20612 (movdi split): Move incrementing of LABEL_NUSES...
20613 (movdi_const, movdi_const_32bit): Here. Use
20614 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
20615 (movdi_const_16bit): New.
20616 (call, call_value) [flag_pic]: Use GOTPLT.
20617 (call_pop, call_value_pop): New expands.
20618 (call_pop_compact, call_pop_rettramp): New insns.
20619 (call_value_pop_compact, call_value_pop_rettramp): New insns.
20620 (sibcall) [flag_pic]: Use GOT.
20621 (builtint_setjmp_receiver): Remove bogus, unused expand.
20622 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
20623 (*pt, *ptb, ptrel): New insns.
20624 (sym2GOT): Handle DImode GOT.
20625 (sym2GOTPLT, symGOTPLT2reg): New expands.
20626 (sym2PIC): New expand.
20627 (shcompact_return_tramp): Use GOTPLT to return trampoline.
20628 (shcompact_return_tramp_i): Use return register explicitly.
20629 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
20630 disable flag_reorder_blocks.
20631 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
20632 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
20633 clobbers, for clarity.
20634 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
20635 restoring of r0 in macl as MAYBE_DEAD.
20636 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
20637 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
20638 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
20639 alter_subreg all over.
20640 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
20641 reload, instead of emitting instructions that would require
20642 reloading.
20643 (casesi_load_media): Add missing modes.
20644 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
20645 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
20646 as used if the argument decoder is called.
20647 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
20648 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
20649 Pmode, then extend it to DImode if necessary.
20650 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
20651 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
20652 constants in FPU-enabled SHmedia, let them be loaded from memory.
20653 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
20654 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
20655 Adjust whitespace in assembly output templates.
20656 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
20657 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
20658 mode of if_then_else.
20659 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
20660 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
20661 sh.h.
20662 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
20663 Joern Rennecke <amylaar@redhat.com>
20664 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
20665 (SUBTARGET_CPP_PTR_SPEC): New.
20666 (SUBTARGET_CPP_SPEC): Remove.
20667 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
20668 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
20669 Fix typo in previous checkin.
20670 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
20671 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
20672 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
20673 Alexandre Oliva <aoliva@redhat.com>
20674 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
20675 what single FP register can hold for SHmedia target.
20676 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
20677 Alexandre Oliva <aoliva@redhat.com>
20678 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
20679 Do not split into SUBREG.
20680 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
20681 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
20682 and added new functions as specified in SH5 ABI r9.
20683 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
20684 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
20685 8-byte boundary.
20686 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
20687 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
20688 gen_consttable_4 and gen_consttable_8. Emit multiple labels
20689 and consttable_window_ends.
20690 2001-06-03 Graham Stott <grahams@redhat,com>
20691 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
20692 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
20693 * config/sh/sh.c (print_operand): Handle floating-point pair,
20694 vector and matrix registers.
20695 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
20696 vector modes into account.
20697 * config/sh/sh.md (movv2sf): Split move between registers into
20698 movdf.
20699 (movv4sf, movv16sf): Introduce insns that get split only after
20700 reload.
20701 * config/sh/shmedia.h: Fix Copyright dates.
20702 * config/sh/ushmedia.h: Likewise. Move loop counter
20703 declarations into conditionals that uses them.
20704 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
20705 loop boundary.
20706 * config/sh/sshmedia.h: Fix Copyright dates.
20707 (sh_media_PUTCFG): Fix constraints.
20708 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
20709 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
20710 ptrmemfunc_vbit_in_delta for SH5.
20711 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
20712 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
20713 * invoke.texi: Likewise.
20714 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
20715 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
20716 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
20717 GCC_pop_shmedia_regs_nofpu): New global symbols.
20718 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
20719 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
20720 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
20721 compact function with nonlocal labels.
20722 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
20723 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
20724 (initial_elimination_offset): Account for their stack space.
20725 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
20726 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
20727 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
20728 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
20729 least one of the operands to be a register.
20730 (movv2sf): Likewise. Renamed to movv2sf_i.
20731 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
20732 prepare_move_operands() before emitting SHmedia insns.
20733 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
20734 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
20735 Don't save nor initialize r12. Don't mis-align the stack.
20736 Pad the code with a nop.
20737 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
20738 stack.
20739 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
20740 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
20741 [__SHMEDIA__]: Implement.
20742 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
20743 * config/sh/sh.md: Set latency of `pt' closer to reality.
20744 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
20745 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
20746 Set move, load and store type attributes.
20747 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
20748 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
20749 profiling.
20750 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
20751 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
20752 * config/sh/sh.c (sh_media_register_for_return): New function.
20753 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
20754 branch-target register.
20755 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
20756 * config/sh/sh.md (return_media_i): Use any call-clobbered
20757 branch-target register.
20758 (return_media): If r18 wasn't copied in the prologue, copy it
20759 here.
20760 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
20761 Clear class FP0_REGS.
20762 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
20763 from elf.h.
20764 2001-03-08 DJ Delorie <dj@redhat.com>
20765 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
20766 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
20767 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
20768 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
20769 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
20770 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
20771 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
20772 return value correctly for call_cookie.
20773 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
20774 * config/sh/crt1.asm (start): Modified so as to call
20775 ___setup_argv_and_call_main.
20776 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
20777 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
20778 SHmedia mode.
20779 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
20780 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
20781 (STRIP_NAME_ENCODING): Use it.
20782 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
20783 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
20784 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
20785 prepare_scc_operands().
20786 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
20787 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
20788 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
20789 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
20790 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
20791 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
20792 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
20793 used in shcompact_incoming_args.
20794 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
20795 change.
20796 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
20797 mode.
20798 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
20799 Adjust accordingly.
20800 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
20801 Simplify. Adjust. Add sanity check.
20802 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
20803 FPU_SINGLE_BIT.
20804 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
20805 TARGET_SHCOMPACT.
20806 (udivsi3, divsi3): Use them.
20807 (force_mode_for_call): New insn.
20808 (call, call_value, sibcall_value): Emit it before SHcompact
20809 calls.
20810 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
20811 * config/sh/sh.md (call, call_value, sibcall): Make sure the
20812 call cookie is non-NULL before taking its value.
20813 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
20814 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
20815 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
20816 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
20817 block.
20818 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
20819 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
20820 temporary for stack adjusts. Use MACL and MACH to pass
20821 arguments to shcompact_incoming_args.
20822 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
20823 clobber r1.
20824 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
20825 (nested_trampoline): Load static chain address into r1.
20826 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
20827 2001-01-07 Alexandre Oliva <aoliva@redhat.com
20828 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
20829 fp_arith_reg_operand().
20830 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
20831 * config/sh/sh.md (casesi): Sign-extend the first two operands,
20832 and use signed compares for them.
20833 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
20834 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
20835 ones properly aligned.
20836 (find_barrier): Account for extra alignment needed for 8-byte wide
20837 constants.
20838 (machine_dependent_reorg): Require a label for the second 4-byte
20839 constant after an 8-byte one.
20840 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
20841 change.
20842 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
20843 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
20844 last_float when switching float modes.
20845 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
20846 auto-increment for general-purpose registers.
20847 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
20848 result.
20849 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
20850 for stack adjust.
20851 * config/sh/sh.c (sh_builtin_saveregs): Support using all
20852 registers for varargs.
20853 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
20854 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
20855 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
20856 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
20857 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
20858 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
20859 call_cookie accordingly.
20860 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
20861 (SHCOMPACT_BYREF): Likewise.
20862 (SHCOMPACT_FORCE_ON_STACK): New macro.
20863 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
20864 (sh_builtin_saveregs): Likewise.
20865 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
20866 shcompact_incoming_args): Use new shift values. Support
20867 sequences of consecutive and non-consecutive pushes/pops.
20868 * config/sh/sh.md (return): Don't explicitly use PR_REG.
20869 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
20870 * config/sh/sh.h (TEXT_SECTION): Define.
20871 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
20872 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
20873 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
20874 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
20875 return values on FPU-enabled SHmedia.
20876 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
20877 FPU-enabled SHmedia.
20878 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
20879 value is returned in a non-FP reg and is not returned by
20880 reference.
20881 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
20882 jump_ind.
20883 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
20884 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
20885 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
20886 quad-aligned to be passed by callee-copy reference.
20887 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
20888 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
20889 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
20890 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
20891 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
20892 copying low-numbered FP regs to r7 and r8.
20893 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
20894 FP regs to general-purpose regs only if the copy was passed on the
20895 stack.
20896 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
20897 copying FP reg to r9.
20898 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
20899 copy FP regs to general-purpose regs only in outgoing calls.
20900 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1e4e95d6 20901 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
fa5322fa
AO
20902 HOST_WIDE_INT.
20903 * config/sh/sh.h (struct sh_args): Document all fields.
20904 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
20905 passed partially on the stack should not consider making
20906 sibcalls.
20907 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
20908 stack_regs only for incoming calls. When passing FP args,
20909 make sure there are FP regs available before modifying
20910 call_cookie.
20911 (SHCOMPACT_BYREF): Pass double args in general-purpose
20912 registers by reference.
20913 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
20914 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
20915 attempt to generate sibcalls if the caller got any arguments
20916 by reference.
20917 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
20918 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
20919 to 8-byte boundaries.
20920 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
20921 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
20922 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
20923 stored in the stack.
20924 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
20925 for the offsets to have the ISA bit set.
20926 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
20927 invocation. Use beq instead of bgt to mark end of sequence of
20928 loads.
20929 (shcompact_incoming_args): Fix store of r2. Use beq instead of
20930 bgt to mark end of sequence of stores.
20931 * config/sh/sh.c (arith_operand): Don't check whether
20932 CONST_OK_FOR_J for now.
20933 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
20934 instead of long for conversion.
20935 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
20936 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
20937 before passing it to fprintf.
20938 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
20939 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
20940 Call set_fpscr before reading/writing SR.
20941 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
20942 Call set_fpscr.
20943 * config/sh/lib1funcs.asm: Add `.align 2' directives before
20944 SHmedia code.
20945 (FMOVD_WORKS): Define on SH5 with FPU.
20946 (set_fpscr): Define on SH5. Remove separate _fpscr_values
20947 setting.
20948 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
20949 _fpscr_values.
20950 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
20951 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
20952 address.
20953 (ia_main_table): Ditto.
20954 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
20955 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
20956 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
20957 the definitions from sh.h.
20958 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
20959 TARGET_SH5.
20960 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
20961 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
20962 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
20963 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
20964 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
20965 Increment LABEL_NUSES.
d9b3eb63 20966
fa5322fa
AO
20967 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
20968 TARGET_SH5.
20969 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
20970 defined.
20971 * config/sh/elf.h (SIZE_TYPE): Likewise.
20972 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
20973 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
20974 shcompact_incoming_args): Load switch table addresses using
20975 datalabel.
20976 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
20977 (NO_BUILTIN_SIZE_TYPE): Define.
20978 (SIZE_TYPE): Don't define.
20979 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
20980 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
20981 definition of __SH5__=32 for -m5-compact-nofpu.
20982 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
20983 ADDR_DIFF_VEC.
20984 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
20985 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
20986 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
20987 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
20988 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
20989 (INSN_LENGTH_ALIGNMENT): Likewise.
20990 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
20991 * config/sh/sh.md (call, call_value, sibcall): Simplify
20992 copying of non-branch-target register.
20993 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1e4e95d6 20994 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
fa5322fa
AO
20995 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
20996 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
20997 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
20998 floating-point values as structs.
20999 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
21000 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
21001 general-purpose register.
21002 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
21003 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
21004 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
21005 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
21006 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
21007 (ENCODE_SECTION_INFO): Enclose variables and constants in
21008 DATALABEL unspecs.
21009 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
21010 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
21011 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
21012 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
21013 only for LABEL_REFs. For SYMBOL_REFs, prepend
21014 SH_DATALABEL_ENCODING to the symbol name.
21015 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
21016 convert_mode().
21017 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
21018 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
21019 UNSPEC_DATALABEL.
21020 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
21021 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
21022 (DATALABEL_REF_P): Don't require CONST.
21023 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
21024 REL label.
21025 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
21026 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
21027 right.
21028 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
21029 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
21030 Use shallow_copy_rtx and PUT_MODE to change the mode of
21031 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
21032 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
21033 on SHmedia using GENERAL_REGs.
21034 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
21035 bltu_media_i): Fix reversion of conditions.
21036 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
21037 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
21038 * config/sh/sh.c (output_far_jump): Save r13 in macl.
21039 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
21040 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
21041 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
21042 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
21043 (GCC_nested_trampoline): Likewise.
21044 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
21045 * config/sh/sh.c (gen_datalabel_ref): Define.
21046 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
21047 (INITIALIZE_TRAMPOLINE): Likewise.
21048 (TRAMPOLINE_ADJUST_ADDRESS): Define.
21049 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
21050 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
21051 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
21052 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
21053 (ic_invalidate): Adjust for SH5.
21054 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
21055 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
21056 _nested_trampoline.
21057 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
21058 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
21059 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
21060 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
21061 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
21062 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
21063 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
21064 * config/sh/sh.c (target_reg_operand): Match only target-branch
21065 registers and pseudos that aren't virtual registers.
21066 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
21067 Copy operands that don't match target_reg_operand to pseudos.
21068 (call_media, call_value_media, sibcall_media): Use
21069 target_reg_operand instead of target_operand.
21070 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
d9b3eb63 21071 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
fa5322fa
AO
21072 * config/sh/sh.c (target_reg_operand): Match hardware registers
21073 other than branch-target registers.
21074 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
21075 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
21076 (fpscr_values) [SH5 == 32]: Define.
21077 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
21078 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
21079 Handle function addresses coming in SUBREGs.
21080 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
21081 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
21082 shcompact_return_trampoline): Use datalabel where appropriate.
21083 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
21084 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
21085 general-purpose register to copy one branch-target register to
21086 another.
21087 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
21088 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
21089 SYMBOL_REFs with VOIDmode.
21090 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
21091 bltu_media_i): New insns.
21092 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
21093 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
21094 (INIT_CUMULATIVE_ARGS): Likewise.
21095 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
21096 * machmode.def (V16SFmode): New mode.
21097 * c-common.c (type_for_mode): Support V2SF and V16SF.
21098 * tree.c (build_common_tree_nodes_2): Likewise.
21099 * tree.h (tree_index): Likewise.
21100 * calls.c (emit_call_1): Take args_so_far. Adjust all
21101 callers. Introduce CALL_POPS_ARGS.
21102 * tm.texi (CALL_POPS_ARGS): Document.
21103 * config/sh/crt1.asm: Implement in SHmedia mode.
21104 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
21105 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
21106 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
21107 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
21108 Implement divsi and udivsi in SHmedia mode. Introduce
21109 SHcompact trampolines.
21110 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
21111 only in SHmedia64.
21112 (regno_reg_class): Rewrite.
21113 (fp_reg_names): Remove.
21114 (sh_register_names, sh_additional_register_names): New.
21115 (print_operand): Added `u'. Support SUBREGs in addresses.
21116 Add parentheses around shifted CONSTs.
21117 (output_file_start): Output .mode and .abi directives.
21118 (shiftcosts, addsubcosts, multcosts): Adjust.
21119 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
21120 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
21121 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
21122 bytes, not registers. Take into account the need for the
21123 SHcompact incoming args trampoline. Adjust all callers.
21124 (sh_expand_prologue): Take stack_regs into account. Call
21125 incoming args trampoline. Keep stack aligned as per SH5 ABI.
21126 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
21127 stack aligned as per SH5 ABI.
21128 (sh_builtin_saveregs): Support SH5 ABI.
21129 (sh_build_va_list, sh_va_start): Likewise.
21130 (initial_elimination_offset): Take alignment into account.
21131 Compute location of PR according to the SH5 stack frame.
21132 (arith_reg_operand): Reject branch-target registers.
21133 (shmedia_6bit_operand): New.
21134 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
21135 (target_reg_operand): Match DImode only. Accept SUBREGs.
21136 (target_operand): New.
21137 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
21138 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
21139 SIBCALL_REGS for SHmedia.
21140 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
21141 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
21142 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
21143 (TARGET_SWITCHES): New SH5 flags.
21144 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
21145 VALID_REGISTER_P to disable unsupported registers.
21146 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
21147 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
21148 (FUNCTION_ARG_PADDING): Define.
21149 (FASTEST_ALIGNMENT): Adjust.
21150 (SH_REGISTER_NAMES_INITIALIZER): New.
21151 (sh_register_names): Declare.
21152 (DEBUG_REGISTER_NAMES): Define.
21153 (REGISTER_NAMES): Define based on sh_register_names.
21154 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
21155 (sh_additional_register_names): Declare.
21156 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
21157 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
21158 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
21159 (REGISTER_NATURAL_MODE): Define.
21160 (FIRST_PSEUDO_REGISTER): Adjust.
21161 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
21162 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
21163 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
21164 (VECTOR_MODE_SUPPORTED_P): Define.
21165 (REG_CLASS_CONTENTS): Adjust.
21166 (SMALL_REGISTER_CLASSES): Adjust.
21167 (REG_ALLOC_ORDER): Adjust.
21168 (INDEX_REG_CLASS): Adjust.
21169 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
21170 (CONST_OK_FOR_LETTER_P): Adjust.
21171 (PREFERRED_RELOAD_CLASS): Adjust.
21172 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
21173 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
21174 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
21175 (FIRST_FP_PARM_REG): Adjust.
21176 (CALL_POPS_ARGS): Define.
21177 (FUNCTION_ARG_REGNO_P): Adjust.
21178 (struct sh_args): New fields.
21179 (GET_SH_ARG_CLASS): Adjust.
21180 (INIT_CUMULATIVE_ARGS): Adjust.
21181 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
21182 (FUNCTION_ARG_ADVANCE): Adjust.
21183 (FUNCTION_ARG): Adjust.
21184 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
21185 (FUNCTION_ARG_CALLEE_COPIES): Define.
21186 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
21187 (STRICT_ARGUMENT_NAMING): Define.
21188 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
21189 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
21190 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
21191 (SETUP_INCOMING_VARARGS): Adjust.
21192 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
21193 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
21194 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
21195 (SUBREG_OK_FOR_INDEX_P): Adjust.
21196 (EXTRA_CONSTRAINT_S): Update.
21197 (EXTRA_CONSTRAINT_T): New.
21198 (EXTRA_CONSTRAINT): Adjust.
21199 (GO_IF_LEGITIMATE_INDEX): Adjust.
21200 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
21201 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
21202 (MOVE_MAX): Adjust.
21203 (MAX_MOVE_MAX): Define.
21204 (Pmode): Adjust.
21205 (CONST_COSTS): Adjust.
21206 (REGISTER_MOVE_COST): Adjust.
21207 (BRANCH_COST): Adjust.
21208 (TEXT_SECTION_ASM_OP): Adjust.
21209 (DBX_REGISTER_NUMBER): Adjust.
21210 (ASM_OUTPUT_DOUBLE_INT): New.
21211 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
21212 (PREDICATE_CODES): Adjust.
21213 (PROMOTE_MODE): Adjust.
21214 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
21215 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
21216 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
21217 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
21218 (DR0_REG, DR2_REG, DR4_REG): Renumber.
21219 (TR0_REG, TR1_REG, TR2_REG): New.
21220 (XD0_REG): Renumber.
21221 (UNSPEC_COMPACT_ARGS): New.
21222 (type): Added pt and ptabs.
21223 (length): Default to 4 on SHmedia. Default pt length to 12
1e4e95d6 21224 and 20 on SHmedia32 and SHmedia64, respectively.
fa5322fa
AO
21225 (pt): New function unit.
21226 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
21227 Add whitespace between operands of SHmedia instructions.
21228 (movdicc): Fix.
21229 (adddi3_media, addsi3_media): Adjust constraints.
21230 (subsi3) [SHmedia]: Force operand 1 into a register.
21231 (udivsi3_i1_media, udivsi3_i4_media): New.
21232 (udivsi3): Support SHmedia.
21233 (divsi3_i1_media, divsi3_i4_media): New.
21234 (divsi3): Support SHmedia.
21235 (anddi3, iordi3, xordi3): Adjust constraints.
21236 (zero_extendhidi2, zero_extendqidi2): New.
21237 (extendsidi2, extendhidi2, extendqidi2): New.
21238 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
21239 (pop_e, pop_fpul, pop_4): Likewise.
21240 (movsi_media): Support FP and BT registers.
21241 (movsi_media_nofpu): New. Adjust splits to DImode.
21242 (lduw, ldub): Renamed to zero_extend* above.
21243 (movqi_media): Fix typo.
21244 (movdi_media): Support FP and BT registers.
21245 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
21246 (movdi_const_32bit): New.
21247 (shori_media): Require immediate operand. Use `u' for output.
21248 (movdf_media, movsf_media): Simplified.
21249 (movdf_media_nofpu, movsf_media_nofpu): New.
21250 (movdf, movsf): Adjust
21251 (movv2sf, movv2sf, movv16sf): New.
21252 (beq_media, beq_media_i): Adjust constraints. Don't use
21253 scratch BT register.
21254 (bne_media, bne_media_i): Likewise.
21255 (bgt_media, bgt_media_i): Likewise.
21256 (bge_media, bge_media_i): Likewise.
21257 (bgtu_media, bgtu_media_i): Likewise.
21258 (bgeu_media, bgeu_media_i): Likewise.
21259 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
21260 bunordered): Emit jump insn. Force operands to registers when
21261 needed.
21262 (jump_media, jump): Simplify.
21263 (call_compact, call_compact_rettramp): New.
21264 (call_value_compact, call_value_compact_rettramp): New.
21265 (call_media, call_value_media): Simplify.
21266 (sibcall_compact, sibcall_media): New.
21267 (call, call_value): Adjust for SHmedia and SHcompact.
21268 (sibcall, sibcall_value, untyped_call): Likewise.
21269 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
21270 (indirect_jump): Adjust for SHmedia.
21271 (casesi_jump_media): New.
21272 (nop): Re-enable for SHmedia.
21273 (call_site): Restrict to SH1.
21274 (casesi): Adjust for SHmedia.
21275 (casesi_shift_media, casesi_load_media): New.
21276 (return): Explicitly use PR register. Call return trampoline
21277 on SHcompact.
21278 (return_i): Explicitly use PR register.
21279 (shcompact_return_tramp, shcompact_return_tramp_i): New.
21280 (return_media): Adjust.
21281 (shcompact_incoming_args): New.
21282 (epilogue): Adjust.
21283 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
21284 (movstrsi): Disable on SH5.
21285 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
21286 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
21287 (subsf3, subsf3_media): Likewise.
21288 (mulsf3, mulsf3_media, mac_media): Likewise.
21289 (divsf3, divsf3_media): Likewise.
21290 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
21291 (floatsisf2, fux_truncsfsi2): Likewise.
21292 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
21293 constraints.
21294 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
21295 (cmpunsf_media, cmpsf): Likewise.
21296 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
21297 (abssf2, abssf2_media): Likewise.
21298 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
21299 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
21300 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
21301 (floatsidf2, fix_truncdfsi2): Likewise.
21302 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
21303 constraints.
21304 (cmpeqdf_media, cmpgtdf_media): Likewise.
21305 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
21306 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
21307 (absdf2, absdf2_media): Likewise.
21308 (extendsfdf2, extendsfdf2_media): Likewise.
21309 (truncsfdf2, truncsfdf2_media): Likewise.
21310 * config/sh/sh64.h: New file.
21311 * config/sh/t-sh64: New file.
21312 * config/sh/shmedia.h: New file.
21313 * config/sh/ushmedia.h: New file.
21314 * config/sh/sshmedia.h: New file.
21315 * configure.in: Added sh64-*-elf.
21316 * configure: Rebuilt.
21317 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
21318 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
21319 (reg_class_from_letter): Use `b' for TARGET_REGS.
21320 (print_operand): Support `%M', `%m', `AND' and
21321 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
21322 (andcosts): Adjust for SHmedia.
21323 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
21324 Likewise.
21325 (target_reg_operand): New function.
21326 * config/sh/sh-protos.h (target_reg_operand): Declare.
21327 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
21328 FP registers on SH5.
21329 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
21330 on SH4.
21331 (TARGET_REGISTER_P): New macro.
21332 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
21333 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
21334 (EXTRA_CONSTRAINT_S): New macro.
21335 (EXTRA_CONSTRAINT): Adjust.
21336 (FLOAT_TYPE_SIZE): Define to 32.
21337 (Pmode): DImode on SHmedia.
21338 (CONST_COSTS): Adjust for SHmedia literals.
21339 (PREDICATE_CODES): Added target_reg_operand.
21340 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
21341 * config/sh/sh.md: Remove all attrs from SHmedia insns.
21342 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
21343 (cmpdi): Accept SHmedia.
21344 (movdicc_false, movdicc_true): New insns.
21345 (movdicc): New expand.
21346 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
21347 no_new_pseudos.
21348 (addsi3_media): Match `S' constraint.
21349 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
21350 (negdi2): Expand for SHmedia.
21351 (one_cmpldi2): New expand.
21352 (zero_extendsidi2): Change from expand to insn.
21353 (extendsidi2): Add constraints.
21354 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
21355 LD/ST address. Fix SI immediate loading split.
21356 (movhi_media, movqi_media, lduw, ldub): New insns.
21357 (movhi, movqi): Accept SHmedia.
21358 (shori_media, movdi_media): Relax input constraints. Split
21359 symbolic constants.
21360 (movdf_media, movsf_media): New insn. New split to movdi.
21361 (movdf, movsf): Match on SHmedia.
21362 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
21363 bgeu_media): New insns and splits. New insns with `_i' suffix.
21364 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
21365 (bunordered): New expand.
21366 (jump_compact): Renamed from `jump'.
21367 (jump_media): New insn.
21368 (jump): New expand.
21369 (call_media, call_value_media): New insns.
21370 (call, call_value): Adjust.
21371 (indirect_jump_compact): Renamed from `indirect_jump'.
21372 (indirect_jump_media): New insn.
21373 (indirect_jump): New expand.
21374 (untyped_call, return): Accept SHmedia.
21375 (return_media): New insn.
21376 (prologue, epilogue, blockage): Accept SHmedia.
21377 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
21378 (sunordered): New expand.
21379 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
21380 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
21381 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
21382 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
21383 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
21384 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
21385 abssf2_media): New insns.
21386 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
21387 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
21388 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
21389 floatdidf2, floatsidf2_media, fix_truncdfdi2,
21390 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
21391 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
21392 absdf2_media): New insns.
21393 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
21394 (extendsfdf2_media, truncdfsf2_media): New insns.
21395 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
21396 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
21397 * config/sh/sh.h (CONST_OK_FOR_J): Document.
21398 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
21399 * config/sh/sh.md (adddi3): New expand.
21400 (adddi3_media, adddi3z_media): New insns.
21401 (adddi3_compact): Renamed from adddi3.
21402 (addsi3_media): Use add.l r63 to add constant zero.
21403 (subdi3): New expand.
21404 (subdi3_media): New insn.
21405 (subdi3_compact): Renamed from subdi3.
21406 (mulsidi3): New expand.
21407 (mulsidi3_media): New insn.
21408 (mulsidi3_compact): Renamed from mulsidi3.
21409 (umulsidi3): New expand.
21410 (umulsidi3_media): New insn.
21411 (umulsidi3_compact): Renamed from umulsidi3.
21412 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
21413 (ashlsi3, ashrsi3, lshrsi3): Use them.
21414 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
21415 (ashldi3, ashrdi3, lshrdi3): Use them.
21416 (zero_extendsidi2): New expand.
21417 (extendsidi2): New insn.
21418 (movsi_media): New insn. Split to movdi to load constants.
21419 (movsi): Enable for shmedia.
21420 (movdi_media): New insn. Use shori_media to load wide constants.
21421 (short_media): New insn.
21422 (movdi): Enable for shmedia.
21423 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
21424 * config/sh/sh.h (CPP_SPEC): Added `m5'.
21425 (SUBTARGET_CPP_SPEC): Added `!m5'.
21426 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
21427 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
21428 to all other SH variants.
21429 (TARGET_DEFAULT): Set to SH1_BIT.
21430 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
21431 (BITS_PER_WORD): Raise to 64 on shmedia.
21432 (MAX_BITS_PER_WORD): Change to 64.
21433 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
21434 (INT_TYPE_SIZE): Keep as 32.
21435 (UNITS_PER_WORD): Raise to 8 on shmedia.
21436 (MIN_UNITS_PER_WORD): Keep as 4.
21437 (POINTER_SIZE): Raise to 64 on shmedia.
21438 (CONST_OK_FOR_J): New macro.
21439 (CONST_OK_FOR_LETTER_P): Use it.
21440 (processor_type): Add PROCESSOR_SH5.
21441 * config/sh/sh.md: Conditionalize all expands, insns and
21442 splits to TARGET_SH1.
21443 (cpu): Added sh5.
21444 (addsi3_compact): Renamed from...
21445 (addsi3): Now an expand.
21446 (addsi3_media, subsi3_media): New insns.
21447 (subsi3): Don't negate constants with SHmedia.
21448
e4ec2cac
AO
21449 * hooks.c: New file.
21450 * hooks.h: New file.
21451 * Makefile.in (HOOKS_H): New.
21452 (TARGET_DEF_H): Added $(HOOKS_H).
21453 (OBJS): Added hooks.o.
21454 (cfgcleanup.o, bb-reorder.o): Added target.h.
21455 (hooks.o): Added dependencies.
21456 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
21457 (TARGET_INITIALIZER): this.
21458 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
21459 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
21460 * bb-reorder.c: Include target.h.
21461 (reorder_basic_blocks): Skip if cannot modify jumps.
21462 * cfgcleanup.c: Include target.h.
21463 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
21464
246a46e0
CD
214652002-02-08 Chris Demetriou <cgd@broadcom.com>
21466
831c4e87
KC
21467 * config/mips/mips.md (casesi_internal, casesi_internal_di):
21468 Protect jump delay slot instructions with .set noreorder and
21469 .set nomacro.
246a46e0
CD
21470
214712002-02-08 Chris Demetriou <cgd@broadcom.com>
6a5ea3f4
CD
21472
21473 * config/mips/mips.md (casesi_internal_di): Calculate
21474 the index into the target offset table correctly.
21475
fdf473ae
RH
214762002-02-08 Richard Henderson <rth@redhat.com>
21477
21478 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
21479 * final.c (output_addr_const): Accept and discard SUBREG.
21480 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
21481 mark them unknown instead.
21482 (simplify_subtraction): Handle RTX_UNKNOWN.
21483 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
21484
c50503ac
DE
214852002-02-08 David Edelsohn <edelsohn@gnu.org>
21486
21487 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
21488
3660d217
RH
214892002-02-08 Richard Henderson <rth@redhat.com>
21490
21491 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
21492
56547299
AJ
214932002-02-08 Andreas Jaeger <aj@suse.de>
21494
21495 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
21496 * config/i386/t-linux64: New file.
21497
1cf537c5
JJ
214982002-02-08 Jakub Jelinek <jakub@redhat.com>
21499
21500 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
21501 * c-parse.in (compstmt): Clear last_expr_type.
21502
5c7f5a5f
RH
215032002-02-07 Richard Henderson <rth@redhat.com>
21504
21505 * loop.c (strength_reduce): Sink final_value when not
21506 eliminating a biv.
21507
b1138bf3
DB
215082002-02-07 David O'Brien <obrien@FreeBSD.org>
21509
21510 * config/sparc/freebsd.h: Fix mismatched spec {.
21511
b6878a45
RH
215122002-02-07 Richard Henderson <rth@redhat.com>
21513
21514 * cfgrtl.c: Include recog.h and insn-config.h.
21515 (keep_with_call_p): Fix general_operand invocation.
21516 * Makefile.in (cfgrtl.o): Update dependencies.
21517
ae19f5ef
KH
215182002-02-07 Kazu Hirata <kazu@hxi.com>
21519
21520 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
21521 comment. Accept HImode only if TARGET_H8300.
21522
b137f9fc
EC
215232002-02-07 Eric Christopher <echristo@redhat.com>
21524
21525 * config/mips/crtn.asm: Cleanup #ifdefs.
21526
215272002-02-07 Eric Christopher <echristo@redhat.com>
21528
21529 * config/mips/crti.asm: Add changes for mips16. mips16 uses
21530 register 7 as RA instead of $31.
21531 * config/mips/crtn.asm: Ditto.
21532 * config/mips/mips.c (mips_move_2words): Add case for
21533 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
21534 (compute_frame_size): Fix typo.
21535 (save_restore_insns): Ditto. Make documentation about using
21536 register $7 as return register more precise.
21537 (mips_expand_epilogue): Fix comment. Add code to work around not
21538 being able to add to the stack pointer directly.
21539 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
21540 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
21541 epilogue.
21542
768070a0
TR
215432002-02-07 Tom Rix <trix@redhat.com>
21544
b137f9fc 21545 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
768070a0
TR
21546 immediates in ldu and stdu DS opcode field.
21547 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
21548 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
21549 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
21550
225909c3
JS
215512002-02-07 Jeff Sturm <jsturm@one-point.com>
21552
21553 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
21554 offset for stack bias.
21555
15fae023
L
215562002-02-07 H.J. Lu <hjl@gnu.org>
21557
21558 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
21559
fde5badd
UW
215602002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
21561
21562 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
21563
162f023b
JH
21564Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
21565
21566 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
21567 * i386.c (x86_order_regs_for_local_alloc): New global function.
21568 * i386.h (REG_ALLOC_ORDER): CLeanup.
21569 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
21570
9b462c42
RH
215712002-02-07 Richard Henderson <rth@redhat.com>
21572
85aa876c 21573 PR optimization/2463
9b462c42
RH
21574 * alias.c (find_base_value): Recall base values for fixed hard regs.
21575 * loop.c (loop_regs_update): Don't use single_set on non-insns.
21576
06e455a9
AO
215772002-02-07 Alexandre Oliva <aoliva@redhat.com>
21578
21579 * config/mips/mips.md (define_delay) [mips16]: Adjust required
21580 length.
21581
edd1967d
RH
215822002-02-06 Richard Henderson <rth@redhat.com>
21583
21584 PR c/5609
21585 * stmt.c (resolve_operand_name_1): Take more care with mixed
21586 named and unnamed operands.
21587
a2cd028f
JJ
215882002-02-06 Janis Johnson <janis187@us.ibm.com>
21589 Jan Hubicka <jh@suse.cz>
21590
21591 * loop.c (remove_constant_addition): Avoid clobbering a shared
21592 CONST expression.
21593
e8487c04
UW
215942002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
21595
21596 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
21597 * config/s390/t-linux64: New file.
21598 * config/s390/libgcc-glibc.ver: New file.
21599
58d10f89
UW
216002002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
21601
21602 * config/s390/linux64.h: Delete file.
21603 * config/s390/s390x.h: New file.
21604 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
21605 as target header file.
21606 * config/s390/linux.h (TARGET_VERSION): Define depending on
21607 DEFAULT_TARGET_64BIT.
21608 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
21609 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
21610 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
21611 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
21612 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
21613 (EXTRA_SPEC): New define.
21614 * config/s390/s390.h (TARGET_VERSION): Define depending on
21615 DEFAULT_TARGET_64BIT.
21616 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
21617
5ce89b2e
JM
216182002-02-06 Jason Merrill <jason@redhat.com>
21619
21620 * c-decl.c (finish_function): Warn about a non-void function with
21621 no return statement and no abnormal exit.
21622 (current_function_returns_abnormally): New variable.
21623 (start_function): Clear it.
21624 (struct c_language_function): Add returns_abnormally.
21625 (push_c_function_context): Save it.
21626 (pop_c_function_context): Restore it.
21627 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
21628 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
21629 an explicit return type.
21630 * c-tree.h: Declare current_function_returns_abnormally.
21631 (C_FUNCTION_IMPLICIT_INT): New macro.
21632 * c-typeck.c (build_function_call): Set it.
21633 (c_expand_return): Set current_function_returns_value even if the
21634 value is erroneous.
21635
caaf2272
JJ
216362002-02-06 Jakub Jelinek <jakub@redhat.com>
21637
21638 PR c/5420:
21639 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
21640 unsafe for reevaluation.
21641
d5129288
JJ
216422002-02-06 Jakub Jelinek <jakub@redhat.com>
21643
21644 PR c/5482:
21645 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
21646 EXPR_STMT, but COMPOUND_STMT, recurse into it.
21647
7fb75099
RH
216482002-02-06 Richard Henderson <rth@redhat.com>
21649
21650 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
21651 be a general_operand. Dest for function value must be a pseudo.
21652
d3a8b6a6
NC
216532002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
21654
21655 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
21656 as SYMBOL_REFs from the constant pool.
21657
3c1299c5
AO
216582002-02-06 Alexandre Oliva <aoliva@redhat.com>
21659
21660 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
21661 passed by invisible reference.
21662
c2c9f6c9
RH
216632002-02-05 Richard Henderson <rth@redhat.com>
21664
21665 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
21666
a824924d
HPN
216672002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
21668
21669 Implement using "base addresses" in insn operands as default.
21670 * config/mmix/mmix.c (mmix_conditional_register_usage): if
21671 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
21672 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
21673 used to read the rtx value.
21674 (mmix_target_asm_function_epilogue): Fix spacing.
21675 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
21676 (mmix_legitimate_address): Ditto.
21677 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
21678 should be loaded with a GETA insn. Don't allocate needless extra
21679 char for nul termination and fix misleading comment.
21680 (mmix_print_operand_address): Handle constants if
21681 TARGET_BASE_ADDRESSES.
21682 (mmix_output_register_setting): Use base addressing if
21683 TARGET_BASE_ADDRESSES and the number of insns is 3.
21684 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
21685 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
21686 to use R as constraint, add LDA to match s.
21687 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
21688 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
21689 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
21690 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
21691 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
21692 order with other fixed registers.
21693 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
21694 other parameter/call-clobbered registers.
21695 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
21696 -mbase-addresses, -mno-base-addresses.
21697 (MMIX Options): Ditto.
21698
73c342b9
JDA
216992002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
21700
21701 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
21702
ef238c58
AH
217032002-02-06 Aldy Hernandez <aldyh@redhat.com>
21704
831c4e87 21705 * config/rs6000/altivec.h: Change elem to _S_elem.
ef238c58 21706
ad08e60e
JT
217072002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
21708
21709 * config/netbsd.h (WCHAR_TYPE): Define.
21710 (WCHAR_TYPE_SIZE): Ditto.
21711 (WINT_TYPE): Ditto.
21712 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
21713 (WCHAR_UNSIGNED): Ditto.
21714 (WCHAR_TYPE_SIZE): Ditto.
21715 (WINT_TYPE): Ditto.
21716 * config/arm/netbsd.h: Likewise.
21717 * config/i386/netbsd-elf.h: Likewise.
21718 * config/i386/netbsd.h: Likewise.
21719 * config/m68k/netbsd-elf.h: Likewise.
21720 * config/m68k/netbsd.h: Likewise.
21721 * config/ns32k/netbsd.h: Likewise.
21722 * config/sparc/netbsd.h: Likewise.
21723 * config/vax/netbsd.: Likewise.
21724
f913c102
AO
217252002-02-05 Alexandre Oliva <aoliva@redhat.com>
21726
21727 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
21728 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
21729 (TARGET_INITIALIZER): this.
21730 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
21731 (BITFIELD_NBYTES_LIMITED): Markup fix.
21732 * tree.h (default_ms_bitfield_layout_p): Declare.
21733 (record_layout_info): Added prev_field.
21734 * tree.c (default_ms_bitfield_layout_p): New fn.
21735 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
21736 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
21737 * stor-layout.c: Include target.h.
21738 (start_record_layout): Initialize prev_field.
21739 (place_field): Handle MS bit-field layout, and disregard
21740 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
21741 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
21742 * Makefile.in (stor-layout.o): Adjust dependencies.
21743
c13db5d1
JM
217442002-02-05 Jason Merrill <jason@redhat.com>
21745
c13db5d1
JM
21746 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
21747
4505024e
AJ
217482002-02-05 Andreas Jaeger <aj@suse.de>
21749
21750 * crtstuff.c: Fix comments.
21751
794ad79d
RH
217522002-02-05 Richard Henderson <rth@redhat.com>
21753
2e279a9b
RH
21754 PR fortran/3393
21755 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
21756 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
21757
794ad79d
RH
21758 PR fortran/3392
21759 * config/mips/mips.c (function_arg): Handle TImode.
21760 (function_arg_advance): Likewise.
21761
8f909017
AH
217622002-02-05 Aldy Hernandez <aldyh@redhat.com>
21763
c13db5d1
JM
21764 * config/rs6000/altivec.h (vec_step_help): Rename to
21765 __vec_step_help.
8f909017 21766
66daa9e3
AH
217672002-02-05 Aldy Hernandez <aldyh@redhat.com>
21768
c13db5d1 21769 * config/rs6000/altivec.h: Fix typos.
66daa9e3 21770
2696e97b
JT
217712002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
21772
21773 * config/arm/netbsd.h: Correct a comment.
21774
3deb2758
AH
217752002-02-05 Aldy Hernandez <aldyh@redhat.com>
21776
c13db5d1
JM
21777 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
21778 building void typed builtins.
3deb2758 21779
c13db5d1
JM
21780 * config/rs6000/altivec.h (vec_ld*): Fix typos.
21781 (vec_step): Implement for C++.
3deb2758 21782
c13db5d1 21783Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2c79137a
RK
21784
21785 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
21786
ebbb0a63
RH
217872002-02-04 Richard Henderson <rth@redhat.com>
21788
21789 * combine.c (nonzero_bits): Re-introduce special case for
21790 sp/fp/ap wrt REGNO_POINTER_ALIGN.
21791
ae4b4a02
AH
217922002-02-05 Aldy Hernandez <aldyh@redhat.com>
21793
c13db5d1
JM
21794 * doc/extend.texi: Warn about unsupported usage of altivec
21795 builtins.
ae4b4a02 21796
c13db5d1
JM
21797 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
21798 (altivec_predicate_*): New.
ae4b4a02 21799
c13db5d1
JM
21800 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
21801 Add C++ version of vec_*() functions.
ae4b4a02 21802
c13db5d1
JM
21803 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
21804 (bdesc_2arg): Remove altivec predicates.
21805 (altivec_expand_builtin): Handle predicates.
21806 (altivec_init_builtins): Handle predicates.
21807 (altivec_expand_predicate_builtin): New.
ae4b4a02 21808
f6bcf44c
JDA
218092002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
21810
21811 * pa.c (DO_FRAME_NOTES): Move forward.
21812 (store_reg): Revise handling of frame notes.
21813 (load_reg): Likewise.
21814 (set_reg_plus_d): Likewise.
21815 (hppa_expand_prologue): Likewise.
21816 (hppa_expand_epilogue): Likewise.
b137f9fc 21817
703b0080
JDA
218182002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
21819
21820 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
21821
6f9fdf4d
JJ
218222002-02-04 Jakub Jelinek <jakub@redhat.com>
21823
21824 PR c/4475, c++/3780:
21825 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
21826 * c-common.h (SWITCH_TYPE): Define.
21827 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
21828 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
21829 Rename spareness variable to sparseness.
21830 (expand_end_case_type): Renamed from expand_end_case, use orig_type
21831 if non-NULL instead of TREE_TYPE (orig_index).
21832 * tree.h (expand_end_case_type): Renamed from expand_end_case.
21833 (expand_end_case): Define using expand_end_case_type.
21834 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
21835 to expand_end_case_type.
21836 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
21837
79109502
JDA
218382002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
21839
21840 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
21841 (BIGGEST_ALIGNMENT): Change to 128.
21842
e62a5987
JDA
218432002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
21844
21845 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
21846
219f24a4
JDA
218472002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
21848
21849 * pa.md (call_internal_reg_64bit): Remove unused variable.
21850
3cb66fd7
NC
218512002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
21852
21853 * config/arm/arm.h (machine_function): Add uses_anonymous_args
21854 field.
831c4e87 21855 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
3cb66fd7 21856 * config/arm/arm.c (current_function_anonymous_args): Delete,
831c4e87
KC
21857 replace uses with cfun->machine->uses_anonymous_args.
21858 (arm_reorg): Do not reset uses_anonymous_args.
3cb66fd7
NC
21859
21860 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
21861 any geenral register.
b137f9fc 21862
5d5603e2 218632001-02-04 Bernd Schmidt <bernds@redhat.com>s
24c545ff
BS
21864
21865 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
21866 the entry block.
21867
563c12b0
RH
218682002-02-04 Richard Henderson <rth@redhat.com>
21869
21870 * combine.c (force_to_mode): Remove STACK_BIAS code.
21871 (nonzero_bits): Likewise. Replace sp/fp special case with
21872 REGNO_POINTER_ALIGN.
21873
21874 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
21875 (HARD_FRAME_POINTER_REGNUM): New.
21876 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
21877 (FIXED_REGS, CALL_USED_REGS): Update.
21878 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
21879 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
21880 (HARD_REGNO_NREGS): Update for SFP.
21881 (STACK_POINTER_OFFSET): Include bias here ...
21882 (FIRST_PARM_OFFSET): ... not here.
21883 (STACK_BIAS): Remove.
21884 (INIT_EXPANDERS): New.
21885 (STARTING_FRAME_OFFSET): Do not include bias.
21886 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
21887 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
21888 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
21889 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
21890 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
21891 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
21892 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
21893 (MUST_SAVE_REGISTER): Likewise.
21894 (sparc_flat_function_prologue): Likewise.
21895 (sparc_flat_function_epilogue): Likewise.
21896 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
21897 (sparc_init_modes): SFP is GENERAL_REGS.
21898 (sparc_builtin_saveregs): SFP does not have bias applied.
21899
14691f8d
RH
219002002-02-04 Richard Henderson <rth@redhat.com>
21901
21902 * config/alpha/alpha.c (current_function_is_thunk): Don't check
21903 current_function_is_thunk.
21904 (alpha_sa_mask): Distinguish between current_function_is_thunk
21905 called from ASM_OUTPUT_MI_THUNK and not.
21906 (alpha_does_function_need_gp): Thunks always need gp.
21907 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
21908 (alpha_output_mi_thunk_osf): New.
21909 * config/alpha/alpha-protos.h: Update.
21910 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
21911
af702de8
RS
219122002-02-04 Richard Sandiford <rsandifo@redhat.com>
21913
21914 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
21915 function types, not when they're taken away.
21916
5b1cacd8
JL
21917Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
21918
21919 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
21920 CODE_LABEL and jump table when replacing a table jump with a
21921 simple jump.
21922
f3e9edff
UW
219232002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
21924
21925 * config/s390/s390-protos.h (legitimize_la_operand,
21926 s390_secondary_input_reload_class, s390_plus_operand,
21927 s390_expand_plus_operand): Add prototypes.
21928
21929 config/s390/s390.c (s390_secondary_input_reload_class,
21930 s390_plus_operand, s390_expand_plus_operand): New functions.
21931
21932 (struct s390_address): New member 'pointer'.
21933 (s390_decompose_address): Compute it.
21934 (legitimate_la_operand_p): Use it.
21935 (legitimize_la_operand): New function.
21936 (movti, movdi, movdf splitters): Call it.
21937
21938 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
21939 (PREDICATE_CODES): Add s390_plus_operand.
21940
21941 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
21942 (la_ccclobber): Allow GENERAL_REGS as output operand.
21943
21944 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
21945 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
21946 (*la_64, *la_31, reload_indi, reload_insi): ... these.
21947
3c9a08ec
UW
219482002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
21949
21950 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
21951 register names for regular asm () construct.
21952
ac300a45
JJ
219532002-02-04 Jakub Jelinek <jakub@redhat.com>
21954
21955 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
21956 registers.
21957
fa852403
JJ
219582002-02-04 Jakub Jelinek <jakub@redhat.com>
21959
21960 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
21961 pat for recog.
21962
fecaac37
HP
219632002-02-04 Hartmut Penner <hpenner@de.ibm.com>
21964
831c4e87
KC
21965 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
21966 constant pool to be identical by string address and index.
fecaac37 21967
10c45943
AG
219682002-02-04 Anthony Green <green@redhat.com>
21969
21970 * output.h (SECTION_OVERRIDE): Define.
21971 * varasm.c (named_section): Obey SECTION_OVERRIDE.
21972
69474c3c
JT
219732002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
21974
21975 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
21976 by existing arm*-*-netbsd* (a.out) target.
21977 (ns32k-*-netbsdelf*): Likewise.
21978 (sparc-*-netbsdelf*): Likewise.
21979 (vax-*-netbsdelf*): Likewise.
21980
939a46f6 219812002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
3b56934f
CF
21982
21983 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
21984 headers and libobjc headers.
21985
219862002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
21987
21988 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
21989 (_mingw.h): Remove duplicate include.
21990
2fd95d71
JT
219912002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
21992
21993 * config.gcc: Set cpu_type to m68k for 68010, as well.
21994 (m68010-*-netbsdelf*): New...
21995 (m68k*-*-netbsdelf*): ...targets.
21996 * config/m68k/netbsd-elf.h: New file.
21997
0ea6f6a0
KH
219982002-02-02 Kazu Hirata <kazu@hxi.com>
21999
22000 * config/h8300/h8300.c (hand_list): Move inside function_arg.
22001
cbf1b2da
KH
220022002-02-02 Kazu Hirata <kazu@hxi.com>
22003
22004 * config/h8300/h8300.c (h8_push_ops): Move inside
22005 h8300_init_once.
22006 (h8_pop_ops): Likewise.
22007 (h8_move_ops): Likewise.
22008
0869f126
KH
220092002-02-02 Kazu Hirata <kazu@hxi.com>
22010
22011 * config/h8300/h8300.c (os_task): Make it static.
22012 (monitor): Likewise.
22013 (pragma_saveall): Likewise.
22014
90e65b70
AO
220152002-02-02 Alexandre Oliva <aoliva@redhat.com>
22016
22017 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
22018 constant is a valid sign-extension for Pmode.
22019
9cbcd983
KH
220202002-02-02 Kazu Hirata <kazu@hxi.com>
22021
22022 * config/h8300/h8300.c: Fix formatting.
22023
7a27efc4
KH
220242002-02-02 Kazu Hirata <kazu@hxi.com>
22025
22026 * config/h8300/h8300.md: Fix formatting.
22027
54175a44
KH
220282002-02-02 Kazu Hirata <kazu@hxi.com>
22029
22030 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
22031 predicates of operands[1]. Split the patterns for each
22032 processor variant.
22033
eceb1755
KH
220342002-02-02 Kazu Hirata <kazu@hxi.com>
22035
22036 * config/h8300/h8300.md (xor patterns): Tighten the predicates
22037 of operands[1] to register_operand.
22038
0fef3fd0
NB
220392002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
22040
22041 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
22042 * cpphash.c (_cpp_init_hashtable): Similarly.
22043 * cppinit.c (cpp_create_reader): Default the signed_char flag.
22044 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
22045 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
22046 (cpp_handle_option): Handle the new options.
22047 * cpplex.c (cpp_interpret_charconst): Use new flag.
22048 * cpplib.h (struct cpp_options): New member signed_char.
22049 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
22050 (cpp_options): Handle -fsigned-char and -funsigned-char.
22051 (static_specs): Remove signed_char_spec.
22052 (do_spec1): Don't handle %c.
22053 * system.h: Poison SIGNED_CHAR_SPEC.
22054 * tradcif.y (yylex): Use flag_signed_char.
22055 * tradcpp.h (flag_signed_char): New.
22056 * tradcpp.c (flag_signed_char): New.
22057 (main): Handle new command-line options.
22058 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
22059config:
22060 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
22061 * avr/avr.h: Remove old comments.
22062 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
22063 (CC1_SPEC): Pass -fsigned-char if -mic*.
22064 (SIGNED_CHAR_SPEC): Remove.
22065doc:
22066 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
22067
0617ed52
EC
220682002-02-01 Eric Christopher <echristo@redhat.com>
22069
22070 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
22071 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
22072 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
22073 (ASM_OUTPUT_REG_POP): Ditto.
22074
dfd48d76
NB
220752002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
22076
22077 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
22078 patch.
22079
4a23409e
JJ
220802002-02-02 Jakub Jelinek <jakub@redhat.com>
22081
22082 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
22083
d3c52658
JJ
220842002-02-02 Jakub Jelinek <jakub@redhat.com>
22085
22086 PR c/5304:
22087 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
22088 unconditionally.
22089
02c5a3bd
JJ
220902002-02-01 Janis Johnson <janis187@us.ibm.com>
22091
22092 * cfganal.c: Include tm_p.h.
22093 (keep_with_call_p): Fix the test that determines if a register holds
22094 the return value of a call.
22095
3968de80
DD
220962002-02-01 DJ Delorie <dj@redhat.com>
22097
22098 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
22099 we are given conflicting registers, switch to the other one we
22100 had allocated for us.
22101 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
22102 as TImode so we know when the "other" register is available.
22103
1338ea6c
DB
221042002-02-01 David O'Brien <obrien@FreeBSD.org>
22105
22106 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
22107 sparc/sparc_bi.h.
22108
f015be23
JJ
221092002-02-01 Janis Johnson <janis187@us.ibm.com>
22110
22111 * cfganal.c (keep_with_call_p): New function.
22112 (flow_call_edges_add): Prevent splitting a block between a call and
22113 a single-set instruction that should be kept in the same block.
22114
63708ffc
CR
221152002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
22116
22117 * doc/install.texi (avr): Update outdated URL.
22118
5ee4950e
AH
221192002-01-30 Andrew Haley <aph@cambridge.redhat.com>
22120
831c4e87
KC
22121 * config/stormy16/stormy16.md (pushqi): New.
22122 (popqi): New.
22123 (pushhi): New.
22124 (pophi): New.
22125 (movhi): Remove stack operands.
22126 (movqi): Likewise.
22127 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
22128 nonimmediate_nonstack_operand.
22129 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
22130 New.
22131 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
22132 New.
5ee4950e 22133
b88c0704
JM
221342002-01-31 Jason Merrill <jason@redhat.com>
22135
22136 * Makefile.in (c-parse.c): Handle .output file.
22137 * objc/Make-lang.in (objc-parse.c): Likewise.
22138
ac282977
AO
221392002-02-01 Alexandre Oliva <aoliva@redhat.com>
22140
22141 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
22142 the -me[lb] option is given. Don't output the default flag
22143 twice.
22144
bebc7e8b
ZW
221452002-01-31 Zack Weinberg <zack@codesourcery.com>
22146
22147 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
22148 the primary source file; this has not been done yet.
22149 * c-decl.c (c_expand_body): Reset input_filename from
22150 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
22151
5809eb5f
KH
221522002-01-31 Kazu Hirata <kazu@hxi.com>
22153
22154 * rtlanal.c (subreg_regno_offset): Do not use
22155 SUBREG_REGNO_OFFSET.
22156 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
22157 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
22158
8512bbd7
JM
221592002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
22160
22161 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
22162 version rather than GNATS version in --version output.
22163
74cb3cc8
RS
221642002-01-31 Richard Sandiford <rsandifo@redhat.com>
22165
22166 * ifcvt.c (noce_process_if_block): Make a copy of the destination
22167 when copying back from a temporary.
22168
874b5b14
RH
221692002-01-30 Richard Henderson <rth@redhat.com>
22170
22171 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
22172 and new_dest are the same.
22173
e803a64b
RH
221742002-01-30 Richard Henderson <rth@redhat.com>
22175
89cf7be5 22176 PR opt/5076
e803a64b
RH
22177 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
22178 * rtl.c (note_insn_name): Update.
22179 * emit-rtl.c (remove_unnecessary_notes): Kill it.
22180 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
22181 to perform loop rotation.
22182 (expand_exit_loop_top_cond): New.
22183 * tree.h (expand_exit_loop_top_cond): Declare it.
22184 * c-semantics.c (genrtl_while_stmt): Use it.
22185 (genrtl_for_stmt): Likewise.
22186
0b51254d
AO
221872002-01-30 Alexandre Oliva <aoliva@redhat.com>
22188
22189 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
22190 arguments to 64-bit boundaries on 64-bit ABIs.
22191
71cef493
SE
221922002-01-30 Steve Ellcey <sje@cup.hp.com>
22193
22194 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
22195
6169e5fd
JM
221962002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
22197
22198 * c-decl.c (grokdeclarator): Handle type being a typedef for an
22199 invalid type.
22200
86f808dc
DB
222012002-01-30 David O'Brien <obrien@FreeBSD.org>
22202
22203 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
22204 * config/sparc/sparc_bi.h: Remove file.
22205 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
22206
5748ebeb
RH
222072002-01-30 Richard Henderson <rth@redhat.com>
22208
22209 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
22210
20d32cc2
ZW
222112002-01-30 Zack Weinberg <zack@codesourcery.com>
22212
22213 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
22214
b88c0704 222152002-01-30 Jason Merrill <jason@redhat.com>
6bb28965
JM
22216
22217 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
22218 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
22219 (reg_save): Use DW_CFA_offset_extended_sf instead.
22220
22221 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
22222
37060e78
JJ
222232002-01-29 Jakub Jelinek <jakub@redhat.com>
22224
22225 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
22226 in cselib_lookup.
22227
d18dba68
AH
222282002-01-29 Aldy Hernandez <aldyh@redhat.com>
22229
bebc7e8b
ZW
22230 * rs6000.md ("*call_value_local32"): Remove constraints.
22231 ("*call_value_local64"): Same.
22232 ("*call_value_indirect_nonlocal_aix32"): Same.
22233 ("*call_value_nonlocal_aix32"): Same.
22234 ("*call_value_indirect_nonlocal_aix64"): Same.
22235 ("*call_value_nonlocal_aix64"): Same.
22236 ("*call_value_nonlocal_sysv"): Same.
d18dba68 22237
80a8aac6
RH
222382002-01-29 Richard Henderson <rth@redhat.com>
22239
22240 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
22241
12beba6f
RH
222422002-01-29 Richard Henderson <rth@redhat.com>
22243
22244 * expr.c (force_operand): Ignore flag_pic for detecting pic
22245 address loads.
22246 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
22247 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
22248 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
22249 instead of open-coded loop.
22250 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
22251 be fixed when in use.
22252
2583081e
RH
222532002-01-29 Richard Henderson <rth@redhat.com>
22254
22255 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
22256 * sched-rgn.c (propagate_deps): Update them.
22257 * sched-deps.c (sched_analyze_insn): Update them. Flush the
22258 clobbers list when either gets too long.
22259
3b8d200e
JJ
222602002-01-29 Jakub Jelinek <jakub@redhat.com>
22261
22262 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
22263 and INDEX_REGS the same as GENERAL_REGS.
22264 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
22265
2d3115eb
NB
222662002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
22267
bebc7e8b 22268 * tree.c (build_nonstandard_integer_type): Correct prototype.
2d3115eb 22269
ecbe845e
UW
222702002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
22271
bebc7e8b 22272 * config/s390/s390.md (movstrsico, movstrdix_64,
ecbe845e 22273 movstrsix_31): Remove, replace by ...
bebc7e8b 22274 (movstrdi_short, movstrsi_short, movstrdi_long,
ecbe845e
UW
22275 movstrsi_long): ... these. New.
22276 (movstrdi, movstrsi): Adapt.
22277
22278 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
bebc7e8b 22279 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
ecbe845e
UW
22280 Remove unnecessary CC clobber.
22281 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
22282 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
22283
22284 (divmoddi4): Don't partially initialize TImode register.
22285
0b32fca5
GK
222862002-01-29 Geoffrey Keating <geoffk@redhat.com>
22287
22288 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
22289
08ef5437
RH
222902002-01-29 Richard Henderson <rth@redhat.com>
22291
22292 * flow.c (print_rtl_and_abort): Remove.
22293 (print_rtl_and_abort_fcn): Remove.
22294 (verify_local_live_at_start): Use dump_bb instead.
22295 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
22296 (verify_wide_reg_1): Return 2 on mode test failure.
22297
8469e54e
NB
222982002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
22299
22300 PR c/3325, c/3326, c/2511, c/3347
22301 * c-decl.c (enum_decl_context): Remove BITFIELD.
22302 (grokdeclarator): Take bitfield width as an input.
22303 Ensure bitfields are given the correct type. Perform
22304 bitfield width validation with build_bitfield_integer_type
22305 rather than waiting for finish_struct.
22306 (grok_typename, grok_typename_in_parm_context, start_decl,
22307 push_parmdecl, grokfield, start_function): Update calls to
22308 grokdeclarator.
22309 (build_bitfield_integer_type): New function.
22310 (finish_struct): Move bitfield validation to grokdeclarator
bebc7e8b 22311 and build_bitfield_integer_type.
8469e54e
NB
22312 * tree.c (build_nonstandard_integer_type): New function.
22313 * tree.h (build_nonstandard_integer_type): New prototype.
22314objc:
22315 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
22316
ffdeea47
JJ
223172002-01-29 Jakub Jelinek <jakub@redhat.com>
22318
22319 PR other/1502:
22320 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
22321 don't ignore unrecognized -W* options.
22322 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
22323 * cpplib.h (cpp_handle_option): Adjust prototype.
22324 * c-decl.c (c_decode_options): Pass 0 as last argument to
22325 cpp_handle_option.
22326
22327 PR c/2896:
22328 * gcc.c (cpp_unique_options): Split from cpp_options.
22329 (cpp_options): Source cpp_unique_options.
22330 (default_compilers): Use cpp_unique_options instead of cpp_options
22331 when used together with cc1_options.
22332 (static_specs): Add cpp_unique_options.
22333 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
22334 when used together with cc1_options.
22335
1a275226
KH
223362002-01-29 Kazu Hirata <kazu@hxi.com>
22337
22338 * config/h8300/h8300-protos.h: Update the prototype of
22339 output_a_shift.
22340 * config/h8300/h8300.c (output_a_shift): Remove an unused
22341 argument 'insn'. Remove redundant code.
22342 * config/h8300/h8300.md: Adust to the new prototype of
22343 output_a_shift.
22344
a11d9dfc
KH
223452002-01-29 Kazu Hirata <kazu@hxi.com>
22346
22347 * config/h8300/h8300-protos.h: Update the prototypes of
22348 emit_a_rotate and expand_a_rotate.
22349 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
22350 first argument to 'enum rtx_code'.
22351 (expand_a_rotate): Likewise.
22352
871f73e3
KH
223532002-01-28 Kazu Hirata <kazu@hxi.com>
22354
22355 * config/h8300/h8300-protos.h: Update the prototype of
22356 output_simode_bld.
22357 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
22358 'log2'.
22359 * config/h8300/h8300.md: Adjust to the new prototype.
22360
5fc4b751
KH
223612002-01-28 Kazu Hirata <kazu@hxi.com>
22362
22363 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
22364 redundant code.
22365
2d67bd7b
JDA
223662002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
22367
22368 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
22369 is a fixed register before returning pic_offset_table_rtx.
22370 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
22371 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
22372
5a852b3e
JM
223732002-01-28 Jason Merrill <jason@redhat.com>
22374
6bb28965 22375 * dwarf2.h: Sync with src version.
5a852b3e 22376
3bca17dd
PK
223772002-01-28 Paul Koning <pkoning@equallogic.com>
22378
22379 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
22380 BT_FN_VOID_PTR_VAR.
22381 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
22382 * doc/extend.texi (__builtin_prefetch): Update documentation:
22383 first argument is now const void ptr.
22384
7dc3f8c0
KH
223852002-01-28 Kazu Hirata <kazu@hxi.com>
22386
22387 * config/h8300/h8300-protos.h: Remove an unused prototype.
22388
e83cb5f0
RZ
223892002-01-28 Roman Zippel <zippel@linux-m68k.org>
22390
22391 * toplev.c (lang_independent_init): Round up identifier size.
22392
5721cd84
RE
223932002-01-28 Richard Earnshaw <rearnsha@arm.com>
22394
22395 * config.gcc: Revert previous change.
22396
d534119e
AP
223972002-01-28 Andris Pavenis <pavenis@latnet.lv>
22398
22399 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
22400
5a721dab
RE
224012002-01-28 Richard Earnshaw <rearnsha@arm.com>
22402
22403 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
22404 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
22405 other non-elf netbsd config frags.
22406 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
22407 collect2 will does that.
22408 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
22409 shared-lib frobbing will work.
22410
da1775d6
KH
224112002-01-28 Kazu Hirata <kazu@hxi.com>
22412
22413 * config/h8300/h8300.h: Fix formatting.
22414 * config/h8300/h8300.md: Likewise.
22415
8f2e963b
LR
224162002-01-28 Loren J. Rittle <ljrittle@acm.org>
22417
22418 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
22419 the old, removed AAA_standards fix.
22420 * fixinc/fixincl.x: Rebuilt.
22421
fdae5767
HPN
224222002-01-28 Hans-Peter Nilsson <hp@axis.com>
22423
22424 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
22425 atexit call in crtbegin, hooked in after call to frame_dummy;
22426 register EH before registering __fini__start.
22427
2a2ecb63
AH
224282002-01-28 Aldy Hernandez <aldyh@redhat.com>
22429
22430 * config/rs6000/altivec.h: Remove spurious semicolons.
22431
8ed43adf
KH
224322002-01-27 Kazu Hirata <kazu@hxi.com>
22433
22434 * config/h8300/h8300.md: Replace dead bit extraction patterns
22435 with ones that work.
22436
917afb0c
RK
22437Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22438
22439 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
22440 if not STRICT_ALIGNMENT.
22441 * rtl.h (MEM_ALIGN): Likewise.
22442
f70a54cb
CR
224432002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
22444
22445 * doc/invoke.texi (-fdump-translation-unit): Revert this
22446 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
22447
d8fd4914
KH
224482002-01-27 Kazu Hirata <kazu@hxi.com>
22449
22450 * config/h8300/h8300.md (define_constants): New.
22451 (anonymous patterns) Use defined constants appropriately.
22452
15e0e275
KH
224532002-01-27 Kazu Hirata <kazu@hxi.com>
22454
22455 * config/h8300/h8300.c (function_arg): Remove redundant code.
22456
37a0f8a5
RH
224572002-01-26 Richard Henderson <rth@redhat.com>
22458
22459 * sched-deps.c (reg_pending_uses_head): New.
22460 (reg_pending_barrier): Rename from reg_pending_sets_all.
22461 (find_insn_list): Don't mark inline.
22462 (find_insn_mem_list): Remove.
22463 (add_dependence_list, add_dependence_list_and_free): New.
22464 (flush_pending_lists): Replace only_write param with separate
22465 for_read and for_write parameters. Update all callers. Use
22466 add_dependence_list_and_free.
22467 (sched_analyze_1): Do not add reg dependencies here; just set
22468 the pending bits. Use add_dependence_list.
22469 (sched_analyze_2): Likewise.
22470 (sched_analyze_insn): Replace schedule_barrier_found with
22471 reg_pending_barrier. Add all dependencies for pending reg
22472 uses, sets, and clobbers.
22473 (sched_analyze): Don't add reg dependencies for calls, just
22474 set pending bits. Use regs_invalidated_by_call. Treat
22475 sched_before_next_call as a normal list, not a fake insn.
22476 (init_deps): No funny init for sched_before_next_call.
22477 (free_deps): Free pending mems lists. Don't zero reg_last.
22478 (init_deps_global): Init reg_pending_uses.
22479 (finish_deps_global): Free it.
22480 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
22481 (find_insn_mem_list): Remove.
22482 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
22483 (propagate_deps): Use them. Zero temp mem lists.
22484
cea3bd3e
RH
224852002-01-26 Richard Henderson <rth@redhat.com>
22486
22487 * Makefile.in (CRTSTUFF_CFLAGS): New.
22488 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
22489 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
22490 crtstuff.c instead of alpha assembly version.
22491 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
22492 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
22493 not FORCE_{INIT,FINI}_SECTION_ALIGN.
22494 (__do_global_dtors_aux): Mark used.
22495 (frame_dummy, __do_global_ctors_aux): Mark used.
22496 (fini_dummy, init_dummy): Remove.
22497
22498 * config/alpha/crtbegin.asm: Remove file.
22499 * config/alpha/crtend.asm: Remove file.
22500 * config/alpha/t-crtbe: Remove file.
22501 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
22502 (LINK_EH_SPEC): New.
22503
22504 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
22505 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
22506 calling constructors.
22507 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
22508
22509 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
22510 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
22511 CRT_END_INIT_DUMMY hack.
22512 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
22513 FORCE_{INIT,FINI}_SECTION_ALIGN.
22514
22515 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
22516 FORCE_{INIT,FINI}_SECTION_ALIGN.
22517
22518 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
22519 invocation sequence.
22520 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
22521
22522 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
22523 (FORCE_CODE_SECTION_ALIGN): New.
22524
60ffa0e5
RH
225252002-01-26 Richard Henderson <rth@redhat.com>
22526
22527 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
22528
61334ebe
RH
225292002-01-26 Richard Henderson <rth@redhat.com>
22530
22531 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
22532 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
22533
1d788fb6
KH
225342002-01-26 Kazu Hirata <kazu@hxi.com>
22535
22536 * config/h8300/h8300.md: Remove bit extraction patterns that
22537 cannot be triggered.
22538 Restrict each bit extraction pattern to a variant on which the
22539 pattern is tested.
22540
87611f88
JM
225412002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
22542
22543 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
22544
cd74ec59
KH
225452002-01-26 Kazu Hirata <kazu@hxi.com>
22546
22547 * config/h8300/h8300.md: Remove bit test patterns that cannot
22548 be triggered.
22549 Restrict each bit test pattern to a variant on which the
22550 pattern is tested.
22551
93051e0f
KG
225522002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22553
22554 * builtins.c (expand_builtin_strncat): Remove redundant check for
22555 INTEGER_CST.
22556
216c995f
DB
225572002-01-25 David O'Brien <obrien@FreeBSD.org>
22558
22559 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
22560 default setting.
22561 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
22562 existing setting.
22563
33c7f925
GK
225642002-01-25 Geoffrey Keating <geoffk@redhat.com>
22565
22566 * dbxout.c (dbxout_init): Use assemble_name rather than just
22567 stripping off the first character.
22568 (dbxout_source_file): Likewise.
22569
6cd444b4
DD
225702002-01-25 DJ Delorie <dj@redhat.com>
22571
22572 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
22573 using rtx_equal_p, not by comparing pointers.
22574
751551d5
SE
225752002-01-25 Steve Ellcey <sje@cup.hp.com>
22576
22577 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
22578 for PIC_OFFSET_TABLE_REGNUM.
22579 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
22580
e564e618
DB
225812002-01-25 David O'Brien <obrien@FreeBSD.org>
22582
22583 * config.gcc (x86_64-*-freebsd*): New target.
22584 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
22585 value.
22586 (i[34567]86-*-freebsd*): Don't include svr4.h.
22587 * config/i386/freebsd64.h: New file.
22588
ff3aaf17
DR
225892002-01-25 Douglas B Rupp <rupp@gnat.com>
22590
4857d29d
DR
22591 * config/alpha/x-vms (version): Make static.
22592
22593 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
22594 in previous checkin.
22595
ff3aaf17
DR
22596 * Makefile.in (install-headers-cp): New target.
22597 * config.gcc (alpha-dec-*vms*): Install headers with
22598 install-headers-cp
22599
48d79c43
JH
22600Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
22601
22602 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
22603 avoid it's copies.
22604
995b5904
RK
22605Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22606
22607 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
22608 of compare_tree_int.
22609 (expand_builtin_strncat): Likewise.
22610 * c-decl.c (finish_struct): Use tree_low_cst.
22611 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
22612 * tree.c (compare_tree_int): Likewise.
22613
75eefe3f
UW
226142002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
22615
22616 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
22617 adjustments even if they are implemented by more than two insns.
22618
5a133afd
JH
22619Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
22620
995b5904 22621 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
5a133afd
JH
22622 * df.h (struct ref): Kill B.
22623 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
22624
22625 * basic-block.h (PROP_EQUAL_NOTES): New flag.
22626 * flow.c (propagate_one_insn): Use it.
22627 (mark_used_regs): Handle NIL.
22628
ead39bdf 226292002-01-25 Geoffrey Keating <geoffk@redhat.com>
3d8dd3c0
GK
22630
22631 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
22632 to help folding.
22633
01a2ccd0
DE
226342002-01-25 David Edelsohn <edelsohn@gnu.org>
22635
22636 * rs6000.md (prefetch): Make address V4SI mode so that the address
22637 is restricted to legitimate form for instruction.
22638
fd29f6ea
BW
226392002-01-25 Bob Wilson <bob.wilson@acm.org>
22640
22641 * doc/install.texi (xtensa-*-elf): New target.
22642 (xtensa-*-linux*): New target.
22643 * doc/contrib.texi: Add myself.
22644
55492b32
NC
226452002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
22646
22647 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
22648 purpose register to hold an SImode (or smaller) value.
22649
72c7c913
JJ
226502002-01-25 Jakub Jelinek <jakub@redhat.com>
22651
22652 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
22653 registry only.
22654 * crtstuff.c: Likewise.
22655
c4df4ceb
KH
226562002-01-25 Kazu Hirata <kazu@hxi.com>
22657
22658 * config/h8300/h8300.md (negation patterns): Tighten
22659 predicates to register_operand.
22660
70e531f5
AH
226612002-01-24 Aldy Hernandez <aldyh@redhat.com>
22662
3bca17dd
PK
22663 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
22664 mode, not Pmode.
70e531f5 22665
3bca17dd 22666 * builtins.c (expand_builtin_prefetch): Same.
70e531f5 22667
a4f76ef9
AO
226682002-01-24 Alexandre Oliva <aoliva@redhat.com>
22669
22670 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
22671 modes.
22672
9bf25b09
KH
226732002-01-24 Kazu Hirata <kazu@hxi.com>
22674
22675 * config/h8300/h8300.c (print_operand): Remove support for
22676 operand character 'A'.
22677 * config/h8300/h8300.md (three anonymous patterns): Replace
22678 operand character 'A' with either 'T' or 'S'.
22679
974af6a5
KH
226802002-01-24 Kazu Hirata <kazu@hxi.com>
22681
22682 * config/h8300/h8300.c (print_operand): Remove support for
22683 operand character 'U'.
22684
7a5bb7b8
AP
226852002-01-24 Andris Pavenis <pavenis@latnet.lv>
22686
3bca17dd 22687 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
7a5bb7b8 22688
92a4639e
NC
226892002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
22690
22691 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
22692 values to be assigned to the stack pointer.
22693
467cb2da
HP
226942002-01-14 Hartmut Penner <hpenner@de.ibm.com>
22695
bebc7e8b 22696 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
467cb2da
HP
22697 to const_double needs to be done right for big-endian systems.
22698
3b6cb920
JM
226992002-01-24 Jason Merrill <jason@redhat.com>
22700
b08dd119 22701 PR c++/2432
3b6cb920
JM
22702 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
22703 to can_throw_internal.
22704
f3077311
RH
227052002-01-23 Richard Henderson <rth@redhat.com>
22706
22707 * fold-const.c (fold): Change UINT_MAX test to check vs precision
22708 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
22709
e1d71275
AO
227102002-01-24 Alexandre Oliva <aoliva@redhat.com>
22711
22712 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
22713 (symGOT2reg): Use them, then set as GOT value as unchanging.
22714 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
22715 as a temporary, if possible.
22716 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
22717 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
22718
dc271dbe
KH
227192002-01-23 Kazu Hirata <kazu@hxi.com>
22720
22721 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
22722 accept to accept 0x80 as operands[2].
22723
1a9017f9
AO
227242002-01-24 Alexandre Oliva <aoliva@redhat.com>
22725
22726 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
22727
6932f033
RH
227282002-01-23 Richard Henderson <rth@redhat.com>
22729
22730 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
22731
709619d9
AH
227322002-01-23 Aldy Hernandez <aldyh@redhat.com>
22733
3bca17dd
PK
22734 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
22735 (parmlist_or_identifiers_1): Verify that only a parmlist follows
22736 an attribute.
709619d9 22737
3d709fd3
RH
227382002-01-23 Richard Henderson <rth@redhat.com>
22739
22740 * expr.c (move_by_pieces_1): Extend size before negation.
22741
88a446c0
RH
22742 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
22743 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
22744 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
22745 * config/m68k/t-m68kelf: Likewise.
22746
03984308
BW
227472002-01-23 Bob Wilson <bob.wilson@acm.org>
22748
22749 * config/xtensa/elf.h: New file.
22750 * config/xtensa/lib1funcs.asm: New file.
22751 * config/xtensa/lib2funcs.S: New file.
22752 * config/xtensa/linux.h: New file.
22753 * config/xtensa/t-xtensa: New file.
22754 * config/xtensa/xtensa-config.h: New file.
22755 * config/xtensa/xtensa-protos.h: New file.
22756 * config/xtensa/xtensa.c: New file.
22757 * config/xtensa/xtensa.h: New file.
22758 * config/xtensa/xtensa.md: New file.
22759 * config.gcc (xtensa-*-elf*): New target.
22760 (xtensa-*-linux*): New target.
22761 * cse.c (canon_hash): Compare rtx pointers instead of register
22762 numbers. This is required for the Xtensa port.
22763 * integrate.c (copy_insn_list): Handle case where the static
22764 chain is in memory and the memory address has to be copied to
22765 a register.
22766 * doc/invoke.texi (Option Summary): Add Xtensa options.
22767 (Xtensa Options): New node.
22768 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
22769
c3d5c3fa
ZW
227702002-01-23 Zack Weinberg <zack@codesourcery.com>
22771
a63bea75
ZW
22772 * diagnostic.c (internal_error): Do ICE suppression only
22773 when ENABLE_CHECKING is not defined.
22774
c3d5c3fa
ZW
22775 * c-typeck.c (require_complete_type): Return error_mark_node
22776 if type is error_mark_node.
22777
1398974c
JJ
227782002-01-23 Janis Johnson <janis187@us.ibm.com>
22779
22780 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
22781 -Os and issue a warning.
22782
807633e5
ZW
227832002-01-23 Zack Weinberg <zack@codesourcery.com>
22784
22785 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
22786 current (lack of) need for host configuration by hand.
22787
22788 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
22789 references. Documentation of some target macros moved from
22790 hostconfig.texi to tm.texi.
22791
cf8002d0
WC
227922002-01-23 Will Cohen <wcohen@redhat.com>
22793
22794 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
22795 defined.
22796
d1e76310
KH
227972002-01-23 Kazu Hirata <kazu@hxi.com>
22798
22799 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
22800 operand[3].
22801
b2115575
JM
228022002-01-23 Jason Merrill <jason@redhat.com>
22803
f893c16e
JM
22804 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
22805
b2115575
JM
22806 * function.c (assign_parms): Don't put args of inline functions
22807 into registers when not optimizing.
22808
6bacc7b0
NC
228092002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
22810
22811 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
22812 (prologue_use): New pattern.
22813 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
22814 preference to gen_rtx_USE.
22815 (thumb_expand_prologue): Use gen_prologue_use in preference to
22816 gen_rtx_USE.
22817 (thumb_expand_epilogue): Use gen_prologue_use in preference to
22818 gen_rtx_USE.
22819
a415f7bc
HPN
228202002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
22821
22822 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
22823
5372b3fb
NB
228242002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
22825
22826 PR c/3504
22827 * doc/extend.texi: Correct documentation of __alignof__.
22828
bd571ffc
ZW
228292002-01-22 Zack Weinberg <zack@codesourcery.com>
22830
22831 * params.h: Rename arguments of DEFPARAM so that it will be
22832 recognized as a translation keyword.
22833
333c8841
AH
228342002-01-22 Aldy Hernandez <aldyh@redhat.com>
22835
bd571ffc
ZW
22836 * extend.texi: Document altivec functions.
22837 Fix N-bit adjectives in X86 builtin documentation.
333c8841 22838
38979c65
AO
228392002-01-22 Alexandre Oliva <aoliva@redhat.com>
22840
22841 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
22842 auto_inc_dec values.
22843
7458a9f0
RE
228442002-01-22 Richard Earnshaw <rearnsha@arm.com>
22845
22846 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
22847 after backslash.
22848 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
22849
129bd0c4
AO
228502002-01-22 Alexandre Oliva <aoliva@redhat.com>
22851
22852 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
22853
8b9b74a9
RH
228542002-01-22 Richard Henderson <rth@redhat.com>
22855
22856 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
22857 copy_insn not copy_rtx.
22858
d0c9db30
AM
228592002-01-23 Alan Modra <amodra@bigpond.net.au>
22860
22861 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
22862 "nonzero" as that might add "1" bits. Ensure "constop" is
22863 properly sign extened.
22864 (force_to_mode): Tweak for sign extended constop.
22865
1e7e480e
RH
228662002-01-22 Richard Henderson <rth@redhat.com>
22867
22868 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
22869 for_each_rtx instead of assuming we're already looking at the MEM.
22870 (split_small_symbolic_mem_operand): Likewise.
22871 * config/alpha/alpha.h (PREDICATE_CODES): Update.
22872 * config/alpha/alpha.md (small symbolic memory splitters): Update.
22873
228742002-01-22 Richard Henderson <rth@redhat.com>
2e271932
RH
22875
22876 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
22877 sequence number for the literal.
22878 (divmoddi_internal_er): Likewise.
22879
b7f2fb96
CR
228802002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
22881
22882 PR java/4972
22883 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
22884 in LIBICONV variable.
22885 * configure: Regenerated.
22886
f66a0046
KW
228872002-01-22 Krister Walfridsson <cato@df.lth.se>
22888
22889 * dependence.c (build_def_use): Remove array_idx.
22890
e3b0efd1
KW
22891 * dwarfout.c (last_filename): Remove.
22892 (output_compile_unit_die): Remove last_filename.
22893
d8086cbb
RS
228942002-01-22 Roger Sayle <roger@eyesopen.com>
22895 Richard Henderson <rth@redhat.com>
22896
22897 PR opt/3640
22898 * fold-const.c (fold): Optimize unsigned comparisons against
22899 UINT_MAX (and similar unsigned constants).
22900
e8d52ba0
JJ
229012002-01-22 Janis Johnson <janis187@us.ibm.com>
22902
d8086cbb 22903 * Makefile.in (loop.o): Depend on OPTABS_H.
1398974c 22904 * loop.c (emit_prefetch_instructions): Check the prefetch operand
d8086cbb 22905 against the predicate.
11303d15 22906
e8d52ba0
JJ
22907 PR target/5379
22908 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
22909 for the address operand.
22910
cc7b420e
RH
229112002-01-22 Richard Henderson <rth@redhat.com>
22912
22913 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
22914
816e265a
CR
229152002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
22916
22917 PR other/5450
cc7b420e
RH
22918 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
22919 preprocessor flags.
816e265a 22920
7c884404
JT
229212002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
22922
22923 * config.gcc (x86_64-*-netbsd*): New target.
22924 * config/i386/netbsd64.h: New file.
22925
2b672c08
AH
229262002-01-22 Aldy Hernandez <aldyh@redhat.com>
22927
d8086cbb 22928 * regrename.c (kill_value): Fix typo.
2b672c08
AH
22929
229302002-01-22 Aldy Hernandez <aldyh@redhat.com>
22931
d8086cbb 22932 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
2b672c08 22933
d8086cbb 22934 * config/rs6000/rs6000.h: Same.
2b672c08 22935
d8086cbb
RS
22936 * function.c (instantiate_virtual_regs): Remove
22937 STARTING_FRAME_PHASE.
22938 (assign_stack_local_1): Same.
22939 Calculate frame phase.
2b672c08 22940
4b02997f
NC
229412002-01-22 Nick Clifton <nickc@redhat.com>
22942
22943 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
22944 variable declaration to outer scope in order to simplify
22945 future extensions.
22946 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
22947 arm_hard_regno_mode_ok.
22948 * config/arm/arm-protos.h: Add a prototype for
22949 arm_hard_regno_mode_ok.
22950 * config/arm/arm.c (soft_df_operand): Remove now redundant
22951 check for DImode values using IP_REGNUM.
22952 (nonimmediate_soft_df_operand): Remove now redundant check for
22953 DImode values using IP_REGNUM.
22954 (arm_hard_regno_mode_ok): New function. New check: make sure
22955 that DImode values are not stored in IP_REGNUM.
c14a3a45
NC
22956
22957 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
22958 note with a USE.
22959 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
22960
8a827ab2
JM
229612002-01-22 Jason Merrill <jason@redhat.com>
22962
22963 * c-semantics.c (genrtl_compound_stmt): Only check nesting
22964 consistency if this COMPOUND_STMT is scoped.
22965
cf403648
KH
229662002-01-22 Kazu Hirata <kazu@hxi.com>
22967
22968 * predict.c: Fix formatting.
22969 * print-tree.c: Likewise.
22970 * protoize.c: Likewise.
22971 * real.h: Likewise.
22972 * rtl.h: Likewise.
22973 * sbitmap.h: Likewise.
22974 * scan.c: Likewise.
22975 * sched-deps.c: Likewise.
22976 * sched-vis.c: Likewise.
22977 * sdbout.c: Likewise.
22978 * sibcall.c: Likewise.
22979 * ssa.c: Likewise.
22980 * ssa-ccp.c: Likewise.
22981 * ssa-dce.c: Likewise.
22982 * stmt.c: Likewise.
22983 * stor-layout.c: Likewise.
22984 * system.h: Likewise.
22985
aea9695c
RK
22986Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22987
a8765ae7
RK
22988 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
22989 if fits in bounds of base type.
22990
aea9695c
RK
22991 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
22992 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
22993 (add_bound_info, default): If can't find a context, make a
22994 SAVE_EXPR.
22995 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
22996
58bf601b
HPN
229972002-01-22 Hans-Peter Nilsson <hp@axis.com>
22998
22999 * c-typeck.c (parser_build_binary_op): If result from
23000 build_binary_op is ERROR_MARK just return error_mark_node without
23001 further processing.
23002
f982f805
JT
230032002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
23004
23005 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
23006 Split a.out-specific bits into...
23007 * config/netbsd-aout.h: ...this.
23008 * config/netbsd-elf.h: New file.
23009 * config/alpha/netbsd-elf.h: Remove.
23010 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
23011 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
bd571ffc 23012 (STARTFILE_SPEC): Remove redundant definition.
f982f805
JT
23013 (ENDFILE_SPEC): Likewise.
23014 (LINK_SPEC): Likewise.
23015 (CPP_SPEC): Likewise.
23016 (ASM_SPEC): Likewise.
23017 (LIB_SPEC): Likewise.
23018 (SWITCH_TAKES_ARG): Likewise.
23019 (TARGET_MEM_FUNCTIONS): Likewise.
23020 (CPP_PREDEFINES): Redefine.
23021 (ASM_FINAL_SPEC): Remove redefinition.
23022 (ASM_COMMENT_START): Redefine.
23023 (FUNCTION_PROFILER): Define.
23024 (TARGET_VERSION): Redefine.
23025 Comment and formatting cleanup.
23026 * config/i386/netbsd.h: Include <netbsd-aout.h>.
23027 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
23028 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
23029 big- or little-endian.
23030 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
23031 * config.gcc (*-*-netbsd*): Add definitions common to all
23032 NetBSD configs.
23033 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
23034 gnu_ld definitions. Add netbsd-elf.h to and remove
23035 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
23036 tmake_file, and don't lose previous tmake_file contents.
23037 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
23038 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
23039 gnu_ld definitions. Add netbsd-elf.h to tm_file.
23040 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
23041 (mipsel-*-netbsd*): Rename this to...
23042 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
23043 mips/little.h to tm_file for mips*el-*.
23044 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
23045 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
23046 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
23047
2e396476
JDA
230482002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
23049
23050 * pa-protos.h (reg_before_reload_operand): New function prototype.
23051 * pa.c (reg_before_reload_operand): New function implementation.
23052 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
23053 contraints to "*m".
23054
3b5708e7
FS
230552002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23056
23057 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
23058
85e79f96
JDA
230592002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
23060
23061 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
23062 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
23063 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
23064 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
23065 (ENDFILE_SPEC): Undefine.
23066 (STARTFILE_SPEC): Redefine for PA.
23067
38abadee
FS
230682002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23069
23070 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
23071
94f1d97c
DJ
230722002-01-21 Daniel Jacobowitz <drow@mvista.com>
23073
23074 * config.gcc: Add entries to supported PowerPC --with-cpu
23075 types.
23076
0333394e
JJ
230772002-01-21 Jakub Jelinek <jakub@redhat.com>
23078
23079 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
23080 true for 64-bit mode only SSE registers in 32-bit mode.
23081
e9d1b155
KH
230822002-01-21 Kazu Hirata <kazu@hxi.com>
23083
23084 * unwind-dw2.c: Fix formatting.
23085 * unwind-dw2-fde.c: Likewise.
23086 * unwind-dw2-fde.h: Likewise.
23087 * unwind-pe.h: Likewise.
23088 * varasm.c: Likewise.
23089 * varray.h: Likewise.
23090
07338cf8
HPN
230912002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
23092
23093 Remove workaround for register stack overwrite bug in mmix.
23094 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
23095 support for TARGET_REG_STACK_FILL_BUG.
23096 * config/mmix/mmix.h: Remove member has_call_without_parameters.
23097 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
23098 Delete.
23099 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
23100 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
23101 -mno-reg-stack-fill-bug-workaround.
23102 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
23103 machine member has_call_without_parameters.
23104 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
23105 -mreg-stack-fill-bug-workaround and
23106 -mno-reg-stack-fill-bug-workaround.
23107 (MMIX Options): Ditto.
23108
7192cbf1
KH
231092002-01-21 Kazu Hirata <kazu@hxi.com>
23110
23111 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
23112 as appropriate.
23113 Remove redundant code.
23114
d1552d7b
JM
231152002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
23116
23117 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
23118 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
23119 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
23120 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
23121 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
23122 out target macro definitions and non-target-specific comments
23123 mostly taken from old versions of the manual.
23124
ed168e45
KH
231252002-01-20 Kazu Hirata <kazu@hxi.com>
23126
23127 * config/h8300/h8300.h: Fix comment formatting.
23128 * config/ia64/aix.h: Likewise.
23129 * config/ia64/ia64-protos.h: Likewise.
23130 * config/ia64/ia64.c: Likewise.
23131 * config/ia64/ia64.h: Likewise.
23132 * config/ia64/ia64intrin.h: Likewise.
23133 * config/ia64/linux.h: Likewise.
23134 * config/ia64/unwind-aix.c: Likewise.
23135 * config/ia64/unwind-ia64.c: Likewise.
23136
005e3e05
KH
231372002-01-20 Kazu Hirata <kazu@hxi.com>
23138
23139 * config/h8300/h8300.c: Revise comments about shift code.
23140
64bead4c
KH
231412002-01-20 Kazu Hirata <kazu@hxi.com>
23142
23143 * config/h8300/h8300.c (function_arg): Update a comment.
23144
ed863595
KH
231452002-01-20 Kazu Hirata <kazu@hxi.com>
23146
23147 * config/h8300/h8300.md: Update the comments at the beginning
23148 of the file.
23149
5904dc87
KH
231502002-01-20 Kazu Hirata <kazu@hxi.com>
23151
23152 * config/i370/i370.c: Fix comment formatting.
23153 * config/i370/i370.h: Likewise.
23154 * config/i370/i370.md: Likewise.
23155 * config/i370/linux.h: Likewise.
23156
9702143f
RK
23157Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23158
cbafacd1
RK
23159 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
23160
9702143f
RK
23161 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
23162 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
23163 in incomplete case.
23164
6b6996b8
GS
231652002-01-20 Graham Stott <grahams@redhat.com>
23166
23167 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
23168
eab854f6
JDA
231692002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
23170
23171 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
23172
5b029315
TR
231732002-01-19 Tom Rix <trix@redhat.com>
23174
23175 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
23176
1d690052
AH
231772002-01-18 Aldy Hernandez <aldyh@redhat.com>
23178
d8086cbb 23179 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
1d690052 23180
d8086cbb
RS
23181 * function.c (assign_stack_local_1): Adjust x_frame_offset with
23182 STARTING_FRAME_PHASE.
23183 (STARTING_FRAME_PHASE): New.
23184 (instantiate_virtual_regs): Check saneness of
23185 STARTING_FRAME_PHASE.
1d690052 23186
d8086cbb 23187 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
1d690052 23188
4dd8c093
AO
231892002-01-19 Alexandre Oliva <aoliva@redhat.com>
23190
23191 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
23192
6f2a28d7
CR
231932002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
23194
23195 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
23196 be used for bootstrapping GCC 3.0.
23197
8763a465
KH
231982002-01-18 Kazu Hirata <kazu@hxi.com>
23199
23200 * config/h8300/h8300.md: Fix an insn length.
23201
3ef42a0c
KH
232022002-01-18 Kazu Hirata <kazu@hxi.com>
23203
23204 * bitmap.h: Fix comment formatting.
23205 * combine.c: Likewise.
23206 * cppfiles.c: Likewise.
23207 * c-pragma.h: Likewise.
23208 * c-typeck.c: Likewise.
23209 * df.c: Likewise.
23210 * dwarf2out.c: Likewise.
23211 * function.c: Likewise.
23212 * gcc.c: Likewise.
23213 * genattrtab.c: Likewise.
23214 * gthr-win32.h: Likewise.
23215 * haifa-sched.c: Likewise.
23216 * predict.c: Likewise.
23217 * rtlanal.c: Likewise.
23218 * rtl.h: Likewise.
23219 * unwind-dw2-fde.h: Likewise.
23220 * unwind-pe.h: Likewise.
23221 * vmsdbgout.c: Likewise.
23222
dd4dc3cd
RK
23223Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23224
23225 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
23226 if type_required and passed decl.
23227
5fb4cf24
AH
232282002-01-17 Aldy Hernandez <aldyh@redhat.com>
23229
d8086cbb
RS
23230 * config.gcc (cpu_type): Include altivec.h in powerpc
23231 extra_headers.
23232 Same for darwin.
5fb4cf24 23233
d8086cbb 23234 * config/rs6000/altivec.h: New.
5fb4cf24 23235
2705baf5
DE
232362002-01-17 David Edelsohn <edelsohn@gnu.org>
23237
23238 * doc/install.texi (*-ibm-aix*): Update assembler and exception
23239 handling information.
23240 * doc/trouble.texi (Interoperation): Add libstdc++ information
23241 for AIX.
23242 (Misunderstandings): Add template instantiation and static template
23243 member information for AIX.
23244
dbd680e1
JM
232452002-01-17 Jason Merrill <jason@redhat.com>
23246
821adc5e
JM
23247 * dbxout.c (dbxout_type): Support const and volatile.
23248
dbd680e1
JM
23249 * except.c (add_partial_entry): Remove backwards compatibility code.
23250 (end_protect_partials): Likewise.
23251
d0e82870
JJ
232522002-01-17 Jakub Jelinek <jakub@redhat.com>
23253
23254 * config/ia64/ia64.md (prologue_use): New.
23255 * config/ia64/ia64.c (ia64_expand_prologue): Use
23256 gen_prologue_use instead of gen_rtx_USE.
23257 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
23258 as CODE_FOR_pred_rel_mutex.
23259 (ia64_sched_reorder2): Likewise.
23260
f9f45c65
EC
232612002-01-16 Eric Christopher <echristo@redhat.com>
23262
23263 * config/mips/r3900.h: Reformat.
23264 (SUBTARGET_CPP_SIZE_SPEC): Remove.
23265 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
23266 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
23267 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
23268 * config/mips/t-elf: Remove mips3 multilib.
23269
c66c8b0e
L
232702002-01-16 H.J. Lu <hjl@gnu.org>
23271
23272 * config/mips/linux.h: Include "mips/abi64.h".
23273
5f083b72
L
232742002-01-16 H.J. Lu <hjl@gnu.org>
23275
23276 * config/mips/t-linux: New.
23277
23278 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
23279
23280 * config/mips/linux.h: Don't include "gofast.h".
23281 (INIT_SUBTARGET_OPTABS): Removed.
23282
af3c90a6
KH
232832002-01-16 Kazu Hirata <kazu@hxi.com>
23284
23285 * config/h8300/h8300-protos.h: Replace emit_a_shift with
23286 output_a_shift.
23287 * config/h8300/h8300.c: Likewise.
23288 * config/h8300/h8300.md: Likewise.
23289
a1bf0a16
KH
232902002-01-16 Kazu Hirata <kazu@hxi.com>
23291
23292 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
23293 spaces after an opcode name.
23294 (pushqi1_h8300hs): Likewise.
23295 (pushhi1_h8300hs): Likewise.
23296
88ab0d1c
KH
232972002-01-16 Kazu Hirata <kazu@hxi.com>
23298
23299 * doc/extend.texi: Replace "option" with "attribute"
23300 appropriately.
23301
51c561e3
JJ
233022002-01-16 Jakub Jelinek <jakub@redhat.com>
23303
23304 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
23305 (and:DI () (const_int -8)).
23306 (split_small_symbolic_mem_operand): Split
23307 (mem (and:DI () (const_int -8)).
23308
b8c1a6b8
JJ
233092002-01-16 Jakub Jelinek <jakub@redhat.com>
23310
23311 PR target/5309:
d8086cbb 23312 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
b8c1a6b8
JJ
23313 same way as TYPE_IMUL.
23314 (ultrasparc_sched_reorder): Likewise.
23315 * config/sparc/sparc.md (type): Add comment to update
23316 ultrasparc_sched_reorder when making changes.
23317
1e4e4df2
KH
233182002-01-16 Kazu Hirata <kazu@hxi.com>
23319
23320 * doc/invoke.texi: Change the dump file name of block
23321 reordering pass from 28.bbro to 29.bbro.
23322 Mention -dk option.
23323
14d920c0
JH
23324Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
23325
23326 * i386.md (minsf splitter): Fix pasto.
23327
2e99323f
NC
233282002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
23329
23330 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
23331 to frame pointer initialisation instruction.
23332 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
23333 initialisation instruction.
ab8081c1
NC
23334 (soft_df_operand): Do not accept the IP register.
23335 (nonimmediate_soft_df_operand): Do not accept the IP register.
2e99323f 23336
c4031a04
JJ
233372002-01-16 Jakub Jelinek <jakub@redhat.com>
23338
23339 PR target/5357:
23340 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
23341 MASK_V8 being both set.
23342
44b8152b
UW
233432002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
23344
23345 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
23346 insn for GOT register; add REG_MAYBE_DEAD notes instead.
23347 config/s390/s390.md (call, call_value): Add GOT register to
23348 CALL_INSN_FUNCTION_USAGE where needed.
23349 (call_exp, call_value_exp): New.
23350
1d6e90ac
NC
233512002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
23352
23353 * config/arm/arm.c: General formatting tidy up.
23354
233552002-01-16 Graham Stott <grahams@redhat.com>
60e8b9f0
GS
23356
23357 * calls.c (try_to_integrate): Use "(size_t)" intermediate
23358 cast and when casting an integer literal to "rtx" pointer.
23359 (expand_call): Likewise.
23360 * flow.c (try_pre_increment): Likewise.
23361 (find_use_as_address): Likewise.
23362 * integrate.c (expand_iline_function): Likewise.
23363 * regmove.c (try_auto_increment): Likewise.
23364
1d6e90ac 233652002-01-16 Graham Stott <grahams@redhat.com>
7b25b076
GS
23366
23367 * sched-rgn.c (passed): Use sbitmap_free.
23368 (header): Likewise.
23369 (inner): Likewise.
23370 (in_queue): Likewise.
23371 (in_stack): Likewise.
23372
31fce3c4
EC
233732002-01-15 Eric Christopher <echristo@redhat.com>
23374
23375 * flow.c (propagate_one_insn): Change to use fatal_insn.
23376
c99d986a
KH
233772002-01-15 Kazu Hirata <kazu@hxi.com>
23378
23379 * expmed.c (extract_fixed_bit_field): Remove unused code.
23380 * system.h: Poison SLOW_ZERO_EXTEND.
23381 * doc/tm.texi: Remove.
23382 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
23383 * config/arm/arm.h: Likewise.
23384 * config/avr/avr.h: Likewise.
23385 * config/clipper/clipper.h: Likewise.
23386 * config/convex/convex.h: Likewise.
23387 * config/d30v/d30v.h: Likewise.
23388 * config/dsp16xx/dsp16xx.h: Likewise.
23389 * config/elxsi/elxsi.h: Likewise.
23390 * config/fr30/fr30.h: Likewise.
23391 * config/h8300/h8300.h: Likewise.
23392 * config/i370/i370.h: Likewise.
23393 * config/i386/i386.h: Likewise.
23394 * config/m68k/m68k.h: Likewise.
23395 * config/mips/mips.h: Likewise.
23396 * config/ns32k/ns32k.h: Likewise.
23397 * config/pdp11/pdp11.h: Likewise.
23398 * config/pj/pj.h: Likewise.
23399 * config/s390/s390.h: Likewise.
23400 * config/sh/sh.h: Likewise.
23401 * config/stormy16/stormy16.h: Likewise.
23402 * config/v850/v850.h: Likewise.
23403 * config/vax/vax.h: Likewise.
23404 * config/we32k/we32k.h: Likewise.
23405
acfab996
AH
234062002-01-15 Aldy Hernandez <aldyh@redhat.com>
23407
d8086cbb
RS
23408 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
23409 (altivec_lvsl): Change constraint to b.
23410 (altivec_lvsr): Same.
23411 (altivec_lvebx): Same.
23412 (altivec_lvehx): Same.
23413 (altivec_lvewx): Same.
23414 (altivec_lvxl): Same.
23415 (altivec_lvx): Same.
23416 (altivec_stvx): Add parallel.
23417 (altivec_stvxl): Same.
23418 (altivec_stvehx): Same.
23419 (altivec_stvebx): Same.
23420 (altivec_stvebx): Same.
acfab996 23421
5e505bc9
AH
234222002-01-15 Aldy Hernandez <aldyh@redhat.com>
23423
d8086cbb 23424 * config.gcc: Change altivec.h to altivec-defs.h.
5e505bc9 23425
d8086cbb 23426 * config/rs6000/altivec.h: Delete.
5e505bc9 23427
d8086cbb 23428 * config/rs6000/altivec-defs.h: Add.
5e505bc9 23429
5c41fdfb
JDA
234302002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
23431
23432 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
23433 and UMOD modes.
23434
23435 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
23436 less than or equal to eight bytes.
23437
23438 * vax.md (andsi3): Remove constraints and change SET destination
23439 operand type to nonimmediate_operand.
23440 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
23441 when it is a CONST_INT.
23442
de097a2d
JM
234432002-01-15 Jason Merrill <jason@redhat.com>
23444
23445 * c-common.def (FILE_STMT): New code.
23446 * c-common.c (statement_code_p): It's a statement.
23447 * c-common.h (stmt_tree_s): Add x_last_filename.
23448 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
23449 (last_expr_filename): New macro.
23450 * c-semantics.c (begin_stmt_tree): Initialize it.
23451 (add_stmt): If the filename changed, also insert a
23452 FILE_STMT.
23453 (expand_stmt): Handle seeing one.
23454
4a913dd6
EC
234552002-01-15 Eric Christopher <echristo@redhat.com>
23456
23457 * flow.c (propagate_one_insn): Add error message and print out
23458 insn for debugging.
23459
006946e4
JM
234602002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
23461
23462 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
23463 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
23464 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
23465 TRAMPOLINE_ALIGNMENT.
23466 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
23467 to be in bits.
23468 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
23469 PCC_BITFIELD_TYPE_MATTERS.
23470 * config/interix.h (STDC_VALUE): Remove. Use
23471 STDC_0_IN_SYSTEM_HEADERS.
23472 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
23473 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
23474 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
23475
751a1458
CR
234762002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
23477
23478 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
23479 not work on this platform currently.
23480
57771fe8
JM
234812002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
23482
23483 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
23484 readonly_warning in _().
23485
0e83ceb1 234862002-01-15 Douglas B Rupp <rupp@gnat.com>
9a52433e 23487
0e83ceb1 23488 * gcc.c (delete_if_ordinary): Backout previous change.
9a52433e 23489
8e2e89f7
KH
234902002-01-15 Kazu Hirata <kazu@hxi.com>
23491
0e83ceb1
DR
23492 * config/h8300/h8300.c (print_operand): Remove support for
23493 unused operand characters.
23494
8e2e89f7
KH
23495 * read-rtl.c: Fix formatting.
23496 * real.c: Likewise.
23497 * recog.c: Likewise.
23498 * regclass.c: Likewise.
23499 * regmove.c: Likewise.
23500 * reg-stack.c: Likewise.
23501 * reload1.c: Likewise.
23502 * rtlanal.c: Likewise.
23503
b531087a
KH
235042002-01-15 Kazu Hirata <kazu@hxi.com>
23505
23506 * config/i386/i386.c: Fix formatting.
23507
7c94ce7f
JJ
235082002-01-15 Jakub Jelinek <jakub@redhat.com>
23509
23510 * c-typeck.c (process_init_element): Don't save_expr
23511 COMPOUND_LITERAL_EXPR if just its initializer will be used.
23512
6041bf2f
DE
235132002-01-15 David Edelsohn <edelsohn@gnu.org>
23514
23515 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
23516 emit optional traceback table if optimize_size or TARGET_ELF.
23517 * config/rs6000/rs6000.md (prefetch): New.
23518
8559c8c0
AJ
235192002-01-15 Andreas Jaeger <aj@suse.de>
23520
23521 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
23522
70f122f2
KH
235232002-01-15 Kazu Hirata <kazu@hxi.com>
23524
23525 * mips-tfile.c: Fix formatting.
23526
6a7b4ca6
JH
23527Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
23528
23529 * unroll.c (final_reg_note_copy): Fix previous commit.
23530
e7afe229
KH
235312002-01-14 Kazu Hirata <kazu@hxi.com>
23532
23533 * config/h8300/h8300-protos.h: Remove the prototype for
23534 eq_operator.
23535 * config/h8300/h8300.c (eq_operator): Remove.
23536
7d378549
RH
235372002-01-14 Richard Henderson <rth@redhat.com>
23538
23539 * config/i386/i386.md (prefetch): Tidy.
23540 (prefetch_3dnow): Fix locality operand.
23541
ab093b81
RH
235422002-01-14 Richard Henderson <rth@redhat.com>
23543
23544 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
23545 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
23546
d300f51f
HPN
235472002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
23548
23549 * reload1.c (reload_combine): Pass reg_sum replacement through
23550 copy_rtx in loop performing multiple changes.
23551
655dd289
JJ
235522002-01-14 Jakub Jelinek <jakub@redhat.com>
23553
23554 * except.c (remove_unreachable_regions): New.
23555 (free_eh_status): Clear exception_handler_labels.
23556 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
23557 (find_exception_handler_labels): Don't add the same label more than
23558 once.
23559 (remove_exception_handler_label): Don't die if
23560 find_exception_handler_labels hasn't been called for the current
23561 function yet.
23562
1fba46a7
JH
23563Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
23564
23565 * toplev.c (rest_of_compilation): Rebuild jump labels after
23566 gcse.
23567
0975678f
JM
235682002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
23569
23570 * doc/extend.texi: Move documentation of X86 built-in functions
23571 here.
23572 * doc/invoke.texi: From here.
23573 * doc/sourcebuild.texi: Document location of documentation for
23574 machine built-in functions.
23575
969815c7
CF
235762002-01-13 Christopher Faylor <cgf@redhat.com>
23577
23578 * cppfiles.c (TEST_THRESHOLD): New macro.
23579 (SHOULD_MMAP): Ditto.
23580 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
23581 be used.
23582
494c950b
JH
23583Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
23584
23585 * unroll.c (final_reg_note_copy): Properly handle
23586 REG_LABEL
23587 (unroll_loops): Fix LOOP_CONDITION heuristics.
23588
69a0611f
GK
235892002-01-14 Geoffrey Keating <geoffk@redhat.com>
23590
23591 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
23592 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
23593
b90e45ae
JH
23594Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
23595
23596 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
23597 threaded loop.
23598
8377288b
TR
235992002-01-14 Tom Rix <trix@redhat.com>
23600
23601 * config/rs6000/rs6000.md: Fix typo with sradi.
23602
9f37ccb1
UW
236032002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
23604
23605 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
23606 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
23607 (clrstrdi, clrstrsi): Adapt callers.
23608
23609 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
23610
8559c8c0 23611 (movti splitter): Never use register 0 as base register.
9f37ccb1 23612
6c2d03d0
HP
236132002-01-14 Hartmut Penner <hpenner@de.ibm.com>
23614
8559c8c0
AJ
23615 * combine.c (simplify_shift_const): Always generate new rtx
23616 for shift expression instead of reusing given expression.
6c2d03d0 23617
d3e98208
RK
23618Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23619
23620 * config/alpha/alpha.c (alpha_expand_mov): Don't call
23621 alpha_legitimize_address unless mode is Pmode.
23622
9f339dde
GK
236232002-01-13 Geoffrey Keating <geoffk@redhat.com>
23624
23625 * doc/md.texi (Modifiers): Document the '*' constraint for the
23626 user.
23627
23628 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
23629 * doc/extend.texi (Function Attributes): 'interrupt' is valid
23630 for xstormy16 too.
23631
02a10130
RH
236322002-01-13 Richard Henderson <rth@redhat.com>
23633
23634 * reload.c (find_reloads): Use a hard reg destination as reload reg
23635 for an input reload of the source.
23636
61d47787
GP
236372002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
23638
23639 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
23640 more generic.
23641
f0df8029
DR
23642Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
23643
23644 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
23645 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
23646
d2a37256
DR
23647 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
23648
a9e8a5ee
RK
23649Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23650
23651 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
23652
bc06712d
TR
236532002-01-12 Tom Rix <trix@redhat.com>
23654
8559c8c0 23655 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
bc06712d
TR
23656 TARGET_POWERPC64.
23657
7cbe9bb7
RH
236582002-01-12 Richard Henderson <rth@redhat.com>
23659
38b29e64
RH
23660 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
23661
58605ba0
RH
23662 * doc/invoke.texi: Update Alpha options.
23663
7cbe9bb7
RH
23664 * doc/invoke.texi: Update i386 built-in function lists.
23665
9d560860
JH
23666Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
23667
23668 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
23669 referencing outside.
23670
bb93b973
RK
23671Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23672
23673 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
23674 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
23675 offsets, and change line folding.
23676 * optabs.c (expand_binop): Remove warnings.
23677 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
8559c8c0 23678
f9f6b7df
GS
236792002-01-12 Graham Stott <grahams@redhat.com>
23680
23681 * attribs.c (handle_deprecated_attribute): constify WHAT.
23682 * diagnostic.c (warn_deprecated_use): Add braces, fixes
23683 dangling else warning and constify WHAT.
23684 * except.h (struct function, struct inline_remap): Move
23685 struct tag forward defs before all prototypes.
23686 (duplicate_eh_regions): Whitespace.
23687
4a692617
NC
236882002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
23689
23690 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
23691 MODE_BASE_REG_CLASS.
23692 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
23693
e37af218
RH
236942002-01-12 Richard Henderson <rth@redhat.com>
23695
23696 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
23697 (ix86_expand_vector_move): New.
23698 (bdesc_2arg): Remove andps, andnps, orps, xorps.
23699 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
23700 Remove old prefetch builtins. Special case the logicals removed above.
23701 (ix86_expand_builtin): Likewise.
23702 (safe_vector_operand): Use V4SFmode, not TImode.
23703 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
23704 (ix86_expand_timode_binop_builtin): New.
23705 * config/i386/i386-protos.h: Update.
23706 * config/i386/i386.h (enum ix86_builtins): Update.
23707 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
23708 Use ix86_expand_vector_move in vector move expanders.
23709 (movti_internal, movti_rex64): Add xorps alternative.
23710 (sse_clrv4sf): Rename and adjust from sse_clrti.
23711 (prefetch): Don't work so hard.
23712 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
23713 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
23714 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
23715
6f1a6c5b
RH
237162002-01-11 Richard Henderson <rth@redhat.com>
23717
23718 * config/i386/mmintrin.h: New file.
23719 * config/i386/xmmintrin.h: New file.
23720 * config.gcc (i?86-*-*): Add extra_headers.
23721 * simplify-rtx.c (simplify_unary_operation): Handle saturating
23722 truncation codes.
23723 (simplify_binary_operation): Handle saturating arithmetic codes.
23724 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
23725 not the lowpart subreg.
23726 (ix86_expand_builtin): Return a TImode dummy register instead of 0
23727 on error.
23728 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
23729
cdb574d3
MH
237302002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23731
23732 * conflict.c (conflict_graph_compute): Free regsets when finished.
23733 * ssa.c (compute_coalesced_reg_partition): Likewise.
8559c8c0 23734
cf11ac55
HB
237352002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
23736
23737 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
23738 every where we allocate a register.
23739
76ac938b
MH
237402002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23741
23742 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
23743 * lcm.c (compute_earliest, compute_farthest): Likewise.
23744
a84b4898
JJ
237452002-01-11 Janis Johnson <janis187@us.ibm.com>
23746
23747 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
23748
aaef1c12
JJ
237492002-01-11 Janis Johnson <janis187@us.ibm.com>
23750
23751 * doc/rtl.texi (Insns): Fix 2 typos.
23752
5d22c1a5
JM
237532002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
23754
23755 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
23756 options. Use @table @gcctabopt for MMIX options. Add index
23757 entries for MMIX options. Start new paragraph with first
23758 heading of the machine-dependent options.
23759
3e92902c
CR
237602002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
23761
23762 PR other/5299
23763 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
23764 * combine.c (force_to_mode): Same.
23765 * reload1.c (clear_reload_reg_in_use): Same.
23766
96ae8197
NC
237672002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
23768
23769 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
23770 and 'subtargets'.
23771
9b780582
AJ
237722002-01-11 Andreas Jaeger <aj@suse.de>,
23773 Brad Lucier <lucier@math.purdue.edu>
23774
23775 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
23776 mcpu.
23777
12300dad
DR
23778Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
23779
23780 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
23781 Protect with IN_LIBGCC.
23782 (LINK_EH_SPEC): Add required trailing space.
23783
27511a9a
NP
23784Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
23785
9b780582 23786 * c-tree.h: Move function declarations so that they are listed
27511a9a
NP
23787 under the filename which contains them.
23788 (check_identifier, finish_decl_top_level,
23789 lookup_name_current_level_global, shadow_record_fields): Remove.
23790
4daeab16
AJ
237912002-01-11 Andreas Jaeger <aj@suse.de>
23792
23793 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
23794 march.
23795
40571d67
RH
237962002-01-10 Richard Henderson <rth@redhat.com>
23797
23798 * config/alpha/alpha.c (print_operand): Add 'J'.
23799 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
23800 new operand with the sequence number for the lituse. When splitting
23801 the insns, use gen_movdi_er_high_g and generate a sequence number.
23802 (gen_movdi_er_high_g): Print the sequence number if non-zero.
23803
6525c0e7
AH
238042002-01-10 Aldy Hernandez <aldyh@redhat.com>
23805
d8086cbb
RS
23806 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
23807 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
23808 stvxl.
23809 (altivec_expand_builtin): Same.
23810 (altivec_expand_stv_builtin): New.
23811
23812 * config/rs6000/rs6000.h (rs6000_builtins): Same.
23813
23814 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
23815 ("altivec_lvehx"): New.
23816 ("altivec_lvewx"): New.
23817 ("altivec_lvxl"): New.
23818 ("altivec_lvx"): New.
23819 ("altivec_stvx"): New.
23820 ("altivec_stvebx"): New.
23821 ("altivec_stvehx"): New.
23822 ("altivec_stvewx"): New.
23823 ("altivec_stvxl"): New.
6525c0e7 23824
cda94cbb
RH
238252002-01-10 Richard Henderson <rth@redhat.com>
23826
23827 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
23828 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
23829 care not to delete instructions twice.
23830
df2c9a44
ZW
238312002-01-10 Zack Weinberg <zack@codesourcery.com>
23832
23833 * toplev.c: Don't declare environ (it's not used anywhere).
23834 * configure.in: Don't check for declaration of environ.
23835 * config/i386/xm-mingw32.h: Don't #define environ.
23836 * config.in, configure: Regenerate.
23837
5dd8a9b1
ZW
238382002-01-10 Zack Weinberg <zack@codesourcery.com>
23839
23840 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
23841 * configure: Regenerate.
23842
23843 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
23844 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
23845 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
23846 alpha/xm-vms.h.
23847 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
23848 LIMITS_H_TEST here, not in m68k/x-next.
23849 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
23850 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
23851
23852 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
23853 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
23854 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
23855
23856 * config/i386/x-djgpp: Renamed i386/t-djgpp.
23857 * config/m88k/x-dolph: Renamed m88k/t-dolph.
23858 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
23859 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
23860 replacement of quadlib.asm with quadlib.c.
23861
23862 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
23863 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
23864 config/rs6000/xm-beos.h: Delete file.
23865
23866 * config.gcc: Update to match above changes.
23867
d10dd44c
KH
238682002-01-10 Kazu Hirata <kazu@hxi.com>
23869
23870 * config/h8300/h8300.h: Fix comment typos.
23871 * config/h8300/h8300.md: Likewise.
23872 * config/h8300/lib1funcs.asm: Likewise.
23873
04894c5a
DJ
238742002-01-10 Dale Johannesen <dalej@apple.com>
23875
23876 PR optimization/5269
23877 * unroll.c (precondition_loop_p): Make *increment be the correct
23878 sign when n_iterations known, to avoid confusing caller.
23879
adc9fe67
KH
238802002-01-10 Kazu Hirata <kazu@hxi.com>
23881
23882 * doc/extend.texi (deprecated): Fix a typo.
23883
b446e5a2
JH
23884Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
23885
23886 * basic-block.h (update_br_prob_note): Declare.
23887 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
23888 (try_forward_edges): Care negative frequencies and update note.
23889 (outgoing_edges_match): Tweek conditional merging heuristics.
23890 (try_crossjump_to_edge): use update_br_prob_note.
23891 * cfglayout.c (fixup_reorder_chain): Likewise.
23892 * cfrtl.c (update_br_prob_note): New.
23893 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
23894
23895 * i386.c (ix86_decompose_address): Return -1 if address contains
23896 shift.
23897 (legitimate_address_p): Require ix86_decompose_address to return 1.
23898
23899 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
23900 (cprop_insn): Likewise.
23901
a01da83b
KH
239022002-01-10 Kazu Hirata <kazu@hxi.com>
23903
23904 * toplev.c: Fix formatting.
23905 * tree.c: Likewise.
23906 * tree-dump.c: Likewise.
23907 * unroll.c: Likewise.
23908 * unwind-dw2.c: Likewise.
23909 * unwind-dw2-fde.c: Likewise.
23910 * unwind-dw2-fde-glibc.c: Likewise.
23911 * unwind-sjlj.c: Likewise.
23912
9f85bca7
JM
239132002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
23914
23915 * doc/invoke.texi: Document PDP-11 options.
23916
f48f56b1
KH
239172002-01-10 Kazu Hirata <kazu@hxi.com>
23918
23919 * config/h8300/h8300.h: Fix formatting.
23920
ead39bdf 239212002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
23922
23923 Add __attribute__ ((deprecated)).
23924 * extend.texi: Document __attribute__ ((deprecated)).
23925 * invoke.texi: Document -Wno-deprecated-declarations.
23926 * testsuite/g++.dg/other/deprecated.C: New C++ test.
23927 * testsuite/gcc.dg/deprecated.c: New C test.
23928 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
23929 (c_common_attribute_table): Add "deprecated" entry.
23930 (handle_deprecated_attribute): New function.
23931 * c-decl.c (deprecated_states): New enum.
23932 deprecated_state: State of "deprecated" handling.
23933 (start_decl): Set deprecated_state based on attributes.
23934 (grokdeclarator): Test for deprecated uses, propagate attribute.
23935 * c-typeck.c (build_component_ref): Test for deprecated fields.
23936 (build_external_ref): Test for deprecated primaries.
23937 * diagnostic.c (warn_deprecated_use) New function to issue
23938 warnings about __attribute__ ((depricated)) references.
23939 * flags.h (warn_deprecated_decl): Extern declared for
23940 -W[no-]deprecated-declarations option.
23941 * print-tree.c (print_node): Show deprecated flag status.
23942 * toplev.c (warn_deprecated_decl): Defined.
23943 (W_options): Added "deprecated-declaration".
23944 * toplev.h (warn_deprecated_use): Extern declared.
23945 * tree.h (struct tree_common): Define deprecated_flag.
23946 (TREE_DEPRECATED): New macro to access flag.
23947 * cp/call.c (build_call): Test for deprecated calls.
23948 * cp/class.c (add_implicitly_declared_members): Set global
23949 flag to tell grokdeclarator to not issue deprecated warnings.
23950 * cp/cp-tree.h: Add extern for adding_implicit_members.
23951 * cp/decl.c (deprecated_states): New enum.
23952 (start_decl): Set deprecated_state based on attributes.
23953 (grokdeclarator): Test for deprecated uses, propagate attribute.
23954 * cp/lex.c (do_identifier): Test for deprecated primaries.
23955 * cp/typeck.c (build_component_ref): Test for deprecated fields.
23956
ead39bdf 239572002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
23958
23959 Fix to assign attributes to inline member functions.
23960 * cp/decl.c (start_method): Handle attrlist.
23961
47073a38
KH
239622002-01-10 Kazu Hirata <kazu@hxi.com>
23963
23964 * combine.c (expand_field_assignment): Use subreg_lsb().
23965
d288e53d
DE
239662002-01-10 David Edelsohn <edelsohn@gnu.org>
23967
23968 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
23969 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
23970 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
23971 Recurse for any operand of AND as long as constant is non-zero.
23972
08a02ffa
KH
239732002-01-10 Kazu Hirata <kazu@hxi.com>
23974
23975 * config/h8300/h8300.md: Remove constraints from expanders.
23976
c203e7fe
KH
239772002-01-10 Kazu Hirata <kazu@hxi.com>
23978
23979 * varasm.c: Fix formatting.
23980 * varray.c: Likewise.
23981 * vmsdbgout.c: Likewise.
23982 * xcoffout.c: Likewise.
23983
bcb3bc6d
JH
23984Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
23985
23986 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
cda94cbb 23987 update edge probabilities to match.
bcb3bc6d 23988
0a553c7e
JM
239892002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
23990
23991 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
23992 dependencies.
23993 * doc/languages.texi, doc/sourcebuild.texi: New files.
23994 * doc/configfiles.texi: Make a subsubsection. Update.
23995 * doc/configterms.texi: Add @node. Remove warning that this isn't
23996 instructions for building GCC.
23997 * doc/makefile.texi: Make a subsection.
23998 * doc/gccint.texi: Update.
23999
adc7fcb8
JH
24000Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
24001
24002 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
24003
5a4dd0b3
NP
24004Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
24005
24006 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
24007
3987b9db
JH
24008Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
24009
24010 * optabs.c (expand_fix): Look for wider integer modes first.
24011
24012 * i386.md (mov?f): Avoid the fake const double trick for medium
24013 memory model.
24014 (min?f*/max?f*): Prohibit memory operands for i387 variant.
24015 (fop_df_4): Disable for SSE compilation.
24016
ceb15948 240172002-01-10 Graham Stott <grahams@redhat.com>
117f9d28
GS
24018
24019 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
cda94cbb 24020 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
117f9d28 24021
e1623399
RH
240222002-01-10 Richard Henderson <rth@redhat.com>
24023
24024 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
24025
c4abb293
RH
240262002-01-10 Richard Henderson <rth@redhat.com>
24027
24028 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
24029 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
24030
d2604ae9
KH
240312002-01-10 Kazu Hirata <kazu@hxi.com>
24032
24033 * combine.c (can_combine_p): Fix a comment typo.
24034
766c7ad1
ZW
240352002-01-09 Zack Weinberg <zack@codesourcery.com>
24036
24037 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
24038 empty list correctly. Change loop index $t to $f for
24039 consistency with rest of Makefile.
24040
95385cbb
AH
240412002-01-08 Aldy Hernandez <aldyh@redhat.com>
24042
24043 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
24044 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
24045
24046 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
24047 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
24048 (altivec_init_builtins): Same.
24049 (altivec_expand_unop_builtin): Return NULL_RTX on error.
24050 (altivec_expand_binop_builtin): Same.
24051 (altivec_expand_ternop_builtin): Same.
24052 (bdesc_dst): New.
24053
24054 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
24055 ("altivec_vctuxs"): Fix typo.
24056 ("altivec_vnmsubfp"): Same.
24057 ("altivec_dssall"): New.
24058 ("altivec_mfvscr"): New.
24059 ("altivec_dss"): New.
24060 ("altivec_lvsl"): New.
24061 ("altivec_lvsr"): New.
24062 ("altivec_dstt"): New.
24063 ("altivec_dstst"): New.
24064 ("altivec_dststt"): New.
24065 ("altivec_dst"): New.
24066
24067 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
24068 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
24069
e4ac76b4
RH
240702002-01-09 Richard Henderson <rth@redhat.com>
24071
24072 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
24073
c893e4a4
HPN
240742002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
24075
24076 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
24077 function.
24078 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
24079 prototype.
7387c700 24080 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
c893e4a4 24081
f4f4d0f8
KH
240822002-01-09 Kazu Hirata <kazu@hxi.com>
24083
24084 * read-rtl.c: Fix formatting.
24085 * real.c: Likewise.
24086 * regclass.c: Likewise.
24087 * regrename.c: Likewise.
24088 * reg-stack.c: Likewise.
24089 * reload1.c: Likewise.
24090 * reload.c: Likewise.
24091 * rtl.c: Likewise.
24092
cc863bea
KH
240932002-01-09 Kazu Hirata <kazu@hxi.com>
24094
24095 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
24096 to extract items in the expr_list chain.
24097
7b4dfe3d
RH
240982002-01-09 Richard Henderson <rth@redhat.com>
24099
24100 * config/vax/vax.c (vax_rtx_cost): Never abort.
24101
1d969638
RH
24102 * config/vax/vax.h (REAL_ARITHMETIC): Define.
24103
7d5ab30e
JH
241042002-01-09 Jan Hubicka <jh@suse.cz>
24105
24106 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
24107
9503f3d1
RH
241082002-01-09 Richard Henderson <rth@redhat.com>
24109
24110 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
24111 Unify code from various alternatives.
24112
42bd17b7
RH
241132002-01-09 Richard Henderson <rth@redhat.com>
24114
24115 * regrename.c (copy_value): Ignore the copy if the source register
24116 is present in the value chain with a narrower mode.
24117
bdca3c33
HB
241182002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
24119
cda94cbb
RH
24120 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
24121 for the c4x target. Also improve layout.
bdca3c33 24122
c73a5e94
RH
241232002-01-09 Richard Henderson <rth@redhat.com>
24124
24125 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
24126 * config/m32r/m32r.md (and ior xor splitters): Swap operands
24127 to match insn patterns.
24128
dd0a18c0
RH
241292002-01-09 Richard Henderson <rth@redhat.com>
24130
24131 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
24132 (copyprop_hardreg_forward_1): Likewise.
24133
1fd9ac1e
JDA
241342002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
24135
24136 * pa.md (decrement_and_branch_until_zero): Change predicate for
24137 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
24138
5cb265ec
BM
241392002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
24140
24141 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
24142 gets undefined. For Darwin.
24143
fcd8fa8b
HB
241442002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
24145
24146 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
24147
bd3ab23a
MH
241482002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
24149
24150 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
24151
21e16bd6
RH
241522002-01-08 Richard Henderson <rth@redhat.com>
24153
24154 * regrename.c (copy_value): Ignore overlapping copies.
24155
a5376276
RH
241562002-01-08 Richard Henderson <rth@redhat.com>
24157
24158 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
24159 as needed to avoid shared structure.
24160
18cf8dda
KH
241612002-01-08 Kazu Hirata <kazu@hxi.com>
24162
24163 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
24164 H8/300H and H8/S.
24165
16c484c7
JM
241662002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
24167
24168 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
24169 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
24170 documentation of obsolete macros.
24171 * system.h: Poison these macros.
24172 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
24173 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
24174 config/c4x/c4x.h, config/clipper/clipper.h,
24175 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
24176 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
24177 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
24178 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
24179 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
24180 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
24181 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
24182 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
24183 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
24184 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
24185 config/sparc/sparc.h, config/stormy16/stormy16.h,
24186 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
24187 definitions and commented out definitions of obsolete macros.
24188 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
24189 of MAX_INT_TYPE_SIZE.
24190
14b3e8ef
UW
241912002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
24192
24193 * config/s390/s390.c (s390_preferred_reload_class): Never
24194 return ADDR_REGS if it isn't a subset of the given class.
24195 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
24196 FP_REGS, but all superclasses as well.
24197
24198 * config/s390/s390.c (s390_function_profiler): Fix thinko.
24199
24200 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
24201 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
24202 must not be a const_int.
24203
a693284d
RH
242042002-01-08 Richard Henderson <rth@redhat.com>
24205
24206 * Makefile.in (toplev.o): Depend on options.h.
24207 (gcc.o): Depend on specs.h.
24208
b3ca30df
JJ
242092002-01-08 Jakub Jelinek <jakub@redhat.com>
24210
24211 * expr.c (store_expr): Convert VOIDmode constants back to target's
24212 mode.
24213
24dbb440
GP
242142002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
24215
24216 * doc/invoke.texi: Markup gcc as @command. Refer to
24217 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
24218 of http://gcc.gnu.org/thanks.html.
24219
234e114c
DJ
242202002-01-08 Dale Johannesen <dalej@apple.com>
24221
24222 * config/rs6000/rs6000.md: Add missing int register
24223 target case to movdf_low.
24224
0d24f4d1
ZW
242252002-01-08 Zack Weinberg <zack@codesourcery.com>
24226
24227 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
24228 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
24229 (cppinit.o): Depend on except.h.
24230 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
24231 s-specs): New rules.
24232
24233 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
24234 Don't create specs.h/options.h/gencheck.h here. Remove
24235 unnecessary variable settings from last argument of AC_OUTPUT.
24236 * config.in, configure: Regenerate.
24237 * intl.c: Hardcode package name as "gcc".
24238
24239 * cppinit.c: Include except.h.
24240 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
24241 appropriate.
24242 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
24243 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
24244 (!)USING_SJLJ_EXCEPTIONS.
24245 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
24246
ed722f66
JM
242472002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
24248
24249 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
24250 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
24251 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
24252 documentation of obsolete macros.
24253 * system.h: Poison these macros.
24254 * config/d30v/d30v.h, config/ns32k/encore.h,
24255 config/stormy16/stormy16.h: Remove definitions and commented out
24256 definitions of obsolete macros.
24257
31e5e29a
NP
24258Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
24259
24260 * objc/objc-act.c (handle_class_ref): Mark the declaration of
24261 %sobjc_class_ref_%s as used - to prevent unwanted compiler
24262 warnings.
24263
bc1fa59c
UW
242642002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
24265
24266 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
24267 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
24268 to insn adjusting stack/frame pointer.
0d24f4d1 24269 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
bc1fa59c
UW
24270 accept operands that cause the insn to be non-splittable.
24271
a8086abf
GS
242722002-01-08 Graham Stott <grahams@redhat.com>
24273
24274 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
24275 (C_TYPE_FIELDS_VOLATILE): Likewise.
24276 (C_TYPE_BEING_DEFINED): Likewise.
24277 (C_IS_RESERVED_WORD): Likewise.
24278 (C_TYPE_VARIABLE_SIZE): Likewise.
24279 (C_DECL_VARIABLE_SIZE): Likewise.
24280 (C_MISSING_PROTOTYPE_WARNED): Likewise.
24281 (C_SET_EXP_ORIGINAL_CODE): Likewise.
24282 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
24283 parenthesis.
24284 (C_DECL_ANTICIPATED): Likewise.
24285 (c_build_type_variant): Add parenthesis.
24286
3f595aa1
JM
242872002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
24288
24289 * gcc.c (option_map): Remove --version.
24290 (process_command): Handle -fversion following the GNU Coding
24291 Standards. Partially addresses PR other/704.
24292
5bc5a8f9
GS
242932002-01-08 Graham Stott <grahams@redhat.com>
24294
24295 * combine.c (combine_instructions): Fix typo.
24296
16ec4ebf
GS
242972002-01-08 Graham Stott <grahams@redhat.com>
24298
24299 * debug.h: Use "tree" and "rtx" throughout.
24300
24301 * debug.c: Likewise.
24302
4b69f385
NC
243032002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
24304
24305 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
24306 constant pool, use the pool's version of the symbol instead.
24307
57d1019b
RH
243082002-01-07 Richard Henderson <rth@redhat.com>
24309
24310 * regrename.c (find_oldest_value_reg): Ignore the value chain if
24311 the original register was copied in a mode with a fewer number of
24312 hard registers than the desired mode.
24313 (copyprop_hardreg_forward_1): Likewise.
24314 (debug_value_data): Fix loop test.
24315 * toplev.c (parse_options_and_default_flags): Reenable
24316 -fcprop-registers at -O1.
24317
243182002-01-07 Aldy Hernandez <aldyh@redhat.com>
fa066a23 24319
0d24f4d1
ZW
24320 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
24321 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
fa066a23 24322
0d24f4d1
ZW
24323 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
24324 predicates.
fa066a23 24325
0d24f4d1 24326 * config/rs6000/rs6000.md: Add altivec predicate patterns.
fa066a23 24327
8f949e7e
JDA
243282002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
24329
24330 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
24331 (pa_output_function_prologue): Output local label at the beginning of
24332 the prologue when profiling.
24333 (hppa_profile_hook): Use the local label rather than the function label.
24334 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
24335
c62f2db5
AH
243362002-01-07 Aldy Hernandez <aldyh@redhat.com>
24337
0d24f4d1
ZW
24338 * config/rs6000/rs6000.c (print_operand): Remove extra space.
24339 (altivec_expand_unop_builtin): Fix thinko.
24340 (altivec_expand_binop_builtin): Same.
24341 (altivec_expand_ternop_builtin): Same.
24342 (altivec_expand_builtin): Same.
c62f2db5 24343
b5235ba7
RH
243442002-01-07 Richard Henderson <rth@redhat.com>
24345
24346 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
24347
7d8ac293
JM
243482002-01-07 Jason Merrill <jason@redhat.com>
24349
24350 * unwind-dw2.c (execute_cfa_program): Use < again.
24351
571a03b8
JJ
243522002-01-07 Jakub Jelinek <jakub@redhat.com>
24353
24354 * predict.c (combine_predictions_for_insn): Avoid division by zero.
24355
2e951384
JJ
243562002-01-07 Jakub Jelinek <jakub@redhat.com>
24357
24358 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
24359 Don't allow -1 - x -> ~x simplifications in the first pass.
24360
20e26713
AH
243612002-01-07 Aldy Hernandez <aldyh@redhat.com>
24362
0d24f4d1
ZW
24363 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
24364 arguments.
24365 (altivec_expand_binop_builtin): Same.
24366 (altivec_expand_unop_builtin): Same.
24367 (print_operand): Fix typo.
24368 (bdesc_1arg): Add vupk* variants.
20e26713 24369
0d24f4d1 24370 * rs6000.h (rs6000_builtins): Add vupk* enums.
20e26713 24371
0d24f4d1 24372 * rs6000.md: Add altivec_vupk* variants.
20e26713 24373
4dd57c18
JM
243742002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
24375
24376 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
24377 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
24378 and last update dates.
24379
0341c5d2
JJ
243802002-01-07 Janis Johnson <janis187@us.ibm.com>
24381
24382 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
24383
c7f3e0b0
MM
243842002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
24385
24386 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
24387 * config/avr/avr.h (CPP_SPEC): Likewise.
24388 (LINK_SPEC): Likewise.
24389 (CRT_BINUTILS_SPECS): Likewise.
24390 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
24391 * doc/invoke.texi (AVR Options): Document them.
24392
6ba4d630
JH
24393Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
24394
24395 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
24396 LABEL_NUSES.
24397
6253d571
GS
243982002-01-07 Graham Stott <grahams@redhat.com>
24399
0d24f4d1
ZW
24400 * config/i386/i386.h: Update copyright date.
24401 (HALF_PIC_PTR): Add parenthesis.
24402 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
24403 (CONSTANT_ALIGNMENT): Add parenthesis.
24404 (DATA_ALIGNMENT): Likewise.
24405 (LOCAL_ALIGNMENT): Likewise.
24406 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
24407 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
24408 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
24409 (HARD_REGNO_NREGS): Add paranethesis.
24410 (VALID_SSE_REG_MODE): Whitespace.
24411 (VALID_MMX_REG_MODE): Whitespace.
24412 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
24413 (ix86_hard_regno_mode_ok): Add parenthesis.
24414 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
24415 (RETURN_IN_MEMORY): Whitespace.
24416 (N_REG_CLASSES): Add parenthesis.
24417 (INTEGER_CLASS_P): Add parenthesis and wrap.
24418 (FLOAT_CLASS_P): Likewise.
24419 (SSE_CLASS_P): Likewise.
24420 (MMX_CLASS_P): Likewise.
24421 (MAYBE_INTEGER_CLASS_P): Likewise.
24422 (MAYBE_FLOAT_CLASS_P): Likewise.
24423 (MAYBE_SSE_CLASS_P): Likewise.
24424 (MAYBE_MMX_CLASS_P): Likewise.
24425 (Q_CLASS_P): Likewise.
24426 (GENERAL_REGNO_P): Uppercase macro parameter.
24427 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
24428 (FP_REGNO_P): Likewise.
24429 (ANY_FP_REGNO_P): Uppercase macro parameter.
24430 (SSE_REGNO_P): Likewise.
24431 (SSE_REGNO): Likewise.
24432 (SSE_REG_P): Likewise.
24433 (SSE_FLOAT_MODE_P): Likewise.
24434 (MMX_REGNO_P): Likewise.
24435 (MMX_REG_P):Likewise.
24436 (STACK_REG_P): Likewise.
24437 (NON_STACK_REG_P): Likewise.
24438 (STACK_TOP_P): Likewise.
24439 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
24440 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
24441 (SECONDARY_MEMORY_NEEDED): Likewise.
24442 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
24443 (MD_ASM_CLOBBERS): Whitespace and wrap.
24444 (MUST_PASS_IN_STACK): Whitespace and wrap.
24445 (RETURN_POPS_ARGS): Add parenthesis.
24446 (INIT_CUMULATIVE_ARGS): Likewise.
24447 (FUNCTION_ARG): Likewise.
24448 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
24449 (SETUP_INCOMING_VARARGS): Likewise.
24450 (BUILD_VA_LIST_TYPE): Add parenthesis.
24451 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
24452 parenthsis.
24453 (EXPAND_BUILTIN_VA_ARG): Likewise.
24454 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
24455 (INITIALIZE_TRAMPOLINE): Add parenthesis.
24456 (INITIAL_ELIMINATION_OFFSET): Likewise.
24457 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
24458 (REGNO_OK_FOR_BASE_P): Likewise.
24459 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
24460 (REGNO_OK_FOR_DIREG_P): Likewise.
24461 (REG_OK_FOR_INDEX_P): Whitespace.
24462 (REG_OK_FOR_BASE_P): Whitespace.
24463 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
24464 parenthesis.
24465 (FIND_BASE_TERM): Fix typo.
24466 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
24467 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
24468 (SYMBOLIC_CONST; Whitespace.
24469 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
24470 (ENCODE_SECTION_INFO): Whitespace.
24471 (FINALIZE_PIC): Remove do { ... } while (0).
24472 (PROMOTE_MODE): Wrap in do { ... } while (0).
24473 (CONST_COSTS): Whitespace.
24474 (RTX_COSTS): Add paramethesis, whitespace and wrap.
24475 (REGISTER_MOVE_COST): Add parenthesis.
24476 (MEMORY_MOVE_COST): Likewise.
24477 (EXTRA_CC_MODES): Whitespace.
24478 (SELECT_CC_MODE): Add parenthesis and whitespace.
24479 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
24480 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
24481 (ASM_OUTPUT_LABEL): Add paramethesis.
24482 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
24483 (ASM_OUTPUT_REG_POP): Likewise.
24484 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
24485 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
d9a5f180 24486
07933f72
GS
24487 * config/i386/i386.c: Update copyright.
24488 (CHECK_STACK_LIMIT): Add parenthesis.
24489 (AT_BP): Uppercase macro parameter.
24490 (x86_64_int_parameter_registers): Constify.
24491 (x86_64_int_return_registers): Likewise.
24492 (ix86_compare_op0): Use rtx.
24493 (construct_container): Constify INTREG parameter.
24494 (function_arg): Use rtx.
24495
0b4d32c9
GS
24496 * diagnostic.h: Update copyright date.
24497 (output_buffer_state): Add parenthesis.
24498 (output_buffer_format_args): Likewise.
24499
6253d571
GS
24500 * combine.c (combine_instructions): Replace XEXP (links, 0)
24501 with link.
24502
68f3f6f1
L
245032002-01-06 H.J. Lu <hjl@gnu.org>
24504
24505 * cfgcleanup.c (thread_jump): Fix 2 typos.
24506
245072002-01-06 Aldy Hernandez <aldyh@redhat.com>
480f7f3a 24508
0d24f4d1 24509 * config.gcc: Add support for --enable-altivec.
480f7f3a 24510
13b8c631
CR
245112002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
24512
24513 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
24514
58ad89b1
JJ
245152002-01-06 Jakub Jelinek <jakub@redhat.com>
24516
24517 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
24518 __objc_class_name_*.
24519
e403b4bc
CR
245202002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
24521
24522 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
24523
e41c7831
RH
245242002-01-06 Richard Henderson <rth@redhat.com>
24525
24526 * reorg.c (emit_delay_sequence): Remove death notes, not merely
24527 nop them out. Increment label reference count for REG_LABEL.
24528 (fill_slots_from_thread): Frob label reference count around
24529 delete_related_insns.
24530
3b3b1e32
RH
245312002-01-05 Richard Henderson <rth@redhat.com>
24532
24533 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
24534 jump threading.
24535
c28abdf0
RH
245362002-01-05 Richard Henderson <rth@redhat.com>
24537
24538 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
24539 * integrate.c (output_inline_function): Likewise.
24540 * toplev.c (rest_of_compilation): Do it here instead. Move call
24541 to remove_unnecessary_notes after emitting abstract instance.
24542 Force an emitted nested function to have its parent emited as well.
24543 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
24544 for null.
24545 (rtl_for_decl_location): Do not look at reload data structures
24546 before reload has run.
24547
c4f2c499
KH
245482002-01-05 Kazu Hirata <kazu@hxi.com>
24549
24550 * cse.c: Fix formatting.
24551 * dwarf2asm.c: Likewise.
24552 * dwarf2out.c: Likewise.
24553 * explow.c: Likewise.
24554 * expmed.c: Likewise.
24555 * function.c: Likewise.
24556 * gcov.c: Likewise.
24557 * gencheck.c: Likewise.
24558 * genrecog.c: Likewise.
24559 * ggc-common.c: Likewise.
24560 * ggc-page.c: Likewise.
24561 * global.c: Likewise.
24562
cf0d9408
KH
245632002-01-05 Kazu Hirata <kazu@hxi.com>
24564
24565 * combine.c: Fix formatting.
24566
bedca03a
CR
245672002-01-05 Craig Rodrigues <crodrigu@bbn.com>
24568
24569 PR middle-end/1557
24570 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
24571
0134bf2d
DE
245722002-01-05 David Edelsohn <edelsohn@gnu.org>
24573
24574 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
24575 as 1 for __powerpc64__ as well.
24576
24577 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
24578
24579 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
24580 return it.
24581
9ca88d5a
DB
245822002-01-05 Daniel Berlin <dan@dberlin.org>
24583
24584 * lcm.c: Revert change, due to performance regression it causes on
24585 SPEC because it's slightly more conservative (sigh, I hate
24586 edge-based LCM).
0d24f4d1 24587
1c570418
JH
24588Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
24589
24590 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
24591
d83bb9f7
NB
245922002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
24593
24594 * doc/cppinternals.texi: Update.
24595
3e0f61ac
HPN
245962002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
24597
24598 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
24599 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
24600 negatives.
24601 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
24602 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
24603 kludge for pre-october-14th mmix versions to handle new-found bug
24604 with PUSHJ/PUSHGO and the register stack.
24605 * config/mmix/mmix.h (struct machine_function): Rename member
24606 has_call_value_without_parameters to has_call_without_parameters.
24607 All referers changed.
24608 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
24609 TARGET_MASK_BRANCH_PREDICT): New macros.
24610 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
24611 -mno-reg-stack-fill-bug-workaround.
24612 * config/mmix/mmix.md ("call"): Set struct machine member
24613 has_call_without_parameters.
24614
4deaa2f8
JH
24615Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
24616
24617 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
24618
9f16e871
JH
24619Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
24620
24621 * cfgcleanup.c: Include tm_p.h
24622 (mark_effect): Fix handling of hard register; fix handling of SET
24623
96eb1157
KH
246242002-01-04 Kazu Hirata <kazu@hxi.com>
24625
24626 * config/h8300/h8300.md (anonymous patterns): Check that
24627 operands are registers before using REGNO on them.
24628
48180d68
RM
246292002-01-03 Roland McGrath <roland@frob.com>
24630
24631 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
24632
b0832fe1
JJ
246332002-01-04 Jakub Jelinek <jakub@redhat.com>
24634
24635 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
24636 * c-common.h (genrtl_expr_stmt_value): Likewise.
24637 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
24638 (expand_expr_stmt_value): Add maybe_last argument.
24639 Don't warn about statement with no effect if it is the last statement
24640 in expression statement.
24641 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
24642 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
24643 expand_expr_stmt_value.
24644 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
24645 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
24646 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
24647 as maybe_last to expand_expr_stmt_value.
24648
c1e14513
JL
24649Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
24650
0d24f4d1
ZW
24651 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
24652 be passed in, do not build it.
24653 (c_begin_if_stmt): New function.
24654 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
24655 * c-common.h (c_expand_start_cond): Update prototype.
24656 (c_begin_if_stmt): Prototype new function.
24657 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
24658 * c-parse.in (if_prefix): Use c_begin_if_stmt,
24659 c_begin_while_stmt and c_finish_while_stmt_cond.
c1e14513 24660
b6ec437a
WC
246612002-01-04 William Cohen <wcohen@redhat.com>
24662
24663 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
24664 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
24665 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
24666 * config/pa/som.h (ASM_FILE_START): Likewise.
24667
ead39bdf 246682002-01-04 Daniel Berlin <dan@cgsoftware.com>
517b711f
DB
24669
24670 * lcm.c: Include df.h.
24671 Add available_transfer_function prototype.
24672 (compute_available): Rework to use iterative dataflow framework.
24673 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
24674 with bb_info in df.h
24675 (available_transfer_function): New function.
24676
24677 * Makefile.in (lcm.o): add df.h to dependencies.
24678
551cc6fd
RH
246792002-01-04 Richard Henderson <rth@redhat.com>
24680
24681 * config/alpha/alpha.c (some_operand): Accept HIGH.
24682 (input_operand): Likewise; accept simple references to globals.
24683 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
24684 (alpha_const_double_ok_for_letter_p): Likewise.
24685 (alpha_extra_constraint): Likewise.
24686 (alpha_preferred_reload_class): Likewise. Do not force
24687 symbolic constants to memory.
24688 (alpha_legitimate_address_p): Accept simple references
24689 to small_symbolic_operand.
24690 (alpha_legitimize_address): New arg scratch. Be prepared to be
24691 called when no_new_pseudos. Emit simple symbolic references.
24692 Split integers into low, high, and rest.
24693 (alpha_expand_mov): Use alpha_legitimize_address.
24694 (some_small_symbolic_mem_operand): New.
24695 (split_small_symbolic_mem_operand): New.
24696 * config/alpha/alpha-protos.h: Update.
24697 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
24698 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
24699 (EXTRA_CONSTRAINT): Likewise.
24700 (PREFERRED_RELOAD_CLASS): Likewise.
24701 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
24702 (PREDICATE_CODES): Update.
24703 * config/alpha/alpha.md: New post-reload splitters to convert
24704 simplfied symbolic operands to the form that references $29.
24705 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
24706 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
24707
1eaea054
RH
247082002-01-03 Richard Henderson <rth@redhat.com>
24709
24710 * local-alloc.c (function_invariant_p): Update commentary.
24711
c4cc12b7
L
247122002-01-04 H.J. Lu <hjl@gnu.org>
24713
24714 * toplev.c (rest_of_compilation): Fix a typo when calling
24715 cleanup_cfg.
24716
173bf5be
KH
247172002-01-03 Kazu Hirata <kazu@hxi.com>
24718
24719 * c-common.c: Fix formatting.
24720 * diagnostic.c: Likewise.
24721 * doloop.c: Likewise.
24722 * dwarf2out.c: Likewise.
24723
187462ac
KH
247242002-01-03 Kazu Hirata <kazu@hxi.com>
24725
24726 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
24727 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
24728
5d8ebbd8
NB
247292002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
24730
24731 * cpperror.c: Update comments and copyright.
24732 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
24733 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
24734
518c1311
JDA
247352002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
24736
24737 * collect2.c (main): Use strcmp when testing for "-shared".
24738
d15a58c0
NB
247392002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
24740
24741 * cppmacro.c: Don't include intl.h. Update comments.
24742 (new_number_token): Allocate enough buffer for 64-bit unsigned
24743 integers; update prototype.
24744 * cppmain.c: Update comments.
24745
70f4f91c
WC
247462002-01-03 William Cohen <wcohen@redhat.com>
24747
24748 * function.h (struct function): Add profile.
24749 (current_function_profile): New.
24750 doc/extend.texi: Update documentation.
24751 * final.c (final_start_function): Use current_function_profile
24752 instead of profile_flag.
24753 (profile_after_prologue): Likewise.
24754 * function.c (expand_function_start): Likewise.
24755 (expand_function_start): Likewise.
c4cc12b7 24756 * config/alpha/alpha.c (direct_call_operand):
70f4f91c
WC
24757 (alpha_does_function_need_gp): Likewise.
24758 (alpha_expand_prologue): Likewise.
24759 * config/arm/arm.c (arm_expand_prologue): Likewise.
24760 thumb_expand_prologue: Likewise.
24761 * config/d30v/d30v.c (d30v_stack_info): Likewise.
24762 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
24763 (fr30_expand_prologue): Likewise.
24764 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
24765 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
24766 * config/i386/i386.h (FINALIZE_PIC): Likewise.
24767 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
24768 * config/i960/i960.c (i960_output_function_prologue): Likewise.
24769 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
24770 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
24771 (m32r_expand_prologue): Likewise.
24772 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
24773 (m88k_expand_prologue): Likewise.
24774 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
24775 * config/mips/mips.c (compute_frame_size): Likewise.
24776 (mips_expand_prologue): Likewise.
24777 (mips_can_use_return_insn): Likewise.
24778 * config/pa/elf.h (ASM_FILE_START): Likewise.
24779 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
24780 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
24781 * config/pa/som.h (ASM_FILE_START): Likewise.
24782 * config/romp/romp.c (romp_using_r14): Likewise.
24783 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
24784 (rs6000_stack_info): Likewise.
24785 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2fd17409 24786 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
70f4f91c
WC
24787 * config/v850/v850.c (compute_register_save_size): Likewise.
24788
cb1ac742
JJ
247892002-01-03 Jakub Jelinek <jakub@redhat.com>
24790
24791 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
24792 gen_lowpart_common fails, use gen_lowpart_SUBREG.
24793
61d951df 247942002-01-03 Turly O'Connor <turly@apple.com>
cb1ac742 24795
61d951df
TC
24796 * darwin.c (machopic_output_possible_stub_label): Don't generate
24797 stub routines for pseudo-stubs which we've just defined.
24798
505ddab6
KH
247992002-01-03 Kazu Hirata <kazu@hxi.com>
24800
24801 * builtins.c: Fix formatting.
24802 * c-typeck.c: Likewise.
24803 * combine.c: Likewise.
24804 * expr.c: Likewise.
24805 * loop.c: Likewise.
24806
b7e30d8a
AS
248072002-01-03 Andreas Schwab <schwab@suse.de>
24808
24809 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
24810 and return true if _cpp_push_next_buffer pushed a new include
24811 file.
24812 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
24813 _cpp_pop_file_buffer did not push a new file.
24814 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
24815
ff81832f
EC
248162002-01-02 Eric Christopher <echristo@redhat.com>
24817
24818 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
24819 FIND_REG_INC_NOTE call. Update copyright.
24820 * loop.c (canonicalize_condition): Ditto.
24821 * reorg.c (delete_scheduled_jump): Ditto.
24822
8e42ace1
KH
248232002-01-03 Kazu Hirata <kazu@hxi.com>
24824
24825 * gcse.c: Fix formatting.
24826
fb2bf631
GS
248272002-01-03 Graham Stott <grahams@redhat.com>
24828
24829 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
24830 forward defs for struct tags rtx_def, union_tree, rtvec_def
6253d571 24831 also output corresponding typedefs for rtx, tree, and rtvec.
fb2bf631
GS
24832
24833 * system.h: Move forward defs for struct tags rtx_def, union_tree,
24834 rtvec_def along with corresponding typedefs for rtx, tree, and
6253d571 24835 rtvec to config.h, hconfig.h, tconfig.h.
fb2bf631
GS
24836
248372002-01-03 Graham Stott <grahams@redhat.com>
b9daac31
GS
24838
24839 * tree.h: Update copyright date.
24840 (IS_EXPR_CODE_CLASS): Add parenthesis.
24841 (TREE_SET_CODE): Add whitespace.
24842 (TREE_CHECK): Add parenthesis.
24843 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
24844 (CST_OR_CONSTRUCTOR_CHECK):
24845 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
24846 (TREE_SYMBOL_REFERENCED): Whitespace.
24847 (INT_CST_LT): Likewise.
24848 (INT_CST_LT_UNSIGNED): Likewise.
24849 (tree_real_cst): Unwrap comment.
24850 (tree_string): Likewise.
24851 (tree_complex): Likewise.
24852 (IDENTIFIER_POINTER): correct cast.
24853 (SAVE_EXPR_CONTEXT): Whitespace.
24854 (EXPR_WFL_FILENAME_NODE): Likewise.
24855 (EXPR_WFL_FILENAME): Remove parenthesis.
24856 (DECL_ORIGIN): Add parenthesis.
24857 (DECL_FROM_INLINE): Use NULL_TREE.
24858 (build_int_2): Whitespace.
24859 (build_type_variant): Add parenthesis.
24860
24861 * gcc/jcf-parse.c: Update copyright date.
24862 (yyparse): Constify resource_filename.
24863
f52eda29
GS
248642002-01-03 Graham Stott <grahams@redhat.com>
24865
24866 * rtl.h: Update copyright date.
24867 (RTL_CHECK1): Wrap long line.
24868 (RTL_CHECK2): Likewise.
24869 (RTL_CHECKC1): Wrap long line and whitespace.
24870 (RTL_CHECKC2): Likewise.
24871 (XWINT): Whitespace.
24872 (XINT): Likewise.
24873 (XSTR): Likewise.
24874 (XEXP): Likewise.
24875 (XVEC): Likewise.
24876 (XMODE): Likewise.
24877 (XBITMAP): Likewise.
24878 (XTREE): Likewise.
24879 (XBBDEF): Likewise.
24880 (XTMPL): Likewise.
24881 (X0WINT): Likewise.
24882 (X0INT):Likewise.
24883 (X0UINT): Likewise.
24884 (X0STR): Likewise.
24885 (X0EXP): Likewise.
24886 (X0VEC): Likewise.
24887 (X0MODE): Likewise.
24888 (X0BITMAP): Likewise.
24889 (X0TREE): Likewise.
24890 (X0BBDEF): Likewise.
24891 (X0ADVFLAGS): Likewise.
24892 (X0CSELIB): Likewise.
24893 (X0MEMATTR): Likewise.
24894 (XCWINT): Likewise.
24895 (XCINT): Likewise.
24896 (XCUINT): Likewise.
24897 (XCSTR): Likewise.
24898 (XCEXP): Likewise.
24899 (XCVEC): Likewise.
24900 (XCMODE): Likewise.
24901 (XCBITMAP): Likewise.
24902 (XCTREE): Likewise.
24903 (XCBBDEF): Likewise.
24904 (XCADVFLAGS): Likewise.
24905 (XCCSELIB): Likewise.
24906 (XC2EXP): Likewise.
24907 (INSN_UID): Likewise.
24908 (PREV_INSN): Likewise.
24909 (PATTERN): Likewise.
24910 (INSN_CODE): Likewise.
24911 (PUT_REG_NOTE_KIND): Likewise.
24912 (CODE_LABEL_NUMBER): Likewise.
24913 (NOTE_SOURCE_FILE): Likewise.
24914 (NOTE_BLOCK): Likewise.
24915 (NOTE_EH_HANDLER): Likewise.
24916 (NOTE_RANGE_INFO): Likewise.
24917 (NOTE_LIVE_INFO): Likewise.
24918 (NOTE_BASIC_BLOCK): Likewise.
24919 (NOTE_EXPECTED_VALUE): Likewise.
24920 (NOTE_LINE_NUMBER): Likewise.
24921 (LABEL_NAME): Likewise.
24922 (LABEL_NUSES): Likewise.
24923 (LABEL_ALTERNATE_NAME): Likewise.
24924 (ADDRESSOF_DECL): Likewise.
24925 (JUMP_LABEL): Likewise.
24926 (LABEL_NEXTREF): Likewise.
24927 (REGNO): Likewise.
24928 (ORIGINAL_REGNO: Likewise.
24929 (HARD_REGISTER_NUM_P): Add parenthesis.
24930 (SUBREG_REG): Whitespace.
24931 (SUBREG_BYTE): Likewise.
24932 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
24933 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
24934 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
24935 (ASM_OPERANDS_INPUT_VEC): Likewise.
24936 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
24937 (ASM_OPERANDS_INPUT): Likewise.
24938 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
24939 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
24940 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
24941 (ASM_OPERANDS_INPUT_MODE): Likewise.
24942 (ASM_OPERANDS_SOURCE_FILE): Likewise.
24943 (ASM_OPERANDS_SOURCE_LINE): Likewise.
24944 (MEM_SET_IN_STRUCT_P): Minor reformat.
24945 (TRAP_CONDITION): Whitespace.
24946 (TRAP_CODE): Likewise.
24947 (COND_EXEC_TEST): Likewise.
24948 (COND_EXEC_CODE): Likewise.
24949 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
24950 (PHI_NODE_P): Add parenthesis.
24951 (plus_constant): Whitespace and add parenthesis.
24952
e03f5d43
KH
249532002-01-03 Kazu Hirata <kazu@hxi.com>
24954
24955 * config/avr/avr.c: Fix comment typos.
24956 * config/c4x/c4x.md: Likewise.
24957 * config/dsp16xx/dsp16xx.h: Likewise.
24958 * config/dsp16xx/dsp16xx.md: Likewise.
24959 * config/i386/i386.md: Likewise.
24960 * config/ia64/ia64.c: Likewise.
24961 * config/m32r/m32r.h: Likewise.
24962 * config/m68hc11/m68hc11.md: Likewise.
24963 * config/mmix/mmix.c: Likewise.
24964 * config/mn10200/mn10200.c: Likewise.
24965 * config/romp/romp.c: Likewise.
24966 * config/sh/sh.c: Likewise.
24967 * config/stormy16/stormy16.c: Likewise.
24968 * config/stormy16/stormy16.h: Likewise.
24969 * config/stormy16/stormy16.md: Likewise.
24970
97e300e9
GS
249712002-01-03 Graham Stott <grahams@redhat.com>
24972
24973 * loop.h: Update copyright date.
0d24f4d1
ZW
24974 (LOOP_MOVABLES): Fix typo.
24975 (LOOP_REGS): Likewise.
24976 (LOOP_IVS): Likewise.
ff81832f 24977
745b26b3
GS
249782002-01-03 Graham Stott <grahams@redhat.com>
24979
24980 * cppinit.c: Update copyright date.
24981 Don't include output.h
24982 * Makefile.in: Update copyright date.
24983 Update dependency.
24984
0a379b7a
CR
249852002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
24986
24987 PR c/5226
24988 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
24989 (-pthread) Add to RS/6000 options.
24990
a8154559
KH
249912002-01-02 Kazu Hirata <kazu@hxi.com>
24992
24993 * except.c: Fix comment typos.
24994 * loop.c: Likewise.
24995 * varasm.c: Likewise.
24996 * doc/tm.texi: Fix a typo.
24997
e6ecc89b
JJ
249982002-01-02 Jakub Jelinek <jakub@redhat.com>
24999
25000 * c-typeck.c (output_init_element): Allow initializing static storage
25001 duration objects with compound literals.
25002
d1094b40
RH
250032002-01-02 Richard Henderson <rth@redhat.com>
25004
25005 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
25006 after abusing it.
25007
0c5d8c82
KG
250082002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25009
5e65297b
KG
25010 * gcc.c (default_compilers): Const-ify.
25011 * mips-tdump.c (stab_names): Likewise.
25012 * mips-tfile.c (map_coff_types, map_coff_storage,
25013 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
25014 pseudo_ops_t, pseudo_ops): Likewise.
25015 * protoize.c (default_include): Likewise
25016
0c5d8c82
KG
25017 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
25018 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
25019 Add array size in declaration.
25020 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
25021 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
25022 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
25023 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
25024 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
25025 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
25026 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
25027 emtens, make_nan): Const-ify.
25028 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
25029 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
25030
817e13c4
JM
250312002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
25032
25033 * config.gcc (ia64-*-*): Set extra_headers.
25034 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
25035 * config/alpha/t-osf: Remove.
25036 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
25037
98095e2b
DE
250382002-01-02 David Edelsohn <edelsohn@gnu.org>
25039
25040 * config/rs6000/t-aix43: Revert previous change.
25041
a4200657
JM
250422002-01-02 Jason Merrill <jason@redhat.com>
25043
25044 * c-decl.c (c_expand_body): Call outlining_inline_function when
25045 emitting an inline function out of line.
25046
54ba1f0d
RH
250472002-01-02 Richard Henderson <rth@redhat.com>
25048
25049 * dwarf2out.c (limbo_die_node): Add created_for member.
25050 (new_die): New argument created_for. Update all callers.
25051 (mark_limbo_die_list): New.
25052 (dwarf2out_init): Register limbo_die_list as a root.
25053 (dwarf2out_finish): Force insert limbo dies into their function
25054 context.
25055
323728aa
NS
250562002-01-02 Nathan Sidwell <nathan@codesourcery.com>
25057
25058 PR c++/5089
25059 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
25060
aefc5826
KH
250612002-01-02 Kazu Hirata <kazu@hxi.com>
25062
25063 * config/h8300/fixunssfsi.c: Update copyright.
25064 Fix comment typos.
25065 Fix formatting.
25066 * config/h8300/h8300.c: Update copyright.
25067 Eliminate warnings.
25068
b1c9bc51
KH
250692002-01-02 Kazu Hirata <kazu@hxi.com>
25070
25071 * config/romp/romp.c: Fix comment formatting.
25072 * config/romp/romp.h: Likewise.
25073 * config/romp/romp.md: Likewise.
25074 * config/s390/s390.c: Likewise.
25075 * config/stormy16/stormy16.c: Likewise.
25076 * config/stormy16/stormy16.h: Likewise.
25077
1574ef13
AO
250782002-01-02 Alexandre Oliva <aoliva@redhat.com>
25079
25080 * c-common.h (genrtl_expr_stmt_value): Declare.
25081 * c-semantics.c (genrtl_goto_stmt): Redirect to...
25082 (genrtl_goto_stmt_value): ... this new function. Pass new
25083 argument down to expand_expr_stmt_value, taking
25084 TREE_ADDRESSABLE into account.
25085 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
25086 STMT_EXPR as addressable, i.e., one whose result we want.
25087 * expr.c (expand_expr): Don't save expression statement value
25088 of labeled_blocks or loop_exprs.
25089 * stmt.c (expand_expr_stmt): Redirect to...
25090 (expand_expr_stmt_value): ... this new function. Use new
25091 argument to tell whether to save expression value.
25092 (expand_end_stmt_expr): Reset last_expr_type and
25093 last_expr_value if we don't have either.
25094 * tree-inline.c (declare_return_variable): Mark its use
25095 statement as addressable.
25096 * tree.h: Document new use of TREE_ADDRESSABLE.
25097 (expand_expr_stmt_value): Declare.
25098
252b88f7
TR
250992002-01-01 Tom Rix <trix@redhat.com>
25100
25101 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
25102 rs6000_emit_allocate_stack.
25103
29f7a208
JM
251042002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
25105
25106 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
25107 ${srcdir}/ginclude/ to every entry in extra_headers.
25108 * configure: Regenerate.
25109 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
25110 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
25111 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
25112 * ginclude/proto.h: Rename to config/convex/proto.h.
25113
2cc2d4bb
RK
25114Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25115
25116 * attribs.c (handle_vector_size_attribute): Use host_integerp
25117 and tree_int_cst; remove warnings.
25118 * caller-save.c (insert_restore): Add cast to get rid of warning.
25119 (insert_save): Likewise.
25120 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
25121 * regmove.c (find_matches): Add temporary var to kill a warning.
25122
f01c9bcd
DR
251232002-01-01 Douglas B Rupp <rupp@gnat.com>
25124
16b61764
DR
25125 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
25126 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
25127 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
25128 (vms-dwarf2eh.o): Add Makefile rule.
25129 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
25130 * config/alpha/vms-dwarf2eh.asm: New file.
25131
f01c9bcd
DR
25132 * gcc.c (delete_if_ordinary): Delete all versions.
25133
91312b81
HPN
251342002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
25135
25136 * config/mmix/mmix.md: Update FIXME to not mention
25137 define_constants.
25138 (MMIX_rJ_REGNUM): New define_constants constant.
25139 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
25140 "*movdicc_real"): Adjust contraints formatting.
25141 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
25142 for branch prediction.
25143 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
25144 output template.
25145 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
25146 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
25147 number. Delete related FIXMEs.
25148 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
25149 from number to MMIX_rJ_REGNUM.
25150 (TARGET_MASK_BRANCH_PREDICT): New.
25151 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
25152 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
25153 value. Add -mbranch-predict and -mno-branch-predict.
25154 (TARGET_VERSION): Drop date.
25155 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
25156 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
25157 for finding out global symbols.
25158 (mmix_asm_output_labelref): Revert condition for global symbol.
25159 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
25160 (mmix_print_operand_punct_valid_p): A '+' is valid.
25161
619acae7 25162See ChangeLog.6 for earlier changes.
This page took 3.350966 seconds and 5 git commands to generate.