]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
44b946beef5ca1f7434587cbb62db7f211f23350
[gcc.git] / gcc / ChangeLog
1 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
2
3 * toplev.c (randomize): Correct call to time().
4
5 2003-07-08 Jakub Jelinek <jakub@redhat.com>
6
7 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
8 REG_EQUIV notes as well.
9
10 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
11
12 * doc/md.texi: Fix the description of addmodecc.
13
14 2003-07-07 Zack Weinberg <zack@codesourcery.com>
15
16 * Makefile.in (top_builddir): Set to "..", not ".".
17 (INTLLIBS, INTLDEPS): Delete.
18 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
19 (LIBDEPS): Add $(LIBICONV_DEP).
20 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
21 (INCLUDES): Replace -I../intl with @INCINTL@.
22 ($(top_builddir)/intl/libintl.a): Delete rule.
23 (stage2-start, stage3-start, stage4-start, stageprofile-start,
24 stagefeedback-start): Use $$ for variable to be evaluated by
25 shell, not make.
26 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
27 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
28 * aclocal.m4: sinclude ../config/progtest.m4. Add
29 contents of lcmessage.m4 from gettext distro.
30 * configure.in: Check for wchar.h and setlocale. Set
31 LIBICONV_DEP to the empty string and substitute it.
32 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
33 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
34 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
35 in $LIBINTL, to avoid linking it twice.
36 * configure, config.in: Regenerate.
37
38 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
39
40 * fixinc/mkfixinc.sh: Remove winnt support.
41 * fixinc/fixinc.winnt: Delete with extreme prejudice.
42
43 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
44
45 * Makefile.in: Update.
46 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
47 * c.opt: Update documentation.
48 * common.opt: Add some help text.
49 * opts.c: Include intl.h.
50 (wrap_help, print_help): New.
51 (find_opt, handle_option, common_handle_option): opt_text now
52 contains the '-'. Use print_help to output help.
53 * opts.h (struct cl_option): New member "help".
54 * opts.sh: Update to handle help text output and to prepend
55 options with '-'.
56 * toplev.c (display_help): Remove some help text.
57
58 2003-07-07 David Edelsohn <edelsohn@gnu.org>
59 Fariborz Jahanian <fjahanian@apple.com>
60
61 * configure.in: Test for PowerPC mfcr field support in assembler.
62 * config.in, configure: Regenderated.
63
64 * config/rs6000/power4.md: Add mfcrf reservation.
65 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
66 * config/rs6000/rs6000.c (mfcr_operation): Define.
67 (print_operand): Add 'Q' case for mfcrf.
68 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
69 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
70 (movcc_internal1): Emit optional field operand for mfcr and set
71 "type" attribute appropriately.
72 (mfcr SCC): Likewise.
73 (movesi_from_cr_one): New.
74
75 2003-07-07 Roger Sayle <roger@eyesopen.com>
76
77 * config/i386/i386.md: Correct check-in of incorrect version.
78
79 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
80
81 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
82 adjacent stdio calls.
83 * c-decl.c (c_print_identifier): Likewise.
84 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
85 * print-rtl.c (print_rtx): Likewise.
86 * print-tree.c (print_node_brief, print_node): Likewise.
87 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
88
89 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
90 * config.in, configure: Regenerated.
91
92 2003-07-07 Roger Sayle <roger@eyesopen.com>
93
94 PR target/10979
95 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
96 Changed to define_expand patterns that copy operand[1] to prevent
97 it from being clobbered before emitting an atan2?f3_1 insn.
98 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
99 patterns that actually specify the behaviour of x87's FPATAN.
100
101 2003-07-07 Jakub Jelinek <jakub@redhat.com>
102
103 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
104 clearing of SYMBOL_FLAG_LOCAL bit.
105 If vcall_offset fits into signed 16-bit immediate, use
106 one instruction for both addition and load.
107
108 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
109
110 * opts.c (common_handle_option): Correct handling of the
111 -falign- switches that do and don't take an argument.
112
113 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
114
115 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
116 today.
117 (pushhi1_h8300hs): Likewise.
118
119 2003-07-07 Andreas Jaeger <aj@suse.de>
120
121 * genextract.c: Convert remaining prototypes to ISO C90.
122
123 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
124 * fold-const.c (fold_single_bit_test): Likewise.
125 * diagnostic.c (default_diagnostic_finalizer): Likewise.
126 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
127
128 * gengtype.c (write_array): Generate ISO C90 prototypes.
129
130 * genflags.c (gen_proto): Generate ISO C90 prototypes.
131
132 2003-07-07 Roger Sayle <roger@eyesopen.com>
133
134 PR optimization/11059
135 * expr.c (can_store_by_pieces): Return true if length is zero.
136 (store_by_pieces): If length is zero and endp is two, abort,
137 othwerise, if length is zero and endp is not two, return "to".
138 (clear_by_pieces): Do nothing if length is zero.
139 (clear_storage): Do nothing if length is zero.
140 (store_constructor): Simplify code when size is zero, or the
141 target has already been cleared. This avoids emitting a
142 blockage instruction when initializing empty structures.
143
144 2003-07-07 Andreas Jaeger <aj@suse.de>
145
146 * mips-tfile.c: Convert prototypes to ISO C90.
147 * mips-tdump.c: Convert prototypes to ISO C90.
148
149 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
150
151 * rtl.h (emit_line_note): Take a location_t.
152 (emit_line_note_force): Remove.
153 (set_file_and_line_for_statement): Take a location_t.
154 * tree.g (emit_line_note): Take a location_t.
155 * emit-rtl.c (emit_line_note): Take a location_t.
156 (emit_line_note_force): Remove.
157 * function.c (init_function_start): Adjust emit_line_note call.
158 (expand_function_end): Use force_next_line_note, not
159 emit_line_note_force.
160 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
161 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
162 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
163 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
164 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
165 genrtl_continue_stmt, genrtl_switch_stmt,
166 genrtl_asm_stmt): Likewise.
167 * expr.c (expand_expr): Likewise.
168 * integrate.c (expand_inline_function): Likewise.
169 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
170 (expand_decl_init): Adjust emit_line_note call.
171
172 2003-07-07 Dale Johannesen <dalej@apple.com>
173
174 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
175
176 2003-07-07 Andreas Jaeger <aj@suse.de>
177
178 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
179 * config/i386/i386.c: Likewise.
180
181 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
182
183 * config/h8300/h8300.md: Use gen_int_mode instead of
184 GEN_INT (trunc_int_for_mode (...)).
185
186 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
187
188 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
189 2 bytes and then subtract 2 from the stack pointer.
190 (pushhi1_h8300hs): Likewise.
191
192 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
193
194 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
195 -frandom-seed.
196 * configure: Regenerated.
197 * Makefile.in: Remove extraneous comment.
198 * toplev.c (randomize): Protect against potential multiple calls.
199 * doc/invoke.texi (-frandom-seed): Document use for in coverage
200 files.
201
202 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
203 Eric Botcazou <ebotcazou@libertysurf.fr>
204
205 PR optimization/11198
206 * alias.c (objects_must_conflict_p): Return 1 if the types have
207 the same alias set, not if the alias sets only conflict.
208
209 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
210
211 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
212 (convert_cset): Change inbuf to type ICONV_CONST char.
213 * Makefile.in (LIBS): Add LIBICONV.
214
215 * doc/invoke.texi (-falign-functions): Document that
216 when n is zero then a machine-dependent default is used.
217 (-falign-labels): Document that when n is zero then a
218 machine-dependent default is used and that -falign-labels =1
219 is equivalent to -fno-align-labels.
220 (-falign-loops): Likewise.
221 (-falign-jumps): Likewise.
222
223 2003-07-06 Art Haas <ahaas@airmail.net>
224
225 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
226 initializer syntax.
227
228 2003-07-06 James E Wilson <wilson@tuliptree.org>
229
230 PR optimization/9812
231 * rtl.h (mem_for_const_double): Delete prototype.
232 * varasm.c (mem_for_const_double): Delete function.
233 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
234 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
235 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
236 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
237 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
238 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
239 comment about confused support for XFmode constants.
240
241 Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
242
243 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
244
245 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
246
247 * config/h8300/h8300.c: Fix comment typos.
248 * config/h8300/h8300.md: Likewise.
249 * config/i386/athlon.md: Likewise.
250 * config/i386/i386.c: Likewise.
251 * config/i386/pentium.md: Likewise.
252 * config/ia64/ia64.c: Likewise.
253 * config/ia64/itanium1.md: Likewise.
254 * config/ia64/itanium2.md: Likewise.
255 * config/m32r/m32r.md: Likewise.
256 * config/m68hc11/m68hc11.c: Likewise.
257 * config/mcore/mcore.c: Likewise.
258 * config/mips/sr71k.md: Likewise.
259 * config/mips/t-iris5-as: Likewise.
260 * config/mmix/mmix.h: Likewise.
261 * config/ns32k/ns32k.h: Likewise.
262 * config/ns32k/NOTES: Fix a typo.
263
264 2003-07-06 Andreas Jaeger <aj@suse.de>
265
266 * stmt.c: Convert remaining prototypes to ISO C90.
267 * cfglayout.c: Likewise.
268 * dbxout.c: Likewise.
269 * gcc.c: Likewise.
270 * genemit.c: Likewise.
271
272 * basic-block.h: Convert prototypes to ISO C90.
273 * c-parse.in: Likewise.
274 * c-pragma.h: Likewise.
275 * c-typeck.c: Likewise.
276 * cfghooks.h: Likewise.
277 * cfgloopanal.c: Likewise.
278 * dbxout.h: Likewise.
279 * debug.h: Likewise.
280 * dwarf2asm.h: Likewise.
281 * gcov.c: Likewise.
282 * gengtype-lex.l: Likewise.
283 * sched-int.h: Likewise.
284 * timevar.c: Likewise.
285
286 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
287
288 * c-common.h (c_comon_handle_filename,
289 c_common_missing_arguement): New.
290 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
291 LANG_HOOKS_MISSING_ARGUMENT): New.
292 * c-opts.c (missing_arg): Rename c_common_missing_argument,
293 update to be an appropriate langhook.
294 (c_common_handle_option): Don't handle filenames.
295 (c_common_handle_filename): New.
296 * hooks.c (hook_void_constcharptr,
297 hook_bool_constcharptr_size_t_false): New.
298 * hooks.h (hook_void_constcharptr,
299 hook_bool_constcharptr_size_t_false): New.
300 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
301 LANG_HOOKS_MISSING_ARGUMENT): New.
302 (LANG_HOOKS_INITIALIZER): Update.
303 * langhooks.h (struct lang_hooks): Add handle_filename and
304 missing_argument.
305 * opts.c (handle_option): Don't handle filenames here, but ...
306 (handle_options): ... here.
307 (common_handle_option): Don't handle missing arguments here.
308 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
309 LANG_HOOKS_MISSING_ARGUMENT): New.
310
311 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
312
313 * Makfile.in: Remove traces of mbchar.
314 * c-parse.in (MULTIBYTE_CHARS): Remove.
315 * config.in (MULTIBYTE_CHARS): Remove.
316 * configure: Remove --enable-mbchar.
317 * configure.in: Remove --enable-mbchar.
318 * mbchar.c, mbchar.h: Remove.
319 * system.h: Poison MULTIBYTE_CHARS.
320 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
321 * config/linux.h (MULTIBYTE_CHARS): Remove.
322 * config/svr4.h (MULTIBYTE_CHARS): Remove.
323 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
324
325 2003-07-06 Andreas Jaeger <aj@suse.de>
326
327 * varray.c (varray_check_failed): Fix typo.
328
329 * unroll.c: Convert prototypes to ISO C90.
330 * varasm.c: Likewise.
331 * varray.c: Likewise.
332 * varray.h: Likewise.
333 * vmsdbgout.c: Likewise.
334 * xcoffout.c: Likewise.
335 * xcoffout.h: Likewise.
336
337 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
338
339 * gcov-io.h: Add a local time stamp.
340 (struct gcov_info): Add stamp field.
341 (gcov_truncate): New.
342 * coverage.c (read_counts_file): Skip the stamp.
343 (coverage_begin_output): Write the stamp.
344 (build_gcov_info): Declare and init the stamp.
345 (coverage_finish): Only unlink data file, if stamp is zero.
346 * gcov-dump.c (dump_file): Dump the stamp.
347 * gcov.c (bbg_stamp): New.
348 (release_structures): Clear bbg_stamp.
349 (read_graph_file): Read stamp.
350 (read_count_file): Check stamp.
351 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
352
353 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
354
355 * tree.h (default_flag_random_seed): Remove.
356 * toplev.h (local_tick): Declare.
357 * tree.c (flag_random_seed, default_flag_random_seed): Move to
358 toplev.c.
359 (append_random_chars): Don't call default_flag_random_seed.
360 * toplev.c (flag_random_seed): Define here. Set local_tick.
361 (local_tick): Define.
362 (randomize): New, moved from tree.c.
363 (print_switch_values): Adjust.
364 (toplev_main): Call randomize.
365
366 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
367
368 * tree.h (crc32_string): Declare.
369 * tree.c (append_random_chars): Remove.
370 (crc32_string): New.
371 (get_file_function_name_long): Use crc32_string here.
372
373 2003-07-06 Andreas Jaeger <aj@suse.de>
374
375 * gcc.c: Convert prototypes to ISO C90.
376 * gcc.h: Likewise.
377 * gcov-dump.c: Likewise.
378 * gcov-iov.c: Likewise.
379 * gcse.c: Likewise.
380 * genattrtab.h: Likewise.
381 * ggc.h: Likewise.
382 * global.c: Likewise.
383 * graph.c: Likewise.
384 * graph.h: Likewise.
385 * hosthooks.h: Likewise.
386 * hooks.h: Likewise.
387 * hooks.c: Likewise.
388 * hashtable.h: Likewise.
389 * hashtable.c: Likewise.
390 * haifa-sched.c: Likewise.
391 * integrate.h: Likewise.
392 * integrate.c: Likewise.
393 * input.h: Likewise.
394 * ifcvt.c: Likewise.
395 * jump.c: Likewise.
396 * langhooks-def.h: Likewise. Add extern to prototypes.
397 * langhooks.c: Likewise.
398 * langhooks.h: Likewise.
399 * lcm.c: Likewise.
400 * local-alloc.c: Likewise.
401 * loop-init.c: Likewise.
402 * loop-unroll.c: Likewise.
403 * loop-unswitch.c: Likewise.
404 * loop.c: Likewise.
405 * loop.h: Likewise. Add extern to prototypes.
406 * machmode.h: Likewise.
407 * main.c: Likewise.
408 * mbchar.c: Likewise.
409 * mbchar.h: Likewise.
410 * mkdeps.c: Likewise.
411 * mkdeps.h: Likewise.
412 * optabs.c: Likewise.
413 * optabs.h: Likewise.
414 * output.h: Likewise.
415 * gccspec.c: Likwise.
416 * postreload.c: Likewise.
417 * prefix.c: Likewise.
418 * prefix.h: Likewise.
419 * print-rtl.c: Likewise.
420 * print-tree.c: Likewise.
421 * profile.c: Likewise.
422 * read-rtl.c: Likewise.
423 * real.c: Likewise.
424 * real.h: Likewise.
425 * recog.c: Likewise.
426 * recog.h: Likewise.
427 * reg-stack.c: Likewise.
428 * regclass.c: Likewise.
429 * regmove.c: Likewise.
430 * regrename.c: Likewise.
431 * regs.h: Likewise.
432 * reload.c: Likewise.
433 * reload.h: Likewise.
434 * reload1.c: Likewise.
435 * reorg.c: Likewise.
436 * resource.c: Likewise.
437 * resource.h: Likewise.
438 * rtl-error.c: Likewise.
439 * rtl.c: Likewise.
440 * rtl.h: Likewise.
441 * rtlanal.c: Likewise.
442 * sbitmap.c: Likewise.
443 * sbitmap.h: Likewise.
444 * scan-decls.c: Likewise.
445 * scan.c: Likewise.
446 * sched-deps.c: Likewise.
447 * sched-ebb.c: Likewise.
448 * sched-int.h: Likewise.
449 * sched-rgn.c: Likewise.
450 * sched-vis.c: Likewise.
451 * sibcall.c: Likewise.
452 * simplify-rtx.c: Likewise.
453 * sreal.c: Likewise.
454 * sreal.h: Likewise.
455 * ssa-ccp.c: Likewise.
456 * ssa-dce.c: Likewise.
457 * ssa.c: Likewise.
458 * ssa.h: Likewise.
459 * stack.h: Likewise.
460 * stmt.c: Likewise.
461 * stor-layout.c: Likewise.
462 * stringpool.c: Likewise.
463 * target.h: Likewise.
464 * timevar.c: Likewise.
465 * timevar.h: Likewise.
466 * tlink.c: Likewise.
467 * tracer.c: Likewise.
468 * tree-inline.c: Likewise.
469 * tree-inline.h: Likewise.
470 * tree.c: Likewise.
471 * tree.h: Likewise.
472
473 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
474
475 * combine.c (nonzero_bits1): Fix a warning.
476
477 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
478
479 * config/h8300/h8300.c (compute_mov_length): Correct the
480 length of loading CONST0_RTX (SFmode).
481
482 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
483
484 * toplev.c (output_clean_symbol_name): Remove.
485 * toplev.h (output_clean_symbol_name): Remove.
486 * config/alpha/alpha.c (unicosmk_output_module_name): Use
487 lbasename & clean_symbol_name.
488
489 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
490
491 * ggc.h: Follow spelling conventions.
492 * config/i386/i386.c: Likewise.
493 * config/i386/winnt.c: Likewise.
494 * config/rs6000/rs6000.c: Likewise.
495
496 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
497
498 * bt-load.c: Fix comment typos.
499 * c-incpath.c: Likewise.
500 * cfg.c: Likewise.
501 * cfgcleanup.c: Likewise.
502 * cfgloop.h: Likewise.
503 * cfgloopmanip.c: Likewise.
504 * cfgrtl.c: Likewise.
505 * diagnostic.h: Likewise.
506 * dwarfout.c: Likewise.
507 * emit-rtl.c: Likewise.
508 * et-forest.c: Likewise.
509 * et-forest.h: Likewise.
510 * expr.c: Likewise.
511 * gcse.c: Likewise.
512 * genattr.c: Likewise.
513 * jump.c: Likewise.
514 * langhooks.h: Likewise.
515 * local-alloc.c: Likewise.
516 * loop-unroll.c: Likewise.
517 * loop-unswitch.c: Likewise.
518 * ra-build.c: Likewise.
519 * regclass.c: Likewise.
520 * regmove.c: Likewise.
521 * rtl.def: Likewise.
522 * rtlanal.c: Likewise.
523 * sched-ebb.c: Likewise.
524 * sched-rgn.c: Likewise.
525 * simplify-rtx.c: Likewise.
526 * ssa.c: Likewise.
527 * tracer.c: Likewise.
528 * tree.c: Likewise.
529
530 2003-07-05 Zack Weinberg <zack@codesourcery.com>
531
532 * cppcharset.c: Use the correct return type for the fallback iconv
533 macro.
534
535 Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
536
537 Blame to Jan Hubicka <jh@suse.cz>
538 * cfglayout.c (record_effective_endpoints): Split insns before
539 first basic block correctly.
540
541 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
542
543 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
544 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
545 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
546
547 2003-07-05 Andreas Jaeger <aj@suse.de>
548
549 * genattrtab.c (write_attr_get): Revert part of last patch to
550 always write out a prototype.
551
552 * genemit.c (gen_split): Readd lost unused attributes in last
553 patch.
554
555 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
556
557 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
558 different from header.
559
560 2003-07-05 Andreas Schwab <schwab@suse.de>
561
562 * config/m68k/m68k.c: Remove code protected by CRDS.
563 * config/m68k/m68k.md: Likewise.
564
565 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
566
567 PR driver/11417
568 * c-opts.c (permit_fortran_options): New.
569 (c_common_init_options): Accept fortran front end options if
570 it looks like we might be preprocessing Fortran.
571 (c_common_handle_option): Don't reject switch if permit_fotran_options.
572
573 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
574
575 * genattr.c (internal_dfa_insn_code): Output prototype.
576 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
577 * genautomata.c: Likewise.
578 * genconditions.c: Likewise.
579 * genemit.c: Likewise.
580 * genextract.c: Likewise.
581 * gengenrtl.c: Likewise.
582 * gengtype.c: Likewise.
583 * genopinit.c: Likewise.
584 * genoutput.c: Likewise.
585 * genpeep.c: Likewise.
586 * genrecog.c: Likewise.
587
588 2003-07-04 Zack Weinberg <zack@codesourcery.com>
589
590 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
591 (struct cpp_options): Add narrow_charset, wide_charset,
592 bytes_big_endian fields. Remove EBCDIC field.
593 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
594
595 * cpphash.h: Include <iconv.h> if we have it, otherwise
596 provide a dummy definition of iconv_t.
597 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
598 (_cpp_valid_ucn): Update prototype.
599 (_cpp_destroy_iconv): New prototype.
600
601 * doc/cpp.texi: Document character set handling.
602 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
603 * doc/extend.texi: Delete entire section on multiline strings.
604 Rewrite section on __FUNCTION__ etc now that these are
605 variables in C.
606
607 * cppucnid.tab, cppucnid.pl: New files.
608 * cppucnid.h: New generated file.
609 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
610 (iconv_open, iconv, iconv_close): Provide dummy definitions
611 if !HAVE_ICONV.
612 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
613 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
614 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
615 cpp_interpret_string, narrow_str_to_charconst,
616 wide_str_to_charconst): New.
617 (ucn_valid_in_identifier): Use a binary search through the
618 ucnranges table defined in cppucnid.h, not a long chain of if
619 statements.
620 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
621 character names are only valid in C++ and C99" to a warning.
622 Issue the "meaning of \[uU] is different in traditional C"
623 warning here. Take care not to let iconv see an invalid UCS
624 value if we get a malformed UCN. Issue an error if we don't
625 have iconv.
626 (cpp_interpret_charconst): Moved here from cpplex.c. Use
627 cpp_interpret_string to do the heavy lifting.
628
629 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
630 narrow_charset, wide_charset fields of options structure.
631 (cpp_destroy): Call _cpp_destroy_iconv.
632 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
633 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
634 (cpp_interpret_charconst): Moved to cppcharset.c.
635 * cpplib.c (dequote_string): Delete.
636 (interpret_string_notranslate): New.
637 (do_line, do_linemarker): Use interpret_string_notranslate.
638
639 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
640
641 * c-common.c (fname_string, combine_strings): Delete.
642 * c-common.h (fname_string, combine_strings): Delete prototypes.
643 * c-lex.c (ignore_escape_flag): Delete.
644 (cb_ident): Use cpp_interpret_string, not lex_string.
645 (get_nonpadding_token): New function.
646 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
647 Adjust calls to lex_string. Don't write *value twice.
648 (lex_string): Now handles string constant concatenation.
649 Most of the work handed off to cpp_interpret_string.
650 Call fix_string_type here.
651 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
652 FUNC_NAME, throughout.
653 (OBJC_STRING): New token type.
654 (primary:STRING): No need to call fix_string_type here.
655 (primary:objc_string): Make that OBJC_STRING.
656 (objc_string nonterminal): Delete.
657 (yylexname): Delete code to handle fake string constants.
658 (yylexstring): Delete entirely.
659 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
660 to handle CPP_ATSIGN.
661
662 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
663 * c-opts.c (missing_arg, c_common_handle_option): Handle
664 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
665 (c_common_init): Set cpp_opts->bytes_big_endian, not
666 cpp_opts->EBCDIC. Call cpp_init_iconv.
667 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
668 (TARGET_EBCDIC): Delete default definition.
669
670 * objc/objc-act.c (build_objc_string_object): No need to
671 handle string constant concatenation.
672
673 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
674
675 * doc/install.texi: Fix typos.
676 * doc/invoke.texi: Likewise.
677 * doc/tm.texi: Likewise.
678
679 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
680
681 * config/pa/fptr.c: Fix comment typos.
682 * config/pa/pa-64.h: Likewise.
683 * config/pa/pa.c: Likewise.
684 * config/pa/pa.h: Likewise.
685 * config/rs6000/603.md: Likewise.
686 * config/rs6000/7xx.md: Likewise.
687 * config/rs6000/darwin.h: Likewise.
688 * config/rs6000/freebsd.h: Likewise.
689 * config/rs6000/rs6000.c: Likewise.
690 * config/rs6000/rs6000.md: Likewise.
691 * config/rs6000/spe.h: Likewise.
692
693 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
694
695 * config/s390/2064.md: Change GNU CC to GCC.
696 * config/s390/2084.md: Likewise.
697 * config/s390/fixdfdi.h: Likewise.
698 * config/s390/linux.h: Likewise.
699 * config/s390/s390-modes.def: Likewise.
700 * config/s390/s390-protos.h: Likewise.
701 * config/s390/s390.c: Likewise.
702 * config/s390/s390.h: Likewise.
703 * config/s390/s390.md: Likewise.
704 * config/s390/s390x.h: Likewise.
705
706 2003-07-04 Jeff Law <law@redhat.com>
707
708 PR c/11428
709 * expr.c (do_store_flag): Pass in the correct result type
710 when calling fold_single_bit_test.
711 * fold-const.c (fold_single_bit_test): Use result_type for the
712 result when folding a sign bit test.
713
714 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
715
716 * opts.c (common_handle_options): Negate sense of -falign- switches.
717
718 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
719
720 * Makefile.in: Replace PWD with PWD_COMMAND.
721
722 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
723
724 * cfgloopanal.c (count_strange_loop_iterations): New static function.
725 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
726 Handle strange loops.
727
728 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
729
730 * install.texi: Even the g77 manpage is derived from
731 the full g77 manual.
732
733 2003-07-04 Zack Weinberg <zack@codesourcery.com>
734
735 * ABOUT-NLS: Delete.
736 * intl: Delete entire directory.
737 * aclocal.m4: Include ../config/gettext.m4. Delete
738 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
739 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
740 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
741 Remove intl/Makefile from all_outputs.
742 * configure, config.in: Regenerate.
743 * Makefile.in: Expunge all references to intl subdirectory.
744 Add -I../intl to INCLUDES.
745 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
746
747 2003-07-04 Roger Sayle <roger@eyesopen.com>
748
749 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
750 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
751
752 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
753
754 PR c++/5287, PR c++/7910, PR c++/11021
755 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
756 dllimport attribute if function is defined at declaration, but
757 report error instead. Likewise for dllimport'd variable
758 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
759 declared within functions, Report error if dllimport or dllexport
760 symbol is not global.
761 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
762 if defined after declaration or if inlined. Don't allow definition
763 of static data members of C++ classes. Don't dllimport virtual
764 methods.
765 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
766 (i386_pe_mark_dllimport): Remove unnecessary checks.
767 (i386_pe_encode_section_info): Warn if the dllimport attribute
768 and symbol prefix have been instantiated and then overridden.
769
770 * doc/extend.texi: Document dllimport and dllexport attributes.
771
772 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
773
774 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
775
776 * config/kaos.h (CPP_PREDEFINES): Delete.
777 (TARGET_OS_CPP_BUILTINS): New.
778
779 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
780
781 * c-aux-info.c: Include toplev.h after c-tree.h.
782 * c-common.c: Likewise.
783 (GCC_DIAG_STYLE): Undef.
784 * c-semantics.c (GCC_DIAG_STYLE): Define.
785 * c-tree.h (GCC_DIAG_STYLE): Likewise.
786 * diagnostic.h (inform): Move prototype to toplev.h.
787 * jump.c: Include diagnostic.h before toplev.h.
788 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
789 (warning, error, fatal_error, pedwarn, sorry, inform,
790 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
791
792 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
793
794 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
795 at all if edge is not specified.
796 (can_copy_bbs_p, copy_bbs): New.
797 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
798 * cfgloop.c (get_loop_body): Comment more precisely.
799 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
800 (scale_bbs_frequencies): Fix comment typo.
801 (can_duplicate_loop_p): Use can_copy_bbs_p.
802 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
803
804 2003-07-03 Devang Patel <dpatel@apple.com>
805
806 * c-opts.c (c_common_parse_file): Remove extra
807 debug_hooks->start_source_file call.
808
809 2003-07-03 Roger Sayle <roger@eyesopen.com>
810
811 * real.c (real_trunc, real_floor, real_ceil): New functions
812 to implement trunc, floor and ceil respectively.
813 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
814 * builtins.c (integer_valued_real_p): New function to test if
815 a floating point expression has an integer valued result.
816 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
817 foo(x) where foo is an integer rounding function. Similarly,
818 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
819 (double)(int)x when both foo and bar are integer rounding
820 functions and we don't need to honor errno.
821 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
822 New functions to fold trunc, floor and ceil.
823 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
824 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
825 to fold BUILT_IN_CEIL*.
826 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
827 the remaining integer rounding functions.
828
829 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
830
831 * config/sparc/sparc.c (function_arg_partial_nregs): Use
832 SPARC_INT_ARG_MAX to determine where to split unnamed
833 complex FP arguments.
834
835 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
836
837 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
838 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
839 (merge_blocks_move_predecessor_nojumps,
840 merge_blocks_move_successor_nojumps): Use merge_blocks.
841 (try_optimize_cfg): Use merge_blocks_move.
842 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
843 (merge_blocks_nomove): Rename to rtl_merge_blocks.
844 (cfg_layout_create_basic_block): New.
845 (rtl_can_merge_blocks): New.
846 (cfg_layout_split_block): Do not alloc aux by hand.
847 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
848 merge_blocks.
849 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
850 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
851 * cfgloopmanip.c (loop_split_edge_with): Likewise.
852 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
853
854 * basic-block.h (basic_block_def): Add field 'rbi'.
855 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
856 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
857 * cfg.c (entry_exit_blocks): Add new field.
858 * cfglayout.c: Include alloc-pool.h;
859 (cfg_layout_pool): New.
860 (record_effective_endpoints, fixup_reorder_chain,
861 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
862 of rbi.
863 (cfg_layout_initialize_rbi): New function.
864 (cfg_layout_initialize): Use it.
865 (cfg_layout_finalize): Clear rbi fields.
866 * cfglayout.h (RBI): Kill.
867 (cfg_layout_initialize_rbi): Declare.
868 * cfgloopmanip.c (copy_bbs): Use rbi.
869 (record_exit_edges): Likewise.
870 (duplicate_loop_to_header_edge): Likewise.
871 * cfgrtl.c (cfg_layout_create_basic_block): Use
872 cfg_layout_initialize_rbi.
873 (cfg_layout_split_block): Use rbi.
874 (cfg_layout_delete_block): Likewise.
875 * loop-init.c (loop_optimizer_finalize): Likewise.
876 * loop-unswitch.c (unswitch_loop): Likewise.
877 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
878
879 * cfgrtl.c: Update comments.
880 (try_redirect_by_replacing_jump): New argument.
881 (redirect_branch_edge): Break out from ...
882 (rtl_redirect_edge_and_branch): ... this one.
883 (update_cfg_after_block_merging): Break out from ...
884 (rtl_merge_blocks): ... this one.
885 (cfg_layout_split_edge): New.
886 (cfg_layout_merge_blocks): New.
887 (cfg_layout_can_merge_blocks_p): New.
888 (cfg_layout_redirect_edge_and_branch): Reorganize.
889 (cfg_layout_rtl_cfg_hooks): Fill in.
890 (cfg_layout_delete_block): Kill barriers.
891 * cfganal.c (can_fallthru): Deal with exit blocks
892 * cfglayout.c (cfg_layout_function_header): New function
893 (record_effective_endpoints): Record function header.
894 (fixup_reorder_chain): Fixup dead jumptables; place header
895
896 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
897 * bb-reorder.c (cfg_layout_initialize): Update call.
898 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
899 edges in cfglayout mode.
900 * cfglayout.c (cleanup_unconditional_jumps): Kill.
901 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
902 * cfglayout.h (cfg_layout_initialize): Update prototype.
903 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
904 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
905 * flow.c (propagate_block): Do not crash when basic block ends
906 by first insn in the chain.
907 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
908 do loop discovery.
909 * tracer.c (tracer): Update call of cfg_layout_initialize.
910
911 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
912
913 * Makefile.in: Use dependency variables in lieu of explicit
914 files throughout.
915
916 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
917
918 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
919 * tree.h: ...to here.
920
921 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
922
923 * config/s390/2064.md: Fix comment typos.
924 * config/s390/2084.md: Likewise.
925 * config/s390/s390.c: Likewise.
926 * config/s390/s390.md: Likewise.
927 * config/sh/sh.c: Likewise.
928 * config/sh/sh.h: Likewise.
929 * config/sh/sh.md: Likewise.
930 * config/sparc/sparc.c: Likewise.
931 * config/sparc/sparc.h: Likewise.
932 * config/sparc/sparc.md: Likewise.
933 * config/stormy16/stormy16.c: Likewise.
934 * config/stormy16/stormy16.h: Likewise.
935 * config/stormy16/stormy-abi: Fix a typo.
936
937 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
938
939 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
940
941 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
942
943 * config/mips/mips.h (save_argv): Delete.
944
945 2003-07-03 Roger Sayle <roger@eyesopen.com>
946
947 PR target/10700
948 * fold-const.c (extract_muldiv_1): There's nothing that can be done
949 if the expression is a SAVE_EXPR.
950
951 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
952
953 * config/m32r/m32r.c: Fix comment typos.
954 * config/m68hc11/m68hc11.c: Likewise.
955 * config/m68hc11/m68hc11.h: Likewise.
956 * config/m68k/m68k.c: Likewise.
957 * config/mcore/mcore.c: Likewise.
958 * config/mcore/mcore.h: Likewise.
959 * config/mcore/mcore.md: Likewise.
960 * config/mips/mips.c: Likewise.
961 * config/mips/mips.h: Likewise.
962 * config/mips/mips.md: Likewise.
963 * config/mips/netbsd.h: Likewise.
964 * config/mn10300/mn10300.c: Likewise.
965
966 2003-07-03 Andreas Schwab <schwab@suse.de>
967
968 * dbxout.c (pending_bincls): Move decl down inside
969 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
970
971 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
972
973 * rtl.h (NOTE_DATA): Refer to whole union.
974 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
975
976 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
977
978 PR optimization/11381
979 * simplify-rtx.c (simplify_relational_operation): Check that
980 two equal operands have no side-effects before simplifying
981 the comparison.
982
983 2003-07-02 Jeff Law <law@redhat.com>
984
985 * expr.c (do_store_flag): Remove special case folding for
986 single bit tests. Instead call back into the commonized folder
987 routine.
988 * fold-const.c (fold_single_bit_test): New function, mostly
989 extracted from do_store_flag, with an additional case extracted
990 from fold.
991 (fold): Call fold_single_bit_test appropriately.
992 * tree.h (fold_single_bit_test): Prototype.
993
994 2003-07-02 Zack Weinberg <zack@codesourcery.com>
995
996 * system.h: Include filenames.h.
997 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
998 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
999 define based on HAVE_DOS_BASED_FILE_SYSTEM.
1000 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
1001 * config/i386/xm-mingw32.h: Don't define
1002 HAVE_DOS_BASED_FILE_SYSTEM,
1003 DIR_SEPARATOR, or DIR_SEPARATOR_2.
1004 * doc/hostconfig.texi: Update to match.
1005
1006 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
1007 config/i386/cygwin.h:
1008 Use IS_ABSOLUTE_PATH throughout.
1009 * gcc.c (DIR_UP): Delete, unused.
1010 * protoize.c (IS_SAME_PATH): Define in terms of
1011 FILENAME_CMP.
1012 (is_abspath): Delete.
1013
1014 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
1015
1016 * config/i386/emmintrin.h: Fix comment typos.
1017 * config/i386/i386.c: Likewise.
1018 * config/i386/i386.h: Likewise.
1019 * config/i386/sco5.h: Likewise.
1020 * config/ia64/ia64.c: Likewise.
1021 * config/ia64/itanium2.md: Likewise.
1022
1023 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
1024
1025 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
1026 DBX_USE_BINCL.
1027 (emit_bincl_stab): Same.
1028 (emit_pending_bincls): Same.
1029
1030 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
1031
1032 * config/h8300/h8300.c (compute_mov_length): Fix the length of
1033 loading CONST0_RTX (SFmode).
1034 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
1035 'G' to CONST0_RTX (SFmode).
1036 * config/h8300/h8300.md (movsf_h8300): Change the first
1037 constraint to 'G'.
1038 (movsf_h8300h): Likewise.
1039
1040 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
1041
1042 * c-common.h (c_common_init_options): New prototype.
1043 * c-opts.c (deferred_size): Remove.
1044 (defer_opt): Array is now pre-allocated.
1045 (c_common_init_options): Pre-allocate deferred_opts. Make
1046 lang_flags unsigned.
1047 (push_command_line_options): Free deferred_opts.
1048 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
1049 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
1050 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
1051 * langhooks.h (struct lang_hooks): New prototype for init_options.
1052 * main.c (main): Cast argv.
1053 * opts.c (handle_option, handle_options): Update prototypes.
1054 (decode_options): save_argc, save_argv are not global. Constify.
1055 * opts.h (decode_options): New prototype.
1056 * toplev.c (general_init): New protoype.
1057 (save_argv): Make static.
1058 (save_argc): Remove.
1059 (print_switch_values, general_init): Constify.
1060 (toplev_main): Save argv.
1061 * toplev.h (toplev_main): Update prototype.
1062 (save_argc, save_argv): Remove.
1063
1064 2003-07-02 David Edelsohn <edelsohn@gnu.org>
1065
1066 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
1067 (emit_bincl_stab): Same.
1068 (emit_pending_bincls): Same.
1069
1070 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
1071
1072 PR c++/11072
1073 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
1074
1075 2003-07-02 Andreas Schwab <schwab@suse.de>
1076
1077 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
1078
1079 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1080
1081 PR optimization/11210
1082 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
1083 about the behaviour with regard to bitfields.
1084 * fold-const (decode_field_reference): Record outermost type in
1085 case the expression is a NOP. Strip all NOPs. Set the signedness
1086 to that of the outermost type (if any) when the bitsize is equal
1087 to the size of the type.
1088
1089 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
1090
1091 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
1092 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
1093 (adddi3_internal_3, addsi3_internal_2): Likewise.
1094
1095 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
1096
1097 * config/mips/mips.c (machine_function): Add new fields:
1098 ignore_hazard_length_p and all_noreorder_p.
1099 (mips_flag_delayed_branch): New variable.
1100 (override_options): Treat '/' as an operand punctuation character.
1101 Set up mips_flag_delayed_branch.
1102 (print_operand): Handle '/'.
1103 (mips_output_function_prologue): Put the whole function in
1104 .set noreorder and .set nomacro if all_noreorder_p is true.
1105 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
1106 (mips16_optimize_gp): Remove "first insn" parameter.
1107 (mips16_lay_out_constants): New function, split out from mips_reorg.
1108 (mips_avoid_hazard, mips_avoid_hazards): New functions.
1109 (mips_reorg): For mips16 code, call mips16_lay_out_constant
1110 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
1111 do delayed-branch scheduling followed by hazard detection.
1112 (mips_adjust_insn_length): Only account for hazards if
1113 !ignore_hazard_length_p.
1114 (mips_output_load_label): Add a nop to the o32 sequence if
1115 the target suffers from load delays.
1116 (mips_output_conditional_branch): Add %/ to the end of branches.
1117 (mips_output_division): Fill the branch delay slot with %#.
1118 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
1119 instructions. End all other %* branches with %/.
1120 (ffssi2, ffsdi2): Fix lengths.
1121 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
1122 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
1123 (fix_truncsfsi2_macro): Likewise.
1124 (mov_lwl): Set hazard to "none".
1125 (ashldi3_internal): Fill the branch delay slot with %#.
1126 (ashrdi3_internal, lshrdi3_internal): Likewise.
1127 (exception_receiver): Explicitly set $28.
1128 (hazard_nop): New pattern.
1129
1130 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
1131
1132 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
1133 before calling tree_inlinable_function_p.
1134
1135 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1136
1137 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
1138 <internal/stdio_core.h> too.
1139 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
1140 <internal/wchar_core.h> too.
1141 Substitute va_list uses in inline definition.
1142 * fixinc/fixincl.x: Regenerate.
1143
1144 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1145
1146 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
1147 Undef before redefinition.
1148 (LABEL_AFTER_LOC): Likewise.
1149 (DEFAULT_SIGNED_CHAR): Likewise.
1150 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
1151 Fix IRIX spelling.
1152
1153 * config/mips/iris3.h: Remove, unused.
1154 * config/mips/iris4.h: Likewise.
1155
1156 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
1157
1158 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
1159 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
1160 target_cpu_default.
1161
1162 * config/mips/iris5.h: Move explicit includes ...
1163 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
1164
1165 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
1166 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
1167 tm_defines.
1168
1169 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
1170 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
1171 target_cpu_default.
1172
1173 * config/mips/iris6.h: Fix IRIX spelling.
1174 (MULTILIB_DEFAULTS): Undef before redefinition.
1175
1176 * config/mips/iris6.h: Move explicit includes ...
1177 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
1178
1179 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
1180
1181 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
1182 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
1183 Use next_needed field instead of aux to maintain the queue.
1184 * cgraph.h (cgraph_node): Add next_needed.
1185 (cgraph_varpool_node): Add next_needed; remove aux.
1186 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
1187
1188 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
1189
1190 * cgraphunit.c (cgraph_finalize_function): Set finalized.
1191 (cgraph_finalize_function): Do not examine inlinablility.
1192 (cgraph_finalize_compilation_unit): Do it here.
1193 * cgraph.h (cgraph_local_info): Add finalized field.
1194
1195 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1196
1197 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
1198 (gt_pch_restore): Likewise.
1199
1200 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
1201
1202 * config/alpha/alpha.c: Fix comment typos.
1203 * config/alpha/elf.h: Likewise.
1204 * config/arm/arm.c: Likewise.
1205 * config/arm/arm.h: Likewise.
1206 * config/arm/arm.md: Likewise.
1207 * config/arm/t-arm-coff: Likewise.
1208 * config/arm/t-strongarm-pe: Likewise.
1209 * config/arm/xscale-elf.h: Likewise.
1210 * config/avr/avr.h: Likewise.
1211
1212 2003-07-01 Jeff Law <law@redhat.com>
1213
1214 * stmt.c (any_pending_cleanups): Remove another redundant test.
1215
1216 2003-07-01 David Edelsohn <edelsohn@gnu.org>
1217 J"orn Rennecke <joern.rennecke@superh.com>
1218
1219 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
1220 for MEM case.
1221
1222 2003-07-01 Devang Patel <dpatel@apple.com>
1223
1224 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
1225 (binclstatus): New.
1226 (struct dbx_file): New members - bincl_status, pending_bincl_name and
1227 prev.
1228 (pending_bincls): New.
1229 (dbxout_init): Initialize new dbx_file members.
1230 (dbxout_start_source_file): Same.
1231 (emit_bincl_stab): New function.
1232 (emit_pending_bincls): Same.
1233 (emit_pending_bincls_if_required): Same.
1234 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
1235 processed.
1236 (dbxout_begin_block): Emit pending BINCL stabs.
1237 (dbxout_end_block): Same.
1238 (dbxout_function_decl): Same.
1239 (dbxout_continue): Same.
1240 (dbxout_type): Same.
1241 (dbxout_class_name_qualifiers): Same.
1242 (dbxout_symbol): Same.
1243 (dbxout_symbol_location): Same.
1244 (dbxout_parms): Same.
1245
1246 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1247
1248 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
1249 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
1250
1251 2003-07-01 Andreas Jaeger <aj@suse.de>
1252
1253 * fold-const.c: Convert prototypes to ISO C90.
1254 * function.c: Likewise.
1255 * function.h: Likewise.
1256
1257 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
1258
1259 * doc/contrib.texi: Fix typos.
1260 * doc/invoke.texi: Likewise.
1261 * doc/passes.texi: Likewise.
1262 * doc/sourcebuild.texi: Likewise.
1263 * doc/tm.texi: Likewise.
1264
1265 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
1266
1267 * basic-block.h: Fix comment typos.
1268 * bb-reorder.c: Likewise.
1269 * c-format.c: Likewise.
1270 * cfgcleanup.c: Likewise.
1271 * cfghooks.h: Likewise.
1272 * cfgloop.c: Likewise.
1273 * cfgloopmanip.c: Likewise.
1274 * cfgrtl.c: Likewise.
1275 * cgraph.h: Likewise.
1276 * cgraphunit.c: Likewise.
1277 * combine.c: Likewise.
1278 * convert.c: Likewise.
1279 * dbxout.c: Likewise.
1280 * df.c: Likewise.
1281 * df.h: Likewise.
1282 * diagnostic.c: Likewise.
1283 * dwarf2out.c: Likewise.
1284 * et-forest.h: Likewise.
1285 * flow.c: Likewise.
1286 * fold-const.c: Likewise.
1287 * function.h: Likewise.
1288 * gcov-io.h: Likewise.
1289 * gcov.c: Likewise.
1290 * gcse.c: Likewise.
1291 * genautomata.c: Likewise.
1292 * ggc-common.c: Likewise.
1293 * ggc-page.c: Likewise.
1294 * loop-unroll.c: Likewise.
1295 * loop-unswitch.c: Likewise.
1296 * loop.c: Likewise.
1297 * mips-tfile.c: Likewise.
1298 * optabs.c: Likewise.
1299 * ra-build.c: Likewise.
1300 * ra-colorize.c: Likewise.
1301 * ra-rewrite.c: Likewise.
1302 * ra.h: Likewise.
1303 * regmove.c: Likewise.
1304 * reload.c: Likewise.
1305 * rtlanal.c: Likewise.
1306 * sched-ebb.c: Likewise.
1307 * sched-int.h: Likewise.
1308 * sched-vis.c: Likewise.
1309 * sreal.c: Likewise.
1310 * ssa-ccp.c: Likewise.
1311 * ssa.c: Likewise.
1312 * toplev.c: Likewise.
1313 * tree-inline.c: Likewise.
1314 * value-prof.c: Likewise.
1315 * value-prof.h: Likewise.
1316
1317 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
1318
1319 * rtl.h (emit_line_note_after): Remove.
1320 (emit_note_copy_after, emit_note_copy): New.
1321 * emit-rtl.c (reorder_insns_with_line_notes): Replace
1322 emit_line_note_after with emit_note_copy_after.
1323 (emit_insn_after_with_line_notes): Likewise.
1324 (emit_line_note_after): Kill.
1325 (emit_note_copy_after): New.
1326 (emit_note_copy): New.
1327 * function.c (emit_return_into_block): Use emit_note_copy_after.
1328 (thread_prologue_and_epilogue_insns): Likewise.
1329 * integrate.c (expand_inline_function): Use emit_note_copy.
1330 (copy_insn_list): Likewise.
1331 * unroll.c (copy_loop_body): Likewise.
1332 * cfglayout.c (duplicate_insn_chain): Likewise.
1333
1334 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
1335
1336 * c-tree.h (define_label): Replace filename and lineno arguments
1337 with a location_t.
1338 * c-decl.c (poplevel): Adjust define_label call.
1339 (pop_label_level): Likewise.
1340 (define_label): Replace filename and lineno arguments with a
1341 location_t.
1342 (store_parm_decls): Use DECL_SOURCE_LOCATION.
1343 * c-parse.in (label): Adjust define_label call.
1344
1345 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
1346
1347 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
1348 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
1349 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
1350 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
1351 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
1352
1353 2003-07-01 Andreas Jaeger <aj@suse.de>
1354
1355 * final.c: Convert prototypes to ISO C90.
1356 * flow.c: Likewise.
1357 * flags.h: Likewise.
1358 * gcov-io.c: Likewise.
1359 * gcov-io.h: Likewise.
1360
1361 2003-06-30 Bruno Haible <bruno@clisp.org>
1362
1363 PR middle-end/6578
1364 * libgcc2.c (__subvsi3): Remove simplification that would not work
1365 when subtracting -0x80000000.
1366 (__subvdi3): Remove simplification that would return a wrong result.
1367 (__mulvsi3): Fix overflow check.
1368 (__absvdi2): Fix simplification that would return a wrong result.
1369 (__mulvdi3): Fix overflow check.
1370
1371 2003-06-30 Jeff Law <law@redhat.com>
1372
1373 * stmt.c (any_pending_cleanups): Lose argument THIS_CONTOUR, it
1374 was always passed in the value '1'. Simplify body appropriately.
1375 * tree.h (any_pending_cleanups): Corresponding changes.
1376 * calls.c: (expand_call): Corresponding changes.
1377
1378 2003-06-30 Kazu Hirata <kazu@cs.umass.edu>
1379
1380 * combine.c (distribute_notes): Don't bother REG_WAS_0.
1381 * cse.c (cse_insn): Likewise.
1382 * final.c (final_scan_insn): Likewise.
1383 * jump.c (duplicate_loop_exit_test): Likewise.
1384 * rtl.c (reg_note_name): Remove REG_WAS_0.
1385 * rtl.h (REG_WAS_0): Remove.
1386 * unroll.c (final_reg_note_copy): Don't bother REG_WAS_0.
1387 * config/avr/avr.c (output_movqi): Don't use reg_was_0.
1388 (output_movhi): Likewise.
1389 (output_movsisf): Likewise.
1390 (reg_was_0): Remove.
1391 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't use
1392 REG_WAS_0.
1393 (m68hc11_gen_movqi): Likewise.
1394 * config/vax/vax-protos.h: Remove the prototype for
1395 reg_was_0_p.
1396 * config/vax/vax.c (follows_p): Remove.
1397 (reg_was_0_p): Likewise.
1398 * config/vax/vax.md (movsi): Don't use reg_was_0_p.
1399 (movhi): Likewise.
1400 (movqi): Likewise.
1401 * doc/rtl.texi (REG_WAS_0): Remove.
1402
1403 2003-06-30 Mark Mitchell <mark@codesourcery.com>
1404
1405 * config/rs6000/spe.h (__ev_set_spefscr_frmc): Set the flag.
1406
1407 2003-06-30 Bob Wilson <bob.wilson@acm.org>
1408
1409 * config/xtensa/lib1funcs.asm: Use "xtensa-config.h" from
1410 top-level include directory.
1411 * config/xtensa/lib2funcs.S: Likewise.
1412 * config/xtensa/xtensa.h: Likewise.
1413 * config/xtensa/xtensa-config.h: Remove.
1414 * doc/install.texi: Update location of "xtensa-config.h" header.
1415
1416 2003-06-30 Ulrich Weigand <uweigand@de.ibm.com>
1417
1418 * config/s390/s390.c (s390_extra_constraint): New function.
1419 * config/s390/s390-protos.h (s390_extra_constraint): Declare it.
1420 * config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
1421 * config/s390/s390.c (q_constraint): Remove.
1422 * config/s390/s390-protos.h (q_constraint): Likewise.
1423 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'R', 'S', 'T'.
1424 (EXTRA_ADDRESS_CONSTRAINT): Define.
1425
1426 * config/s390/s390.c (larl_operand): Refuse out-of-range operands.
1427 (DISP_IN_RANGE, s390_short_displacement): New.
1428 (legitimate_reload_operand_p): Support long displacements.
1429 (s390_decompose_address): Likewise.
1430 (legitimize_pic_address): Likewise.
1431 (legitimize_address): Likewise.
1432 (s390_fixup_clobbered_return_reg): Likewise.
1433 (s390_emit_prologue, s390_emit_epilogue): Likewise.
1434 (s390_output_mi_thunk): Likewise.
1435
1436 * config/s390/s390.md (attr "op_type"): Add "RXY", "RSY", "SIY".
1437 (attr "atype", attr "length"): Add defaults for new op_types.
1438 (all insns): Change op_type attribute where appropriate.
1439
1440 ("*movdi_lay", "*movsi_lay", "*extendqidi2", "*extendqisi2"): New insns.
1441 ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", *tmqi_mem",
1442 "*tstsi", "*tstsi_cconly", "*tsthiCCT", "*tsthiCCT_cconly",
1443 "*tsthi", "*tsthi_cconly", "*tstqiCCT", "*tstqiCCT_cconly",
1444 "*tstqi", "*tstqi_cconly", "*cmpsi_ccs_sign", "*cmpsi_ccs",
1445 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu", "*cli",
1446 "movti", "*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
1447 "movqi", "*movstrictqi", "*movstricthi", "movstrictsi",
1448 "*movdf_64", "*movdf_31", "*movsf",
1449 "*load_multiple_si", "*store_multiple_di",
1450 "*sethighqisi", "*sethighhisi", "*sethighqidi_31", "*extendhisi2",
1451 "*la_64", "*la_31", "*la_31_and", "force_la_31",
1452 "*addsi3_carry1_cc", *addsi3_carry1_cconly",
1453 "*addsi3_carry2_cc", *addsi3_carry2_cconly",
1454 "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
1455 "*addsi3_sign", "*addsi3_sub", "addsi3",
1456 "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
1457 "*subsi3_cconly", "*subsi3_sign", "*subsi3_sub", "subsi3",
1458 "mulsi3"
1459 "*andsi3_cc", "*andsi3_cconly", "andsi3",
1460 "*andqi3_ss", "*andqi3_ss_inv",
1461 "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
1462 "*iorqi3_ss", "*iorqi3_ss_inv",
1463 "*xorsi3_cc", "*xorsi3_cconly", "xorsi3",
1464 "*xorqi3_ss", "*xorqi3_ss_inv",
1465 "*tls_load_31"): Add alternatives for long-displacement instructions.
1466
1467 ("*cmpdf_ccs", "*cmpdf_ccs_ibm", "*cmpsf_ccs", "*cmpsf_ccs_ibm",
1468 "*load_multiple_di", "*store_multiple_di",
1469 "*sethighqidi_64", "*zero_extendhisi2_31",
1470 "truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
1471 "adddf3", "*adddf3", "*adddf3_ibm",
1472 "addsf3", "*addsf3", "*addsf3_ibm",
1473 "subdf3", "*subdf3", "*subdf3_ibm",
1474 "subsf3", "*subsf3", "*subsf3_ibm",
1475 "mulsi_6432", "divmoddisi3",
1476 "muldf3", "*muldf3", "*muldf3_ibm",
1477 "mulsf3", "*mulsf3", "*mulsf3_ibm",
1478 "divdf3", "*divdf3", "*divdf3_ibm",
1479 "divsf3", "div*sf3", "*divsf3_ibm",
1480 "sqrtdf2", "sqrtsf2",
1481 "*cjump_long", "*icjump_long", "indirect_jump", "casesi_jump",
1482 "*doloop_si_long", "*doloop_di_long", "bas_64", "bas_31",
1483 "bas_r_64", "bas_r_31", "bas_tls_31", "bas_tls_64"): Adapt memory
1484 and address constraints for instructions that do not accept long
1485 displacements.
1486
1487 2003-06-30 Hartmut Penner <hpenner@de.ibm.com>
1488 Ulrich Weigand <uweigand@de.ibm.com>
1489
1490 * config/s390/2084.md: New file.
1491 * config/s390/s390.md: Include it.
1492 * config/s390/s390.c (s390_adjust_priority): New function.
1493 (TARGET_SCHED_ADJUST_PRIORITY): Define.
1494 (s390_first_cycle_multipass_dfa_lookahead): New function.
1495 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1496 (s390_sched_reorder2): New function.
1497 (TARGET_SCHED_REORDER2): Define.
1498 (s390_adjust_cost): Support PROCESSOR_2084_Z990 cpu type.
1499 (s390_issue_rate): Likewise.
1500
1501 Mon Jun 30 23:47:33 CEST 2003 Jan Hubicka <jh@suse.cz>
1502
1503 * Makefile.in (GTFILES): Add cgraph.h.
1504 * cgraph.c (known_decls): Remove.
1505 (cgraph_hash, cgraph_nodes, cgraph_nodes_queue,
1506 cgraph_varpool_hash, cgraph_varpool_nodes_queue): GTYize.
1507 (cgraph_node): Do not allocate known_decls; use polutate hashtable.
1508 (cgraph_varpool_node): Likewise; add next pointer.
1509 (cgraph_varpool_nodes): New static variable.
1510 * cgraph.h (cgraph_local_info, cgraph_global_info, cgraph_rtl_info,
1511 cgraph_node, cgraph_edge, cgraph_varpool_node, cgraph_nodes, cgraph_n_nodes,
1512 cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): GTYize.
1513 * gengtype.c (open_base_files): Include cgraph.h
1514
1515 2003-06-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1516
1517 * Changelog: Remove ">>>>>>>" from previous change.
1518
1519 2003-06-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1520
1521 * config/cris/cris.c: Fix spelling for "testcase".
1522 * config/cris/cris.h: Likewise.
1523 * config/cris/cris.md: Likewise.
1524 * config/mmix/crti.asm: Likewise.
1525 * config/mmix/mmix.h: Likewise.
1526 * config/mmix/mmix.md: Likewise.
1527
1528 2003-06-30 Kazu Hirata <kazu@cs.umass.edu>
1529
1530 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Make it always
1531 1.
1532
1533 2003-06-30 Ulrich Weigand <uweigand@de.ibm.com>
1534
1535 * config.gcc [s390*-*-*]: Support --with-arch, --with-tune, and
1536 --with-mode configure options.
1537 * config/s390/s390.h (OPTION_DEFAULT_SPECS): Define.
1538 (DRIVER_SELF_SPECS): Define.
1539 * config/s390/linux.h (ASM_SPEC): Pass architecture mode and cpu
1540 architecture to assembler.
1541 (LINK_SPEC): Merge 31-bit and 64-bit variants.
1542 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC, EXTRA_SPECS): Remove.
1543 * config/s390/s390.c (override_options): New default rules for
1544 architecture mode and cpu architecture selection.
1545 * doc/invoke.texi (-mesa, -mzarch, -march, -mtune): Document
1546 new default rules.
1547
1548 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2084_Z990.
1549 * config/s390/s390.md (attr "cpu"): Add "z990" processor type.
1550 * config/s390/s390.c (override_options): Add "z990" to
1551 processor_alias_table.
1552 * doc/invoke.texi (-march): Document "z990" processor type.
1553
1554 * config/s390/s390.c (s390_tune_flags, s390_arch_flags): New variables.
1555 * config/s390/s390.h (s390_tune_flags, s390_arch_flags): Declare.
1556 (enum processor_flags, TARGET_CPU_IEEE_FLOAT, TARGET_CPU_ZARCH,
1557 TARGET_CPU_LONG_DISPLACEMENT, TARGET_LONG_DISPLACEMENT): New.
1558 * config/s390/s390.c (override_options): Replace enum pta_flags by
1559 enum processor_flags. Fill in s390_tune_flags and s390_arch_flags.
1560
1561 * config/s390/s390.c (s390_cpu): Rename to ...
1562 (s390_tune): ... this.
1563 * config/s390/s390.h (s390_cpu, s390_tune): Likewise.
1564 * config/s390/s390.c (s390_issue_rate, override_options): Likewise.
1565 * config/s390/s390.md (attr "cpu"): Likewise.
1566
1567 2003-06-30 Neil Booth <neil@daikokuya.co.uk>
1568
1569 * c-common.c (enum c_language_kind, flag_objc): Remove.
1570 (fix_string_type, check_case_value, c_common_nodes_and_builtins,
1571 c_add_case_label, finish_label_addr_expr, boolean_increment):
1572 Use c_dialect_ macros.
1573 * c-common.h (enum c_language_kind): Extend.
1574 (c_dialect_cxx, c_dialect_objc): New.
1575 (flag_objc): Remove.
1576 (c_common_init_options): Update prototype.
1577 * c-cppbuiltin.c (define__GNUC__, c_cpp_builtins): Use c_dialect_
1578 macros.
1579 * c-decl.c (finsih_decl, grokfield, finish_struct): Use c_dialect_
1580 macros.
1581 * c-format.c (C_STD_VER, C_STD_NAME): Similarly.
1582 * c-lang.c (c_init_options): Remove.
1583 (c_language): Define.
1584 (LANG_HOOKS_INIT_OPTIONS): Use common hook.
1585 * c-lex.c (lex_charconst): Use c_dialect_ macros.
1586 * c-opts.c (lang_flags): Make function-local.
1587 (c_common_init_options): Use c_dialect_ macros. Handle
1588 C++ diagnostic requirements.
1589 (c_common_handle_option, c_common_post_options): Use flag_cxx.
1590 * c-parse.in (init_reswords): Use c_dialect_objc ().
1591 * c-pch.c (get_ident): Use c_language.
1592 * c-pretty-print.c (pp_c_bool_literal): Use c_dialect_ macros.
1593 * c-typeck.c (comptypes, build_c_cast): Similarly.
1594 * objc/objc-lang.c (c_language): Define.
1595 (LANG_HOOKS_INIT_OPTIONS): Use common hook.
1596 (objc_init_options): Remove.
1597
1598 2003-06-30 Kazu Hirata <kazu@cs.umass.edu>
1599
1600 * config/alpha/alpha.h (FUNCTION_ARG_PADDING): Remove.
1601 * config/alpha/unicosmk.h: Don't #undef FUNCTION_ARG_PADDING.
1602
1603 2003-06-30 Wolfgang Bangerth <bangerth@dealii.org>
1604
1605 * doc/sourcebuild.texi: Don't reference gnats.html any more.
1606
1607 2003-06-30 Kazu Hirata <kazu@cs.umass.edu>
1608
1609 * config/h8300/h8300.c (compute_mov_length): Fix length of
1610 mov:SF on H8/300.
1611
1612 2003-06-30 Nick Clifton <nickc@redhat.com>
1613
1614 * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Make defintion
1615 constant.
1616
1617 Mon Jun 30 15:36:29 CEST 2003 Jan Hubicka <jh@suse.cz>
1618
1619 (fyl2x_sfxf3, fyl2x_dfxf3, fscale_sfxf3, fscale_dfxf3): Fix condition.
1620
1621 2003-06-30 Hartmut Penner <hpenner@de.ibm.com>
1622
1623 * config/rs6000/rs6000.c (rs6000_split_altivec_in_gprs): New function.
1624 (altivec_in_gprs_p): New function.
1625
1626 * config/rs6000/rs6000-protos (rs6000_split_altivec_in_gprs): New
1627 prototype.
1628 (altivec_in_gprs_p): New prototype.
1629
1630 * config/rs6000/altivec.md (*movv4si_internal): Change
1631 multi-assembler alternative to '#'. Add postreload splitter to
1632 handle this cases.
1633 (*movv4hi_internal): Likewise.
1634 (*movv4qi_internal): Likewise.
1635 (*movv4sf_internal): Likewise.
1636
1637 2003-06-30 Jason Merrill <jason@redhat.com>
1638
1639 * defaults.h (PUSH_ARGS_REVERSED): Define default here.
1640 * calls.c: Not here.
1641
1642 2003-06-30 Ben Elliston <bje@wasabisystems.com>
1643
1644 * config/arm/arm.c (arm_rtx_costs): Remove #if 0 block.
1645 (bad_signed_byte_operand): Likewise.
1646 (arm_output_epilogue): Likewise.
1647 (arm_final_prescan_insn): Likewise.
1648
1649 2003-06-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1650
1651 * cfgrtl.c (mark_killed_regs): Cast HARD_REGNO_NREGS to int.
1652
1653 2003-06-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1654
1655 * c-pch.c (c_common_write_pch): Flush asm_out_file to allow for
1656 subsequent writes.
1657
1658 Mon Jun 30 10:03:02 CEST 2003 Jan Hubicka <jh@suse.cz>
1659
1660 * cfgrtl.c (verify_flow_info): Accept degenerated condjumps
1661 in cfglayout mode.
1662
1663 Mon Jun 30 09:52:39 CEST 2003 Jan Hubicka <jh@suse.cz>
1664
1665 * i386.c (standard_80387_constant_p): Accept TFmode constants too.
1666 (init_ext_80387_constants): Likewise.
1667 (standard_80387_constant_rtx): Likewise.
1668 * i386.md (atanxf): Disable for TARGET_128BIT_LONG_LONG
1669 (atantf): Disable for !TARGET_128BIT_LONG_LONG
1670 (fyl2x_sfxf3, fyl2x_dfxf3): Accept TFmode operands.
1671 (fyl2x_xfxf3, fyl2x_tfxf3): Enable/disable as needed.
1672 (fscale_sfxf3, fscale_dfxf3): Accept TFmode operands.
1673 (fscale_xfxf3, fscale_tfxf3): Enable/disable as needed.
1674 (frndinttf2): New.
1675 (f2xm1tf2): New.
1676 (exp?f2): Use expsf2_tf when needed.
1677 (exp?f2_tf): New.
1678 (exptf): New.
1679
1680 2003-06-29 Uwe Stieber <uwe@kaos-group.de>
1681
1682 * config.gcc (sh*-*-kaos*): Put tm_file setting in separate case
1683 statement from tmake_file set.
1684
1685 2003-06-29 James E Wilson <wilson@tuliptree.org>
1686
1687 * reload.c (find_reloads): Change push_reloads to push_reload in
1688 comment.
1689 * reload1.c (eliminate_regs): Likewise.
1690 (dump_needs): Delete prototype for deleted function.
1691
1692 2003-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1693
1694 * builtin-attrs.def (gcc_diag, gcc_cdiag, gcc_cxxdiag): New
1695 format attributes.
1696 * c-format.c (enum format_type): Add gcc_diag_format_type,
1697 gcc_cdiag_format_type, and gcc_cxxdiag_format_type.
1698 (gcc_diag_length_specs, gcc_cdiag_length_specs,
1699 gcc_cxxdiag_length_specs, gcc_diag_flag_pairs,
1700 gcc_cdiag_flag_pairs, gcc_cxxdiag_flag_pairs, gcc_diag_flag_specs,
1701 gcc_cdiag_flag_specs, gcc_cxxdiag_flag_specs, gcc_diag_char_table,
1702 gcc_cdiag_char_table, gcc_cxxdiag_char_table): New.
1703 (format_types_orig): Add new data.
1704 (find_char_info_specifier_index, init_dynamic_diag_info): New
1705 functions.
1706 (handle_format_attribute): Update to handle new format attributes.
1707
1708 2003-06-29 Aaron W. LaFramboise <awlaframboise@aol.com>
1709
1710 * config/i386/gthr-win32.h (__GTHREAD_HIDE_WIN32API): Define to 1.
1711
1712 2003-06-29 Dara Hazeghi <dhazeghi@yahoo.com>
1713
1714 * doc/install.texi: Remove install documentation for obsoleted targets
1715 i?86-*-sco, i?86-*-sco3.2v4, powerpcle-*-pe, powerpcle-*-winnt,
1716 arm-*-aof.
1717 Update information about IA64 toolchain, AIX make requirements,
1718 and binutils for m68k-*-hpux and *-*-linuxaout targets.
1719
1720 Mon Jun 30 00:50:43 CEST 2003 Jan Hubicka <jh@suse.cz>
1721
1722 * regmove.c (regmove_optimize): Don't try to make src and dst match
1723 when they are in different modes.
1724
1725 Sun Jun 29 23:06:32 CEST 2003 Jan Hubicka <jh@suse.cz>
1726
1727 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2): Avoid
1728 busy work when builtin is not supported by the backend.
1729
1730 2003-06-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1731
1732 * loop.c (count_one_set): Fix detection of registers set in more
1733 than one basic block.
1734
1735 2003-06-29 Andreas Jaeger <aj@suse.de>
1736
1737 * target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
1738 * system.h: Poison OBJ_FORMAT_ROSE.
1739 * doc/tm.texi (Macros for Initialization): Remove documentatin of
1740 OBJECT_FORMAT_ROSE.
1741 * config/rs6000/lynx.h: Remove undef of OBJECT_FORMAT_ROSE.
1742 * collect2.c: Remove usage of OBJECT_FORMAT_ROSE.
1743
1744 2003-06-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1745
1746 * pa.c (update_total_code_bytes): New function.
1747 (last_address): Number of bytes output for a function and its
1748 associated thunks.
1749 (compute_frame_size): Use BITS_PER_UNIT.
1750 (pa_output_function_epilogue): Compute last_address. Use
1751 update_total_code_bytes.
1752 (output_lbranch): Handle long branch on portable runtime.
1753 (attr_length_millicode_call, attr_length_call,
1754 attr_length_indirect_call): Only use total_code_bytes for calls in
1755 the text section.
1756 (output_call): Only use an indirect call sequence when the target is
1757 not local.
1758 (pa_asm_output_mi_thunk): Handle updating of total_code_bytes. Improve
1759 test to determine when an IA-relative branch can be used. Add various
1760 long branch sequences. Avoid using an indirect branch on all ports
1761 except SOM.
1762
1763 2003-06-29 Ulrich Weigand <uweigand@de.ibm.com>
1764
1765 * expr.c (clear_by_pieces): Fix prototype.
1766
1767 2003-06-29 Andreas Jaeger <aj@suse.de>
1768
1769 * cse.c: Convert prototypes to ISO C90.
1770 * cselib.c: Likewise.
1771 * cselib.h: Likewise.
1772 * dbxout.c: Likewise.
1773 * debug.c: Likewise.
1774 * df.c: Likewise.
1775 * df.h: Likewise.
1776 * dojump.c: Likewise.
1777 * doloop.c: Likewise.
1778 * dominance.c: Likewise.
1779 * dwarf2asm.c: Likewise.
1780 * dwarf2out.c: Likewise.
1781 * dwarf2out.h: Likewise.
1782 * dwarfout.c: Likewise.
1783 * except.c: Likewise.
1784 * except.h: Likewise.
1785 * emit-rtl.c: Likewise.
1786 * et-forest.c: Likewise.
1787 * et-forest.h: Likewise.
1788 * except.c: Likewise.
1789 * explow.c: Likewise.
1790 * expmed.c: Likewise.
1791 * expr.c: Likewise.
1792 * expr.h: Likewise.
1793
1794 2003-06-29 Kazu Hirata <kazu@cs.umass.edu>
1795
1796 * alloc-pool.c: Fix comment formatting.
1797 * bitmap.c: Likewise.
1798 * bitmap.h: Likewise.
1799 * bt-load.c: Likewise.
1800 * builtins.c: Likewise.
1801 * caller-save.c: Likewise.
1802 * cfganal.c: Likewise.
1803 * cfgrtl.c: Likewise.
1804 * collect2.c: Likewise.
1805 * cse.c: Likewise.
1806 * df.c: Likewise.
1807 * diagnostic.c: Likewise.
1808 * dwarf2out.c: Likewise.
1809 * dwarfout.c: Likewise.
1810 * expmed.c: Likewise.
1811 * final.c: Likewise.
1812 * flags.h: Likewise.
1813 * fold-const.c: Likewise.
1814 * gcc.c: Likewise.
1815 * gcov-io.h: Likewise.
1816 * gcov.c: Likewise.
1817 * genattrtab.c: Likewise.
1818 * genautomata.c: Likewise.
1819 * libgcov.c: Likewise.
1820 * mips-tfile.c: Likewise.
1821 * optabs.c: Likewise.
1822 * prefix.c: Likewise.
1823 * rtlanal.c: Likewise.
1824 * stmt.c: Likewise.
1825 * stor-layout.c: Likewise.
1826 * toplev.c: Likewise.
1827 * varasm.c: Likewise.
1828 * vmsdbgout.c: Likewise.
1829
1830 2003-06-29 Kazu Hirata <kazu@cs.umass.edu>
1831
1832 * expr.c (emit_single_push_insn): If padding is needed
1833 downward, adjust the stack pointer first, and then store the
1834 data into the stack location using an offset.
1835
1836 2003-06-29 Andreas Jaeger <aj@suse.de>
1837
1838 * collect2.h: Convert prototypes to ISO C90.
1839 * collect2.c: Likewise.
1840 * conflict.c: Likewise.
1841 * coverage.c: Likewise.
1842 * convert.h: Likewise.
1843 * convert.c: Likewise.
1844
1845 2003-06-29 Nathan Sidwell <nathan@codesourcery.com>
1846
1847 * c-decl.c (c_init_decl_processing): Use a location_t. Set input
1848 filename to <internal>.
1849 * tree.c (make_node): Just copy the current location.
1850
1851 2003-06-29 Eric Botcazou <ebotcazou@libertysurf.fr>
1852
1853 PR optimization/11210
1854 * fold-const (decode_field_reference): Revert 2003-06-26 patch.
1855
1856 2003-06-29 Neil Booth <neil@daikokuya.co.uk>
1857
1858 * toplev.c (flag_dummy): Remove.
1859 (f_options): Restore flag pointers.
1860
1861 2003-06-29 David Edelsohn <edelsohn@gnu.org>
1862
1863 * config/rs6000/rs6000.c (processor_target_table): Add 970.
1864 * config.gcc: Add 970.
1865
1866 2003-06-29 Kazu Hirata <kazu@cs.umass.edu>
1867
1868 * dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X,
1869 -1) with ggc_strdup.
1870 * stmt.c (expand_asm_operands): Likewise.
1871 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
1872
1873 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1874
1875 * config/ip2k/ip2k.c (ip2k_reorg): Use INSN_P instead of its
1876 definition.
1877
1878 2003-06-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1879
1880 * opts.c: Include insn-attr.h.
1881 * Makefile.in (opts.o): Depend on INSN_ATTR_H.
1882
1883 2003-06-27 J"orn Rennecke <joern.rennecke@superh.com>
1884
1885 * flow.c (propagate_one_insn): Use proper test for a register
1886 being part of the return value.
1887
1888 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1889
1890 * config/avr/avr.c: Fix a comment typo.
1891
1892 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1893
1894 * config/avr/avr-protos.h: Replace avr_simplify_comparision_p
1895 with avr_simplify_comparison_p.
1896 * config/avr/avr.c: Likewise.
1897
1898 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1899
1900 * builtins.c: Follow spelling conventions.
1901 * cgraph.c: Likewise.
1902 * cpplex.c: Likewise.
1903 * config/arm/arm.c: Likewise.
1904 * config/arm/iwmmxt.md: Likewise.
1905 * config/c4x/c4x-modes.def: Likewise.
1906 * config/c4x/c4x.c: Likewise.
1907 * config/c4x/c4x.h: Likewise.
1908 * config/c4x/c4x.md: Likewise.
1909 * config/i386/i386-interix.h: Likewise.
1910 * config/mips/mips.h: Likewise.
1911
1912 2003-06-28 Neil Booth <neil@daikokuya.co.uk>
1913
1914 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Predicate
1915 __mc68020__ on TARGET_68020.
1916
1917 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1918
1919 * config/h8300/h8300.c: Fix a comment typo.
1920
1921 2003-06-28 Nathan Sidwell <nathan@codesourcery.com>
1922
1923 * c-parse.in (yylexstring): Use a location_t.
1924
1925 * diagnostic.h (diagnostic_set_info): Replace file and lineno
1926 parameters with a location_t.
1927 * diagnostic.c (diagnostic_set_info): Replace file and lineno
1928 parameters with a location_t.
1929 (inform, warning, pedwarn, error, sorry, fatal_error,
1930 internal_error, warning_with_decl, pedwarn_with_decl,
1931 error_with_decl): Adjust.
1932 * c-error.c (pedwarn_c99): Adjust.
1933 * c-format.c (status_warning): Adjust.
1934 * rtl-error.c (file_and_line_for_asm): Rename to ...
1935 (location_for_asm): Return a location_t.
1936 (diagnostic_for_asm): Adjust.
1937
1938 2003-06-28 Neil Booth <neil@daikokuya.co.uk>
1939
1940 * cpptrad.c (skip_macro_block_comment): New.
1941 (copy_comment): Use it if appropriate.
1942
1943 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1944
1945 * gcse.c (compute_ld_motion_mems): Use INSN_P instead of its
1946 definition.
1947 (store_killed_in_insn): Likewise.
1948 * print-rtl.c (print_rtx): Likewise.
1949 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
1950 * config/m68hc11/m68hc11.c (dead_register_here): Likewise.
1951 (m68hc11_reassign_regs): Likewise.
1952 (m68hc11_reorg): Likewise.
1953
1954 2003-06-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
1955
1956 * diagnostic.c (output_integer_with_precision): New macro.
1957 (output_format): Use it. Handle more format specifiers.
1958 (output_long_decimal): Remove.
1959 (output_unsigned_decimal): Likewise.
1960 (output_long_unsigned_decimal): Likewise.
1961 (output_octal): Likewise.
1962 (output_long_octal): Likewise.
1963 (output_hexadecimal): Likewise.
1964 (output_long_hexadecimal): Likewise.
1965 (output_long_long_decimal): Likewise.
1966
1967 2003-06-28 Andreas Schwab <schwab@suse.de>
1968
1969 * config/ia64/ia64.md: Follow recent emit_note API change.
1970
1971 2003-06-28 Nathan Sidwell <nathan@codesourcery.com>
1972
1973 * c-parse.in (%union): Replace filename & lineno with location.
1974 (save_filename, save_lineno): Remove.
1975 (save_location): New.
1976 (fndef, old_style_parm_decls_1, lineno_datadecl, lineno_decl,
1977 nested_function, notype_nested_function, if_prefix, lineno_stmt,
1978 lineno_label, label): Adjust.
1979
1980 2003-06-28 Jakub Jelinek <jakub@redhat.com>
1981
1982 * builtins.c (c_strlen): Add only_value argument.
1983 Handle COND_EXPR and COMPOUND_EXPR.
1984 (expand_builtin_strlen): Optimize also strlen (i++ ? "foo" : "bar").
1985 Adjust c_strlen callers.
1986 (expand_builtin_strcpy, expand_builtin_strncpy,
1987 expand_builtin_strcmp, expand_builtin_strncmp,
1988 expand_builtin_fputs, expand_builtin_sprintf,
1989 fold_builtin): Adjust c_strlen callers.
1990
1991 2003-06-28 Josef Zlomek <zlomekj@suse.cz>
1992
1993 * bb-reorder.c (find_traces_1_round): Do not send basic block
1994 to next round when we are in the last round.
1995
1996 2003-06-28 Neil Booth <neil@daikokuya.co.uk>
1997
1998 * Makefile.in: Update.
1999 * opts.c: Include tm_p.h.
2000 (handle_options): Make static.
2001 (decode_options): Copied from toplev.c.
2002 * opts.h (decode_options): New.
2003 * toplev.c (parse_options_and_default_flags): Move most to opts.c,
2004 some to...
2005 (general_init): ...here.
2006 (toplev_main): Use decode_options instead.
2007 * toplev.h (save_argc, save_argv): New.
2008
2009 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
2010
2011 * explow.c (find_next_ref): Remove.
2012 * rtl.h: Remove the prototype for find_next_ref.
2013
2014 2003-06-27 Roger Sayle <roger@eyesopen.com>
2015
2016 * config/alpha/alpha.md (anonymous define_split): Adjust emit_note
2017 call to match recent API change.
2018
2019 2003-06-27 Zack Weinberg <zack@codesourcery.com>
2020
2021 * dbxout.c (flag_debug_only_used_symbols): Delete redundant
2022 declaration.
2023
2024 * c-format.c (check_format_string, get_constant)
2025 * cfgrtl.c (rtl_split_edge):
2026 Mark the definition static, matching the forward declaration.
2027
2028 2003-06-27 Gunther Nikl <gni@gecko.de>
2029
2030 * unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
2031
2032 PR target/11014
2033 * config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly
2034 syntax for MIT / MOTOROLA.
2035
2036 PR other/10240
2037 * configure.in: Removed $(XCFLAGS) from BUILD_CFLAGS for build != host.
2038 * configure: Rebuilt.
2039
2040 2003-06-27 Chris Demetriou <cgd@broadcom.com>
2041
2042 * config/mips/mips.c (mips_build_va_list): Make padding in
2043 va_list structure explicit to avoid -Wpadded warnings.
2044
2045 2003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2046
2047 * config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
2048 * config/s390/s390.c (s390_secondary_output_reload_class): New function.
2049 * config/s390/s390-protos.h (s390_secondary_output_reload_class):
2050 Declare it.
2051 * config/s390/s390.md ("reload_outti", "reload_outdi",
2052 "reload_outdf"): New expanders.
2053
2054 * config/s390/s390.md ("movti" + splitters): Handle non-offsettable
2055 memory operands as source.
2056 ("movdi" + splitters): Likewise.
2057 ("movdf" + splitters): Likewise.
2058 * config/s390/s390.c (s390_split_ok_p): New function.
2059 * config/s390/s390-protos.h (s390_split_ok_p): Declare it.
2060
2061 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
2062
2063 * combine.c (force_to_mode): Replace the equality comparison
2064 of INTVALs with a pointer equality comparison.
2065 (simplify_comparison): Likewise.
2066
2067 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
2068
2069 * jump.c (rtx_renumbered_equal_p): Replace an expression that
2070 is known to be 0 with 0.
2071
2072 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
2073
2074 * gcse.c (expr_equiv_p): Replace expressions that are known to
2075 be 0 with 0.
2076
2077 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
2078
2079 * cse.c (fold_rtx): Replace the equality comparison of INTVALs
2080 with a pointer equality comparison.
2081
2082 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
2083
2084 * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
2085 are known to be not equivalent.
2086
2087 2003-06-27 Richard Henderson <rth@redhat.com>
2088
2089 * config/alpha/alpha.c (function_arg): Don't pass small aggregates
2090 in floating point registers. Validate that we don't receive complex
2091 values here. Use #elif.
2092 (return_in_memory, function_value): New.
2093 (alpha_va_arg): Handle complex values as two arguments.
2094 * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory.
2095 (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value.
2096 (SPLIT_COMPLEX_ARGS): New.
2097 * config/alpha/alpha-protos.h: Update.
2098
2099 2003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2100
2101 * ggc-page.c (inverse_table): Change type of mult to size_t.
2102 (compute_inverse): Compute inverse using size_t, not unsigned int.
2103 Compute inverse also for sizes larger than half a machine page.
2104
2105 Fri Jun 27 18:36:12 CEST 2003 Jan Hubicka <jh@suse.cz>
2106
2107 * toplev.c (rest_of_decl_compilation): Only varpoolize argument
2108 when called before cgraph_optimize.
2109
2110 2003-06-27 Zack Weinberg <zack@codesourcery.com>
2111
2112 * config/darwin.h, config/elfos.h, config/i960/i960-coff.h
2113 * config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should
2114 be TARGET_ASM_FILE_START_FILE_DIRECTIVE.
2115
2116 Fri Jun 27 17:41:16 CEST 2003 Jan Hubicka <jh@suse.cz>
2117
2118 * cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
2119 of known_decls.
2120
2121 2003-06-27 Hans-Peter Nilsson <hp@axis.com>
2122
2123 * defaults.h (REGISTER_MOVE_COST): Define default here.
2124 * regclass.c: Don't define default REGISTER_MOVE_COST here.
2125 * reload.c, reload1.c: Ditto.
2126
2127 2003-06-27 Richard Earnshaw <rearnsha@arm.com>
2128
2129 * flags.h: Really install previous change.
2130
2131 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
2132
2133 * rtl.h (emit_note): Remove FILE parameter.
2134 * emit-rtl.c (emit_line_note): Adjust emit_note call.
2135 (emit_note): Remove FILE parameter. Adjust.
2136 * builtins.c (expand_builtin_expect): Adjust emit_note call.
2137 * c-semantics.c (genrtl_scope_stmt): Likewise.
2138 (expand_stmt): Likewise.
2139 * cfglayout.c (reemit_insn_block_notes): Likewise.
2140 (duplicate_insn_chain): Likewise.
2141 * except.c (expand_eh_region_start, expand_eh_region_end,
2142 sjlj_emit_function_enter): Likewise.
2143 * explow.c (probe_stack_range): Likewise.
2144 * expr.c (emit_block_move_via_loop): Likewise.
2145 * function.c (init_function_start, expand_function_start,
2146 expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
2147 * integrate.c (expand_inline_function, copy_insn_list): Likewise.
2148 * reg-stack.c (compensate_edge): Likewise.
2149 * reload1.c (reload): Likewise.
2150 * rtlanal.c (hoist_insn_to_edge): Likewise.
2151 * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
2152 expand_loop_continue_here, expand_end_loop, expand_continue_loop,
2153 expand_exit_loop_top_cond, expand_value_return,
2154 expand_start_bindings_and_block, expand_end_bindings,
2155 expand_decl_cleanup, expand_start_case): Likewise.
2156 * unroll.c (copy_loop_body
2157 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
2158 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2159 * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
2160 rs6000_emit_allocate_stack, rs6000_output_function_prologue,
2161 rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
2162 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2163 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2164
2165 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
2166
2167 * c-tree.h (grokfield): Remove unused filename and line parameters.
2168 * c-decl.c (grokfield): Remove unused filename and line parameters.
2169 * c-parse.in (component_decl): Adjust field grokking rules, adjust
2170 grokfield calls.
2171 (component_declarator): Likewise.
2172 (component_notype_declarator): Likewise.
2173 * objc/objc-act.c (build_module_descriptor): Adjust grokfield
2174 calls.
2175 (build_protocol_template, build_method_prototype_list_template,
2176 build_method_prototype_template, build_category_template,
2177 build_selector_template, build_class_template,
2178 build_super_template, build_ivar_template,
2179 build_ivar_list_template, build_method_list_template,
2180 build_method_template, add_instance_variable): Likewise.
2181
2182 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
2183
2184 * stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and
2185 OP2 are known to be not equivalent.
2186
2187 2003-06-26 Devang Patel <dpatel@apple.com>
2188
2189 * final.c (debug_flush_symbol_queue): New function.
2190 (debug_queue_symbol): New function.
2191 (debug_free_queue): New function.
2192 (debug_nesting): New variable.
2193 (symbol_queue): New variable.
2194 (symbol_queue_index): Same.
2195 (symbol_queue_size): Same.
2196 * debug.h (debug_flush_symbol_queue): New.
2197 (debug_queue_symbol): New.
2198 (debug_free_queue): New.
2199 (debug_nesting): New.
2200 (symbol_queue_index): New.
2201 * dbxout.c (DBXOUT_DECR_NESTING): New macro.
2202 (DBXOUT_DECR_NESTING_AND_RETURN): New macro.
2203 (dbxout_init): Delay symbol output.
2204 (dbxout_global_decl): Save, set and reset TREE_USED bit around
2205 dbxout_symbol() call.
2206 (dbxout_begin_function): Same.
2207 (dbxout_finish): Free symbol queue.
2208 (dbxout_type): Put appropriate symbols in queue.
2209 (dbxout_symbol): Put info for symbol's type in queue.
2210 Decrement/Increment nesting counts flush symbol queue appropriately.
2211 (dbxout_parms): Increment dbxout nesting.
2212 (dbxout_reg_parms): Same.
2213 * flags.h (flag_debug_only_used_symbols): New.
2214 * toplev.c (flag_debug_only_used_symbols): New variable.
2215 (lang_independent_options): Add entries for new option
2216 -feliminate-unused-debug-symbols.
2217 * common.opt: Add entry for -feliminate-unused-debug-symbols.
2218 * opts.c (common_handle_options): Same.
2219 * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as
2220 -feliminate-unused-debug-symbols.
2221 * doc/invoke.texi (Debugging Options): Document
2222 -feliminate-unused-debug-symbols.
2223
2224 2003-06-26 Roger Sayle <roger@eyesopen.com>
2225 Jakub Jelinek <jakub@redhat.com>
2226
2227 * builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to
2228 obtain the format string instead of using TREE_STRING_POINTER and
2229 TREE_STRING_LENGTH. Only optimize sprintf(dst,"%s",src) when the
2230 return value is unused or the length of src is a known constant.
2231
2232 2003-06-26 Richard Henderson <rth@redhat.com>
2233
2234 * config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.
2235
2236 2003-06-26 Richard Henderson <rth@redhat.com>
2237
2238 * config/ia64/ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.
2239 (ia64_split_call): Only load descriptor for GP register inputs.
2240 (ia64_expand_epilogue): Check current_frame_info.mask not
2241 current_function_is_leaf to restore ar.pfs.
2242
2243 2003-06-26 Richard Henderson <rth@redhat.com>
2244
2245 * emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
2246 instead of replacing it.
2247
2248 2003-06-26 Richard Henderson <rth@redhat.com>
2249
2250 * flow.c (propagate_one_insn): Kill function return value
2251 registers across tail calls.
2252
2253 * flow.c (propagate_one_insn): Preserve live-at-end registers
2254 across tail calls.
2255
2256 2003-06-26 J"orn Rennecke <joern.rennecke@superh.com>
2257
2258 * reload.c (can_reload_into): New function.
2259 (push_reload): Use it.
2260
2261 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
2262
2263 * config/h8300/h8300.c (compute_a_rotate_length): Fix the
2264 references to the amount of a rotation.
2265
2266 2003-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
2267
2268 * config/sh/coff.h: Don't include dbxcoff.h.
2269 * config.gcc: List it here.
2270
2271 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
2272
2273 * postreload.c (reload_cse_simplify_set): Call cselib_lookup
2274 earlier. Don't check if SRC is a constant.
2275
2276 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
2277
2278 * Makefile.in (OBJS): Add postreload.o.
2279 Remove cselib.h from the dependency list for reload1.o.
2280 Add a dependency list for postreload.o.
2281 * reload.h: Change the comment for the prototype of
2282 reload_cse_regs.
2283 * reload1.c: Don't include cselib.h.
2284 (reload_cse_regs): Move to postreload.c
2285 (reload_cse_regs_1): Likewise.
2286 (reload_cse_noop_set_p): Likewise.
2287 (reload_cse_simplify_set): Likewise.
2288 (reload_cse_simplify_operands): Likewise.
2289 (RELOAD_COMBINE_MAX_USES): Likewise.
2290 (reload_combine_ruid): Likewise.
2291 (LABEL_LIVE): Likewise.
2292 (reload_combine): Likewise.
2293 (reload_combine_note_use): Likewise.
2294 (reload_combine_note_store): Likewise.
2295 (reg_set_luid): Likewise.
2296 (reg_offset): Likewise.
2297 (reg_base_reg): Likewise.
2298 (reg_mode): Likewise.
2299 (move2add_luid): Likewise.
2300 (move2add_last_label_luid): Likewise.
2301 (MODES_OK_FOR_MOVE2ADD): Likewise.
2302 (reload_cse_move2add): Likewise.
2303 (move2add_note_store): Likewise.
2304 (reload_cse_simplify): Likewise.
2305 * postreload.c: New.
2306
2307 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
2308
2309 * config/avr/avr.c (final_prescan_insn): Remove support for
2310 -mrtl.
2311 * config/avr/avr.h (MASK_RTL_DUMP): Remove.
2312 (TARGET_RTL_DUMP): Likewise.
2313 (TARGET_SWITCHES): Remove -mrtl.
2314
2315 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
2316
2317 * config/h8300/h8300-protos.h: Change emit_a_rotate to
2318 output_a_rotate. Add a prototype for compute_a_rotate_length.
2319 * config/h8300/h8300.c (emit_a_rotate): Change to
2320 output_a_rotate.
2321 (compute_a_rotate_length): New.
2322 (h8300_adjust_insn_length): Remove.
2323 * config/h8300/h8300.h (ADJUST_INSN_LENGTH): Remove.
2324 * config/h8300/h8300.md (adjust_length): Remove.
2325 (*rotlqi3_1): Use output_a_rotate and compute_a_rotate_length.
2326 (*rotlhi3_1): Likewise.
2327 (*rotlsi3_1): Likewise.
2328
2329 2003-06-26 Roger Sayle <roger@eyesopen.com>
2330 Richard Henderson <rth@redhat.com>
2331
2332 * builtins.c (expand_builtin_mathfn): Always stabilize the argument
2333 list against re-evaluation. If expand_unop fails, call expand_call
2334 with the stabilized argument list rather than return NULL_RTX.
2335 (expand_builtin_mathfn2): Likewise, always stabilize the argument
2336 list, and call expand_call ourselves if expand_binop fails.
2337
2338 2003-06-26 Eric Botcazou <ebotcazou@libertysurf.fr>
2339
2340 PR optimization/11210
2341 * fold-const (decode_field_reference): Strip only NOPs that
2342 don't affect the sign.
2343
2344 2003-06-26 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
2345
2346 * gcc/config/sh/sh.md (push_fpscr): Enable for TARGET_SH2E.
2347 (pop_fpscr, fpu_switch): Likewise.
2348
2349 2003-06-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2350
2351 * value-prof.c: New.
2352 * value-prof.h: New.
2353 * Makefile.in (value-prof.o): New.
2354 (LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta
2355 (profile.o): Add value-prof.h and tree.h dependency.
2356 * flags.h (flag_profile_values): Declare.
2357 * gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS):
2358 Add new counters.
2359 (GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE,
2360 GCOV_COUNTER_V_DELTA): New counter sections.
2361 (__gcov_merge_single, __gcov_merge_delta): Declare.
2362 * flow.c (mark_used_regs): Set subregs_of_mode only when the
2363 structure is initialized.
2364 * libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions.
2365 * profile.c: Include value-prof.h and tree.h.
2366 (gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler,
2367 gen_const_delta_profiler, instrument_values): New static functions.
2368 (get_exec_counts): Fix comment.
2369 (branch_prob): Invoke instrument_values.
2370 * toplev.c (flag_profile_values): New flag.
2371 * doc/invoke.texi (-fprofile-values): Document.
2372
2373 2003-06-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2374
2375 * Makefile.in (cfgrtl.o): Add expr.h dependency.
2376 * cfgrtl.c: Include expr.h.
2377 (mark_killed_regs, safe_insert_insn_on_edge): New
2378 functions.
2379 * config/i386/i386.h (AVOID_CCMODE_COPIES): Define.
2380 * basic-block.h (safe_insert_insn_on_edge): Declare.
2381
2382 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
2383
2384 * c-opts.c (missing_arg): Make non-static.
2385 (c_common_handle_option): Don't check for missing arguments.
2386 * opts.c (handle_option): Check for missing arguments.
2387
2388 2003-06-26 David Edelsohn <edelsohn@gnu.org>
2389
2390 * config/rs6000/power4.md (power4-veccomplex): Correct latency.
2391
2392 2003-06-25 Loren James Rittle <ljrittle@acm.org>
2393
2394 * configure.in (ld_vers): Portability [sed].
2395 * configure: Regenerate with autoconf213.
2396
2397 2003-06-25 H.J. Lu <hongjiu.lu@intel.com>
2398
2399 * doc/extend.texi: Document new builtin functions for Intel
2400 Prescott New Intrunctions.
2401
2402 * doc/invoke.texi: Document new command-line options, -mpni and
2403 -mno-pni, for Intel Prescott New Intrunctions.
2404
2405 * config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*.
2406
2407 * config/i386/i386.c (override_options): Turn on MASK_SSE2
2408 for -mpni. Turn on MASK_SSE for -msse2.
2409 (bdesc_2arg): Add PNI builtins with 2 args.
2410 (bdesc_1arg): Add PNI builtins with 1 arg.
2411 (ix86_init_mmx_sse_builtins): Handle PNI builtins.
2412 (ix86_expand_builtin): Likewise.
2413
2414 * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A,
2415 MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT,
2416 MASK_TLS_DIRECT_SEG_REFS): Renumbered.
2417 (TARGET_PNI): New.
2418 (TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add
2419 -mpni and -mno-pni.
2420 (TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI.
2421 (ix86_builtins): Add PNI builtins.
2422 (config/i386/i386.md): Add PNI patterns.
2423
2424 * config/i386/pmmintrin.h: New file.
2425
2426 2003-06-25 Kazu Hirata <kazu@cs.umass.edu>
2427
2428 * config/h8300/h8300.md (call): Fix the insn lengths.
2429 (call_value): Likewise.
2430
2431 Thu Jun 26 00:13:35 CEST 2003 Jan Hubicka <jh@suse.cz>
2432
2433 * c-common.c (handle_used_attribute): Use mark_referenced.
2434 * varasm.c (mark_referenced): Break out from ...
2435 (assemble_name): ... here.
2436 * tree.h (mark_referenced): Declare.
2437
2438 2003-06-25 Wolfgang Bangerth <bangerth@dealii.org>
2439
2440 * gccbug.in: Add PCH to list of categories.
2441
2442 2003-06-25 Martin Schaffner <schaffner@gmx.li>
2443
2444 * cppfiles.c: Clarify comments.
2445 * cpphash.h: Likewise.
2446 * cpplib.h: Likewise.
2447 * cppmacro.c: Likewise.
2448 * mkdeps.h: Likewise.
2449
2450 2003-06-25 Neil Booth <neil@daikokuya.co.uk>
2451
2452 * c-opts.c (complain_wrong_lang, write_langs): Remove.
2453 (c_common_handle_option): Complaints about wrong language are
2454 handled in opts.c now.
2455 * opts.c (complain_wrong_lang, write_langs, handle_options): New.
2456 (find_opt): Fix thinko.
2457 (handle_option): Update prototype. Complain about switches for
2458 a different front end.
2459 * opts.h (lang_names, handle_options): New.
2460 (handle_option): Remove.
2461 * opts.sh: Write out language names array.
2462 * toplev.c (parse_options_and_default_flags): Use handle_options.
2463
2464 2003-06-25 H.J. Lu <hongjiu.lu@intel.com>
2465
2466 * config/i386/i386.c (MASK_SSE1): Removed.
2467 (MASK_SSE164): Removed.
2468 (MASK_SSE264): Removed.
2469 (bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace
2470 MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264
2471 with MASK_SSE2 | MASK_64BIT.
2472 (bdesc_1arg): Likewise.
2473 (ix86_init_mmx_sse_builtins): Likewise.
2474
2475 * config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2.
2476 (TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for
2477 -msse2.
2478
2479 2003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2480
2481 * hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros.
2482 (HOST_WIDE_INT_PRINT_DEC_SPACE,
2483 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
2484 HOST_WIDEST_INT_PRINT_DEC_SPACE,
2485 HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete.
2486 (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C,
2487 HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in
2488 terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C.
2489
2490 * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT.
2491 * ra-debug.c (dump_static_insn_cost): Likewise.
2492
2493 2003-06-26 Nick Clifton <nickc@redhat.com>
2494
2495 * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead
2496 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
2497 Replace occurances of '???' with 'XXX' incase they are
2498 mistaken for trigraphs.
2499 (THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address
2500 does not have a register for the first operand.
2501
2502 2003-06-25 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
2503
2504 * config/sh/sh.c (sh_register_move_cost):
2505 Add case for moving between MAC_REGS.
2506
2507 2003-06-25 Zack Weinberg <zack@codesourcery.com>
2508
2509 PR 10178
2510 * langhooks.h (struct lang_hooks): Add no_body_blocks bool.
2511 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false.
2512 * c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS
2513 to true.
2514 * stmt.c (is_body_block): If lang_hooks.no_body_blocks, always
2515 return 0.
2516
2517 2003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2518
2519 * Makefile.in (bt-load.o): Depend on $(TM_P_H).
2520 * bt-load.c: Include "tm_p.h".
2521
2522 2003-06-25 Kazu Hirata <kazu@cs.umass.edu>
2523
2524 * config/h8300/h8300.c (compute_mov_length): Adjust for the
2525 new optimization.
2526 * config/h8300/h8300.md (*movsi_h8300): Optimize the load of
2527 an SImode constant whose upper and lower are the same.
2528
2529 Wed Jun 25 11:31:59 CEST 2003 Jan Hubicka <jh@suse.cz>
2530
2531 * varasm.c (assemble_name): Mark needed variables even when
2532 global info is ready.
2533
2534 2003-06-24 Jerry Quinn <jlquinn@optonline.net>
2535
2536 PR other/11280
2537 * gcc/doc/invoke.texi (Optimization Options): Remove -Os from
2538 -freorder-functions description.
2539
2540 2003-06-25 Josef Zlomek <zlomekj@suse.cz>
2541
2542 * dwarf2out.c (gen_field_die): Return if type of decl is error mark.
2543
2544 2003-06-25 Neil Booth <neil@daikokuya.co.uk>
2545
2546 * opts.c (common_handle_option): Add missing break;s.
2547
2548 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
2549
2550 * config/h8300/h8300-protos.h: Add a prototype for
2551 compute_mov_length.
2552 * config/h8300/h8300.c (compute_mov_length): New.
2553 * config/h8300/h8300.md (*movqi_h8300): Use it.
2554 (*movqi_h8300hs): Likewise.
2555 (movstrictqi): Likewise.
2556 (*movhi_h8300): Likewise.
2557 (*movhi_h8300hs): Likewise.
2558 (movstricthi): Likewise.
2559 (*movsi_h8300): Likewise.
2560 (*movsf_h8300): Likewise.
2561 (*movsi_h8300hs): Likewise.
2562 (*movsf_h8300hs): Likewise.
2563
2564 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
2565
2566 * jump.c (next_nondeleted_insn): Remove.
2567 * rtl.h: Remove the prototype for next_nondeleted_insn.
2568
2569 2003-06-24 Roger Sayle <roger@eyesopen.com>
2570
2571 PR optimization/11311
2572 * builtins.c (powi_cost): Fix typo. The number of multiplications
2573 required is the number to reduce the argument, result, plus the
2574 cost of calculating the residual, val [not n, the original value].
2575
2576 2003-06-24 Roger Sayle <roger@eyesopen.com>
2577
2578 * config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.
2579
2580 2003-06-24 Richard Henderson <rth@redhat.com>
2581 (blame to: Loren James Rittle <ljrittle@acm.org>)
2582
2583 * real.h (ieee_extended_intel_96_round_53_format): New.
2584 * real.c (ieee_extended_intel_96_round_53_format): New.
2585 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Use it
2586 for XFmode and TFmode.
2587
2588 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
2589
2590 * config/h8300/h8300.md (4 anonymous patterns): Give internal
2591 names.
2592 (movsi_h8300): Change the name to *movsi_h8300.
2593 (movsi_h8300hs): Change the name to *movsi_h8300hs.
2594 (movsf_h8300): Change the name to *movsf_h8300.
2595 (movsf_h8300hs): Change the name to *movsf_h8300hs.
2596
2597 2003-06-24 Jakub Jelinek <jakub@redhat.com>
2598
2599 * builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in
2600 src twice.
2601
2602 2003-06-24 J"orn Rennecke <joern.rennecke@superh.com>
2603
2604 Back out these patches:
2605 2003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
2606 * sh.h (OLD_ARG_MODE): New macro.
2607 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
2608 (FUNCTION_ARG_1): Break out of:
2609 (FUNCTION_ARG). Use OLD_ARG_MODE.
2610 2003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2611 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
2612 of the generated register.
2613
2614 * sh.h (FUNCTION_ARG_SCmode_WART): Define.
2615 (FUNCTION_ARG): Unless FUNCTION_ARG_SCmode_WART is defined and
2616 an even number of floating point regs are in use, use the same
2617 sequence of argument passing registers for SCmode as would be
2618 used for two SFmode values.
2619 * sh.c (sh_va_arg): If FUNCTION_ARG_SCmode_WART is defined,
2620 swap real / imaginary parts in incoming SCmode values passed
2621 in registers.
2622
2623 2003-06-24 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
2624
2625 PR target/11260
2626 * config/alpha/alpha.md (sqrtdf2): Fix operand substitution.
2627
2628 Tue Jun 24 18:49:33 CEST 2003 Jan Hubicka <jh@suse.cz>
2629
2630 * Makefile.in (cgraph.o): Depend on output.h, not depend on
2631 tree-inline.h
2632 * cgraph.c: Do not include tree-inline.h; include output.h
2633 (known_fns): Rename to ...
2634 (known_decls): ... this one; update all uses.
2635 (cgraph_varpool_hash): New static variable.
2636 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): New global
2637 variables.
2638 (cgraph_varpool_hash_node, eq_cgraph_varpool_node, cgraph_varpool_node,
2639 cgraph_varpool_node_for_identifier, cgraph_varpool_mark_needed_node,
2640 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
2641 New functions.
2642 * cgraph.h (cgraph_varpool_node): New structure.
2643 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): Declare.
2644 (cgraph_varpool_node, cgraph_varpool_node_for_identifier,
2645 cgraph_varpool_finalize_decl, cgraph_varpool_mark_needed_node,
2646 cgraph_varpool_asemble_pending_decls): Declare.
2647 * cgraphunit.c (record_call_1): Notice variable references.
2648 (cgraph_finalize_compilation_unit): Assemble pending variables.
2649 * toplev.c (wrapup_global_declarations): Use varpool.
2650 (compile_file): Assemble pending declarations.
2651 (rest_of_decl_compilation): Use varpool in unit-at-a-time mode.
2652 * varasm.c (assemble_name): Notice varpool references.
2653
2654 Tue Jun 24 13:52:11 CEST 2003 Jan Hubicka <jh@suse.cz>
2655
2656 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.
2657 * langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable.
2658 * varasm.c (assemble_variable): Call prepare_assemble_variable.
2659
2660 2003-06-23 Roger Sayle <roger@eyesopen.com>
2661
2662 * builtins.c (expand_builtin): Use expand_builtin_pow to expand
2663 calls for pow, powf, powl and their __builtin_ variants.
2664 (expand_builtin_pow): If the second argument is a constant
2665 integer and compiling with -ffast-math, use expand_powi to
2666 generate RTL if powi_cost is less than POWI_MAX_MULTS.
2667 (powi_cost): New function to return the number of multiplications
2668 necessary to evaluate an Nth power, for integer constant N.
2669 (expand_powi): New function to expand the RTL for evaluating
2670 the Nth power of a floating point value, for integer constant N.
2671
2672 * doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
2673
2674 Mon Jun 23 23:07:35 CEST 2003 Jan Hubicka <jh@suse.cz>
2675
2676 * cgraph.c (cgraph_nodes_queue): Declare.
2677 (eq_node): Take identifier as p2.
2678 (cgraph_node): Update htab_find_slot_with_hash call.
2679 (cgraph_node_for_identifier): New.
2680 (cgraph_mark_needed_node): Move here from cgraphunit.c.
2681 * cgraph.h (cgraph_nodes_queue): Declare.
2682 (cgraph_node_for_identifier): Declare.
2683 * cgraphunit.c (cgraph_finalize_function): Collect entry points here
2684 instead of in cgraph_finalize_compilation_unit; constructors and
2685 destructors are entry points.
2686 (cgraph_finalize_compilation_unit): Reorganize debug outout;
2687 examine nested functions after lowerng; call collect_functions hook.
2688 (cgraph_mark_local_functions): DECL_COMDAT functions are not local.
2689 (cgraph_finalize_compilation_unit): Do not collect entry points.
2690 * varasm.c: Include cgraph.h
2691 (assemble_name): Mark referenced identifier as needed.
2692
2693 * cgraphunit.c (record_call_1): Use get_callee_fndecl.
2694
2695 2003-06-23 Jakub Jelinek <jakub@redhat.com>
2696
2697 * config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0,
2698 just SYMBOL_REF.
2699 * config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31
2700 mode, as it requires pic register loaded.
2701
2702 * varasm.c (resolve_unique_section): Remove prototype. No longer
2703 static.
2704 * tree.h (resolve_unique_section): New prototype.
2705
2706 2003-06-23 Andreas Schwab <schwab@suse.de>
2707
2708 PR debug/9905
2709 * dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
2710 recursing through first argument.
2711
2712 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2713
2714 * ChangeLog.1: Fix a typo.
2715 * cfgrtl.c: Fix comment typos.
2716 * dwarf2out.c: Likewise.
2717 * expmed.c: Likewise.
2718 * genrecog.c: Likewise.
2719 * jump.c: Likewise.
2720 * rtlanal.c: Likewise.
2721 * ssa-dce.c: Likewise.
2722 * toplev.c: Likewise.
2723
2724 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2725
2726 * doc/extend.texi: Fix typos.
2727 * doc/md.texi: Likewise.
2728 * doc/tm.texi: Likewise.
2729
2730 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2731
2732 * basic-block.h: Fix comment formatting.
2733 * bt-load.c: Likewise.
2734 * builtins.c: Likewise.
2735 * c-common.c: Likewise.
2736 * c-common.h: Likewise.
2737 * c-format.c: Likewise.
2738 * coverage.c: Likewise.
2739 * cpplib.h: Likewise.
2740 * cpppch.c: Likewise.
2741 * dbxout.c: Likewise.
2742 * diagnostic.c: Likewise.
2743 * dwarf2out.c: Likewise.
2744 * expr.c: Likewise.
2745 * fold-const.c: Likewise.
2746 * function.c: Likewise.
2747 * gcc.c: Likewise.
2748 * gcov-io.c: Likewise.
2749 * gcov-io.h: Likewise.
2750 * gcov.c: Likewise.
2751 * profile.c: Likewise.
2752 * real.h: Likewise.
2753 * sched-deps.c: Likewise.
2754
2755 2003-06-23 Roger Sayle <roger@eyesopen.com>
2756 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2757
2758 * doc/contrib.texi (Contributors): Add a note on testing and
2759 remove duplicates from testers list.
2760
2761 2003-06-23 Nick Clifton <nickc@redhat.com>
2762
2763 * read-rtl.c (read_braced_string): Check for EOF. If
2764 encountered issue an error message.
2765
2766 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2767
2768 * doc/invoke.texi: Document dump options, dT and dW.
2769
2770 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2771
2772 * genrecog.c (pred_table): Remove the entry for
2773 mode_independent_operand.
2774 * recog.c (next_insns_test_no_inequality): Remove.
2775 (mode_independent_operand): Likewise.
2776 * recog.h: Remove the prototype for mode_independent_operand.
2777
2778 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2779
2780 * config/h8300/h8300.c (output_simode_bld): Use rotxl.l to
2781 store into bit 0.
2782 * config/h8300/h8300.md (*extzv_1_r_h8300hs): Change cc of the
2783 second alternative to set_znv.
2784 (*extzv_1_r_inv_h8300hs): Likewise.
2785
2786 2003-06-23 Hans-Peter Nilsson <hp@bitrange.com>
2787
2788 * configure.in (in_tree_gas): Find out here whether GAS is ELF,
2789 set in_tree_gas_is_elf accordingly.
2790 (in_tree_ld): Find out whether LD emulation is ELF, set
2791 in_tree_ld_is_elf accordingly.
2792 (gcc_cv_as_subsections, gcc_cv_as_hidden, gcc_cv_as_leb128)
2793 (gcc_cv_as_eh_frame, gcc_cv_as_shf_merge)
2794 (gcc_cv_as_dwarf2_debug_line, gcc_cv_as_gdwarf2_flag)
2795 (gcc_cv_as_gstabs_flag): Use $in_tree_gas_is_elf instead of
2796 grepping gas/Makefile.
2797 (gcc_cv_ld_ro_rw_mix, gcc_cv_ld_eh_frame_hdr, gcc_cv_ld_pie): Use
2798 $in_tree_ld_is_elf instead of grepping ld/Makefile.
2799 * configure: Regenerate.
2800
2801 2003-06-22 Roger Sayle <roger@eyesopen.com>
2802
2803 * builtins.c (expand_builtin_mathfn_2): Use tree_cons to build
2804 up the stabilized argument list, not build_tree_list.
2805 (expand_builtin_strcpy): Construct new argument list manually
2806 instead of using chainon to modify the original argument list.
2807 (expand_builtin_stpcpy): Construct new argument list manually
2808 instead of using copy_list and chainon.
2809 (expand_builtin_sprintf): New function. Optimize calls to
2810 sprintf when the format is "%s" or doesn't contain a '%'.
2811 (expand_builtin): Expand BUILT_IN_SPRINTF using the new function
2812 expand_builtin_sprintf.
2813
2814 2003-06-22 Andreas Schwab <schwab@suse.de>
2815
2816 * function.c (set_insn_locators): Mark as unused.
2817
2818 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
2819
2820 * common.opt: Add -finline-limit.
2821 * opts.c (common_handle_options): Handle it.
2822 * opts.sh: Temporary kludge for -finline-limit.
2823 * toplev.c (decode_f_option, independent_decode_option): Die.
2824 (parse_options_and_default_flags): No independent_decode_option.
2825
2826 2003-06-22 Andreas Jaeger <aj@suse.de>
2827
2828 * calls.c (emit_call_1): Readd lost ATTRIBUTE_UNUSED.
2829
2830 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2831
2832 * doc/invoke.texi: Document dumps, .btl, .cfg, and .bypass.
2833
2834 2003-06-22 Andreas Schwab <schwab@suse.de>
2835
2836 * doc/invoke.texi: Remove leading `-' from options in index.
2837
2838 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2839
2840 * bt-load.c: Follow spelling conventions.
2841
2842 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2843
2844 * expr.c (emit_move_insn_1): Fix a comment typo.
2845
2846 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2847
2848 * doc/invoke.texi: Alphabetize dump options.
2849
2850 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2851
2852 * doc/invoke.texi: Remove a duplicate -dk.
2853
2854 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2855
2856 * doc/invoke.texi: Update dump file names.
2857
2858 2003-06-22 Zack Weinberg <zack@codesourcery.com>
2859
2860 * config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
2861 and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
2862
2863 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2864
2865 * doc/rtl.texi: Fix the @findex for pre_modify.
2866
2867 2003-06-22 Andreas Jaeger <aj@suse.de>
2868
2869 * caller-save.c: Convert to ISO C90.
2870 * calls.c: Likewise.
2871 * cfg.c: Likewise.
2872 * cfganal.c: Likewise.
2873 * cfgbuild.c: Likewise.
2874 * cfgcleanup.c: Likewise.
2875 * cfghooks.c: Likewise.
2876 * cfglayout.c: Likewise.
2877 * cfglayout.h: Likewise.
2878 * cfgloop.c: Likewise.
2879 * cfgloop.h: Likewise.
2880 * cfgloopanal.c: Likewise.
2881 * cfgloopmainip.c: Likewise.
2882 * cfgrtl.c: Likewise.
2883
2884 2003-06-22 Richard Earnshaw <rearnsha@arm.com>
2885
2886 * arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
2887 64-bit alignment.
2888
2889 2003-06-22 Richard Earnshaw <rearnsha@arm.com>
2890
2891 * arm.md (all call_value patterns): Remove register constraints on
2892 value operand.
2893
2894 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
2895
2896 * common.opt: More -f switches.
2897 * opts.c (common_handle_options): Handle them.
2898 * toplev.c (time_report): Make extern.
2899 (f_options): USe flag_dummy.
2900 (decode_f_option): No need to use f_options now.
2901 * toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
2902 flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
2903
2904 2003-06-22 Andreas Jaeger <aj@suse.de>
2905
2906 * c-lex.c: Convert to ISO C90.
2907 * c-objc-common.c: Likewise.
2908 * c-opts.c: Likewise.
2909 * c-pch.c: Likewise.
2910 * c-ppoutput.c: Likewise.
2911 * c-pragma.h: Likewise.
2912 * c-pretty-print.c: Likewise.
2913 * c-pretty-print.h: Likewise.
2914 * c-semantics.c: Likewise.
2915 * c-tree.h: Likewise.
2916 * c-typeck.c: Likewise.
2917
2918 * c-lang.c: Convert to ISO C90.
2919
2920 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
2921
2922 * opts.c (find_opt): Fix to always guarantee a find of a
2923 switch with joined parameter.
2924 * opts.h (struct cl_option): New member back_chain.
2925 * opts.sh: Update to calculate and add back_chain member.
2926
2927 2003-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2928
2929 * diagnostic.h (output_host_wide_integer): Declare.
2930 * diagnostic.c (output_long_long_decicaml): New function.
2931 (output_host_wide_integer): Likewise.
2932 (output_format): Use them. Handle "%ll" and "%w".
2933
2934 2003-06-21 Jason Thorpe <thorpej@wasabisystems.com>
2935
2936 * config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
2937
2938 2003-06-21 Zack Weinberg <zack@codesourcery.com>
2939
2940 * aclocal.m4 (gcc_AC_C_CHARSET): Delete.
2941 * configure.in: Don't use gcc_AC_C_CHARSET.
2942 * configure, config.in: Regenerate.
2943 * config/i370/i370.c, config/i370/i370.h: Use
2944 (HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
2945 instead of HOST_EBCDIC or !HOST_EBCDIC. Clarify comments a tad.
2946
2947 2003-06-21 Neil Booth <neil@daikokuya.co.uk>
2948
2949 * Makefile.in: Update.
2950 * common.opt: New switches.
2951 * opts.c: Include diagnostic.h.
2952 (common_handle_option): Handle new switches.
2953 * toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
2954 flag_if_conversion2, flag_delete_null_pointer_checks,
2955 flag_rerun_cse_after_loop): Make extern.
2956 (flag_dummy): New.
2957 (f_options): Update to use flag_dummy for moved options.
2958 (decode_f_option): Some switches moved to opts.c.
2959 * toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
2960 flag_if_conversion2, flag_delete_null_pointer_checks,
2961 flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
2962 flag_tracer, flag_thread_jumps, flag_unroll_loops,
2963 flag_unroll_all_loops, flag_unswitch_loops): New.
2964
2965 Sat Jun 21 13:41:00 CEST 2003 Jan Hubicka <jh@suse.cz>
2966
2967 * i386.c (ix86_va_arg): Fix allocation of temporary slot.
2968
2969 2003-06-20 Kazu Hirata <kazu@cs.umass.edu>
2970
2971 * config/h8300/h8300-protos.h: Add a prototype for
2972 same_cmp_preceding_p.
2973 * config/h8300/h8300.c (same_cmp_preceding): New.
2974 * config/h8300/h8300.md: Extend peephole2's that transform
2975 compare:SI into shorter sequences so that they can deal with
2976 signed comparisons.
2977
2978 2003-06-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2979
2980 * doc/contrib.texi (Contributors): Use Windows instead of Win32.
2981
2982 Update Andreas Jaeger's entry.
2983
2984 Merge the two entries of Kaveh Ghazi, David Edelsohn, and
2985 Loren J. Rittle.
2986
2987 2003-06-21 Nathanael Nerode <neroden@gcc.gnu.org>
2988
2989 * mkconfig.sh: Add multiple inclusion guards to generated headers.
2990
2991 2003-06-20 Neil Booth <neil@daikokuya.co.uk>
2992
2993 * c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
2994 * common.opt: Add remaining -W options and -g.
2995 * diagnostic.c (warnings_are_errors): Remove.
2996 * flags.h: Make most warning flags boolean.
2997 * opts.c (common_handle_option): Handle remaining -W options, and -g.
2998 Move many warning flags from toplev.c, making them boolean.
2999 * toplev.c: Remove many warning flags.
3000 (decode_W_option): Remove.
3001 (decode_g_option): Make extern. Error on unknown switch.
3002 (lang_independent_W_options): Use warn_dummy.
3003 (independent_decode_option): Just handle -f switches now.
3004 * toplev.h (decode_g_option): New.
3005
3006 2003-06-20 Aldy Hernandez <aldyh@redhat.com>
3007
3008 PR/11092
3009 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
3010 vectors.
3011
3012 2003-06-20 Kelley Cook <kelleycook@wideopenwest.com>
3013
3014 * opts.sh: Tweak awk script for portability.
3015
3016 2003-06-20 Mark Mitchell <mark@codesourcery.com>
3017
3018 PR c++/10888
3019 * tree-inline.c (expand_call_inline): Do not warn about failing to
3020 inline functions declared in system headers.
3021 * doc/invoke.texi (-Winline): Expand on documentation.
3022
3023 2003-06-20 Richard Henderson <rth@redhat.com>
3024
3025 * config/alpha/alpha.c (alpha_file_start): Disable
3026 file_start_file_directive for ELF and not MDEBUG.
3027
3028 2003-06-20 J"orn Rennecke <joern.rennecke@superh.com>
3029
3030 * sh.h (ROUND_TYPE_ALIGN): Remove.
3031
3032 2003-06-20 Richard Henderson <rth@redhat.com>
3033
3034 * hooks.c (hook_int_void_no_regs): Rename from
3035 hook_reg_class_void_no_regs; change return type.
3036 * hooks.h: Update.
3037 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
3038 * target.h (branch_target_register_class): Change return type to int.
3039 Add documentation.
3040 * config/sh/sh.c (sh_target_reg_class): Change return type.
3041 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
3042
3043 2003-06-20 Andreas Tobler <toa@pop.agri.ch>
3044
3045 * c-format.c: Change _Bool to bool reverting part of the last
3046 patch.
3047
3048 2003-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3049
3050 * som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
3051 strip name encoding.
3052
3053 2003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3054
3055 * configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
3056 * configure: Regenerate.
3057 Fixes PR driver/9362.
3058
3059 2003-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3060
3061 * config/alpha/alpha.c (alpha_file_start): Fix typo.
3062
3063 2003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3064
3065 * config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
3066 to ASM_OUTPUT_SOURCE_LINE.
3067
3068 2003-06-20 Daniel Egger <degger@fhm.edu>
3069 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3070
3071 * doc/install.texi (Building): Correct and improve statement
3072 about parallel builds.
3073
3074 2003-06-20 Andreas Jaeger <aj@suse.de>
3075
3076 * c-common.c: Change _Bool to bool reverting part of the last
3077 patch.
3078
3079 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
3080
3081 * tree.h (expand_function_end): Remove all parameters.
3082 * function.c (expand_function_end): Remove all parameters.
3083 Use input_location. Never expand_end_bindings.
3084 * c-decl.c (c_expand_body_1): Adjust expand_function_end call.
3085 * coverage.c (create_coverage): Likewise.
3086
3087 2003-06-20 Nick Clifton <nickc@redhat.com>
3088
3089 * doc/extend.texi (ARM Built-in Functions): New node. Document
3090 ARM builtin functions for iWMMXt support.
3091
3092 2003-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
3093
3094 * doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
3095 SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
3096 (--with-as): Add @anchor.
3097 (--with-gnu-ld): Fix typo.
3098 (--with-ld): Add @uref to --with-as.
3099
3100 2003-06-19 Zack Weinberg <zack@codesourcery.com>
3101
3102 * doc/tm.texi: Uniformly use @defmac for macros, rather than
3103 @table items. Minor formatting and editorial corrections.
3104
3105 2003-06-20 Neil Booth <neil@daikokuya.co.uk>
3106
3107 * line-map.c, line-map.h: Convert to ISO prototypes.
3108
3109 2003-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3110
3111 * gcse.c (store_killed_in_insn): Fix.
3112
3113 2003-06-19 Zack Weinberg <zack@codesourcery.com>
3114
3115 * target.h (asm_out.file_start, file_start_app_off,
3116 file_start_file_directive): New hooks.
3117 * target-def.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
3118 TARGET_ASM_FILE_START_APP_OFF, TARGET_ASM_FILE_START):
3119 New hook-definition macros.
3120 * doc/tm.texi: Document new hooks; remove docs of ASM_FILE_START.
3121 * varasm.c (default_file_start): New.
3122 * output.h: Prototype it.
3123 * toplev.c (init_asm_output): Use targetm.asm_out.file_start.
3124 * system.h: Poison ASM_FILE_START.
3125
3126 * config/alpha/alpha.c (alpha_write_verstamp): Delete.
3127 (alpha_file_start): New, define if !TARGET_ABI_UNICOSMK.
3128 (unicosmk_asm_file_start): Rename unicosmk_file_start,
3129 make static, take no arguments.
3130 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END,
3131 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set as appropriate.
3132 * config/alpha/unicosmk.h: Don't define ASM_FILE_START nor
3133 TARGET_ASM_FILE_END. Remove reference to ASM_FILE_START in
3134 comment.
3135 * config/arc/arc.c (arc_asm_file_start): Rename
3136 arc_file_start, take no arguments, make static.
3137 (TARGET_ASM_FILE_START): Set it.
3138 * config/arm/arm.c (aof_file_start): New static function.
3139 (TARGET_ASM_FILE_START): Set it, when appropriate.
3140 * config/arm/coff.h, config/arm/elf.h:
3141 Set TARGET_ASM_FILE_START_APP_OFF to true.
3142 * config/avr/avr.c (asm_file_start): Rename avr_file_start,
3143 take no arguments, make static.
3144 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
3145 Set them.
3146 * config/c4x/c4x.c (c4x_file_start): New static function.
3147 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
3148 Set them.
3149 * config/cris/cris.c (cris_file_start): New static function.
3150 (TARGET_ASM_FILE_START): Set it.
3151 * config/dsp16xx/dsp16xx.c (coff_dsp16xx_file_start): Rename
3152 dsp16xx_file_start, make static.
3153 (luxworks_dsp16xx_file_start): Delete.
3154 (TARGET_ASM_FILE_START): Set it.
3155 * config/h8300/h8300.c (asm_file_start): Rename
3156 h8300_file_start, make static, take no arguments.
3157 (TARGET_ASM_FILE_START): Set it.
3158 * config/i370/i370.c (i370_file_start): New static function.
3159 (TARGET_ASM_FILE_START): Set it.
3160 * config/i386/i386.c (x86_file_start): New static function.
3161 (TARGET_ASM_FILE_START): Set it.
3162 * config/i386/i386.h (X86_FILE_START_VERSION_DIRECTIVE,
3163 X86_FILE_START_FLTUSED): New macros, default to false.
3164 * config/i386/i386-interix.h: Override X86_FILE_START_FLTUSED to 1.
3165 * config/i386/sysv4.h, config/i386/sco5.h: Override
3166 X86_FILE_START_VERSION_DIRECTIVE to true.
3167 * config/ia64/ia64.c (ia64_file_start): New static function.
3168 (TARGET_ASM_FILE_START): Set it.
3169 (emit_safe_across_calls): Take no arguments.
3170 * config/ia64/ia64.md: Update to match.
3171 * config/m32r/m32r.c (m32r_asm_file_start): Rename
3172 m32r_file_start, make static, take no arguments.
3173 (TARGET_ASM_FILE_START): Set it.
3174 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Rename
3175 m68hc11_file_start, make static, take no arguments.
3176 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
3177 (print_options): Delete.
3178 * config/m68k/m68k.c (m68k_hp320_file_start): New static function.
3179 (TARGET_ASM_FILE_START_APP_OFF): Set.
3180 * config/m68k/hp320.h: Set TARGET_ASM_FILE_START to
3181 m68k_hp320_file_start.
3182 * config/mips/mips.c (iris6_asm_file_start, mips_asm_file_start):
3183 Make static, take no arguments.
3184 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
3185 * config/mmix/mmix.c (mmix_asm_file_start): Rename
3186 mmix_file_start, make static, take no arguments.
3187 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
3188 * config/mn10300/mn10300.c (asm_file_start): Rename
3189 mn10300_file_start, make static, take no arguments.
3190 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
3191 * config/ns32k/ns32k.c (TARGET_ASM_FILE_START_APP_OFF): Set.
3192 * config/pa/pa.c (pa_file_start_level, pa_file_start_space,
3193 pa_file_start_file, pa_file_start_mcount, pa_elf_file_start,
3194 pa_som_file_start, pa_linux_file_start, pa_hpux64_gas_file_start,
3195 pa_hpux64_hpas_file_start): New static functions.
3196 * config/pa/elf.h: Set TARGET_ASM_FILE_START to pa_elf_file_start.
3197 * config/pa/pa-linux.h: Set TARGET_ASM_FILE_START to
3198 pa_linux_file_start.
3199 * config/pa/pa64-hpux.h: Set TARGET_ASM_FILE_START to
3200 pa_hpux64_gas_file_start or pa_hpux64_hpas_file_start, as
3201 appropriate.
3202 * config/pa/som.h: Set TARGET_ASM_FILE_START to pa_som_file_start.
3203 * config/rs6000/rs6000.c: Include xcoffout.h when TARGET_XCOFF.
3204 (rs6000_file_start): Make static, take no arguments. Reset
3205 default_cpu under certain conditions.
3206 (rs6000_xcoff_file_start): New function.
3207 * config/rs6000/rs6000.h (TARGET_ASM_FILE_START): Set.
3208 * config/rs6000/xcoff.h (TARGET_ASM_FILE_START,
3209 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Override.
3210 * config/sh/sh.c (output_file_start): Rename
3211 sh_file_start, make static, take no arguments. Merge in old
3212 code from sh/elf.h's ASM_FILE_START, conditioned on TARGET_ELF.
3213 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
3214 * config/sh/sh.c (TARGET_ELF): Define to 0.
3215 * config/sh/elf.h (TARGET_ELF): Redefine to 1.
3216 * config/v850/v850.c (asm_file_start): Delete.
3217 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
3218 * config/vax/vax.c (vax_file_start): New static function.
3219 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_APP_OFF): Set.
3220
3221 * config/darwin.h: Override ASM_FILE_START_FILE_DIRECTIVE to false.
3222 * config/elfos.h, config/svr3.h, config/arm/elf.h, config/arm/pe.h
3223 * config/i386/att.h, config/i386/gas.h, config/i386/linux.h
3224 * config/i386/sysv4.h, config/i386/sco5.h, config/i960/i960-coff.h
3225 * config/m68k/coff.h, config/m68k/hp320.h, config/mcore/mcore-pe.h
3226 * config/vax/vaxv.h: Set ASM_FILE_START_FILE_DIRECTIVE to true.
3227
3228 * config/darwin.h, config/elfos.h, config/alpha/elf.h
3229 * config/alpha/openbsd.h, config/alpha/osf.h, config/alpha/vms.h
3230 * config/arc/arc.h, config/arm/aof.h, config/arm/aout.h
3231 * config/arm/coff.h, config/arm/elf.h, config/arm/pe.h
3232 * config/avr/avr.h, config/c4x/c4x.h, config/cris/cris.h
3233 * config/dsp16xx/dsp16xx.h, config/h8300/elf.h, config/h8300/h8300.h
3234 * config/i370/i370.h, config/i386/att.h, config/i386/gas.h
3235 * config/i386/i386-interix.h, config/i386/linux.h, config/i386/sysv4.h
3236 * config/i386/sco5.h, config/i960/i960-coff.h, config/i960/i960.h
3237 * config/ia64/ia64.h, config/ia64/sysv4.h, config/m32r/m32r.h
3238 * config/m68hc11/m68hc11.h, config/m68k/coff.h, config/m68k/m68k.h
3239 * config/mcore/mcore-pe.h, config/mips/iris6.h, config/mips/mips.h
3240 * config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h
3241 * config/pa/elf.h, config/pa/pa-linux.h, config/pa/pa64-hpux.h
3242 * config/pa/som.h, config/pdp11/pdp11.h, config/rs6000/linux64.h
3243 * config/rs6000/lynx.h, config/rs6000/xcoff.h, config/sh/elf.h
3244 * config/sh/sh.h, config/sparc/sparc.h, config/v850/v850.h
3245 * config/vax/vax.h, config/vax/vaxv.h: Don't (re)define ASM_FILE_START.
3246
3247 * config/alpha/alpha-protos.h, config/arc/arc-protos.h
3248 * config/avr/avr-protos.h, config/dsp16xx/dsp16xx-protos.h
3249 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
3250 * config/m32r/m32r-protos.h, config/m68hc11/m68hc11-protos.h
3251 * config/mips/mips-protos.h, config/mmix/mmix-protos.h
3252 * config/mn10300/mn10300-protos.h, config/rs6000/rs6000-protos.h
3253 * config/sh/sh-protos.h, config/v850/v850-protos.h: Update.
3254
3255 * xcoffout.h, config/rs6000/aix.h, config/rs6000/xcoff.h:
3256 Remove reference to ASM_FILE_START in comment.
3257 * config/arm/aof.h, config/arm/aout.h, config/arm/freebsd.h
3258 * config/arm/linux-gas.h, config/arm/netbsd-elf.h
3259 * config/arm/netbsd.h: Delete definition of ARM_OS_NAME.
3260
3261 2003-06-19 Graeme Peterson <gp@qnx.com>
3262
3263 * gcc.c (target_sysroot_suffix, target_sysroot_hdrs_suffix,
3264 SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC, sysroot_suffix_spec,
3265 sysroot_hdrs_suffix_spec): New.
3266 (static_specs): Initialize new variables.
3267 (add_sysroot_suffix_prefix, do_spec_1, main): Use new variables.
3268 * doc/tm.texi (SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC):
3269 New macros.
3270
3271 2003-06-19 Andreas Jaeger <aj@suse.de>
3272
3273 * c-aux-info.c: Convert to ISO C90.
3274 * c-pragma.c: Likewise.
3275 * c-common.c: Likewise.
3276 * c-common.h: Likewise.
3277 * c-convert.c: Likewise.
3278 * c-cppbuiltin.c: Likewise.
3279 * c-dump.c: Likewise.
3280 * c-decl.c: Likewise
3281 * c-format.c: Likewise.
3282 * c-incpath.c: Likewise.
3283 * c-incpath.h: Likewise.
3284
3285 2003-06-19 Roger Sayle <roger@eyesopen.com>
3286
3287 * builtins.c (expand_errno_check): Assume that flag_errno_math
3288 and HONOR_NANS have been tested before calling here. Only try
3289 to set errno ourselves if the decl can't throw an exception.
3290 (expand_builtin_mathfn): Move the code to stabilize the arg
3291 after the main switch, so that that its only done when needed.
3292 BUILT_IN_SQRT{,F,L} doesn't set errno if its arg is nonnegative.
3293 Don't modify the original expr when stabilizing the argument.
3294 (expand_builtin_mathfn_2): Likewise, move the code to stabilize
3295 the args after the main switch, and don't modify the orginal exp.
3296
3297 2003-06-19 Aldy Hernandez <aldyh@redhat.com>
3298
3299 * expr.c (const_vector_from_tree): Initialize remaining elements
3300 to 0.
3301
3302 2003-06-19 Aldy Hernandez <aldyh@redhat.com>
3303
3304 * config/rs6000/spe.md ("spe_evfscfsi"): Change operand types.
3305 Change "fix" to "float".
3306
3307 2003-06-19 Andreas Jaeger <aj@suse.de>
3308
3309 * c-tree.h: Remove declaration of poplevel.
3310
3311 * tree.h: Remove declaration of approx_sqrt.
3312
3313 * c-lex.c: Remove redundant declaration of asm_out_file.
3314
3315 * flags.h: Remove declaration of warn_unknown_pragma and
3316 main_input_filename.
3317
3318 * rtl.h: Remove functions from fold-const.c since they're already
3319 declared in tree.h.
3320
3321 * regs.h: Remove redundant declaration of reg_names.
3322
3323 * bt-load.c (migrate_btr_defs): Correct printf arguments.
3324
3325 * protoize.c: Fix breakage from last patch.
3326
3327 2003-06-19 J"orn Rennecke <joern.rennecke@superh.com>
3328
3329 * hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
3330 has been included.
3331
3332 2003-06-18 James A Morrison <ja2morri@student.math.uwaterloo.ca>
3333
3334 * config/sparc/sparc.c: Update copyright year.
3335
3336 2003-06-19 David Edelsohn <edelsohn@gnu.org>
3337
3338 * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
3339 to ABI_V4.
3340
3341 2003-06-18 Joseph S. Myers <jsm@polyomino.org.uk>
3342
3343 PR bootstrap/4068
3344 * config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.
3345
3346 2003-06-19 Kazu Hirata <kazu@cs.umass.edu>
3347
3348 * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
3349 to the end of the file. Remove unnecessary prototypes.
3350
3351 2003-06-19 Hans-Peter Nilsson <hp@axis.com>
3352
3353 * bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
3354 calls to insn_default_latency and result_ready_cost. Initialize
3355 def_latency to 1.
3356
3357 2003-06-18 Richard Henderson <rth@redhat.com>
3358
3359 * config/ia64/unwind-ia64.c (_Unwind_GetCFA): New.
3360 (_Unwind_FindEnclosingFunction): Implement.
3361
3362 2003-06-18 Kazu Hirata <kazu@cs.umass.edu>
3363
3364 * toplev.c (rest_of_handle_sched): Hide the entire function if
3365 INSN_SCHEDULING is not defined.
3366 (rest_of_compilation): Call rest_of_handle_sched() only when
3367 INSN_SCHEDULING is defined.
3368
3369 2003-06-18 Stephen Clarke <stephen.clarke@superh.com>
3370 J"orn Rennecke <joern.rennecke@superh.com>
3371
3372 * bt-load.c: New file.
3373 * Makefile.in (OBJS): Include bt-load.o
3374 (bt-load.o): Add dependencies.
3375 * flags.h (flag_branch_target_load_optimize): Declare.
3376 (flag_branch_target_load_optimize2): Likewise.
3377 * hooks.c (hook_reg_class_void_no_regs): New function.
3378 (hook_bool_bool_false): Likewise.
3379 * hooks.h (hook_reg_class_void_no_regs, hook_bool_bool_false): Declare.
3380 * rtl.h (branch_target_load_optimize): Declare.
3381 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define.
3382 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
3383 (TARGET_INITIALIZER): Include these.
3384 * target.h (struct gcc_target): Add branch_target_register_class
3385 and branch_target_register_callee_saved members.
3386 * toplev.c (enum dump_file_index): Add DFI_branch_target_load
3387 (dump_file) Add "tars" entry.
3388 (flag_branch_target_load_optimize): New variable.
3389 (flag_branch_target_load_optimize2): Likewise.
3390 (lang_independent_options): Add entries for new options.
3391 (rest_of_compilation): Call branch_target_load_optimize.
3392 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Document.
3393 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
3394 * doc/invoke.texi: Document -fbranch-target-load-optimize and
3395 -fbranch-target-load-optimize2.
3396 * rtl.h (epilogue_completed): Declare.
3397 * recog.c (epilogue_completed): New variable.
3398 * toplev.c (rest_of_compilation): Set it.
3399 * flow.c (mark_regs_live_at_end): Use it.
3400 * config/ia64/ia64.c (ia64_output_mi_thunk): Set it.
3401 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3402 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3403 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3404
3405 * sh.c (shmedia_space_reserved_for_target_registers): New variable.
3406 (sh_target_reg_class): New function.
3407 (sh_optimize_target_register_callee_saved): Likwise.
3408 (shmedia_target_regs_stack_space): Likewise.
3409 (shmedia_reserve_space_for_target_registers_p): Likewise.
3410 (shmedia_target_regs_stack_adjust): Likewise.
3411 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Override.
3412 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
3413 (calc_live_regs): If flag_branch_target_load_optimize2 and
3414 TARGET_SAVE_ALL_TARGET_REGS is enabled, and we have space reserved
3415 for target registers, make sure that we save all target registers.
3416 (sh_expand_prologue, sh_expand_epilogue): Take target register
3417 optimizations into account. Collapse stack adjustments if that
3418 is beneficial.
3419 (initial_elimination_offset): Reserve space for target registers
3420 if necessary.
3421 * sh.h (SAVE_ALL_TR_BIT, TARGET_SAVE_ALL_TARGET_REGS): Define.
3422 (OPTIMIZATION_OPTIONS): Enable flag_branch_target_load_optimize.
3423
3424 2003-06-18 Nick Clifton <nickc@redhat.com>
3425
3426 * config.gcc: Add an extra_header for ARM targets.
3427 Support configuring with --with-cpu=iwmmxt.
3428 * doc/invoke.texi: Document new value for -mcpu= ARM switch.
3429 * config/arm/aof.h (REGISTER_NAMES): Add iwmmxt register
3430 names. Fix formatting.
3431 * config/arm/aout.h (REGISTER_NAMES): Add iwmmxt register
3432 names.
3433 * config/arm/arm-protos.h (arm_emit_vector_const): New
3434 prototype.
3435 (arm_output_load_gr): New prototype.
3436 * config/arm/arm.c (extra_reg_names1): Delete.
3437 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN, FL_IWMMXT,
3438 * arch_is_iwmmxt): Define.
3439 (all_cores, all_architecture): Add entry for iwmmxt.
3440 (arm_override_options): Add support for iwmmxt.
3441 (use_return_insn, arm_function_arg, arm_legitimate_index_p,
3442 arm_print_value, arm_rtx_costs_1, output_move_double,
3443 arm_compute_save_reg_mask, arm_output_epilogue,
3444 arm_get_frame_size, arm_expand_prologue, arm_print_operand,
3445 arm_assemble_integer, arm_hard_regno_ok, arm_regno_class):
3446 Likewise.
3447 (arm_init_cumulative_args): Count iwmmxt registers.
3448 (arm_function_ok_for_sibcall): Return false of sibcall_blocked
3449 has been set.
3450 (struct minipool_node): Add fix_size field.
3451 (add_minipool_forward_ref): Add support for 8-byte aligning of
3452 the pool.
3453 (add_minipool_backward_ref, add_minipool_offsets,
3454 dump_minipool, push_minipool_fix): Likewise.
3455 (struct builtin_description): New struct.
3456 (builtin_description): New array of iwmmxt builtin functions.
3457 (arm_init_iwmmxt_builtins): New function.
3458 (arm_init_builtins): New function.
3459 (safe_vector_operand): New function.
3460 (arm_expand_binop_builtin): New function.
3461 (arm_expand_unop_builtin): New function.
3462 (arm_expand_builtin): New function.
3463 (arm_emit_vector_const): New function.
3464 (arm_output_load_gr): New function.
3465 * config/arm/arm.h (TARGET_CPU_iwmmxt, TARGET_IWMMXT,
3466 TARGET_REALLY_IWMMXT, arm_arch_iwmmxt, IWMMXT_ALIGNMENT,
3467 TYPE_NEEDS_IWMMXT_ALIGNMENT, ADJUST_FIELD_ALIGN,
3468 DATA_ALIGNMENT, LOCAL_ALIGNMENT, VECTOR_MODE_SUPPORTED_P): Define.
3469 (BIGGEST_ALIGNMENT): Set to 64 if ATPCS support is enabled.
3470 (CPP_CPU_ARCH_SPEC): Add entries for iwmmxt.
3471 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
3472 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
3473 REG_CLASS_FOR_LETTER): Add iwmmxt registers.
3474 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Disable iwmmxt
3475 registers unless the iwmmxt target is selected.
3476 (FIRST_IWMMXT_GR_REGNUM, LAST_IWMMXT_GR_REGNUM,
3477 FIRST_IWMMXT_REGNUM, LAST_IWMMXT_REGNUM, IS_IWMMXT_REGNUM,
3478 IS_IWMMXT_GR_REGNUM): Define.
3479 (FIRST_PSEUDO_REGISTER): Bump to 63.
3480 (struct machine_function): Add sibcall_blocked field.
3481 (Struct CUMULATIVE_ARGS): Add iwmmxt_nregs, named_count and
3482 nargs fields.
3483 (enum arm_builtins): New enum list.
3484 * config/arm/arm.md (UNSPEC_WSHUFH, UNSPEC_WACC,
3485 UNSPEC_TMOVMSK, UNSPEC_WSAD, UNSPEC_WSADZ, UNSPEC_WMACS,
3486 UNSPEC_WMACU, UNSPEC_WMACSZ, UNSPEC_WMACUZ, UNSPEC_CLRDI,
3487 UNSPEC_WMADDS, UNSPEC_WMADDU): New unspecs.
3488 (VUNSPEC_TMRC, VUNSPEC_TMCR, VUNSPEC_ALIGN8, VUNSPEC_WCMP_EQ,
3489 VUNSPEC_WCMP_GTU, VUNSPEC_WCMP_GT): New vunspecs.
3490 (movv2si, movv4hi, movv8qi): New expands for vector moves.
3491 Include iwmmxt.md.
3492 * config/arm/t-xscale-elf (MULTILIB_OPITONS): Add iwmmxt
3493 multilib.
3494 (MULTILIB_DIRNAMES, MULTILIB_REDUNDANT_DIRS): Likewise.
3495 * config/arm/mmintrin.h: New ARM specific header file.
3496 * config/arm/iwmmx.md: New iWMMXt specific machine patterns.
3497
3498 2003-06-18 J"orn Rennecke <joern.rennecke@superh.com>
3499
3500 * toplev.c (Remaining -d letters summary): Update.
3501
3502 2003-06-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3503
3504 * config/rs6000/rs6000.c (init_cumulative_args): Add and handle LIBCALL
3505 argument.
3506 (function_arg): Handle CALL_LIBCALL flag.
3507 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
3508 prototype.
3509 * config/rs6000/rs6000.h (CALL_LIBCALL): New macro.
3510 (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
3511 (INIT_CUMULATIVE_ARGS): Add LIBCALL argument.
3512 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
3513
3514 2003-06-18 Neil Booth <neil@daikokuya.co.uk>
3515
3516 * Makefile.in: Update.
3517 * common.opt: New options.
3518 * opts.c (maybe_warn_unused_parameter, set_Wextra, handle_param,
3519 set_Wunused): New.
3520 (common_handle_option): Handle new options.
3521 * toplev.c (set_target_switch): Export.
3522 (set_Wextra, set_Wunused, maybe_warn_unused_parameter): Move to opts.c.
3523 (decode_W_option): -Wunused and -Wextra handled in opts.c now.
3524 (independent_decode_option): More options handled in opts.c now.
3525 Change prototype.
3526 * toplev.h (set_target_switch): New.
3527
3528 2003-06-17 Robert Abeles <rabeles@archaelogic.com>
3529
3530 PR debug/4252
3531 * c-opts.c (c_common_handle_option): Pass -fdump argument suffix
3532 to dump_switch_p().
3533 * tree-dump.c (dump_switch_p): Remove redundant 'dump-' prefix
3534 from static strings in dump_files.
3535
3536 2003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3537
3538 * system.h (ANSI_PROTOTYPES, PTR_CONST, LONG_DOUBLE, VPARAMS,
3539 VA_OPEN, VA_FIXEDARG, VA_CLOSE, VA_START): undef and poison these
3540 libiberty macros.
3541
3542 2003-06-17 Jason Merrill <jason@redhat.com>
3543
3544 PR c++/10929
3545 * tree-inline.c (expand_call_inline): Don't warn about failing to
3546 inline a function which was made inline by -finline-functions.
3547
3548 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3549
3550 * config/h8300/h8300-protos.h: Update to ISO C.
3551 * config/h8300/h8300.c: Likewise.
3552 * config/h8300/h8300.h: Likewise.
3553 * config/h8300/h8300.md: Likewise.
3554
3555 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3556
3557 * configure.in: Replace BUILD_CC references with CC_FOR_BUILD.
3558 * configure: Regenerate.
3559 * Makefile.in: Replace BUILD_CC references with CC_FOR_BUILD.
3560
3561 2003-06-17 Ranjit Mathew <rmathew@hotmail.com>
3562
3563 * install.texi (Testing): Add information on how to run Java
3564 runtime tests separately.
3565
3566 2003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3567
3568 * config/mips/mips.md (trap): Use break 0 when !TARGET_GAS.
3569
3570 * config/mips/iris6-o32.h (MIPS_ISA_DEFAULT): Remove.
3571 (MIPS_CPU_STRING_DEFAULT): Redefine to mips2.
3572
3573 2003-06-17 Christopher Faylor <cgf@redhat.com>
3574
3575 * doc/install.texi: Add msvc rebuild caveat.
3576
3577 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3578
3579 * config/sh/coff.h: Replace Hitachi with Renesas.
3580 * config/sh/elf.h: Likewise.
3581 * config/sh/embed-elf.h: Likewise.
3582 * config/sh/lib1funcs.asm: Likewise.
3583 * config/sh/sh-protos.h: Likewise.
3584 * config/sh/sh.c: Likewise.
3585 * config/sh/sh.h: Likewise.
3586 * config/sh/sh.md: Likewise.
3587
3588 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3589
3590 * ChangeLog.3: Fix comment typos.
3591 * ChangeLog.6: Likewise.
3592 * config/d30v/d30v.c: Likewise.
3593 * config/h8300/h8300.md: Likewise.
3594 * config/m32r/m32r.md: Likewise.
3595 * config/mips/mips.c: Likewise.
3596 * config/mips/mips.md: Likewise.
3597 * config/ns32k/NOTES: Likewise.
3598
3599 2003-06-17 Ranjit Mathew <rmathew@hotmail.com>
3600 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3601
3602 * doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
3603 to run Java runtime tests separately.
3604
3605 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3606
3607 * config/h8300/h8300-protos.h: Update a comment.
3608
3609 2003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3610
3611 * sh.h (ROUND_TYPE_ALIGN, LOCAL_ALIGNMENT): Complex modes
3612 are aligned like integral modes.
3613 (SH5_WOULD_BE_PARTIAL_NREGS): Also test for CDImode and DCmode.
3614
3615 * sh.h (EXTRA_CONSTRAINT_Csy): Allow PIC_DIRECT_ADDR_P.
3616 (LEGITIMATE_PIC_OPERAND_P): Allow LABEL_REF.
3617 * sh.md (*pt): Remove.
3618
3619 * sh.h (REG_ALLOC_ORDER): Avoid squandering call-saved registers.
3620
3621 * sh.md (return_media_rte): New pattern.
3622 (return_media): Use it.
3623
3624 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3625
3626 * doc/contrib.texi: Replace Hitachi with Renesas.
3627 * doc/install.texi: Likewise.
3628 * doc/invoke.texi: Likewise.
3629
3630 2003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3631
3632 * sh.h (CONST_OK_FOR_J16): Fix HOST_BITS_PER_WIDE_INT >= 64
3633 behaviour.
3634
3635 2003-06-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3636
3637 * doc/tm.texi (MD_FALLBACK_FRAME_STATE_FOR): Mention MAKE_THROW_FRAME.
3638
3639 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Partly revert
3640 2003-01-23 patch. Corrected to handle kernels with changed ucontext.
3641
3642 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Error on invalid
3643 -msdata=eabi usages.
3644
3645 * gcc/config/rs6000/sysv4.h (USE_LIBC_1): Delete all uses.
3646
3647 2003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3648
3649 * alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
3650 * fixinc/gnu-regex.c: Don't define `volatile'.
3651 * ggc-page.c: Don't check HAVE_LONG_DOUBLE.
3652 * ggc-simple.c: Likewise.
3653 * system.h: Don't define `volatile'.
3654
3655 * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
3656 * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
3657 call these macros.
3658 * config.in, configure: Regenerated.
3659
3660 2003-06-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3661
3662 * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
3663 Handle POINTERS_EXTEND_UNSIGNED.
3664
3665 2003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3666
3667 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
3668 !TARGET_IRIX6]: Define as NULL.
3669
3670 2003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3671
3672 * config/sparc/sparc.c (sparc_va_arg): Don't align 16-byte+ structures.
3673
3674 2003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3675
3676 * dbxout.c (dbxout_source_line_counter): New global variable.
3677 Mark it with GTY(()).
3678 (dbxout_source_line): Increment dbxout_source_line_counter
3679 and pass it to ASM_OUTPUT_SOURCE_LINE.
3680 * sdbout.c (sdbout_source_line_counter): New global variable.
3681 Mark it with GTY(()).
3682 (unnamed_struct_number): Mark it with GTY(()).
3683 (sdbout_source_line): Increment sdbout_source_line_counter
3684 and pass it to ASM_OUTPUT_SOURCE_LINE.
3685 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Add third parameter
3686 (xcoffout_source_line): Pass 0 as third argument to
3687 ASM_OUTPUT_SOURCE_LINE.
3688 (xcoffout_begin_prologue): Likewise.
3689 * config/dbxout.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3690 Use it instead of 'sym_lineno' but without incrementing it.
3691 * config/dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3692 * config/lynx.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3693 * config/ptx4.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3694 * config/alpha/alpha.c (alpha_start_function): Pass 0 as third
3695 argument to ASM_OUTPUT_SOURCE_LINE.
3696 * config/alpha/alpha.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3697 * config/arm/aout.h: Remove useless comment.
3698 * config/avr/avr.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3699 * config/i960/i960.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3700 * config/m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3701 Use it instead of 'sym_lineno' but without incrementing it.
3702 * config/m68k/hp320.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3703 * config/mcore/mcore-pe.h (ASM_OUTPUT_SOURCE_LINE): Add third
3704 parameter. Use it instead of 'sym_lineno' but without incrementing it.
3705 * config/mips/mips.c (mips_output_function_prologue): Pass 0 as third
3706 argument to ASM_OUTPUT_SOURCE_LINE.
3707 * config/mips/mips.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3708 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3709 * config/pa/som.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3710 Use it instead of 'sym_lineno' but without incrementing it.
3711 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3712 * config/sh/elf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3713 * config/sparc/aout.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3714 * config/sparc/pbd.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3715 * doc/tm.texi (ASM_OUTPUT_SOURCE_LINE): Document third parameter.
3716
3717 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
3718
3719 * config/mips/mips-protos.h (mips_expand_block_move): Declare.
3720 (expand_block_move, output_block_move): Remove.
3721 * config/mips/mips.h (enum block_move_type): Remove.
3722 * config/mips/mips.c (block_move_call, output_block_move): Remove.
3723 (mips_block_move_straight, mips_adjust_block_mem): New function.
3724 (mips_block_move_loop): Renamed and reworked from block_move_loop.
3725 (mips_expand_block_move): Likewise expand_block_move. Return false
3726 to fall back on the target-independent code.
3727 * config/mips/mips.md (movstrsi): Use mips_expand_block_move.
3728 (movstrsi_internal*): Remove.
3729
3730 2003-06-16 Zack Weinberg <zack@codesourcery.com>
3731
3732 * cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
3733 * cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
3734 * cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
3735 ISO C: new-style function declarations, no need for PARAMS,
3736 no special punctuation on indirect function calls, use string
3737 constant concatenation where convenient.
3738
3739 2003-06-17 Andreas Jaeger <aj@suse.de>
3740
3741 * rtl.h: Remove declarations from coverage.h.
3742 * toplev.c: Include coverage.h.
3743 * Makefile.in (toplev.o): Depend on coverage.h.
3744
3745 * toplev.h: Remove extra declaration of print_time.
3746
3747 * gengtype.c (close_output_files): Remove duplicated declaration.
3748
3749 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3750
3751 * config/sparc/sysv4.h: Remove target-independent comment;
3752 replace "GNU CC" with "GCC".
3753 * config/vxworks.h: Replace "GNU compiler" with "GCC".
3754 * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
3755 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3756 config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
3757 config/sparc/netbsd-elf.h, config/sparc/openbsd.h,
3758 config/sparc/rtemself.h, config/sparc/sol2-64.h,
3759 config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
3760 config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
3761 config/sparc/sol2.h, config/sparc/sp64-aout.h,
3762 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
3763 config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
3764 "GNU compiler", "GNU CC" with "GCC".
3765 * config/sparc/cypress.md, config/sparc/hypersparc.md,
3766 config/sparc/sparc-modes.def, config/sparc/sparc.c,
3767 config/sparc/sparc.md, config/sparc/sparclet.md,
3768 config/sparc/supersparc.md, config/sparc/ultra1_2.md,
3769 config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
3770 "GNU C Compiler" with "GCC".
3771 * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
3772
3773 2003-06-16 Aldy Hernandez <aldyh@redhat.com>
3774
3775 * simplify-rtx.c (simplify_subreg): Do not over-extend vector
3776 constants.
3777
3778 * testsuite/gcc.c-torture/execute/simd-4.c: New.
3779
3780 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3781
3782 * config/ip2k/ip2k.h: Remove target-independent comments.
3783
3784 * config.gcc: Explicitly mention elfos.h in ip2k entry.
3785 * config/ip2k/ip2k.h: Don't #include it here.
3786
3787 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3788
3789 * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
3790 config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
3791 dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
3792 function.c, gcc.c, genoutput.c, gensupport.c, global.c,
3793 haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
3794 loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
3795 read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
3796 stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
3797 the PTR macro.
3798
3799 * gengtype.c: Don't use UNION_INIT_ZERO.
3800 * system.h (UNION_INIT_ZERO): Delete.
3801
3802 2003-06-16 Richard Henderson <rth@redhat.com>
3803
3804 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
3805 GET_MODE_UNIT_SIZE when simplifying constant vectors.
3806
3807 2003-06-16 Andreas Jaeger <aj@suse.de>
3808
3809 * timevar.c (get_run_time): Remove function provided also by
3810 libiberty.
3811 * timevar.h: Remove get_run_time declaration.
3812
3813 2003-06-16 Kazu Hirata <kazu@cs.umass.edu>
3814
3815 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
3816 unreachable code.
3817
3818 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3819
3820 * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
3821 cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
3822 use macros from "symcat.h", instead rely on ISO C.
3823
3824 * system.h: Don't include "symcat.h".
3825 * configure.in (AC_C_STRINGIZE): Delete.
3826 * config.in, configure: Regenerate.
3827
3828 2003-06-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3829
3830 * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
3831
3832 * tree.h (STMT_CHECK): New macro.
3833 Also upper-case argument names on all checking macros and
3834 fix some whitespace problems; assume CODE argument does not
3835 have side-effects.
3836
3837 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3838
3839 * scan.h: Convert to ISO C.
3840 * system.h: Likewise.
3841
3842 * c-format.c (dynamic_format_types): New pointer for dynamic data.
3843 (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
3844 New functions split out of...
3845 (handle_format_attribute): ...here.
3846
3847 2003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
3848
3849 * sh.h (REG_CLASS_FROM_LETTER): Change to:
3850 (REG_CLASS_FROM_CONSTRAINT).
3851 (CONST_OK_FOR_I): Rename to:
3852 (CONST_OK_FOR_I08). Changed all users.
3853 (CONST_OK_FOR_J): Rename to:
3854 (CONST_OK_FOR_I16). Changed all users.
3855 (CONST_OK_FOR_K): Rename to:
3856 (CONST_OK_FOR_P27). Changed all users.
3857 (CONST_OK_FOR_L): Rename to:
3858 (CONST_OK_FOR_K08). Changed all users.
3859 (CONST_OK_FOR_O): Rename to:
3860 (CONST_OK_FOR_I06). Changed all users.
3861 (CONST_OK_FOR_P): Rename to:
3862 (CONST_OK_FOR_I10). Changed all users.
3863 (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
3864 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
3865 (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
3866 (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
3867 (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
3868 (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
3869 (CONST_OK_FOR_LETTER_P): Replace with
3870 (CONST_OK_FOR_CONSTRAINT_P).
3871 (EXTRA_CONSTRAINT_S): Rename to:
3872 (EXTRA_CONSTRAINT_C16). Changed all users.
3873 (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
3874 (EXTRA_CONSTRAINT_T): Rename to:
3875 (EXTRA_CONSTRAINT_Csy). Changed all users.
3876 (EXTRA_CONSTRAINT_Z): Remove.
3877 (EXTRA_CONSTRAINT): Replace with:
3878 (EXTRA_CONSTRAINT_STR).
3879 (EXTRA_CONSTRAINT_U): Rename to:
3880 (EXTRA_CONSTRAINT_Z). Changed all users.
3881 * sh.c (and_operand): Use CONST_OK_FOR_J16.
3882 * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
3883 (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
3884 (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
3885 (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
3886 (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
3887 (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
3888 (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
3889 (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
3890 (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
3891 (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
3892 (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
3893 (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
3894 (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
3895 (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
3896 (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
3897 (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
3898 (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
3899 (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
3900 (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
3901 (sssubv4hi3): Likewise.
3902 (movsf_i): Change I[08]/r to G/r.
3903 (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
3904
3905 * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
3906
3907 2003-06-16 Vladimir Makarov <vmakarov@redhat.com>
3908
3909 * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
3910
3911 2003-06-16 Andreas Jaeger <aj@suse.de>
3912
3913 * basic-block.h: Remove duplicate prototype of
3914 note_prediction_to_br_prob.
3915
3916 * tree.h: Remove duplicate prototype of strip_float_extensions.
3917
3918 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3919
3920 * config/c4x/c4x.c: Don't include "c-tree.h".
3921 * config/pa/pa.c: Likewise.
3922 * langhooks.c: Likewise.
3923 * tree.h (poplevel): Declare.
3924
3925 2003-06-16 Kazu Hirata <kazu@cs.umass.edu>
3926
3927 * config/h8300/h8300.c (const_costs): Move this to ...
3928 (h8300_rtx_costs): ... here.
3929
3930 2003-06-16 Roger Sayle <roger@eyesopen.com>
3931
3932 * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
3933 (tan_optab, atan_optab): Define corresponding macros.
3934 * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
3935 * genopinit.c (optabs): Implement tan_optab and atan_optab
3936 using tan?f2 and atan?f2 patterns.
3937 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
3938 using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
3939 Change the default value of errno_set to false.
3940 (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
3941 using expand_builtin_mathfn.
3942
3943 * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
3944 expander patterns implemented using existing atan2?f3 patterns.
3945
3946 2003-06-16 Roger Sayle <roger@eyesopen.com>
3947
3948 * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
3949 both operands of the addition equal, reuse the expanded RTL.
3950 (expand_expr <MULT_EXPR>): Likewise for multiplication.
3951
3952 2003-06-16 Roger Sayle <roger@eyesopen.com>
3953 Jeff Law <law@redhat.com>
3954
3955 * fold-const.c (operand_equal_p): Consider two calls to "const"
3956 functions with identical non-volatile arguments to be equal.
3957 Consider the FUNCTION_DECL for the "__builtin_foo" form of a
3958 built-in function to be equal to the "foo" form.
3959
3960 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3961
3962 * config/rs6000/sysv4le.h: Remove target-independent comment.
3963 Replace "GNU compiler" with "GCC" in comment.
3964
3965 2003-06-16 Andreas Jaeger <aj@suse.de>
3966
3967 * tracer.c: Remove duplicate declaration.
3968
3969 * toplev.c: Remove extra declaration of decode_d_option.
3970
3971 * ssa.c: Remove duplicate declaration.
3972
3973 * sreal.c: Remove extra declaration of dump_sreal.
3974
3975 * reload1.c: Remove duplicate declarations.
3976
3977 * integrate.c: Remove extra declaration of
3978 set_decl_abstract_flags.
3979
3980 * flow.c: Remove extra declaration of dump_flow_info.
3981
3982 * alias.c: Remove extra declaration of get_addr.
3983
3984 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3985
3986 * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
3987 config/vxworks.h: GNU CC -> GCC.
3988
3989 * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
3990 lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
3991 stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
3992 ssa.h, tree.def: Replace overly specific references to "GNU C"
3993 and "GNU C Compiler" with references to "GCC".
3994
3995 2003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
3996
3997 * sh.c (prepare_move_operand): Check if operand 0 is an invalid
3998 memory reference. Fix test that checks if operand 1 is using r0.
3999 * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
4000
4001 * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
4002 defined.
4003
4004 2003-06-15 Nathan Sidwell <nathan@codesourcery.com>
4005
4006 * function.h (struct emit_status): Remove x_last_linenum,
4007 x_last_filename. Add x_last_location.
4008 * rtl.h: #include "input.h".
4009 (NOTE_DATA): New.
4010 * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
4011 number notes.
4012 * emit-rtl.c (last_linenum, last_filename): Remove.
4013 (last_location): New.
4014 (emit_line_note_after): LINE must always be >= 0.
4015 (emit_line_note): Likewise. Check not duplicate here...
4016 (emit_note): ... rather than here.
4017 (emit_line_note_force, force_next_line_note, init_emit): Adjust.
4018 * integrate.c (expand_inline_function): Use emit_line_note for
4019 line number notes.
4020 (copy_insn_list): Likewise.
4021 * unroll.c (copy_loop_body): Likewise.
4022 * Makefile.in (RTL_H): Add input.h.
4023
4024 2003-06-16 Richard Sandiford <rsandifo@redhat.com>
4025
4026 * optabs.c (emit_libcall_block): Don't hoist insns past a label.
4027
4028 2003-06-16 Richard Henderson <rth@redhat.com>
4029
4030 * config/alpha/alpha-protos.h, config/alpha/elf.h,
4031 config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
4032 config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
4033 * config/alpha/alpha.c: Likewise. Move targetm init to end of file.
4034 Remove unneeded static function decls.
4035
4036 2003-06-16 Neil Booth <neil@daikokuya.co.uk>
4037
4038 * c-opts.c (c_common_handle_option): s/on/value/.
4039 (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
4040 directly rather than converting the argument.
4041 * c.opt: Update docs. Use UInteger where appropriate.
4042 * common.opt: Use UInteger where appropriate.
4043 * opts.c (integral_argument): New.
4044 (handle_argument): Handle integral arguments, and optional
4045 joined arguments.
4046 (common_handle_option): Update.
4047 * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
4048 * opts.sh: Handle JoinedOrMissing and UInteger flags.
4049
4050 2003-06-16 Neil Booth <neil@daikokuya.co.uk>
4051
4052 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
4053 unnecessary extern declaration.
4054
4055 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
4056
4057 * config/gofast.h, config/interix.h, config/interix3.h,
4058 config/libgloss.h, config/linux-aout.h, config/linux.h,
4059 config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
4060 * config/kaos.h: "GNU compiler" -> GCC.
4061 * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
4062
4063 * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
4064 config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
4065 GNU CC -> GCC.
4066
4067 * config/svr3.h: Remove #if 0 code, misleading comments.
4068 GNU CC -> GCC.
4069
4070 2003-06-15 Zack Weinberg <zack@codesourcery.com>
4071
4072 * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
4073 main_input_filename to avoid conflict with input_filename macro.
4074
4075 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
4076
4077 * config/mips/mips.h (asm_file_name, g_switch_set,
4078 g_switch_value): Remove.
4079 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
4080 unnecessary extern declarations.
4081
4082 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
4083
4084 * config/frv/frv.h: Remove declaration of g_switch_value.
4085 * config/m32r/m32r.h: Remove declaration of g_switch_value.
4086 * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
4087
4088 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
4089
4090 * opts.sh: Quote '+' in regex.
4091
4092 2003-06-15 Andrew Pinski <pinskia@physics.uc.edu>
4093
4094 * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
4095 * config/rs6000/rs6000.c: Include cfglayout.h.
4096 * config/alpha/alpha.c: Likewise.
4097 * config/ia64/ia64.c: Likewise.
4098 * config/sparc/sparc.c: Likewise.
4099 * config/sh/sh.c: Likewise.
4100
4101 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
4102
4103 * opts.sh: Quote '+' in regex.
4104
4105 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
4106
4107 * c-opts.c (lang_flags): Update for new spelling of flags.
4108 (write_langs): Similarly.
4109 * c.opt: Specify languages.
4110 * opts.h: Remove languages.
4111 * opts.sh: Recognise front-end defined languages.
4112 * doc/sourcebuild.texi: Update.
4113
4114 2003-06-15 Andreas Jaeger <aj@suse.de>
4115
4116 * alloc-pool.c: Convert to ISO C90 prototypes.
4117 * alloc-pool.h: Likewise.
4118 * alias.c: Likewise.
4119 * attribs.c: Likewise.
4120 * bb-reorder.c: Likewise.
4121 * bitmap.h: Likewise.
4122 * bitmap.c: Likewise.
4123 * builtins.c: Likewise.
4124
4125 * tree.h: Convert prototypes of attribs.c to ISO C90.
4126 * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
4127 * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
4128 * expr.h: Convert prototypes of builtins.c to ISO C90.
4129
4130 2003-06-15 Roger Sayle <roger@eyesopen.com>
4131
4132 * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
4133 implement exp, expf and expl built-ins as inline x87 intrinsics.
4134 (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
4135 represent x87's fscale, frndint and f2xm1 insns respectively.
4136 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
4137 to encode x87's "fscale" instruction followed by a pop.
4138 (*frndintxf2): New insn pattern for "frndint".
4139 (*f2xm1xf2): New insn pattern for "f2xm1".
4140
4141 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
4142 UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
4143 UNSPEC_FPATAN.
4144
4145 2003-06-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4146
4147 * gencheck.c (main): Avoid generating duplicate macros.
4148
4149 * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
4150 knowing names of language subdirectories.
4151
4152 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
4153
4154 * c-pch.c (asm_file_name): Remove.
4155 * common.opt: Add more switches.
4156 * flags.h (g_switch_set): Boolify.
4157 * opts.c (g_switch_value, g_switch_set, exit_after_options,
4158 version_flag): Move from toplev.c.
4159 (common_handle_option): Handle more switches from toplev.c.
4160 * toplev.c (display_help, display_target_options, decode_d_option,
4161 print_version): Make non-static, remove prototypes.
4162 (aux_base_name, asm_file_name, aux_info_file_name): Constify.
4163 (version_flag, g_switch_value, g_switch_set, exit_after_options):
4164 Remove.
4165 (independent_decode_option): Move some handlers to opts.c.
4166 * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
4167 exit_after_options, version_flag, display_help, display_target_options,
4168 print_version, decode_d_option): New.
4169
4170 2003-06-15 Kazu Hirata <kazu@cs.umass.edu>
4171
4172 * config/alpha/alpha.md: Follow spelling conventions.
4173 * config/arm/arm.c: Likewise.
4174 * config/arm/arm.h: Likewise.
4175 * config/arm/arm.md: Likewise.
4176 * config/arm/crtn.asm: Likewise.
4177 * config/m32r/m32r.c: Likewise.
4178 * config/m32r/m32r.md: Likewise.
4179 * config/rs6000/rs6000.c: Likewise.
4180
4181 2003-06-15 Richard Henderson <rth@redhat.com>
4182
4183 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
4184 insn_locators_initialize.
4185 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
4186 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
4187 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
4188 * config/sh/sh.c (sh_output_mi_thunk): Do it later.
4189
4190 2003-06-15 Kazu Hirata <kazu@cs.umass.edu>
4191
4192 * builtins.c (expand_builtin_expect_jump): Remove redundant
4193 tests that are also in any_condjump_p().
4194
4195 2003-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4196
4197 * libgcc2.c: Delete sysV68 L_trampoline section.
4198 * config/m68k/mot3300-crt0.S: Delete file.
4199 * config/m68k/mot3300Mcrt0.S: Likewise.
4200
4201 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
4202
4203 * config/aoutos.h: Remove.
4204 * config.gcc: Remove reference to aoutos.h.
4205 * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
4206
4207 2003-06-14 Kazu Hirata <kazu@cs.umass.edu>
4208
4209 * doc/install.texi: Follow spelling conventions.
4210 * doc/tm.texi: Likewise.
4211 * config/fp-bit.c: Likewise.
4212 * config/arm/arm.c: Likewise.
4213 * config/frv/frv.c: Likewise.
4214 * config/ns32k/NOTES: Likewise.
4215 * config/ns32k/STATUS: Likewise.
4216
4217 2003-06-14 Roger Sayle <roger@eyesopen.com>
4218 Zack Weinberg <zack@codesourcery.com>
4219
4220 * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
4221 * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
4222 * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
4223
4224 * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
4225 * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
4226 * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
4227 * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
4228 * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
4229 * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
4230 * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
4231 * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
4232 * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
4233 * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
4234 * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
4235 * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
4236 * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
4237 * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
4238 * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
4239 * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
4240 * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
4241 * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
4242 * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
4243 * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
4244
4245 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
4246
4247 * opts.sh (POSIXLY_CORRECT): Unset it.
4248
4249 * tree.h (init_function_start): Remove filename and line paramters.
4250 * function.c (init_function_start): Remove filename and line
4251 parameters. Use DECL_SOURCE_LOCATION.
4252 * c-decl.c (store_parm_decls): Adjust init_function_start call.
4253 (c_expand_body_1): Likewise.
4254 * coverage.c (create_coverage): Likewise.
4255 * objc/objc-act.c (build_tmp_function_decl): Set line number to
4256 zero.
4257 (hack_method_prototype): Adjust init_function_start call.
4258
4259 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
4260
4261 PR target/3724
4262 * arm/linux-elf.h (PROFILE_HOOK): Define.
4263
4264 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
4265
4266 PR target/11183
4267 * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
4268
4269 2003-06-14 Roger Sayle <roger@eyesopen.com>
4270
4271 * opts.sh: Work around a mysterious feature in cygwin's gawk
4272 where specifying the input files explicitly has a different
4273 behavior to piping them via stdin.
4274
4275 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
4276
4277 * doc/sourcebuild.texi: Update.
4278
4279 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
4280
4281 PR target/11183
4282 * arm.c (output_move_double): Pass SImode to adjust_address.
4283
4284 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
4285
4286 * Makefile.in: Update to use common.opt and lang_opt_files.
4287 (c-options.c, c-options.h): Remove.
4288 (options.c, options.h): Add.
4289 * c-opts.c: Include options.h not c-options.h.
4290 * common.opt: New file.
4291 * configure, configure.in: Add lang_opt_files.
4292 * opts.c: Include flags.h and diagnostic.h.
4293 (common_handle_option): New.
4294 (handle_option): Update to recognize common options and all
4295 language-dependent options.
4296 * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
4297 (struct cl_option): Make flags of type int.
4298 * opts.h: Flag option with front ends to which it applies.
4299 Handle duplicate options.
4300 * toplev.c (filename): Remove.
4301 (independent_decode_option): Don't handle filenames and -quiet.
4302 (process_options, do_compile): Update.
4303
4304 2003-06-14 Nick Clifton <nickc@redhat.com>
4305
4306 * doc/install.texi (Specific): Add description of different
4307 ARM supported file format targets.
4308
4309 Sat Jun 14 11:12:04 CEST 2003 Jan Hubicka <jh@suse.cz>
4310
4311 * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
4312 inside delay slots.
4313
4314 2003-06-13 Matt Kraai <kraai@alumni.cmu.edu>
4315
4316 * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
4317 * unwind-pe.h (size_of_encoded_value): Do not define if
4318 NO_SIZE_OF_ENCODED_VALUE is defined.
4319
4320 2003-06-13 Roger Sayle <roger@eyesopen.com>
4321
4322 * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
4323 expanding a complex constant into a CONCAT target.
4324
4325 2003-06-13 Zack Weinberg <zack@codesourcery.com>
4326
4327 * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
4328 (ASM_FILE_START_1): Delete.
4329 * config/i386/att.h, config/i386/sco5.h,
4330 config/i386/sysv3.h
4331 (ASM_FILE_START_1): Delete.
4332
4333 2003-06-13 Kelley Cook <kelleycook@wideopenwest.com>
4334
4335 * config/i386/bsd.h: Remove ASM_FILE_START.
4336 * config/i386/djgpp.h: Likewise.
4337 * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
4338
4339 * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
4340 * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
4341
4342 2003-06-13 Vladimir Makarov <vmakarov@redhat.com>
4343
4344 PR bootstrap/10835
4345 * haifa-sched.c (max_lookahead_tries,
4346 cached_first_cycle_multipass_dfa_lookahead,
4347 cached_issue_rate): New variables.
4348 (max_issue): Check the number of tries.
4349 (choose_ready): Calculate max_lookahead_tries.
4350 (sched_init): Check cached_issue_rate.
4351
4352 2003-06-13 Richard Henderson <rth@redhat.com>
4353
4354 * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
4355 * cfgrtl.c (purge_dead_edges): Expect it too.
4356
4357 2003-06-13 Jim Wilson <wilson@tuliptree.org>
4358 Eric Botcazou <ebotcazou@libertysurf.fr>
4359
4360 PR bootstrap/10983
4361 * combine.c (make_extraction): Use gen_lowpart_for_combine
4362 when extracting from a REG and not in the destination of a SET.
4363
4364 2003-06-13 Doug Evans <dje@sebabeach.org>
4365
4366 * tsystem.h (abort): Declare in inhibit_libc case to remove build
4367 warnings for addvsi3, et.al.
4368
4369 2003-06-13 Aldy Hernandez <aldyh@redhat.com>
4370
4371 * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
4372
4373 * simplify-rtx.c (simplify_subreg): Same.
4374
4375 * emit-rtl.c (gen_lowpart_common): Same.
4376
4377 2003-06-13 Kazu Hirata <kazu@cs.umass.edu>
4378
4379 * builtins.c: Fix comment typos.
4380 * fold-const.c: Likewise.
4381
4382 2003-06-13 Doug Evans <dje@sebabeach.org>
4383 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4384
4385 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
4386 * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
4387 (m32r_va_arg): Use it.
4388 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
4389 (RETURN_IN_MEMORY): Ditto.
4390
4391 2003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
4392
4393 * c-typeck.c: Remove #if 0 clauses.
4394
4395 PR other/1494
4396 * config/alpha/openbsd.h, config/i386/openbsd.h,
4397 config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
4398 residual reference to EGCS.
4399
4400 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4401
4402 * arm.c (output_call_mem): If the address references the link-register
4403 use an instruction sequence that avoids early-clobbering IP.
4404 (eliminate_lr2ip): Delete.
4405
4406 2003-06-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4407
4408 * c-format.c (format_types_orig): Disallow '*' width/precision in
4409 asm_fprintf format checks.
4410
4411 2003-06-13 Ulrich Weigand <uweigand@de.ibm.com>
4412
4413 * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
4414 non-integral types from integer register save area slots.
4415
4416 2003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
4417
4418 * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
4419
4420 2003-06-13 Florian Weimer <fw@deneb.enyo.de>
4421
4422 * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
4423
4424 2003-06-13 Kaz Kojima <kkojima@gcc.gnu.org>
4425
4426 * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
4427 to file_end_indicate_exec_stack.
4428
4429 2003-06-12 Richard Henderson <rth@redhat.com>
4430
4431 PR target/11089
4432 * config/i386/i386.md (sse_movaps): Use an expander to force
4433 one operand to be a register.
4434 (sse_movups): Likewise.
4435
4436 2003-06-13 Doug Evans <dje@sebabeach.org>
4437
4438 Remove some build warnings.
4439 * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
4440 (__do_global_ctors,__do_global_dtors): Ditto.
4441
4442 2003-06-12 Richard Henderson <rth@redhat.com>
4443
4444 PR middle-end/10557
4445 * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
4446
4447 2003-06-13 Kazu Hirata <kazu@cs.umass.edu>
4448
4449 * config/m32r/m32r.md: Fix a comment typo.
4450
4451 2003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4452 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
4453
4454 PR target/10142
4455 * config/sparc/sparc.c (function_arg_record_value_parms): Add
4456 new 'stack' field.
4457 (function_arg_record_value_1): Set 'stack' to 1 if we run out of
4458 integer slots for an integer field.
4459 (function_arg_record_value_3): Shift vector index.
4460 (function_arg_record_value_2): Likewise.
4461 (function_arg_record_value): Initialize 'stack' to 0.
4462 Set 'stack' to 1 if we run out of integer slots for an integer field.
4463 Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
4464
4465 2003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4466
4467 PR optimization/10955
4468 * unroll.c (unroll_loop): Fix off-by-one bug.
4469
4470 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
4471
4472 * config/rs6000/rs6000.c (function_arg): Remove typo.
4473
4474 2003-06-12 Richard Henderson <rth@redhat.com>
4475
4476 * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
4477 and UNSPEC_DTPOFF.
4478
4479 2003-06-12 Richard Henderson <rth@redhat.com>
4480
4481 PR middle-end/10475
4482 * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
4483 for extracting sub-words.
4484
4485 2003-06-12 Richard Henderson <rth@redhat.com>
4486
4487 PR target/7594
4488 * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
4489 (zero_extendqihi2, zero_extendqisi2): Likewise.
4490
4491 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
4492
4493 * config/rs6000/rs6000.c (function_arg): Always split vectors for
4494 e500 if it's a stdarg function.
4495 (function_arg_advance): Advance 2 registers for vectors in a
4496 stdarg function.
4497 (init_cumulative_args): Initialize stdarg.
4498 (rs6000_spe_function_arg): New.
4499
4500 * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
4501
4502 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
4503
4504 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
4505
4506 2003-06-12 Roger Sayle <roger@eyesopen.com>
4507
4508 PR middle-end/168
4509 * fold-const.c (tree_expr_nonnegative_p): Handle addition
4510 and multiplication of zero extensions, floating point division,
4511 and integer<->fp, fp<->fp and zero extension conversions.
4512 The built-in ceil and floor functions preserve signedness.
4513
4514 2003-06-12 Kazu Hirata <kazu@cs.umass.edu>
4515
4516 * ChangeLog: Follow spelling conventions.
4517 * ChangeLog.2: Likewise.
4518 * c-decl.c: Likewise.
4519 * cfgloop.h: Likewise.
4520 * cgraph.c: Likewise.
4521 * coverage.c: Likewise.
4522 * cppcharset.c: Likewise.
4523 * cpphash.h: Likewise.
4524 * cpplex.c: Likewise.
4525 * cpplib.c: Likewise.
4526 * dbxout.c: Likewise.
4527 * df.c: Likewise.
4528 * dwarf2out.c: Likewise.
4529 * dwarfout.c: Likewise.
4530 * emit-rtl.c: Likewise.
4531 * explow.c: Likewise.
4532 * gcov-io.c: Likewise.
4533 * gcov-io.h: Likewise.
4534 * gcov.c: Likewise.
4535 * gengtype.c: Likewise.
4536 * ggc.h: Likewise.
4537 * opts.c: Likewise.
4538 * real.c: Likewise.
4539 * reload.c: Likewise.
4540 * stmt.c: Likewise.
4541
4542 2003-06-12 Janis Johnson <janis187@us.ibm.com>
4543
4544 * doc/install.texi (m32r-*-elf): Change company to Renesas.
4545
4546 Thu Jun 12 20:00:55 CEST 2003 Jan Hubicka <jh@suse.cz>
4547
4548 * basic-block.h (flow_delete_block_noexpunge): Kill.
4549 * cfgrtl.c (flow_delete_block_noexpunge): Merge to
4550 rtl_delete_block.
4551
4552 2003-06-10 Richard Henderson <rth@redhat.com>
4553
4554 PR inline-asm/4823
4555 * reg-stack.c (any_malformed_asm): New.
4556 (check_asm_stack_operands): Set it.
4557 (convert_regs_1): Check it before aborting.
4558
4559 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
4560
4561 * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
4562
4563 2003-06-12 Jakub Jelinek <jakub@redhat.com>
4564
4565 * c-opts.c (complain_wrong_lang): Add on argument.
4566 Print no- switch if on is false.
4567 (c_common_decode_option): Adjust caller.
4568
4569 2003-06-12 Ulrich Weigand <uweigand@de.ibm.com>
4570
4571 * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
4572 to initialize GOT register.
4573
4574 2003-06-12 Roger Sayle <roger@eyesopen.com>
4575
4576 * fold-const.c (tree_expr_nonnegative_p): Add support for
4577 floating point constants, addition and multiplication.
4578
4579 2003-06-12 J"orn Rennecke <joern.rennecke@superh.com>
4580
4581 * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
4582 constraint modifier for operand 0.
4583
4584 2003-06-12 Hans-Peter Nilsson <hp@axis.com>
4585
4586 Don't warn on dollars in builtin macro definitions,
4587 e.g. __REGISTER_PREFIX__.
4588 * cpphash.h (struct cpp_reader): Move member warn_dollars...
4589 * cpplib.h (struct cpp_options): ...to here. Change type to
4590 unsigned char.
4591 * cppinit.c (cpp_create_reader): Set it to 1 here.
4592 (post_options): Don't set it here.
4593 * c-opts.c (c_common_init_options): Reset it to 0 here.
4594 (finish_options): Set it here.
4595 * cpplex.c (forms_identifier_p): Tweak for new location of
4596 warn_dollars.
4597
4598 * configure.in (assembler dwarf2 debug_line support): Define insn
4599 for cris-*-* and mmix-*-*.
4600 * configure: Regenerate.
4601
4602 2003-06-11 Uwe Stieber <uwe@kaos-group.de>
4603
4604 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
4605 powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
4606 (sh-*-elf*): Add sh*-*-kaos* support.
4607 * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
4608 config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
4609 config/sh/kaos-sh.h: New files.
4610
4611 2003-06-12 Kazu Hirata <kazu@cs.umass.edu>
4612
4613 * gcse.c (fis_get_condition): Make it a global function.
4614 * reload1.c (reload_cse_move2add): Detect implicit sets.
4615 * rtl.h: Add a prototype for fis_get_condition.
4616
4617 2003-06-11 Richard Henderson <rth@redhat.com>
4618
4619 * stmt.c (expand_asm_operands): Don't warn for memories with
4620 queued addresses.
4621
4622 2003-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
4623
4624 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
4625 brackets.
4626
4627 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
4628
4629 * hooks.c (hook_int_size_t_constcharptr_int_0): New.
4630 * hooks.h (hook_int_size_t_constcharptr_int_0): New.
4631 * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
4632 (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
4633 * langhooks.c (lhd_decode_option): Remove.
4634 * langhooks.h (struct lang_hooks): Remove decode_option.
4635 * opts.c (handle_option): No longer use decode_option.
4636
4637 2003-06-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4638
4639 * cfgloopanal.c (variable_initial_value): Update the set of altered
4640 registers correctly.
4641
4642 2003-06-11 Roger Sayle <roger@eyesopen.com>
4643 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4644
4645 * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
4646 * config/i386/netbsd-elf.h: Likewise.
4647 * config/m32r/m32r.h: Likewise.
4648 * config/mn10300/mn10300.h: Likewise.
4649 * config/stormy16/stormy16.h: Likewise.
4650 * config/v850/v850.h: Likewise.
4651 * config/vax/netbsd-elf.h: Likewise.
4652 * config/xtensa/elf.h: Likewise.
4653 * config/xtensa/linux.h: Likewise.
4654
4655 2003-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4656
4657 * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
4658 DWARF 2 default.
4659
4660 * config/mips/dbxmdebug.h: New file.
4661 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
4662 gas and --with-stabs.
4663
4664 2003-06-11 Ulrich Weigand <uweigand@de.ibm.com>
4665
4666 * expr.c (can_move_by_pieces): align argument may be unused.
4667
4668 2003-06-11 J"orn Rennecke <joern.rennecke@superh.com>
4669
4670 * expr.c (convert_move): Handle moves between two CONCATs.
4671
4672 2003-06-11 Kazu Hirata <kazu@cs.umass.edu>
4673
4674 * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
4675 !TARGET_H8300.
4676
4677 2003-06-11 Kazu Hirata <kazu@cs.umass.edu>
4678
4679 * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
4680 * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
4681 (TARGET_RTL_DUMP): Likewise.
4682 (TARGET_SWITHCES): Remove -mrtl-dump.
4683
4684 2003-06-10 Richard Henderson <rth@redhat.com>
4685
4686 * optabs.c (gen_cond_trap): Fix prepare_operand typo.
4687
4688 2003-06-10 Richard Henderson <rth@redhat.com>
4689
4690 * config/ia64/ia64.md (call_gp): Fix memory mode.
4691
4692 2003-06-10 James E Wilson <wilson@tuliptree.org>
4693
4694 PR target/8812
4695 * reload1.c (choose_reload_regs): For equiv reg, add loop over all
4696 hard regs for reload_reg_used_at_all and reg_class_contents checks.
4697
4698 2003-06-10 Kazu Hirata <kazu@cs.umass.edu>
4699
4700 * config/h8300/h8300.c (print_operand): Remove support for
4701 operand character 'b'.
4702 Add the AND case to operand character 'c'.
4703 * config/h8300/h8300.md (two anonymous patterns): Replace
4704 operand character 'b' with 'c'.
4705
4706 2003-06-10 Kazu Hirata <kazu@cs.umass.edu>
4707
4708 * config/h8300/h8300.c (print_operand): Remove support for
4709 operand character 'u'.
4710
4711 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
4712
4713 * configure.in: Fix typo.
4714 * configure: Regenerate.
4715
4716 2003-06-10 Loren James Rittle <ljrittle@acm.org>
4717
4718 * config/alpha/alpha.c (unicosmk_file_end): Add conditional
4719 compilation guard.
4720
4721 2003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
4722
4723 * sh-protos.h (function_symbol): Declare.
4724 * sh.c (expand_block_move, expand_ashiftrt): Use it.
4725 (sh_expand_prologue, sh_expand_epilogue): Likewise.
4726 (sh_initialize_trampoline): Likewise.
4727 (function_symbol): New function.
4728 * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
4729 (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
4730 (call_value_pop, shcompact_return_tramp): Likewise.
4731
4732 * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
4733
4734 * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
4735 target register.
4736
4737 2003-06-10 DJ Delorie <dj@redhat.com>
4738
4739 * doc/md.texi (Machine Constraints): Document stormy's Z
4740 constraint.
4741
4742 2003-06-10 Geoffrey Keating <geoffk@apple.com>
4743
4744 * except.c (call_site_base): Mark with GTY.
4745
4746 2003-06-10 Richard Earnshaw <rearnsha@arm.com>
4747
4748 * arm-proto.h: Convert to ISO C90 prototypes.
4749 * arm.c: Likewise.
4750
4751 2003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
4752
4753 * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
4754
4755 2003-06-10 Steve Ellcey <sje@cup.hp.com>
4756
4757 * calls.c (expand_call): Convert structure_value_addr to Pmode if
4758 necessary.
4759
4760 2003-06-10 Andrew Haley <aph@redhat.com>
4761
4762 * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
4763 (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
4764 (lhd_decl_ok_for_sibcall): New.
4765 * langhooks.c (lhd_decl_ok_for_sibcall): New.
4766 * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
4767 * calls.c (expand_call): Check lang_hook before generating a
4768 sibcall.
4769
4770 2003-06-10 DJ Delorie <dj@redhat.com>
4771
4772 * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
4773 which matches (const_int 0) for addhi3.
4774 * config/stormy16/stormy16.md: Document known constraints.
4775 (addhi3): Handle adding zero.
4776
4777 2003-06-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4778
4779 * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
4780 * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
4781 * config/m32r/m32r-protos.h: Prototype it.
4782
4783 2003-06-10 Janis Johnson <janis187@us.ibm.com>
4784
4785 * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
4786 common to rs6000 sysv targets.
4787 * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
4788 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
4789
4790 2003-06-10 Nick Clifton <nickc@redhat.com>
4791
4792 * config.gcc: Add arm-wince-pe target.
4793 * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
4794 Add comment about default apcs26 support.
4795 * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
4796 multilib.
4797 (MULTILIB_DIRNAMES): Add 'apcs32'.
4798 * config/arm/t-wince-pe: New makefile fragment.
4799 * config/arm/wince-pe.h: New file. Overrides a few definitions
4800 in arm/pe.h
4801
4802 2003-06-10 Roger Sayle <roger@eyesopen.com>
4803
4804 * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
4805 * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
4806 when x is easily negated and f is sin, tan or atan.
4807 (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
4808 sin(x) with flag_unsafe_math_optimizations.
4809 (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
4810 sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
4811
4812 2003-06-10 Roger Sayle <roger@eyesopen.com>
4813
4814 * fold-const.c (fold <EQ_EXPR>): Don't fold x == x only if x
4815 is a floating point type *and* we currently honor NaNs.
4816 (fold <NE_EXPR>): Likewise.
4817
4818 2003-06-10 Mark Mitchell <mark@codesourcery.com>
4819
4820 PR c++/11131
4821 * tree-inline.c (inlinable_function_p): Call the language-specific
4822 hook early.
4823
4824 2003-06-09 David Taylor <dtaylor@emc.com>
4825
4826 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg): Skip over
4827 the f_res field.
4828
4829 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
4830
4831 * configure.in: Remove references to host_truncate_target.
4832 * configure: Regenerate.
4833 * config.gcc: Remove references to truncate_target,
4834 host_truncate_target.
4835
4836 * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
4837 Replace "build_canonical" with build, "host_canonical" with host.
4838 * configure.in: Use GCC_TOPLEV_SUBDIRS.
4839 * aclocal.m4: Include ../config/acx.m4.
4840 * configure: Regenerate.
4841
4842 2003-06-09 David Taylor <dtaylor@emc.com>
4843
4844 * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
4845 bytes of padding in the __va_list_tag structure a name (reserved).
4846
4847 2003-06-09 Jason Merrill <jason@redhat.com>
4848
4849 * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
4850
4851 2003-06-09 Osku Salerma <osku@iki.fi>
4852
4853 * c-format.c (check_format_string, get_constant): New.
4854 (handle_format_attribute, handle_format_arg_attribute,
4855 decode_format_attr): Change to use above functions.
4856
4857 2003-06-09 Richard Henderson <rth@redhat.com>
4858
4859 * stmt.c (expand_asm_operands): Re-word warning.
4860
4861 2003-06-08 Andrew Pinski <pinskia@physics.uc.edu>
4862
4863 PR target/8787
4864 * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
4865 if -masm=intel.
4866
4867 2003-06-09 James E Wilson <wilson@tuliptree.org>
4868
4869 * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
4870 config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
4871 Add libgcc exception.
4872
4873 2003-06-09 David Edelsohn <edelsohn@gnu.org>
4874 Ayal Zaks <gcchaifa@us.ibm.com>
4875
4876 * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
4877 (insvsi*): Add insert_word attribute.
4878 * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
4879 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
4880 power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
4881
4882 2003-06-09 Kazu Hirata <kazu@cs.umass.edu>
4883
4884 * fold-const.c (fold): Fix a comment typo.
4885
4886 2003-06-09 Nathan Sidwell <nathan@codesourcery.com>
4887
4888 * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
4889 removed.
4890
4891 2003-06-09 J"orn Rennecke <joern.rennecke@superh.com>
4892
4893 * sh.c (gen_block_redirect): Use locators.
4894
4895 2003-06-09 Richard Earnshaw <rearnsha@arm.com>
4896
4897 * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
4898 cast to int.
4899
4900 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
4901
4902 * configure.in: Assume gas 2.14 and above can handle MIPS relocation
4903 operators.
4904 * configure: Regenerated.
4905
4906 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
4907 Alexandre Oliva <aoliva@redhat.com>
4908
4909 * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
4910 (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
4911 (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
4912 n32/64 PIC.
4913 (MUST_SAVE_REGISTERS): Delete.
4914 * config/mips/mips.c (mips_frame_info): Remove extra_size field.
4915 (machine_function): Add global_pointer field.
4916 (mips_classify_constant): Check for (const $gp) using pointer equality
4917 with pic_offset_table_rtx.
4918 (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
4919 (mips_restore_gp): Use current_function_outgoing_args_size.
4920 (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
4921 GP_REG_FIRST + 28. Handle relocation strings that have
4922 more than one '('.
4923 (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
4924 (mips_global_pointer): New function.
4925 (mips_save_reg_p): New function, mostly split out from...
4926 (compute_frame_size): ...here. Remove handling of extra_size.
4927 Reclaim args_size if no variables depend on it. Don't treat gp
4928 as a special case: handle it in the main GPR loop.
4929 (mips_initial_elimination_offset): Fix comment.
4930 (save_restore_insns): Save every register in the GPR mask,
4931 removing distinction between mask and real_mask.
4932 (mips_output_function_prologue): Update .frame psuedo-op after
4933 the removal of extra_size. Move the SVR4 PIC stack allocation
4934 and cprestore instructions to mips_expand_prologue.
4935 (mips_gp_insn): New function.
4936 (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
4937 the chosen global pointer. Handle SVR4 PIC stack allocation
4938 in the same way as other ABIs. Adjust varargs code accordingly.
4939 Emit a cprestore insn after allocating the stack. Use mips_gp_insn
4940 to emit the loadgp sequence. Follow it with a loadgp_blockage
4941 if not using explicit relocs.
4942 (mips_output_function_epilogue): Reinstate the default gp register.
4943 (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
4944 (mips16_optimize_gp): Likewise.
4945 * config/mips/mips.md (UNSPEC_LOADGP): Remove.
4946 (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
4947 (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
4948 (loadgp): Remove.
4949 (loadgp_blockage, cprestore): New instructions.
4950 (builtin_setjmp_setup): Implement using emit_move_insn. Use
4951 pic_offset_table_rtx.
4952 (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
4953 (builtin_longjmp): Use gen_raw_REG to force use of $28.
4954
4955 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
4956
4957 * config/mips/mips-protos.h (mips_output_division): Declare.
4958 * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
4959 (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
4960 (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
4961 (TARGET_CHECK_ZERO_DIV): New macro.
4962 (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
4963 * config/mips/mips.c (mips_output_division): New function.
4964 * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
4965 account when calculating the default length of a division.
4966 (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
4967 Enable regardless of optimization level. Use mips_output_division.
4968 (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
4969 udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
4970 divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
4971 modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
4972 udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
4973 umoddi3_internal): Remove.
4974
4975 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
4976
4977 * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
4978 (mips_sw_reg_names): Likewise.
4979 (mips_regno_to_class): Change hilo entry to NO_REGS.
4980 (hilo_operand): Use MD_REG_P.
4981 (extend_operator): New predicate.
4982 (override_options): Remove 'a' constraint.
4983 (mips_secondary_reload_class): Remove hilo handling. Also remove
4984 handling of (plus sp reg) reloads for mips16.
4985 (mips_register_move_cost): Remove hilo handling.
4986 * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
4987 (MD_REG_LAST): Remove hilo from range.
4988 (HILO_REGNUM): Delete.
4989 (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
4990 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4991 (PREDICATE_CODES): Add entry for extend_operator.
4992 (DEBUG_REGISTER_NAMES): Change hilo entry to "".
4993 * config/mips/mips.md: Remove hilo clobbers wherever they occur.
4994 Remove constraints from multiplication define_expands. Remove
4995 clobbers from "decorative" define_expand patterns.
4996 (UNSPEC_HILO_DELAY): Delete.
4997 (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
4998 (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
4999 Adjust C code to just emit insns for !TARGET_64BIT.
5000 (mulsidi3_internal): Rename to mulsidi3_32bit.
5001 (mulsidi3_64bit): Use a "d" constraint for the destination.
5002 Use extend_operator so that the pattern can handle umulsidi3 as well.
5003 Split the instruction after reload.
5004 (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
5005 (umulsidi3_internal): Rename to umulsidi3_32bit.
5006 (umulsidi3_64bit): Remove.
5007 (*smsac_di, *umsac_di): Line-wrap fixes.
5008 (udivsi3_internal): Don't allow operand 2 to be constant.
5009 (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
5010 (movdi_internal2, movsi_internal): Remove hilo alternatives.
5011 (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
5012
5013 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
5014
5015 PR target/10913
5016 * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
5017 PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
5018 PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
5019 PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
5020 SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
5021 (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
5022 PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
5023 asm_out_text_file with asm_out_file.
5024 * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
5025 * config/mips/elf.h (TEXT_SECTION): Undefine.
5026 * config/mips/elf64.h (TEXT_SECION): Undefine.
5027 * config/mips/openbsd.h (TEXT_SECION): Undefine.
5028 * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
5029 (override_options): Disable small-data optimizations unless using
5030 gas or explicit relocations.
5031 (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
5032 iris6_asm_named_section, iris6_asm_file_start): Remove code for
5033 handling TARGET_FILE_SWITCHING.
5034 (copy_file_data): Move into TARGET_IRIX6 block.
5035
5036 2003-06-08 Richard Henderson <rth@redhat.com>
5037
5038 * expr.h (EXPAND_MEMORY): New.
5039 * expr.c (expand_expr): Check it.
5040 * stmt.c (expand_asm_operands): Provide it when the constraint
5041 requires a memory. Warn for memory input constraints without
5042 a memory operand.
5043
5044 2003-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5045
5046 * varasm.c: Don't include c-tree.h.
5047
5048 2003-06-08 Andreas Jaeger <aj@suse.de>
5049
5050 * predict.h: Convert to ISO C90 prototypes.
5051 * predict.c: Likewise.
5052 * tree-dump.h: Likewise.
5053 * tree-dump.c: Likewise.
5054 * diagnostic.h: Likewise.
5055 * diagnostic.c: Likewise.
5056 * combine.c: Likewise.
5057
5058 * rtl.h: Convert prototypes of combine.c to ISO C90.
5059
5060 Sun Jun 8 21:27:41 CEST 2003 Jan Hubicka <jh@suse.cz>
5061
5062 * cfglayout.c (insn_scope): New static function
5063 (block_locators_*, line_locators*, file_locators*): New static varrays.
5064 (scope_to_insns_initialize): Use them.
5065 (insn_line, insn_file): New functions.
5066 (scope_to_insns_finalize): Use insn_scope.
5067 (prologue_locator, epilogue_locator): New global variables.
5068 * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
5069 make_call_insn_raw, emit_copy_of_insn_after): Use locators.
5070 (emit_insn_after_scope, emit_insn_before_scope
5071 emit_jump_insn_after_scope, emit_jump_insn_before_scope
5072 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
5073 (emit_insn_after_setloc, emit_insn_before_setloc
5074 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
5075 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
5076 use locators.
5077 * final.c (notice_source_line): Use locators.
5078 (final_start_function): Set initial source file and line.
5079 (final_scan_insn): Use locators.
5080 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
5081 noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
5082 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
5083 noce_process_if_block, find_cond_trap): Likewise.
5084 * integrate.c (copy_insn_list): Likewise.
5085 * jump.c (duplicate_loop_exit_test): LIkewise.
5086 * print-rtl.c (print_rtx): Print locators.
5087 * recog.c (peephole2_optimize): Likewise.
5088 * rtl.h (INSN_SCOPE): Remove.
5089 (emit_insn_after_scope, emit_insn_before_scope
5090 emit_jump_insn_after_scope, emit_jump_insn_before_scope
5091 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
5092 (emit_insn_after_setloc, emit_insn_before_setloc
5093 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
5094 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
5095 (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
5096 * unroll.c (copy_loop_body): Use locators.
5097 * function.c (set_insn_locators): New function.
5098 (thread_prologue_and_epilogue_insns): Set the locators accordingly.
5099
5100 2003-06-08 Kazu Hirata <kazu@cs.umass.edu>
5101
5102 * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
5103 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
5104 _fixsfdi _fixunssfdi.
5105 (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
5106 popcounthi2.
5107 (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
5108 * config/h8300/clzhi2.c: New.
5109 * config/h8300/ctzhi2.c: Likewise.
5110 * config/h8300/parityhi2.c: Likewise.
5111 * config/h8300/popcounthi2.c: Likewise.
5112
5113 Sun Jun 8 15:52:17 CEST 2003 Jan Hubicka <jh@suse.cz>
5114
5115 * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
5116 * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
5117
5118 * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
5119 (dump_bb): New based on old dump_bb in cfgrtl.c
5120 (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
5121 * cfghooks.h (cfgh_verify_flow_info): Return status.
5122 * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
5123 * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
5124 (dump_bb): Remove generic parts.
5125 (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
5126 (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
5127
5128 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
5129
5130 * Makefile.in: Rename options.c and options.h to c-options.c and
5131 c-options.h.
5132 (OBJS): Remove options.o.
5133 * c-opts.c: Don'tInclude c-options.h instead of options.h.
5134 * opts.c: Don't include options.h.
5135 (find_opt): Can't use enum opt_code or N_OPTS.
5136 * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
5137 * opts.sh: ... here.
5138
5139 2003-06-07 Eric Botcazou <ebotcazou@libertysurf.fr>
5140 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5141
5142 PR pch/9830
5143 * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
5144 if HAVE_MINCORE is defined.
5145 (MAP_FAILED): Define if not defined.
5146 (gt_pch_save): Test against MAP_FAILED.
5147 (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
5148 the mapping address to the preferred base after checking it
5149 is possible to do so. Test against MAP_FAILED.
5150 * configure.in: Test for the presence of mincore in libc.
5151 * config.in: Regenerate.
5152 * configure: Regenerate.
5153
5154 2003-06-07 Richard Henderson <rth@redhat.com>
5155
5156 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
5157 conditional compilation guard.
5158
5159 2003-06-08 Kazu Hirata <kazu@cs.umass.edu>
5160
5161 * optabs.c (expand_abs): Set result_unsignedp to 1 if
5162 flag_trav is zero.
5163
5164 2003-06-07 Richard Henderson <rth@redhat.com>
5165
5166 * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
5167
5168 2003-06-07 Richard Henderson <rth@redhat.com>
5169
5170 * basic-block.h (EDGE_SIBCALL): New.
5171 (EDGE_ALL_FLAGS): Update.
5172 * cfg.c (dump_edge_info): Add sibcall name.
5173 * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
5174 * cfgrtl.c (purge_dead_edges): Handle sibcalls.
5175
5176 2003-06-07 Andreas Jaeger <aj@suse.de>
5177
5178 * mklibgcc.in (lib2funcs): Remove _exit.
5179 * libgcc2.c: Remove L_exit.
5180 * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
5181
5182 * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
5183
5184 * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
5185
5186 * ggc.h: Convert to ISO C90 prototypes.
5187 * ggc-none.c: Likewise.
5188 * ggc-common.c: Likewise.
5189 * ggc-page.c: Likewise.
5190 * ggc-simple.c: Likewise.
5191
5192 * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
5193
5194 * system.h: Poison INIT_SECTION_PREAMBLE.
5195
5196 2003-06-07 Zack Weinberg <zack@codesourcery.com>
5197
5198 * config.gcc (with_cpu handling): Translate sparc64 in
5199 $machine to --with-cpu=v9.
5200 * config/alpha/alpha.c
5201 (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
5202 (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
5203
5204 * target.h: New hook asm_out.file_end.
5205 * target.h: Update to match. New hook macro TARGET_ASM_FILE_END.
5206 * toplev.c (compile_file): Use targetm.asm_out.file_end.
5207 * system.h: Poison ASM_FILE_END.
5208 * varasm.c (file_end_indicate_exec_stack): New.
5209 * output.h: Prototype it.
5210 * doc/tm.texi: Document TARGET_ASM_FILE_END and
5211 file_end_indicate_exec_stack. Delete references to attasm.h.
5212
5213 * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
5214 (ASM_FILE_END): Delete; move code...
5215 * config/darwin.c (darwin_file_end): Here; new function.
5216 * config/darwin-protos.h: Prototype it.
5217 * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
5218 rename unicosmk_file_end.
5219 * config/arm/aof.h (ASM_FILE_END): Delete; move code...
5220 * config/arm/arm.c (aof_file_end): ... here; new static function.
5221 Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
5222 Make aof_dump_imports and aof_dump_pic_table static.
5223 * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
5224 Set TARGET_ASM_FILE_END to avr_file_end.
5225 * config/c4x/c4x.c (c4x_file_end): Make static. Take no arguments.
5226 Set TARGET_ASM_FILE_END to c4x_file_end.
5227 * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
5228 make static. Take no arguments. Set TARGET_ASM_FILE_END to
5229 h8300_file_end.
5230 * config/i370/i370.h (ASM_FILE_END): Delete; move code...
5231 * config/i370/i370.c (i370_file_end): ... here; new static function.
5232 Set TARGET_ASM_FILE_END to i370_file_end.
5233 * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
5234 Take no arguments. Call file_end_indicate_exec_stack if
5235 NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
5236 * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
5237 Define NEED_INDICATE_EXEC_STACK to 0.
5238 * config/i386/linux.h, config/i386/linux64.h: Redefine
5239 NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
5240 * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
5241 i386_pe_file_end. Take no arguments. Use ix86_file_end.
5242 * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
5243 ia64_hpux_file_end, make static. Take no arguments.
5244 * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
5245 commands_in_prologues, commands_in_epilogues): Delete.
5246 (function_epilogue): Update to match.
5247 * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
5248 make static. Take no arguments.
5249 (iris6_asm_file_end): Rename iris6_file_end, make static, use
5250 mips_file_end, take no arguments.
5251 Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
5252 appropriate.
5253 * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
5254 make static, take no arguments. Set TARGET_ASM_FILE_END to
5255 mmix_file_end.
5256 * config/pa/pa.c (output_deferred_plabels): Make static, take
5257 no arguments. Set TARGET_ASM_FILE_END to output_deferred_plabels.
5258 * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
5259 (ASM_FILE_END): Delete; move code...
5260 * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
5261 new static function.
5262
5263 * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
5264 * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
5265 Don't set ASM_FILE_END.
5266 * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
5267 * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
5268 * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
5269 file_end_indicate_exec_stack; don't set ASM_FILE_END.
5270 * config/alpha/unicosmk.h, config/i386/cygming.h
5271 * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
5272 * config/arm/arm-protos.h, config/alpha/alpha-protos.h
5273 * config/avr/avr-protos.h, config/c4x/c4x-protos.h
5274 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
5275 * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
5276 * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
5277
5278 Sat Jun 7 18:32:13 CEST 2003 Jan Hubicka <jh@suse.cz>
5279
5280 * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
5281 specified.
5282
5283 Sat Jun 7 15:20:01 CEST 2003 Jan Hubicka <jh@suse.cz>
5284
5285 * Makefile.in (stageprofile_build): Kill redundant target.
5286 * i386.c (mdep_reorg): Don't pad jumps for Athlon.
5287
5288 2003-06-07 Andreas Jaeger <aj@suse.de>
5289
5290 * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
5291
5292 * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
5293 * config/dsp16xx/dsp16xx.h: Likewise.
5294 * config/i386/i386.h: Likewise.
5295 * config/ip2k/ip2k.h: Likewise.
5296
5297 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
5298
5299 * Makefile.in (OJBS, c-opts.o): Update.
5300 (c-options.c, c-options.h): Rename options.h and options.c.
5301 (options.h): Rename options_.h.
5302 (opts.o): New.
5303 * c-common.h (c_common_handle_option): Replace c_common_decode_option.
5304 (c_common_init_options): Update prototype.
5305 * c-lang.c (c_init_options): Update prototype.
5306 (LANG_HOOKS_HANDLE_OPTION): Override.
5307 (LANG_HOOKS_DECODE_OPTION): Drop.
5308 * c-opts.c: Include opts.h and options.h instead of c-options.h
5309 and c-options.c.
5310 (lang_flags): Move to file scope.
5311 (find_opt, c_common_decode_option): Remove.
5312 (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
5313 CL_REJECT_NEGATIVE): Move to opts.h.
5314 (missing_arg): Update prototype.
5315 (c_common_init_options): Update for new prototype.
5316 (c_common_handle_options): Filenames are passed as N_OPTS.
5317 * hooks.c (hook_int_void_0): New.
5318 * hooks.h (hook_int_void_0): New.
5319 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
5320 (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
5321 (LANG_HOOKS_INITIALIZER): Update.
5322 * langhooks.h (init_options): Update.
5323 (handle_option): New.
5324 * opts.c, opts.h: New files.
5325 * opts.sh: Update c file to include opts.h and options.h.
5326 * toplev.c: Include opts.h; change options.h to options_.h.
5327 (parse_options_and_default_flags): Get lang_mask, use
5328 handle_option for language-specific handling.
5329 * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
5330 (LANG_HOOKS_HANDLE_OPTION): Override.
5331 (objc_init_options): Update.
5332
5333 2003-06-07 Magnus Kreth <magnus.kreth@gmx.de>
5334 Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
5335
5336 PR other/7031
5337 * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
5338 gcov.
5339
5340 2003-06-07 Kelley Cook <kelleycook@wideopenwest.com>
5341
5342 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
5343 section names.
5344 * configure: Regenerate.
5345
5346 2003-06-07 Alan Modra <amodra@bigpond.net.au>
5347
5348 * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
5349
5350 2003-06-06 James E Wilson <wilson@tuliptree.org>
5351
5352 PR inline-asm/10890
5353 * reload1.c (merge_assigned_reloads): Abort only if two reloads have
5354 different in fields.
5355
5356 2003-06-06 Nathanael Nerode <neroden@gcc.gnu.org>
5357
5358 * configure.in: Make $(target_subdir) correspond with top level usage.
5359 * Makefile.in: Likewise.
5360 * configure: Regenerate.
5361
5362 2003-06-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5363
5364 * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
5365 ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
5366 unsigned HOST_WIDE_INT.
5367 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
5368 Likewise.
5369 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
5370 Likewise.
5371
5372 2003-06-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5373
5374 * doc/install.texi (Prerequisites): New section documenting
5375 tools and packages necessary prior to building and/or
5376 modifying GCC.
5377 * doc/install.texi2html: Also generate prerequisites.html.
5378
5379 2003-06-06 Richard Earnshaw <rearnsha@arm.com>
5380
5381 PR target/11052
5382 * ifcvt.c (noce_process_if_block): Fail if the destination has
5383 side-effects.
5384
5385 2003-06-06 Jason Merrill <jason@redhat.com>
5386
5387 * stmt.c (resolve_asm_operand_names): Rename from
5388 resolve_operand_names. No longer static. Avoid needless copying.
5389 Don't build array of constraints.
5390 (expand_asm_operands): Build it here.
5391 * tree.h: Declare resolve_asm_operand_names.
5392
5393 * stmt.c (expand_decl): Put artificial vars into registers even
5394 when not optimizing, and don't mark the regs as user vars.
5395
5396 2003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
5397
5398 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
5399 of the generated register.
5400
5401 2003-06-06 Daniel Jacobowitz <drow@mvista.com>
5402
5403 * config.gcc: Add a missing sparc64 case.
5404
5405 2003-06-06 Jakub Jelinek <jakub@redhat.com>
5406
5407 * mklibgcc.in: Propagate .note.GNU-stack section if needed into
5408 the .hidden assembly stubs.
5409
5410 2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
5411
5412 * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
5413 and x86_64-*-*.
5414
5415 * config/i386/mmintrin.h: Update version and add alternate
5416 intrinsic names.
5417 * config/i386/xmmintrin.h: Likewise.
5418
5419 * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
5420 intrinsics to ...
5421 * config/i386/emmintrin.h: Here. New file.
5422
5423 2003-06-06 Roger Sayle <roger@eyesopen.com>
5424
5425 * fold-const.c (fold <ABS_EXPR>): Re-fold the result of folding
5426 fabs(-x) into fabs(x). Use tree_expr_nonnegative_p to determine
5427 when the ABS_EXPR (fabs or abs) is not required.
5428 (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
5429 always nonnegative from fold to here. Additionally, cabs and fabs
5430 are always non-negative, and pow and atan are non-negative if
5431 their first argument is non-negative.
5432
5433 * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
5434 Evaluate cabs of a constant at compile-time. Convert cabs of a
5435 non-complex argument into fabs. Convert cabs(z) into
5436 sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
5437 -funsafe-math-optimizations or -ffast-math.
5438 (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
5439 Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
5440
5441 Thu Jun 5 20:51:09 CEST 2003 Jan Hubicka <jh@suse.cz>
5442
5443 * sourcebuild.texi (Front End Directory): Document new hooks.
5444
5445 Fri Jun 6 11:02:35 CEST 2003 Jan Hubicka <jh@suse.cz>
5446
5447 * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
5448 * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
5449 stack frames.
5450 (pro_epilogue_adjust_stack_rex64_2): New pattern
5451
5452 Fri Jun 6 11:03:14 CEST 2003 Jan Hubicka <jh@suse.cz>
5453 Pop Sebastian
5454 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5455
5456 * cfghooks.h, cfghooks.c: New files.
5457 * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
5458 (OBJS): Add cfghooks.o.
5459 (cfghooks.o): New rule.
5460 * basic-block.h (split_edge): Rename to rtl_split_edge.
5461 (verify_flow_info): Rename to rtl_verify_flow_info.
5462 (cfghooks.h): Included here.
5463 * cfgrtl.c (split_edge): Renamed rtl_split_edge.
5464 (verify_flow_info): Renamed rtl_verify_flow_info.
5465 * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
5466
5467 * basic-block.h (split_block, split_edge, flow_delete_block,
5468 redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
5469 (flow_delete_block_noexpunge): Return void.
5470 * cfg.c (verify_flow_info): New function.
5471 * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
5472 try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
5473 Use delete_block.
5474 * cfglayout.c (function_footer): Rename to...
5475 (cfg_layout_function_footer): ... this variable
5476 (unlink_insn_chain): Make global.
5477 (fixup_reorder_chain, record_effective_endpoints): Update.
5478 (cleanup_unconditional_jumps): Use delete_block.
5479 (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
5480 (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
5481 (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
5482 * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block): Delete.
5483 (cfg_layout_function_footer): Declare.
5484 * cfgloopmanip (split_loop_bb): Do not update RBI.
5485 (remove_bbs): Use delete_block.
5486 (loop_reidrect_edge, loop_delete_branch_edge): Use
5487 redirect_edge_and_branch.
5488 (create_preheader): Use split_block and redirect_edge_and_branch_force.
5489 (split_edge_with): Likewise.
5490 * cfgrtl.c: Include cfglayout.h
5491 (split_edge): Rename to ...
5492 (rtl_split_edge) ... this one; make local.
5493 (redirect_edge_and_branch): Rename to ...
5494 (rtl_redirect_edge_and_branch) ... this one; make local.
5495 (redirect_edge_and_branch_force): Rename to ...
5496 (rtl_redirect_edge_and_branch_force) ... this one; make local.
5497 (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
5498 (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
5499 cfglayout.c; update to directly call RTL counterparts.
5500 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
5501 * ifcvt.c (find_cond_trap): Use delete_block.
5502 (find_if_case_1): Use delete_block.
5503 (find_if_case_2): Use delete_block.
5504 * rtl.h (unlink_insn_chain): Declare.
5505 * toplev.c (rtl_reigster_cfg_hooks): New.
5506
5507 2003-06-05 Richard Henderson <rth@redhat.com>
5508
5509 * recog.c (peephole2_optimize): Revert last change.
5510
5511 2003-06-05 Richard Henderson <rth@redhat.com>
5512
5513 * recog.c (peephole2_optimize): Don't split block unless
5514 can_throw_internal.
5515
5516 2003-06-06 Kazu Hirata <kazu@cs.umass.edu>
5517
5518 * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
5519 * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
5520
5521 2003-06-05 Kelley Cook <kelleycook@wideopenwest.com>
5522
5523 PR optimization/4490
5524 * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
5525 * doc/invoke.texi (m96bit-long-double, m128bit-long-double): Reword
5526 documentation to accurately reflect what these options do.
5527
5528 2003-06-06 Kaz Kojima <kkojima@gcc.gnu.org>
5529
5530 * config/sh/linux.h (STARTFILE_SPEC): Handle -pie. Simplify.
5531 (ENDFILE_SPEC): Redefine to handle -pie.
5532
5533 2003-06-05 Phil Edwards <phil@jaj.com>
5534
5535 * Makefile.in (qmtest-g++): Use target_alias, not target.
5536
5537 2003-06-05 Per Bothner <pbothner@apple.com>
5538
5539 * toplev.c (push_srcloc): Simplify behavior to save current location
5540 and set current location to parameters.
5541 (pop_srcloc): Simplify semantics.
5542 (lang_dependent_init): Remove now-useless initial push_srcloc.
5543
5544 2003-05-06 Richard Henderson <rth@redhat.com>
5545
5546 * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
5547 language-specific tree codes.
5548
5549 2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5550
5551 PR middle-end/9986
5552 * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
5553 BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
5554
5555 Thu Jun 5 18:32:46 CEST 2003 Jan Hubicka <jh@suse.cz>
5556
5557 * install.tex: Document profiledbootstrap.
5558
5559 * configure.in: Add support for lang.stageprofile and
5560 lang.stagefeedback
5561 * Makefile.in (clean, distclean): Kill new stages
5562 (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
5563 (STAGE2_FLAGS_TO_PASS): ... this one.
5564 (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
5565 (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
5566 (stageprofile_build, stageprofile_copy, stagefeedback_build,
5567 stagefeedback_copy): New.
5568 (restageprofile, restagefeedback, stageprofile-start,
5569 stageprofile, stagefeedback-start): Likewise.
5570
5571 2003-06-05 David Miller <davem@redhat.com>
5572 Richard Henderson <rth@redhat.com>
5573
5574 * optabs.c (HAVE_conditional_trap): Provide default.
5575 (gen_conditional_trap): Likewise.
5576 (init_optabs): Merge init_traps.
5577 (gen_cond_trap): Use prepare_operand. Restructure and avoid ifdef.
5578
5579 Thu Jun 5 14:59:44 CEST 2003 Jan Hubicka <jh@suse.cz>
5580
5581 * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
5582 is REG for nonzero_bits (REG) == 8.
5583
5584 Thu Jun 5 13:23:51 CEST 2003 Jan Hubicka <jh@suse.cz>
5585
5586 * i386.md (align): Fix warning; clarify what to do when no p2align
5587 is available.
5588
5589 2003-06-05 Nick Clifton <nickc@redhat.com>
5590
5591 * config.gcc (m32r-elf): Revert previous delta.
5592 * config/m32r/t-m32r (crtinit.o): Fix rule to work with
5593 multilibs. Remove m32rx specific version.
5594 (crtfini.o): Likewise.
5595 (EXTRA_MULTILIB_PARTS): Define.
5596
5597 2003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
5598
5599 * doc/md.texi (Machine Constraints): Correct the meaning of
5600 constraints related to floating-point registers on SPARC.
5601
5602 2003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
5603 Paolo Bonzini <bonzini@gnu.org>
5604
5605 PR target/10663
5606 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
5607 assembler and linker output to /dev/null.
5608 Use a 'sed' construct instead of 'grep -A1'.
5609 * configure: Regenerate.
5610
5611 2003-06-04 Richard Henderson <rth@redhat.com>
5612
5613 * config/i386/i386.c (struct ix86_address): Add seg.
5614 (no_seg_address_operand): New.
5615 (ix86_decompose_address): Restructure PLUS loop. Accept one
5616 UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS. Adjust ESP swap test
5617 to test for a regnum, not stack_pointer_rtx.
5618 (ix86_address_cost): Reduce cost if non-default segment.
5619 (legitimate_address_p): Remove UNSPEC_TP check.
5620 (get_thread_pointer): Add to_reg argument. Don't represent
5621 the thread pointer as a memory load.
5622 (legitimize_tls_address): Split out of ...
5623 (legitimize_address): ... here.
5624 (print_operand_address): Handle parts.seg.
5625 (ix86_expand_move): Use legitimize_tls_address.
5626 (ix86_rtx_costs): Handle UNSPEC_TP.
5627 * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
5628 (TARGET_TLS_DIRECT_SEG_REFS): New.
5629 (TARGET_SWITCHES): Add tls-direct-seg-refs.
5630 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
5631 (PREDICATE_CODES): Add no_seg_address_operand.
5632 * config/i386/i386.md (lea_1): Use it.
5633 (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
5634 (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
5635 * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
5636 * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
5637 * doc/invoke.texi: Add -mtls-direct-seg-refs.
5638
5639 2003-06-04 Mark Mitchell <mark@codesourcery.com>
5640
5641 * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
5642 (QMTEST_GPP_TESTS): Use "g++" by default.
5643 (stamp-qmtest): Tweak database creation.
5644 (QMTEST_DIR/context): Update context file format.
5645 (qmtest-g++): Tweak command-line.
5646
5647 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5648
5649 * Makefile.in (varasm.o): Don't set -Wno-error.
5650 * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
5651
5652 2003-06-04 Zack Weinberg <zack@codesourcery.com>
5653
5654 PR bootstrap/3163
5655 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
5656 (gcc_AC_FUNC_MMAP_BLACKLIST): New.
5657 * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
5658 and AC_CHECK_FUNCS lists, respectively. Use
5659 gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
5660 AC_FUNC_MMAP_FILE.
5661 * configure, config.in: Regenerate.
5662
5663 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5664
5665 * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
5666 * arm.c (arm_output_function_prologue): Fix format specifiers.
5667 * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
5668 * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
5669 HOST_WIDE_INT_PRINT_DEC.
5670 * vax.c (vax_output_function_prologue): Fix format specifiers.
5671
5672 2003-06-04 Richard Henderson <rth@redhat.com>
5673
5674 * cse.c (find_best_addr): Consider binary operators even if second
5675 argument is not CONST_INT.
5676
5677 2003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5678
5679 * doc/invoke.texi (max-cse-path-length): Document.
5680
5681 2003-06-04 Richard Henderson <rth@redhat.com>
5682
5683 * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
5684
5685 2003-06-04 Andrew Pinski <pinskia@physics.uc.edu>
5686
5687 * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
5688 Remove semi-colon at the end of the expression.
5689
5690 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5691
5692 * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
5693 * i370.h (mvs_function_name_length): Likewise.
5694 * i960.h (CONSTANT_ALIGNMENT): Likewise.
5695 * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5696 * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5697 * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5698 * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
5699 variable.
5700
5701 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
5702
5703 * config.gcc: Reorganize --with-cpu logic. Set
5704 configure_default_options according to the default CPU, --with-cpu,
5705 --with-arch, --with-tune, --with-schedule, --with-abi, and
5706 --with-float. Check for legal values of various options.
5707 * configure.in: Define configure_default_options in configargs.h.
5708 * configure: Regenerated.
5709 * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
5710 (TARGET_DEFAULT_FLOAT_P): New macros.
5711 * gcc.c (do_option_spec): New function.
5712 (struct default_spec, option_default_specs): New.
5713 (main): Call do_option_spec.
5714 * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
5715 config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
5716 config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
5717
5718 * doc/install.texi: Update --with-cpu documentation. Mention
5719 --with-arch, --with-schedule, --with-tune, --with-abi, and
5720 --with-float.
5721 * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
5722
5723 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
5724
5725 * config.gcc: Only process --with-cpu logic in the third pass.
5726
5727 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
5728
5729 * config.gcc: Reorganize --with-cpu section. Remove an
5730 obsolete comment about the default CPU for x86-64. Fix
5731 a typo for the ep9312. Update the list of supported PowerPC
5732 CPUs. Support a limited set of new --with-cpu options
5733 for i386.
5734
5735 2003-06-04 Aldy Hernandez <aldyh@redhat.com>
5736
5737 * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
5738 complex numbers <= 32 bits into two registers.
5739
5740 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5741
5742 * alpha.c (print_operand_address): Fix format specifier warnings.
5743 * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5744 * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5745 * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
5746 * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
5747 * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
5748 ASM_OUTPUT_SKIP): Likewise.
5749 * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5750 * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5751 * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
5752 Likewise.
5753 * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5754 * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
5755 * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
5756 * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5757 * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
5758 * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5759 * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5760 * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5761 * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5762 * svr3.h (ASM_OUTPUT_COMMON): Likewise.
5763
5764 2003-06-04 J"orn Rennecke <joern.rennecke@superh.com>
5765
5766 * c-decl.c (c_init_decl_processing): Clear input_file_name
5767 while building common nodes.
5768 * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
5769 Don't add working directory for strings like <built-in> .
5770
5771 2003-06-04 David Edelsohn <edelsohn@gnu.org>
5772
5773 * doc/install.texi (*-ibm-aix*): Native as and ld required
5774 to bootstrap on AIX 5L.
5775
5776 2003-06-04 Richard Henderson <rth@redhat.com>
5777
5778 * c-common.c (handle_cleanup_attribute): New.
5779 (c_common_attributes): Add it.
5780 * c-decl.c (finish_decl): Honor the cleanup attribute.
5781 * doc/extend.texi (Variable Attributes): Document it.
5782
5783 * unwind-c.c: New file.
5784 * Makefile.in (LIB2ADDEH): Add it.
5785 * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
5786 config/ia64/t-ia64: Likewise.
5787
5788 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5789
5790 * function.c (trampolines_created): New variable.
5791 (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
5792 * function.h (trampolines_created): Add.
5793 * config/s390/linux.h (ASM_FILE_END): Define.
5794 * config/alpha/linux-elf.h (ASM_FILE_END): Define.
5795 * config/m68k/linux.h (ASM_FILE_END): Define.
5796 * config/rs6000/linux.h (ASM_FILE_END): Define.
5797 * config/rs6000/linux64.h (ASM_FILE_END): Define.
5798 * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
5799 * config/sparc/linux.h (ASM_FILE_END): Define.
5800 * config/sparc/linux64.h (ASM_FILE_END): Define.
5801 * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
5802 * config/i386/linux.h (SUBTARGET_FILE_END): Define.
5803 * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
5804
5805 Wed Jun 4 18:39:33 CEST 2003 Jan Hubicka <jh@suse.cz>
5806
5807 * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
5808 (ix86_reorg): Use it.
5809 * i386.md (align): New insn pattern.
5810
5811 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5812
5813 * toplev.c (rest_of_type_compilation): Fix typo.
5814
5815 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5816 Alan Modra <amodra@bigpond.net.au>
5817
5818 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
5819 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
5820 * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
5821 * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
5822 * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
5823 * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
5824 (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
5825 * config/rs6000/rs6000.c (output_profile_hook): Likewise.
5826
5827 * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
5828 Pass it to $gcc_cv_as.
5829 * configure: Rebuilt.
5830
5831 * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
5832 (print_operand): Allow TARGET_AIX to be non-constant.
5833 (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
5834 Define unconditionally.
5835 (rs6000_elf_declare_function_name): New function.
5836 * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
5837 non-constant.
5838 * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
5839 to 1.
5840 (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
5841 [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
5842 is defined.
5843 (TARGET_AIX): Define to 1 if TARGET_64BIT.
5844 (PROCESSOR_DEFAULT): Remove.
5845 (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
5846 INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
5847 [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
5848 (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
5849 -m32 and -m64.
5850 (MULTILIB_DEFAULTS): Define.
5851 (SUBSUBTARGET_EXTRA_SPECS): Define.
5852 (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
5853 (TARGET_TOC): Define only if !RS6000_BI_ARCH.
5854 (TARGET_NO_TOC): Remove.
5855 [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
5856 TARGET_PROTOTYPE): Define to 0.
5857 (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
5858 (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
5859 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
5860 if !TARGET_64BIT.
5861 (USER_LABEL_PREFIX): Remove.
5862 (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
5863 (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
5864 if TARGET_64BIT.
5865 (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
5866 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
5867 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
5868 (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
5869 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5870 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
5871 TARGET_64BIT.
5872 (RS6000_CALL_GLUE): Likewise.
5873 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
5874 RESTORE_FP_SUFFIX): Likewise.
5875 (ASM_DECLARE_FUNCTION_NAME): Remove.
5876 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
5877 DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
5878 name if TARGET_64BIT.
5879 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
5880 !TARGET_64BIT.
5881 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
5882 (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
5883 (DRAFT_V4_STRUCT_RET): Define.
5884 (SIGNAL_FRAMESIZE): New enum value.
5885 (MD_FALLBACK_FRAME_STATE_FOR): Define.
5886 * config/rs6000/default64.h: New file.
5887 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
5888 options.
5889 (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
5890 to RS6000_ABI_NAME. Only disallow mixing of -fPIC with -mcall-aixdesc
5891 if !TARGET_64BIT.
5892 [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
5893 (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
5894 function.
5895 (TARGET_OS_SYSV_CPP_BUILTINS): Define.
5896 (TARGET_OS_CPP_BUILTINS): Use it.
5897 (CPP_SYSV_SPEC): Remove.
5898 (CPP_SPEC): Remove cpp_sysv.
5899 (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
5900 Add SUBSUBTARGET_EXTRA_SPECS.
5901 (SUBSUBTARGET_EXTRA_SPECS): Define.
5902 * config/rs6000/biarch64.h: New file.
5903 * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
5904 New prototype.
5905 * config/rs6000/x-linux64: New file.
5906 * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
5907 multilibs.
5908 * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
5909 * config/rs6000/eabi-cn.asm: Likewise.
5910 * config/rs6000/tramp.asm: Likewise.
5911 * config/rs6000/sol-ci.asm: Likewise.
5912 * config/rs6000/sol-cn.asm: Likewise.
5913 * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
5914 (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
5915 * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
5916 _CALL_AIXDESC section.
5917 * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
5918 defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
5919 or default32.
5920
5921 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
5922
5923 * config.gcc: Revert accidentally committed ARM changes.
5924
5925 2003-06-04 Roger Sayle <roger@eyesopen.com>
5926
5927 * builtins.c (dconstpi, dconste): New mathematical constants.
5928 (init_builtin_dconsts): New function to initialize dconstpi
5929 and dconste.
5930 (fold_builtin): Optimize exp(1.0) = e. Evaluate exp(x) at
5931 compile time with -ffast-math when x is an integer constant.
5932 Optimize tan(0.0) = 0.0. Optimize atan(0.0) = 0.0,
5933 atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
5934
5935 2003-06-04 Roger Sayle <roger@eyesopen.com>
5936
5937 * calls.c (expand_call): Avoid calling pure or const functions
5938 when the result is ignored (or void) and none of the arguments
5939 are volatile. Move warning diagnostic earlier in function.
5940
5941 2003-06-04 Andreas Jaeger <aj@suse.de>
5942
5943 * system.h: Do not poison TDESC_SECTION_ASM_OP,
5944 RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
5945
5946 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5947
5948 * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
5949 optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
5950 handle %ll, optimize regular character case.
5951
5952 2003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5953
5954 * Makefile.in (cse.o): Add params.h dependency.
5955 * cse.c: Include params.h.
5956 (PATHLENGTH): Removed.
5957 (struct cse_basic_block_data): Make path array dynamic.
5958 (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
5959 of PATHLENGTH.
5960 (cse_main, cse_basic_block): Allocate path array.
5961 * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
5962
5963 Wed Jun 4 09:49:21 CEST 2003 Jan Hubicka <jh@suse.cz>
5964
5965 * i386.c (ix86_reorg): Replace the jump instead of adding nop.
5966 * i386.md (UNSPEC_REP): New constant.
5967 (return_internal_long): New pattern.
5968
5969 2003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5970
5971 PR optimization/11018
5972 * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
5973 consistently to decide whether the scratch register is really
5974 required.
5975
5976 2003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5977
5978 PR optimization/10876
5979 * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
5980 new 'O' constraint for constant 4096.
5981 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5982 * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
5983 Do not transform into MINUS insn for constant 4096.
5984 (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
5985 for constant 4096 as third operand.
5986 (addsi3 expander): Remove.
5987 (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
5988 new alternative for constant 4096 as third operand.
5989 (subdi3 expander): Do not transform into PLUS insn for constant 4096.
5990 (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
5991 operand.
5992 (subsi3 expander): Remove.
5993 (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
5994 constant 4096 as third operand.
5995 * doc/md.texi (Machine Constraints): Document new 'O' constraint for
5996 the SPARC port.
5997
5998 2003-06-03 Chris Demetriou <cgd@broadcom.com>
5999
6000 * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
6001
6002 2003-06-04 Andreas Jaeger <aj@suse.de>
6003
6004 * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
6005
6006 * config/i386/i386.c (ix86_expand_prologue): Do not use
6007 SUBTARGET_PROLOGUE.
6008
6009 * system.h: Poision SUBTARGET_PROLOGUE.
6010
6011 * config/arm/arm-protos.h: Remove unused rdate_section prototype.
6012
6013 * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
6014 dependend code.
6015
6016 * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
6017
6018 * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
6019 INSN_CACHE_LINE_WIDTH.
6020
6021 * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
6022 (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
6023 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
6024
6025 * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
6026 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
6027
6028 * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
6029 (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
6030 (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
6031 (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
6032 (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
6033 (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
6034
6035 * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
6036 DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
6037 DBX_WORKING_DIRECTORY.
6038
6039 * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
6040 DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
6041
6042 * config/frv/frv-protos.h: Remove unused const_section
6043 declaration.
6044 * config/vax/vax-protos.h: Likewise.
6045
6046 * output.h: Remove CONST_SECTION_ASM_OP usage.
6047
6048 * system.h: Poison CONST_SECTION_ASM_OP.
6049
6050 * crtstuff.c (__do_global_dtors_aux): Remove usage of
6051 CRT_GET_RFIB_TEXT.
6052 (frame_dummy): Likewise.
6053 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
6054 * system.h: Poison CRT_GET_RFIB_TEXT.
6055
6056 * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
6057
6058 * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
6059 (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
6060 (recognized_function): Likewise.
6061 (read_scan_file): Likewise.
6062
6063 2003-06-03 Roger Sayle <roger@eyesopen.com>
6064
6065 * optabs.c (expand_binop): Optimize complex multiplication for
6066 the case of squaring a complex argument.
6067
6068 2003-06-03 Roger Sayle <roger@eyesopen.com>
6069
6070 * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
6071 non-volatile operands of binary operations.
6072 (prepare_cmp_insn): Likewise.
6073
6074 2003-06-03 Roger Sayle <roger@eyesopen.com>
6075
6076 * varasm.c (force_const_mem): Handle alignment of constants not
6077 representable as a type in the front-end language.
6078
6079 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
6080
6081 * flow.c (initialize_uninitialized_subregs): Use
6082 emit_move_insn instead of emitting a hardcoded move.
6083
6084 2003-06-03 Richard Henderson <rth@redhat.com>
6085
6086 * optabs.c (expand_abs_nojump): Split out from ...
6087 (expand_abs): ... here.
6088 * optabs.h (expand_abs_nojump): Declare.
6089 * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
6090 * Makefile.in (ifcvt.o): Depend on optabs.h.
6091
6092 2003-06-03 Alan Modra <amodra@bigpond.net.au>
6093
6094 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
6095
6096 2003-06-03 Jason Thorpe <thorpej@wasabisystems.com>
6097
6098 * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
6099 (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
6100 to yes.
6101 * configure.in: Allow default_use_cxa_atexit to determine the
6102 value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
6103 disabled.
6104 * configure: Regenerate.
6105
6106 2003-06-03 Douglas B Rupp <rupp@gnat.com>
6107
6108 * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
6109 * doc/gcc.texi: Remove vms.texi section.
6110 * doc/vms.texi: Remove obsolete file.
6111
6112 2003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
6113
6114 * configure.in (inhibit_libc): Don't define when configuring
6115 with --with-newlib --with-headers.
6116 * configure: Regenerate.
6117
6118 * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
6119
6120 2003-06-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6121
6122 * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
6123 IRIX 6 without GNU ld.
6124 * configure: Regenerate.
6125
6126 2003-06-03 Roger Sayle <roger@eyesopen.com>
6127
6128 * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
6129 of a complex number rather than invoke mov_optab directly.
6130
6131 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
6132
6133 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
6134 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
6135
6136 2003-06-03 Nathanael Nerode <neroden@gcc.gnu.org>
6137
6138 * config/i386/x86-64.h: Remove two target-independent comments;
6139 replace "GNU CC" with "GCC".
6140
6141 2003-06-03 Anthony Green <green@redhat.com>
6142
6143 * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
6144
6145 2003-06-03 Roger Sayle <roger@eyesopen.com>
6146
6147 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
6148 New builtins representing ISO C99's cabs, cabsf and cabsl.
6149 * builtins.c (expand_builtin_fabs): New function.
6150 (expand_builtin_cabs): New function.
6151 (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
6152 using expand_builtin_fabs and expand_builtin_cabs respectively.
6153
6154 * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
6155
6156 2003-06-03 Aldy Hernandez <aldyh@redhat.com>
6157
6158 * function.c (assign_parms): Split complex arguments.
6159
6160 * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
6161
6162 * expr.h (SPLIT_COMPLEX_ARGS): Define.
6163 (split_complex_types): Protoize.
6164 (split_complex_values): Protoize.
6165
6166 * calls.c (expand_call): Split complex arguments on architectures
6167 that require it.
6168 (split_complex_values): New.
6169 (split_complex_types): New.
6170
6171 * config/rs6000/rs6000.c (rs6000_libcall_value): New.
6172 (rs6000_function_value): Handle complex values on AIX.
6173 (rs6000_complex_function_value): New.
6174
6175 * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
6176
6177 * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
6178 (SPLIT_COMPLEX_ARGS): New.
6179
6180 2003-06-03 Jakub Jelinek <jakub@redhat.com>
6181
6182 * configure.in (HAVE_LD_PIE): Check for ld -pie.
6183 * config.in: Rebuilt.
6184 * configure: Rebuilt.
6185 * toplev.c (flag_pie, flag_shlib): New variables.
6186 (f_options): Add -fpie and -fPIE.
6187 (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
6188 Set flag_shlib if flag_pic and not -fpie/-fPIE.
6189 * flags.h (flag_pic, flag_shlib): Add.
6190 * varasm.c (default_binds_local_p): Use flag_shlib instead of
6191 flag_pic.
6192 * gcc.c (LINK_PIE_SPEC): Define.
6193 (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
6194 (option_map): Add --pie -> -pie mapping.
6195 * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
6196 and -fPIE the same way as -fPIC.
6197 * config/openbsd.h (ASM_SPEC): Likewise.
6198 * config/frv/frv.h (ASM_SPEC): Likewise.
6199 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
6200 * config/arm/semi.h (ASM_SPEC): Likewise.
6201 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
6202 * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
6203 * config/i386/beos-elf.h (CC1_SPEC): Likewise.
6204 * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
6205 * config/m68k/linux.h (CPP_SPEC): Likewise.
6206 * config/m68k/netbsd.h (ASM_SPEC): Likewise.
6207 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
6208 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
6209 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
6210 * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
6211 * config/pa/pa-linux.h (CPP_SPEC): Likewise.
6212 * config/netbsd-aout.h (ASM_SPEC): Likewise.
6213 * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
6214 * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
6215 * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
6216 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
6217 * config/sparc/sparc.h (ASM_SPEC): Likewise.
6218 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
6219 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
6220 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
6221 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
6222 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
6223 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
6224 Simplify.
6225 * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
6226 * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
6227 * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
6228 * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
6229 * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
6230 * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
6231 * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
6232 * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
6233
6234 2003-06-03 Jakub Jelinek <jakub@redhat.com>
6235
6236 * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
6237 != 0 handling. Pass 0 to store_by_pieces.
6238 (expand_builtin_mempcpy): Add endp argument. Don't call
6239 expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
6240 directly. If ignoring result, only do expand_call.
6241 (expand_builtin_stpcpy): Likewise. Call expand_builtin_mempcpy
6242 otherwise.
6243 (expand_builtin_strncpy, expand_builtin_memset): Adjust
6244 store_by_pices callers.
6245 (expand_builtin): Adjust expand_builtin_memcpy and
6246 expand_builtin_mempcpy callers.
6247 * expr.c (can_move_by_pieces): New function.
6248 (move_by_pieces): Add endp argument, return to resp. memory at end
6249 or one byte earlier depending on endp.
6250 (store_by_pieces): Likewise.
6251 (emit_block_move): Adjust call to move_by_pieces.
6252 (emit_push_insn): Adjust move_by_pieces caller.
6253 * expr.h (can_move_by_pieces): New prototype.
6254 (store_by_pieces): Adjust prototypes.
6255 * rtl.h (move_by_pieces): Adjust prototype.
6256 * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
6257 caller.
6258
6259 2003-06-03 Ben Elliston <bje@wasabisystems.com>
6260
6261 * doc/md.texi (Processor pipeline description): Improve wording.
6262
6263 2003-06-03 Neil Booth <neil@daikokuya.co.uk>
6264
6265 * c-opts.c (c_common_handle_option): New, pulled out of
6266 c_common_decode_option. Substitute uses of argv.
6267 (c_common_decode_option): Broken into two.
6268
6269 2003-06-02 Roger Sayle <roger@eyesopen.com>
6270 Zack Weinberg <zack@codesourcery.com>
6271
6272 * emit-rtl.c (gen_complex_constant_part): Remove unnecessary
6273 test of TREE_CONSTANT_POOL_ADDRESS_P.
6274
6275 2003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6276
6277 * mips.c: Don't include output.h twice.
6278 * stormy16.c: Likewise.
6279 * xtensa.c: Likewise.
6280 * output.h: Protect against multiple inclusion.
6281
6282 2003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
6283
6284 * sh.h (OLD_ARG_MODE): New macro.
6285 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
6286 (FUNCTION_ARG_1): Break out of:
6287 (FUNCTION_ARG). Use OLD_ARG_MODE.
6288
6289 2003-06-02 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6290
6291 * gcc/config.gcc Add support multilib parts for m32rx processor.
6292
6293 2003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6294
6295 * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
6296 (mostlyclean): Delete c-options.c and c-options.h.
6297
6298 2003-06-02 Neil Booth <neil@daikokuya.co.uk>
6299
6300 * c-opts.c (CL_REJECT_NEGATIVE): New.
6301 (c_common_decode_option): Update to use it.
6302 * c.opt: Update documentation; use RejectNegative.
6303 * opts.sh: Handle RejectNegative.
6304
6305 2003-06-01 Zack Weinberg <zack@codesourcery.com>
6306
6307 * ggc-page.c (init_ggc): Give better diagnostics on failure to
6308 open /dev/zero.
6309 * toplev.c (crash_signal): Reset handling for received signal
6310 to SIG_DFL.
6311
6312 2003-06-02 Ben Elliston <bje@wasabisystems.com>
6313
6314 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
6315 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
6316 (arm_use_dfa_pipeline_interface): Implement.
6317 * config/arm/arm.md (arm): New automaton.
6318 (write_buf): Remove function units; new cpu unit.
6319 (write_blockage): Remove function units; new cpu unit.
6320 (core): Remove function units; new cpu unit.
6321 (r_mem_f_wbuf): New instruction reservation.
6322 (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
6323 (store1_ldsched, store2, store3, store4): Likewise.
6324 (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
6325 (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
6326 (multi_cycle, single_cycle): Likewise.
6327 * config/arm/fpa.md (armfp): New automaton.
6328 (fpa): Remove function units; new cpu unit.
6329 (fpa_mem): Remove function unit; new cpu unit.
6330 (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
6331 (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
6332
6333 2003-06-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6334
6335 * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
6336 * c-format.c (enum format_type): Add asm_fprintf_format_type.
6337 (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
6338 asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
6339 (format_types_orig): Renamed from format_types. Add new data.
6340 (format_types): Declare as pointer.
6341 (handle_format_attribute): Move later in file so we have all
6342 necessary declarations. Add section to capture HOST_WIDE_INT.
6343 * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
6344 (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
6345
6346 2003-06-01 Andreas Jaeger <aj@suse.de>
6347
6348 * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
6349 ROUND_TYPE_SIZE_UNIT.
6350
6351 * stor-layout.c (finalize_record_size): Remove usages of
6352 ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
6353 (finalize_type_size): Likewise.
6354 (layout_type): Likewise.
6355
6356 * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
6357
6358 * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
6359
6360 * config/d30v/d30v.h: Remove text copied from the manual.
6361
6362 2003-06-01 Roger Sayle <roger@eyesopen.com>
6363 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6364 Geoffrey Keating <geoffk@apple.com>
6365
6366 * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
6367 constants as condition code values.
6368
6369 2003-06-01 DJ Delorie <dj@redhat.com>
6370
6371 * cppmacro.c (warn_of_redefinition): Handle cases where the two
6372 definitions have different numbers of tokens.
6373
6374 2003-06-01 Andreas Jaeger <aj@suse.de>
6375
6376 * gen-protos.c (main): Readd unused attribute for argc.
6377
6378 2003-06-01 Neil Booth <neil@daikokuya.co.uk>
6379
6380 * Makefile.in (c-options.c, c-options.h): Parallel make safe.
6381 * c.opt: End in blank line.
6382 * opts.sh: Take AWK from environment if available; use C locale.
6383
6384 2003-06-01 Andreas Schwab <schwab@suse.de>
6385
6386 * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
6387
6388 2003-06-01 Andreas Jaeger <aj@suse.de>
6389
6390 * gen-protos.c (main): Revert patch to check for argument.
6391
6392 2003-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
6393
6394 PR target/11044
6395 * config/i386/i386.md (length attribute): Set length to 4
6396 for instructions of type "fcmp".
6397
6398 2003-06-01 Andreas Jaeger <aj@suse.de>
6399
6400 * toplev.c: Use ISO C90 prototypes.
6401
6402 * toplev.h: Use ISO C90 prototypes.
6403
6404 * genrecog.c: Use ISO C90 prototypes.
6405 (nodes_identical): Correct declaration to match prototype.
6406 (maybe_both_true): Likewise.
6407 (merge_trees): Likewise.
6408
6409 * genpeep.c (gen_peephole): Remove #if 0 code.
6410 Use ISO C90 prototypes.
6411
6412 * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
6413 Remove #if 0'ed function simplify_by_alternatives.
6414 (optimize_attrs): Remove #if 0'ed code.
6415 Remove ^L.
6416 Use ISO C90 prototypes.
6417 (make_canonical): Remove #if 0'ed code.
6418 (convert_const_symbol_ref): Remove #if 0'ed function.
6419
6420 * gen-protos.c (main): Check for argument.
6421
6422 * rtl.h: Use ISO C90 prototypes for functions from lists.c.
6423
6424 * params.h: Use ISO C90 prototypes.
6425 * params.c: Likewise.
6426 * intl.c: Likewise.
6427 * intl.h: Likewise.
6428 * lists.c: Likewise.
6429 * errors.c: Likewise.
6430 * errors.h: Likewise.
6431 * gencodes.c: Likewise.
6432 * genpreds.c: Likewise.
6433 * genattr.c: Likewise.
6434 * gen-protos.c: Likewise.
6435 * genflags.c: Likewise
6436 * genconditions.c: Likewise.
6437 * genautomata.c: Likewise.
6438 * gencheck.c: Likewise.
6439 * genconfig.c: Likewise.
6440 * genconstants.c: Likewise.
6441 * genemit.c: Likewise.
6442 * genextract.c: Likewise.
6443 * gengenrtl.c: Likewise.
6444 * gengtype.c: Likewise.
6445 * gengtype.h: Likewise.
6446 * genopinit.c: Likewise.
6447 * genoutput.c: Likewise.
6448 * gensupport.c: Likewise.
6449 * gensupport.h: Likewise.
6450
6451 * sdbout.h: Use ISO C90 prototypes.
6452
6453 * sdbout.c (CONTIN): Removed empty macro.
6454 (sdbout_one_type): Remove CONTIN usages.
6455 Remove ^Ls.
6456 (tag_of_ru_type): Remove #if 0'ed function.
6457 (sdbout_symbol): Remove #if 0'ed code.
6458 (sdbout_one_type): Remove a #if 1.
6459 (sdbout_one_type): Remove #if 0'ed code.
6460 (sdbout_init): Remove RMS_QUICK_HACK_1 code.
6461 Remove PARAMS, use ISO C90 prototypes for all functions.
6462
6463 2003-06-01 Josef Zlomek <zlomekj@suse.cz>
6464
6465 * rtl.def (CONST_DOUBLE): Update comment.
6466
6467 2003-06-01 Neil Booth <neil@daikokuya.co.uk>
6468
6469 * opts.sh: Remove path from sort.
6470
6471 2003-06-01 Aldy Hernandez <aldyh@redhat.com>
6472
6473 PR/9680
6474 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
6475 TARGET_SPE for SPE_VECTOR_MODE.
6476
6477 2003-05-31 Aldy Hernandez <aldyh@redhat.com>
6478
6479 * toplev.c (botch): Remove.
6480 (do_abort): Remove.
6481 (set_Wunused): Comment.
6482 (set_Wextra): Comment.
6483 Remove ^L's.
6484 (rest_of_compilation): Factor out common code into functions.
6485 (rest_of_handle_inlining): New.
6486 (rest_of_handle_ssa): New.
6487 (rest_of_handle_cse): New.
6488 (rest_of_handle_gcse): New.
6489 (rest_of_handle_loop_optimize): New.
6490 (rest_of_handle_jump_bypass): New.
6491 (rest_of_handle_sibling_calls): New.
6492 (rest_of_handle_null_pointer): New.
6493 (rest_of_handle_addresof): New.
6494 (rest_of_handle_flow): New.
6495 (rest_of_handle_branch_prob): New.
6496 (rest_of_handle_if_conversion): New.
6497 (rest_of_handle_tracer): New.
6498 (rest_of_handle_loop2): New.
6499 (rest_of_handle_cse2): New.
6500 (rest_of_handle_life): New.
6501 (rest_of_handle_combine): New.
6502 (rest_of_handle_if_after_combine): New.
6503 (rest_of_handle_regmove): New.
6504 (rest_of_handle_sched): New.
6505 (rest_of_handle_old_regalloc): New.
6506 (rest_of_handle_new_regalloc): New.
6507 (rest_of_handle_regrename): New.
6508 (rest_of_handle_reorder_blocks): New.
6509 (rest_of_handle_sched2): New.
6510 (rest_of_handle_new_regalloc): New.
6511 (rest_of_handle_old_regalloc): New.
6512 (rest_of_handle_regrename): New.
6513 (rest_of_handle_reorder_blocks): New.
6514 (rest_of_handle_stack_regs): New.
6515 (rest_of_handle_machine_reorg): New.
6516 (rest_of_handle_delay_slots): New.
6517 (rest_of_handle_final): New.
6518
6519 * toplev.h (botch): Remove prototype.
6520 (do_abort): Same.
6521
6522 2003-05-31 Neil Booth <neil@daikokuya.co.uk>
6523
6524 * Makefile.in (c-opts.o, c-options.h): Update dependencies.
6525 * c-opts.c: Include c-options.h and c-options.c.
6526 (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
6527 Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
6528 (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
6529 OPT, opt_comp): Remove.
6530 (missing_arg, c_common_init_options, c_common_decode_option,
6531 write_langs): Update for macro redefinitions and enumeration
6532 name changes.
6533 * c.opt, opts.sh: New files.
6534 * doc/passes.texi: Update.
6535
6536 2003-05-31 Andreas Jaeger <aj@suse.de>
6537
6538 * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
6539 usage.
6540
6541 * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
6542
6543 * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
6544
6545 * system.h: Poison ALLOCATE_TRAMPOLINE.
6546
6547 * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
6548 * system.h: Poison HANDLE_PRAGMA.
6549
6550 2003-05-31 Kazu Hirata <kazu@cs.umass.edu>
6551
6552 * doc/invoke.texi: Update dump file names.
6553
6554 2003-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6555
6556 * c-format.c (format_length_info, format_char_info,
6557 format_flag_spec, format_flag_pair, format_kind_info):
6558 De-const-ify structure members.
6559
6560 2003-05-31 Roger Sayle <roger@eyesopen.com>
6561
6562 * flags.h (flag_wrapv): New flag controlling overflow semantics.
6563 * toplev.c (flag_wrapv): Declare the variable with default false.
6564 (lang_independent_options): New option "-fwrapv" to set the above.
6565
6566 * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
6567 as x, when signed arithmetic overflow wraps around.
6568 (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
6569 * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
6570 overflow when flag_wrapv is true.
6571
6572 * doc/invoke.texi: Document new -fwrapv command line option.
6573 * doc/c-tree.texi: Mention that the overflow semantics of
6574 NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
6575 upon both flag_wrapv and flag_trapv.
6576
6577 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6578
6579 * doc/install.texi (mips-sgi-irix5): Add missing
6580 HTML <hr> marker.
6581
6582 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6583
6584 * doc/md.texi (Machine Constraints): Document
6585 missing SPARC constraints.
6586
6587 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6588
6589 * doc/md.texi (Automaton pipeline description): Use
6590 "type" instead of "cpu" as the attribute in the examples.
6591
6592 2003-05-30 Stan Shebs <shebs@apple.com>
6593
6594 * system.h: Poison OBJC_PROLOGUE.
6595
6596 2003-05-30 Roger Sayle <roger@eyesopen.com>
6597
6598 * emit-rtl.c (gen_complex_constant_part): New function for getting
6599 the constant real or imaginary part of a complex constant.
6600 (gen_realpart): Use it.
6601 (gen_imagpart): Likewise.
6602
6603 2003-05-30 Kazu Hirata <kazu@cs.umass.edu>
6604
6605 * doc/invoke.texi: Fix typos.
6606 * doc/rtl.texi: Likewise.
6607
6608 2003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
6609
6610 * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
6611 mode.
6612 * config/h8300/crtn.asm: Likewise.
6613 * config/h8300/lib1funcs.asm: Likewise.
6614 * config/h8300/h8300.c (asm_file_start): Likewise.
6615 * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
6616 h8300snelf emulations for normal mode.
6617 * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
6618 emulations for normal mode.
6619
6620 2003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
6621
6622 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
6623 true if TARGET_NORMAL_MODE.
6624
6625 2003-05-30 Roger Sayle <roger@eyesopen.com>
6626
6627 * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
6628 making a substitution.
6629 (dead_libcall_p): If directly replacing a libcall with a
6630 constant value produces an invalid instruction, also try forcing
6631 the constant into the constant pool.
6632 * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
6633 obvious that the source is a constant.
6634 (compress_float_constant): Use set_unique_reg_note to place
6635 REG_EQUAL notes on instructions.
6636
6637 2003-05-30 Eric Christopher <echristo@redhat.com>
6638
6639 * config/mips/mips.c (extern_list): Add GTY marker.
6640 (extern_head): Separate out definition. Add marker.
6641 (mips_output_external): Use ggc_alloc for extern_list
6642 allocation.
6643 (mips_output_external_libcall): Ditto.
6644
6645 2003-05-30 Florian Weimer <fw@deneb.enyo.de>
6646
6647 * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
6648 later.
6649
6650 2003-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6651
6652 * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
6653 warnings.
6654 (PRINT_OPERAND): Likewise.
6655
6656 2003-05-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6657
6658 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
6659 -mdebug/-no-mdebug switches ...
6660 (MDEBUG_ASM_SPEC): ... here.
6661 Use only with gas.
6662 (EXTRA_SPECS): Initialize mdebug_asm_spec.
6663
6664 2003-05-29 Matt Kraai <kraai@alumni.cmu.edu>
6665
6666 * gthr-gnat.c: Remove #undef UNUSED.
6667 (__gnat_default_lock, __gnat_default_unlock): Prototype.
6668 (__gnat_task_lock, __gnat_task_unlock): Make declarations
6669 prototypes.
6670 (__gnat_install_locks): Convert declaration to ISO C90, make
6671 parameter declarations prototypes, and remove blank line.
6672 * gthr-gnat.h (__gnat_install_locks): Make parameter
6673 declarations prototypes.
6674
6675 2003-05-29 Jason Merrill <jason@redhat.com>
6676
6677 * Makefile.in (unstrap): Remove stage_last after make unstage1.
6678
6679 2003-05-29 Roger Sayle <roger@eyesopen.com>
6680
6681 * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
6682
6683 2003-05-29 Roger Sayle <roger@eyesopen.com>
6684 Kaveh Ghazi <ghazi@caip.rutgers.edu>
6685
6686 PR bootstrap/10169
6687 * mips-tfile.c (main): Use getopt_long instead of getopt.
6688 Add new command line option --version to display version.
6689 Treat --verbose like -v to report a single line version.
6690 (options): New global variable for getopt_long.
6691 * mips-tdump.c (main): Use getopt_long instead of getopt.
6692 New command line options -v, --version and -verbose to display
6693 the program version number (to match mips-tfile's behavior).
6694 (options): New global variable for getopt_long.
6695
6696 * gcov.c (options): Zero-terminate getopt_long array.
6697 * gcov-dump.c (options): Likewise.
6698
6699 * Makefile.in (mips-tdump.o): Add dependency on version.h.
6700
6701 2003-05-29 Stan Shebs <shebs@apple.com>
6702
6703 Remove OBJC_PROLOGUE everywhere.
6704 * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
6705 * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
6706 * config/d30v/d30v.h: Similarly.
6707 * config/ip2k/ip2k.h: Similarly.
6708 * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
6709
6710 2003-05-29 Roger Sayle <roger@eyesopen.com>
6711
6712 * c-semantics.c (genrtl_do_stmt_1): New function split out from...
6713 (gen_rtl_do_stmt): ... here. Call genrtl_do_stmt_1.
6714 (expand_unreachable_stmt): Expand unreachable while statements
6715 using genrtl_do_stmt_1.
6716
6717 2003-05-29 Richard Sandiford <rsandifo@redhat.com>
6718
6719 * config/mips/mips-protos.h (mips_output_load_label): Declare.
6720 * config/mips/mips.c (mips_output_load_label): New function.
6721 (mips_output_conditional_branch): Use it.
6722 * config/mips/mips.md (jump): And here.
6723
6724 2003-05-28 Bob Wilson <bob.wilson@acm.org>
6725
6726 * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
6727 (xtensa_split_operand_pair): New proto.
6728 * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
6729 (smalloffset_double_mem_p): Delete.
6730 (gen_float_relational, printx, print_operand, xtensa_va_arg):
6731 Fix whitespace.
6732 (xtensa_split_operand_pair): New.
6733 (xtensa_dbx_register_number): Fix formatting.
6734 * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
6735 * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
6736 instead of splitting them into single-word moves. Remove unnecessary
6737 checks for reload_in_progress and reload_completed.
6738 (movdi_internal, movdf_internal): Change to post-reload split patterns.
6739 Add constraints to allow constant operands.
6740 (movsf_internal): Allow CONST_INT operands.
6741
6742 2003-05-27 Danny Smith <dannysmith@users.sourceforge.net>
6743
6744 * config.gcc (i[34567]86-*-mingw32*): Add host makefile
6745 fragment i386/x-mingw32.
6746 * config/i386/x-mingw32: New file. Make local_includedir
6747 relative to EXEC_PREFIX.
6748
6749 2003-05-27 Aaron W. LaFramboise <awlaframboise@aol.com>
6750
6751 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
6752 (MD_STARTFILE_PREFIX): Define.
6753
6754 2003-05-27 Denis Chertykov <denisc@overta.ru>
6755
6756 * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
6757 VOIDmode.
6758 * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
6759 call of cselib_invalidate_regno.
6760
6761 2003-05-28 Daniel Jacobowitz <drow@mvista.com>
6762
6763 * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
6764 -lthread to -lpthread.
6765
6766 2003-05-28 Eric Botcazou <ebotcazou@libertysurf.fr>
6767 Bruce Korb <bkorb@gnu.org>
6768 Arno Klaassen <arno@heho.snv.jussieu.fr>
6769
6770 * fixinc/inclhack.def: Add missing declaration of getpagesize()
6771 to unistd.h on Solaris 2.5.1.
6772 Fix prototype of recv() and send() in sys/socket.h on
6773 Solaris 2.5.1 and 2.6.
6774 * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
6775 * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
6776 * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
6777 * fixinc/fixincl.x: Regenerate.
6778
6779 2003-05-27 Jason Merrill <jason@redhat.com>
6780
6781 * tree.c (expr_first, expr_length): New fns.
6782 * tree.h: Declare them.
6783
6784 * tree.c (iterative_hash_expr): Hash commutative expressions
6785 consistently.
6786
6787 2003-05-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6788
6789 * tree.h (contains_placeholder_p): Now returns bool.
6790 (CONTAINS_PLACEHOLDER_P): New macro.
6791 (type_contains_placeholder_p): New function.
6792 * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
6793 (contains_placeholder_p): Now returns bool.
6794 Rework to use CONTAINS_PLACEHOLDER_P macro.
6795 (type_contains_placeholder_p): New function.
6796 * fold-const.c (fold, case COMPONENT_REF): Don't fold if
6797 type_contains_placeholder_p.
6798 (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
6799 Use CONTAINS_PLACEHOLDER_P macro.
6800 * builtins.c (fold_builtin): Likewise.
6801 * calls.c (initialize_argument_information): Likewise.
6802 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6803 * explow.c (expr_size): Likewise.
6804 * expr.c (store_constructor, get_inner_reference): Likewise.
6805 * function.c (assign_parms): Likewise.
6806 * stor-layout.c (variable_size): Likewise.
6807
6808 2003-05-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6809
6810 * diagnostic.h (output_verbatim, verbatim): Remove printf
6811 attribute.
6812
6813 2003-05-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6814
6815 * doc/contrib.texi (Contributors): Update Kean Johnston.
6816
6817 2003-05-24 David Edelsohn <edelsohn@gnu.org>
6818
6819 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
6820
6821 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
6822
6823 * config/rs6000/440.md, config/stormy16/stormy16protos.h,
6824 config/stormy16/stormy16.c, config/stormy16/stormy16.md:
6825 Replace "GNU CC" with "GCC".
6826
6827 2003-05-24 Matt Kraai <kraai@alumni.cmu.edu>
6828
6829 * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
6830 intermediate computation.
6831
6832 2003-05-23 Eric Christopher <echristo@redhat.com>
6833
6834 * config/mips/mips.md (clzsi, clzdi): New patterns.
6835
6836 2003-05-23 Geoffrey Keating <geoffk@apple.com>
6837
6838 * gcc.c (default_compilers): Use -o to specify preprocessor's output
6839 file. Make -no-integrated-cpp work when building PCH files.
6840 * objc/lang-specs.h: Likewise.
6841
6842 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
6843
6844 * fixinc/Makefile.in: Correct description.
6845 * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
6846 fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
6847 fixinc/genfixes: Replace "GNU CC" with "GCC".
6848
6849 2003-05-23 Roger Sayle <roger@eyesopen.com>
6850
6851 * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
6852 builtin functions (and their __builtin_* variants).
6853 * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
6854 (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
6855 optimizing.
6856
6857 * doc/extend.texi: Document new tan and atan builtins, and
6858 their float and long double variants.
6859
6860 2003-05-23 Jason Thorpe <thorpej@wasabisystems.com>
6861
6862 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
6863 __sparcv9 in the TARGET_ARCH64 case.
6864
6865 Fri May 23 22:17:32 CEST 2003 Jan Hubicka <jh@suse.cz>
6866
6867 * i386.c (ix86_reorg): Calls are also jumps.
6868
6869 2003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
6870
6871 * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
6872 note containing an EXPR_LIST, process all the arguments.
6873
6874 Fri May 23 21:19:31 CEST 2003 Jan Hubicka <jh@suse.cz>
6875 Andreas Jaeger <aj@suse.de>
6876
6877 * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
6878 do not use assertion.
6879
6880 2003-05-23 Mike Stump <mrs@apple.com>
6881
6882 * tlink.c (scan_linker_output): Add support for darwin linker, as it
6883 emits unresolved symbols one per line, consuming the entire line.
6884
6885 2003-05-23 Larin Hennessy <larin@science.oregonstate.edu>
6886 Zack Weinberg <zack@codesourcery.com>
6887
6888 * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
6889 * config/m68k/m68k.c (m68k_output_function_prologue):
6890 Remove code under #if NEED_PROBE.
6891 * config/m68k/m68k.h: Don't define NEED_PROBE.
6892 * config/m68k/m68k.md: Remove "probe" insn.
6893 * doc/md.texi: Remove documentation of "probe" pattern.
6894
6895 2003-05-23 Dorit Naishlos <gcchaifa@il.ibm.com>
6896
6897 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
6898
6899 2003-05-23 Eric Botcazou <ebotcazou@libertysurf.fr>
6900
6901 * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
6902 Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
6903
6904 2003-05-22 Roger Sayle <roger@eyesopen.com>
6905
6906 * real.c (real_maxval): New function to return the largest finite
6907 value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
6908 * real.h (real_maxval): Prototype here.
6909 * fold-const.c (fold_inf_compare): Transform comparisons against
6910 +-Infinity into comparisons against DBL_MAX (or equivalent).
6911
6912 2003-05-22 Mike Stump <mrs@apple.com>
6913
6914 * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
6915 default.
6916
6917 2003-05-22 DJ Delorie <dj@redhat.com>
6918
6919 * calls.c (expand_call): If the arg block is going to grow
6920 downward, we need argblock to point to the top of the block,
6921 not the bottom.
6922
6923 2003-05-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6924
6925 * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
6926
6927 * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
6928 constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
6929
6930 2003-05-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6931
6932 * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
6933 * m68k.c: Likewise.
6934 * m68k.h: Likewise.
6935
6936 2003-05-22 Zack Weinberg <zack@codesourcery.com>
6937
6938 PR other/2873
6939 * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
6940 expressions to prevent triggering on recent curses.h,
6941 linux/nls.h, or X11/Xlib.h.
6942 (stdio_va_list): Add _G_va_list to bypass pattern.
6943 (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
6944 * fixinc/fixincl.x: Regenerate.
6945
6946 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
6947
6948 * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
6949 switches when --target-help option is specified.
6950
6951 2003-05-22 Eric Botcazou <ebotcazou@libertysurf.fr>
6952
6953 PR bootstrap/10805
6954 * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
6955 failure with Sun assembler 5.0 Alpha 03/27/98.
6956
6957 2003-05-21 Loren James Rittle <ljrittle@acm.org>
6958
6959 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
6960 to match system compiler convention.
6961
6962 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
6963
6964 * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
6965 value, not just if defined.
6966 Update copyright year.
6967
6968 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6969
6970 PR target/6428
6971 * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
6972 directories from LIB_SPEC to LINK_SPEC. Emit warning if `-p' or `-pg'
6973 option is used without `-static'.
6974 * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
6975 * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
6976
6977 2003-05-21 Bob Wilson <bob.wilson@acm.org>
6978
6979 * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
6980 TARGET_SERIALIZE_VOLATILE): Delete.
6981 (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
6982 (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
6983 (TARGET_SWITCHES): Remove "-mserialize-volatile" and
6984 "-mno-serialize-volatile".
6985 * config/xtensa/xtensa.c (print_operand): Remove checks of
6986 TARGET_SERIALIZE_VOLATILE.
6987 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
6988 * doc/invoke.texi (Option Summary, Xtensa Options): Remove
6989 "-mserialize-volatile" and "-mno-serialize-volatile" options.
6990
6991 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
6992
6993 * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
6994 (nested_function): Likewise.
6995 (notype_nested_function): Likewise.
6996
6997 2003-05-21 Nick Clifton <nickc@redhat.com>
6998
6999 * config/stormy16/stormy-abi: Update overflow type for
7000 R_XSTORMY16_16 reloc.
7001
7002 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
7003
7004 * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
7005 * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
7006 (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
7007 * print-tree.c (print_node): Remove ambient-boundedness.
7008 * tree.h (tree_common): Remove bounded_flag.
7009 (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
7010 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
7011 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
7012 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
7013 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
7014 Remove.
7015 (TYPE_QUALS): Remove BOUNDED.
7016 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
7017 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
7018 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
7019 TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
7020 VA_LIST_POINTER_DEPTH): Remove.
7021 (struct tree_type): Remove pointer_depth.
7022
7023 2003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7024
7025 * c-pretty-print.c (pp_c_integer_literal): Use
7026 HOST_WIDE_INT_PRINT_DOUBLE_HEX.
7027
7028 2003-05-20 Roger Sayle <roger@eyesopen.com>
7029 Kazu Hirata <kazu@cs.umass.edu>
7030 Joern Rennecke <joern.rennecke@superh.com>
7031
7032 * gcse.c (cprop_jump): Make use of REG_EQUAL notes on both
7033 setcc and jump, if they exist. If substituted instruction
7034 fails to validate, store current effort in a REG_EQUAL note.
7035 (cprop_insn): Don't attempt further substitutions if the
7036 current instruction has been deleted.
7037 (local_cprop_pass): Likewise.
7038
7039 * jump.c (redirect_jump): Also update REG_EQUAL note, if
7040 one is attached to the jump instruction.
7041 (invert_jump): Delete REG_EQUAL note on jump, if one exists.
7042
7043 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
7044
7045 PR c++/9738
7046 * config/i386/winnt.c (i386_pe_encode_section_info): Enable
7047 even if not first.
7048
7049 2003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7050
7051 * genautomata.c (output_description, output_automaton_units,
7052 output_state_arcs): Add missing specifiers.
7053
7054 2003-05-20 Bob Wilson <bob.wilson@acm.org>
7055
7056 * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
7057 (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
7058 (__mulsi3): Use do_addx* instead of ADDX* instructions. Formatting.
7059 (nsau): Rename to do_nsau. Provide alternate version for use when
7060 the NSAU instruction is available.
7061 (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
7062 (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
7063 * config/xtensa/xtensa-config.h: Update comments to match binutils.
7064 (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
7065 * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
7066 (TARGET_ABS, TARGET_ADDX): Define.
7067 (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
7068 (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
7069 * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
7070 *subx8): Set predicate condition to TARGET_ADDX.
7071 (abssi2): Set predicate condition to TARGET_ABS.
7072 * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
7073 "-maddx", and "-mno-addx" options.
7074 (Xtensa Options): Likewise. Also tag some opcode names with @code.
7075
7076 2003-05-20 Kevin Ryde <user42@zip.com.au>
7077 Wolfgang Bangerth <bangerth@dealii.org>
7078
7079 PR/10355
7080 * doc/extend.texi: Put a warning into the documentation
7081 of attribute regparm.
7082
7083 2003-05-20 Jason Merrill <jason@redhat.com>
7084
7085 * tree.c (expr_last): New fn.
7086 * tree.h: Declare it.
7087 * objc/objc-act (expr_last): Rename to objc_expr_last.
7088
7089 2003-05-20 J"orn Rennecke <joern.rennecke@superh.com>
7090
7091 * sh.c (sh_register_move_cost): Add clase for moving between
7092 FP registers and MAC registers.
7093
7094 2003-05-19 John David Anglin <dave.anglin@nrc-gnrc.gc.ca>
7095
7096 * pa/milli64.S ($$mulI): Fix typo.
7097
7098 2003-05-19 Matt Kraai <kraai@alumni.cmu.edu>
7099
7100 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
7101 (nonlocal_set_p): Remove initial blank line.
7102 * dwarf2out.c (simple_type_size_in_bits): Likewise.
7103 * et-forest.c (et_forest_create): Likewise.
7104 * explow.c (stabilize): Likewise.
7105 * fix-header.c (write_lbrac): Likewise.
7106 * graph.c (start_fct, node_data): Likewise.
7107 * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
7108 * rtlanal.c (global_reg_mentioned_p): Likewise.
7109 * tree.c (bit_position): Likewise.
7110
7111 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
7112
7113 * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
7114 -lthread to -lpthread.
7115
7116 2003-05-19 Neil Booth <neil@daikokuya.co.uk>
7117
7118 * c-opts.c (c_common_decode_option): Don't accept dollars
7119 as identifier characters in assembly.
7120 * doc/cpp.texi: Document this.
7121
7122 2003-05-19 Seth Arnold <sarnold@wirex.com>
7123 Aldy Hernandez <aldyh@redhat.com>
7124
7125 * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
7126 vrsave_size twice.
7127
7128 2003-05-19 Aldy Hernandez <aldyh@redhat.com>
7129
7130 * doc/tm.texi (function_arg): Fix typo.
7131
7132 2003-05-19 Matt Austern <austern@apple.com>
7133
7134 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
7135 * c-common.h (warn_invalid_offsetof): Declare.
7136 * c-common.c (warn_invalid_offsetof): Define.
7137 * doc/invoke.texi: Document -Winvalid-offsetof.
7138 * testsuite/g++.dg/other/offsetof3.C: New.
7139 * testsuite/g++.dg/other/offsetof4.C: New.
7140
7141 2003-05-19 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
7142 David Edelsohn <edelsohn@gnu.org>
7143
7144 * config/rs6000/rs6000.c (rs6000_alignment_string,
7145 rs6000_alignment_flags): New variables.
7146 (rs6000_parse_alignment_option): New function.
7147 (rs6000_override_options): Call it.
7148 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
7149 (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
7150 macros.
7151 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
7152 natural alignment if TARGET_NATURAL_ALIGNMENT
7153 (ROUND_TYPE_ALIGN): Always use default record alignment if
7154 TAGET_NATURAL_ALIGNMENT.
7155 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
7156 (ROUND_TYPE_ALIGN): Same.
7157 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
7158 (ROUND_TYPE_ALIGN): Same.
7159 * doc/invoke.texi (Option Summary, PowerPC Options): Document
7160 new options.
7161
7162 2003-05-19 J"orn Rennecke <joern.rennecke@superh.com>
7163
7164 * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
7165 of a function using ASMSPEC, prepend a star.
7166
7167 2003-05-19 Jason Merrill <jason@redhat.com>
7168
7169 * tree-inline.c (copy_body_r): Avoid generating &* during inline
7170 substitution.
7171
7172 2003-05-19 Andrew Macleod <amacleod@redhat.com>
7173
7174 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
7175 not mark assignments to the hard frame pointer as being stack
7176 frame related.
7177 (xstormy16_expand_epilogue): Mark adjustments to the stack
7178 pointer as being stack frame related.
7179
7180 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
7181
7182 * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
7183 ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
7184 (PREDICATE_CODES): Add hilo_operand.
7185 * config/mips/mips.c (hilo_operand): New predicate.
7186 (mips_adjust_insn_length): Account for the number nops that might
7187 be needed to avoid hardware hazards.
7188 * config/mips/mips.md (dslot): Remove attribute.
7189 (hazard): New attribute.
7190 (can_delay): Use it. Check for calls, branches & jumps.
7191 (muldi3): Use the standard dmult pattern for mips16 code.
7192 (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
7193
7194 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
7195
7196 * config/mips/mips-protos.h (final_prescan_insn,
7197 mips_count_memory_refs, mips_fill_delay_slot): Remove.
7198 * config/mips/mips.h (delay_type, dslots_load_total,
7199 dslots_load_filled, dslots_jump_total, dslots_jump_filled,
7200 dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
7201 mips_load_reg3, mips_load_reg4): Remove.
7202 (MASK_STATS): Remove.
7203 (MASK_EXPLICIT_RELOCS): Reuse its value.
7204 (TARGET_STATS): Remove.
7205 (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
7206 Warn that -mstats is now ignored.
7207 (FINAL_PRESCAN_INSN): Undefine.
7208 (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
7209 (ASM_OUTPUT_REG_POP): Likewise.
7210 * config/mips/mips.c (dslots_load_total, dslots_load_filled,
7211 dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
7212 mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
7213 mips_fill_delay_slot, mips_count_memory_refs,
7214 final_prescan_insn): Remove.
7215 (output_block_move): Remove calls to mips_count_memory_refs.
7216 (print_operand): Remove printing of #nop for TARGET_STATS.
7217 (mips_output_function_epilogue): Remove TARGET_STATS code.
7218 Reorganize setting of fnnmae.
7219 * config/mips/mips.md: Remove handling of dslot statistics
7220 throughout file. Change all fcmp patterns into normal asm
7221 templates, removing calls to mips_fill_delay_slot.
7222 * doc/invoke.texi: Remove documentation of -mstats.
7223
7224 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
7225
7226 * config/mips/mips.c (mips_class_max_nregs): Return the number of
7227 words in the mode.
7228
7229 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
7230
7231 * config/mips/mips.c (override_options): Disable explicit
7232 relocs for old ABIs unless using gas.
7233
7234 2003-05-18 Eric Christopher <echristo@redhat.com>
7235
7236 * config/mips/mips.h: Remove definition of g_switch_value.
7237
7238 2003-05-18 Matt Kraai <kraai@alumni.cmu.edu>
7239
7240 * flags.h (g_switch_value): Change to an unsigned
7241 HOST_WIDE_INT.
7242 * toplev.c (g_switch_value): Likewise.
7243
7244 * config/alpha/alpha.c (small_symbolic_operand): Remove
7245 g_switch_value cast.
7246 (alpha_in_small_data_p): Cast size to an unsigned
7247 HOST_WIDE_INT.
7248
7249 * config/frv/frv.c (frv_in_small_data_p): Cast size to an
7250 unsigned HOST_WIDE_INT.
7251 * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
7252 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
7253
7254 * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
7255 unsigned HOST_WIDE_INT.
7256 (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
7257 * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
7258 (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
7259
7260 * config/rs6000/rs6000.c (rs6000_file_start): Use
7261 HOST_WIDE_INT_PRINT_UNSIGNED.
7262 (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
7263 (rs6000_elf_in_small_data_p): Cast size to unsigned
7264 HOST_WIDE_INT.
7265 * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
7266 Remove.
7267 (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
7268 g_switch_set.
7269 (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
7270 g_switch_value cast.
7271
7272 2003-05-18 Roger Sayle <roger@eyesopen.com>
7273 Zack Weinberg <zack@codesourcery.com>
7274
7275 PR middle-end/10472
7276 * builtins.c (expand_builtin_memcpy): Call force_operand on
7277 expressions and use simplify_gen_binary to create the addition.
7278
7279 2003-05-18 Andreas Schwab <schwab@suse.de>
7280
7281 * config/m68k/m68k.md: Use define_constants for unspec numbers.
7282
7283 2003-05-18 Neil Booth <neil@daikokuya.co.uk>
7284
7285 * config/sparc/sparc.h: Define sparc for now.
7286
7287 2003-05-18 Nathanael Nerode <neroden@gcc.gnu.org>
7288
7289 * config.gcc: Clear xm_file, md_file at the beginning of each pass.
7290
7291 * config/stormy16/stormy16.h: Remove about 3000 lines of
7292 target-independent comments. Update copyright notice.
7293
7294 * doc/collect2.texi: GNU CC -> GCC.
7295 * doc/headerdirs.texi: GNU CC -> GCC.
7296
7297 2003-05-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
7298
7299 * hashtable.h (struct ht_identifier): Add data member "hash_value".
7300 * hashtable.c (ht_lookup): Use it when searching, remember.
7301 (ht_expand): Do not recompute.
7302 * tree.h (IDENTIFIER_HASH_VALUE): New macro.
7303
7304 2003-05-18 Nathan Sidwell <nathan@codesourcery.com>
7305
7306 * gcov-io.c (gcov_read_bytes): Fix fread thinko.
7307
7308 2003-05-18 Neil Booth <neil@daikokuya.co.uk>
7309
7310 * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
7311 Default here.
7312 (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
7313 * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
7314 * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
7315 * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
7316 config/arm/linux-elf.h, config/arm/rtems-elf.h,
7317 config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
7318 config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
7319 config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
7320 config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
7321 config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
7322 config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
7323 config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
7324 config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
7325 config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
7326 config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
7327 config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
7328 Don't define __ELF__.
7329 * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
7330 Define __ELF__.
7331 * doc/cpp.texi: Document __ELF__.
7332 * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS. *
7333
7334 2003-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7335
7336 * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
7337 always use stdarg.
7338 * c-errors.c (pedwarn_c99): Likewise.
7339 * c-format.c (status_warning): Likewise.
7340 * c-semantics.c (build_stmt): Likewise.
7341 * calls.c (emit_library_call, emit_library_call_value): Likewise.
7342 * collect2.c (notice, fatal_perror, fatal, error): Likewise.
7343 * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
7344 * diagnostic.c (build_message_string, output_printf,
7345 output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
7346 fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
7347 error_with_decl, fnotice): Likewise.
7348 * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
7349 dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
7350 dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
7351 dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
7352 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
7353 dw2_asm_output_encoded_addr_rtx): Likewise.
7354 * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
7355 * errors.c (warning, error, fatal, internal_error): Likewise.
7356 * final.c (output_operand_lossage, asm_fprintf): Likewise.
7357 * fix-header.c (fatal): Likewise.
7358 * gcc.c (fatal, error, notice): Likewise.
7359 * gcov.c (fnotice): Likewise.
7360 * genattrtab.c (attr_rtx, attr_printf): Likewise.
7361 * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
7362 * gensupport.c (message_with_line): Likewise.
7363 * mips-tfile.c (fatal, error): Likewise.
7364 * protoize.c (notice): Likewise.
7365 * ra-debug.c (ra_debug_msg): Likewise.
7366 * read-rtl.c (fatal_with_file_and_line): Likewise.
7367 * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
7368 * tree.c (build, build_nt, build_function_type_list): Likewise.
7369
7370 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
7371
7372 * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
7373 * gcc.c (cpp_predefines): Remove.
7374 (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
7375 (static_specs): Remove predefines.
7376 * system.h: Poison CPP_PREDEFINES.
7377 * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
7378 config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
7379
7380 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
7381
7382 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
7383 config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
7384 config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
7385 use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
7386
7387 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
7388
7389 PR c/9209
7390 * c-common.c, c-common.h (dollars_in_ident): Remove.
7391 * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
7392 (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
7393 * cpphash.h (warned_dollar): Rename warn_dollars.
7394 * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
7395 Permit dollars regardless of -std=.
7396 (post_options): Set warn_dollars.
7397 * cpplex.c (forms_identifier_p): Use warn_dollars.
7398 * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
7399 Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
7400 * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
7401 Update documentation.
7402
7403 2003-05-17 Andreas Schwab <schwab@suse.de>
7404
7405 * config/m68k/m68k.c (m68k_output_function_prologue): Use
7406 HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
7407 formatting a HOST_WIDE_INT.
7408 (m68k_output_function_epilogue): Likewise.
7409
7410 2003-05-17 Zack Weinberg <zack@codesourcery.com>
7411
7412 * doc/install.texi: Remove information about desupported targets.
7413
7414 2003-05-17 Andreas Schwab <schwab@suse.de>
7415
7416 * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
7417 * config/m68k/linux.h: Likewise.
7418 * config/m68k/m68k-none.h: Likewise.
7419 * config/m68k/netbsd-elf.h: Likewise.
7420 * config/m68k/sgs.h: Likewise.
7421 * config/m68k/m68k.h: Likewise.
7422 * config/m68k/m68k.md: Likewise.
7423 * config/m68k/m68k.c: Likewise.
7424 * doc/md.texi (Machine Constraints): Remove Sun FPA specific
7425 constraints.
7426 * doc/invoke.texi (Option Summary): Remove -mfpa.
7427 (M680x0 Options): Likewise.
7428
7429 2003-05-17 David Edelsohn <edelsohn@gnu.org>
7430
7431 * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
7432
7433 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
7434
7435 * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
7436 * config/sparc/liteelf.h, config/sparc/openbsd64.h,
7437 config/sparc/rtemself.h, config/sparc/sol2-64.h,
7438 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
7439 Update for use of TARGET_SUB_OS_CPP_BUILTINS.
7440
7441 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
7442
7443 * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
7444 TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
7445
7446 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
7447
7448 * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
7449 * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
7450 sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
7451 sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
7452 sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
7453 sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
7454 sparc/sysv4.h,
7455 * sparc/sysv4-only.h: New.
7456
7457 2003-05-17 Alan Modra <amodra@bigpond.net.au>
7458
7459 * function.c (assign_parms): Check for zero size args.
7460
7461 2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7462
7463 * cfgloopanal.c (test_for_iteration): Use string concatentation on
7464 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
7465 function calls into one.
7466 * dbxout.c (dbxout_symbol): Likewise.
7467 * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
7468 * dwarf2asm.c (dw2_asm_output_data_uleb128,
7469 dw2_asm_output_data_sleb128): Likewise.
7470 * genrecog.c (debug_decision_2): Likewise.
7471 * loop.c (emit_prefetch_instructions): Likewise.
7472 * print-rtl.c (print_rtx): Likewise.
7473 * print-tree.c (print_node_brief, print_node): Likewise.
7474 * ra-debug.c (dump_igraph, dump_graph_cost,
7475 dump_static_insn_cost): Likewise.
7476 * ra-rewrite.c (dump_cost): Likewise.
7477 * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
7478 * sreal.c (dump_sreal): Likewise.
7479 * unroll.c (unroll_loop, precondition_loop_p): Likewise.
7480 * varasm.c (assemble_vtable_entry): Likewise.
7481
7482 * avr.c (avr_output_function_prologue,
7483 avr_output_function_epilogue, print_operand): Fix format specifier
7484 warnings.
7485 (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
7486 * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
7487
7488 2003-05-16 Geoffrey Keating <geoffk@apple.com>
7489
7490 * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
7491 and ! TARGET_STRING cases.
7492
7493 * doc/cppopts.texi (-undef): Fix texinfo warning.
7494
7495 * doc/cppopts.texi (-H): Document that -H works for PCH files too.
7496 * cppfiles.c (validate_pch): When -H is used, print some information
7497 about PCH files found.
7498
7499 2003-05-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7500
7501 * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
7502 * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
7503 * config/mips/t-sr71k: Likewise.
7504
7505 2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7506
7507 * arc.c (arc_output_function_prologue,
7508 arc_output_function_epilogue): Fix format specifier warnings.
7509 * arc.h (LARGE_INT): Fix signed/unsigned warnings.
7510
7511 * v850.c (print_operand): Fix format specifier warnings.
7512
7513 * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
7514 specifier warnings.
7515
7516 * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
7517 format specifier warnings.
7518
7519 * ip2k.c (function_prologue, function_epilogue, print_operand):
7520 Fix format specifier warnings.
7521 * ip2k.md: Likewise.
7522
7523 * i960.c (i960_output_function_prologue, i960_print_operand,
7524 i960_print_operand_addr): Fix format specifier warnings.
7525
7526 * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
7527 (i370_output_function_prologue): Fix format specifier warnings.
7528 * i370.h (PRINT_OPERAND): Likewise.
7529
7530 * fr30.c (fr30_print_operand): Fix format specifier warnings.
7531
7532 * dsp16xx.c (print_operand_address): Fix format specifier warning.
7533 * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
7534
7535 * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
7536 specifier warnings.
7537
7538 * alpha.c (print_operand_address, alpha_start_function,
7539 unicosmk_output_ssib): Use string concatentation on
7540 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
7541 function calls into one.
7542 * arm.c (arm_print_operand): Likewise.
7543 * cris.c (cris_asm_output_mi_thunk): Likewise.
7544 * frv.c (frv_asm_output_mi_thunk): Likewise.
7545 * ia64.c (ia64_print_operand, process_set): Likewise.
7546 * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
7547 Likewise.
7548 * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
7549 * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
7550 * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
7551 * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
7552 * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
7553 * s390.c (s390_assemble_integer): Likewise.
7554 * sparc.c (sparc_flat_function_prologue,
7555 sparc_flat_function_epilogue): Likewise.
7556 * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
7557 * vax.c (vax_output_mi_thunk): Likewise.
7558
7559 * frv.c (frv_print_operand_memory_reference): Fix format specifier
7560 warning.
7561 (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
7562
7563 * m68k.c (m68k_output_function_epilogue): Fix format specifier
7564 warnings.
7565
7566 * stormy16-protos.h (xs_hi_general_operand,
7567 xs_hi_nonmemory_operand): Prototype.
7568 * stormy16.c (xstormy16_output_shift): Fix format specifier
7569 warnings.
7570
7571 * cris.c: Fix format specifier warnings.
7572
7573 2003-05-16 Nick Clifton <nickc@redhat.com>
7574
7575 * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
7576
7577 2003-05-16 Wolfgang Bangerth <bangerth@dealii.org>
7578
7579 * doc/bugreport.texi: Remove most of the of the preface of the
7580 bugs section.
7581
7582 2003-05-16 Jakub Jelinek <jakub@redhat.com>
7583
7584 * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
7585 .save XX, r0.
7586
7587 2003-05-15 Roger Sayle <roger@eyesopen.com>
7588
7589 * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
7590
7591 2003-05-15 Eric Christopher <echristo@redhat.com>
7592
7593 * cfgcleanup.c (merge_blocks): Fix return value.
7594
7595 2003-05-15 Eric Christopher <echristo@redhat.com>
7596
7597 * combine.c (expand_compound_operation): Make sure
7598 that zero_extend operation is profitable.
7599
7600 2003-05-15 Richard Henderson <rth@redhat.com>
7601
7602 * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
7603 code protected by USE_GNULIBC_1.
7604
7605 2003-05-15 Zack Weinberg <zack@codesourcery.com>
7606
7607 * config.gcc: Purge all targets obsoleted in GCC 3.3. Also
7608 remove hppa*-*-mpeix* which could not be built, and prune
7609 files from tmake_file= or tm_file= lists that don't exist.
7610
7611 * config/alpha/alpha-interix.h, config/alpha/alpha32.h
7612 * config/alpha/t-interix, config/arm/conix-elf.h
7613 * config/arm/t-arm-aout, config/arm/t-strongarm-coff
7614 * config/arm/unknown-elf-oabi.h, config/i386/win32.h
7615 * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
7616 * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
7617 * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
7618 * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
7619 * config/m68k/m68k-psos.h, config/m68k/mot3300.h
7620 * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
7621 * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
7622 * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
7623 * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
7624 * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
7625 * config/m68k/tower-as.h, config/m68k/tower.h
7626 * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
7627 * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
7628 * config/m88k/m88k-protos.h, config/m88k/m88k.c
7629 * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
7630 * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
7631 * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
7632 * config/mips/rtems64.h, config/mips/sni-gas.h
7633 * config/mips/sni-svr4.h, config/mips/t-ecoff
7634 * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
7635 * config/mn10200/mn10200.c, config/mn10200/mn10200.h
7636 * config/mn10200/mn10200.md, config/mn10200/t-mn10200
7637 * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
7638 * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
7639 * config/romp/romp-protos.h, config/romp/romp.c
7640 * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
7641 * config/rs6000/aix3newas.h, config/rs6000/mach.h
7642 * config/sparc/bsd.h, config/sparc/hal.h
7643 * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
7644 * config/sparc/lynx.h, config/sparc/netbsd.h
7645 * config/sparc/sp86x-aout.h, config/sparc/splet.h
7646 * config/sparc/sun4gas.h, config/sparc/sun4o3.h
7647 * config/sparc/sunos4.h, config/sparc/t-chorus-elf
7648 * config/sparc/t-halos, config/sparc/t-sparcbare
7649 * config/sparc/t-splet, config/sparc/t-sunos41
7650 * config/v850/rtems.h: Delete file.
7651
7652 2003-05-15 Aldy Hernandez <aldyh@redhat.com>
7653
7654 * config/rs6000/rs6000-protos.h (function_value): Protoize.
7655
7656 * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
7657
7658 * config/rs6000/rs6000.c (rs6000_function_value): New.
7659
7660 2003-05-15 Philip Blundell <philb@gnu.org>
7661
7662 * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
7663 All uses updated.
7664 (arm_tune_xscale): New variable.
7665 (arm_override_options): Set it.
7666 (arm_adjust_cost): Use it in place of arm_arch_xscale.
7667 (arm_gen_load_multiple): Likewise.
7668 (arm_gen_store_multiple): Likewise.
7669 * config/arm/arm.md (is_xscale): Likewise.
7670 * config/arm/arm.h (arm_tune_xscale): Declare.
7671
7672 2003-05-15 Philip Blundell <philb@gnu.org>
7673
7674 PR target/10730
7675 * config/arm/arm.c (adjacent_mem_locations): Reject offsets
7676 involving invalid constants.
7677
7678 2003-05-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7679
7680 * pa.c (hppa_expand_prologue): Remove blockage.
7681
7682 2003-05-15 Wolfgang Bangerth <bangerth@dealii.org>
7683
7684 * doc/bugreport.texi: Remove most of the bug reporting
7685 instructions and merge them into bugs.html.
7686
7687 2003-05-14 Matt Kraai <kraai@alumni.cmu.edu>
7688
7689 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
7690 g_switch_value to unsigned HOST_WIDE_INT.
7691
7692 2003-05-14 Eric Christopher <echristo@redhat.com>
7693
7694 * combine.c: Fix header comments.
7695 (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
7696 to all calls and prototype.
7697
7698 2003-05-14 Roger Sayle <roger@eyesopen.com>
7699
7700 PR optimization/10764
7701 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
7702 Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
7703 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): Likewise,
7704 add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
7705 (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
7706 the corresponding *fyl2x_?fxf3 instructions.
7707
7708 2003-05-14 Bob Wilson <bob.wilson@acm.org>
7709
7710 * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
7711 * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
7712 XCHAL_HAVE_L32R): New.
7713 * config/xtensa/xtensa-protos.h (non_const_move_operand,
7714 xtensa_load_constant, xtensa_function_prologue,
7715 xtensa_function_epilogue): Delete prototypes.
7716 (xtensa_expand_prologue): New.
7717 * config/xtensa/xtensa.c (frame_size_const,
7718 TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
7719 non_const_move_operand, xtensa_load_constant, xtensa_reorg,
7720 xtensa_function_prologue): Delete.
7721 (add_operand, xtensa_mem_offset): Formatting.
7722 (move_operand): If the const16 option is available, allow any SFmode
7723 and SImode constants.
7724 (xtensa_emit_move_sequence): Inline the former contents of
7725 xtensa_load_constant with modifications to handle the const16 option.
7726 (override_options): Add xtensa_char_to_class['W'] and set it to
7727 the general register class only if the const16 option is enabled.
7728 Fix formatting. Disallow PIC when using the const16 option.
7729 (print_operand): Reorganize to switch on "letter" instead of the
7730 RTL code. Add output_operand_lossage calls for invalid cases.
7731 Add support for 't' and 'b' letters.
7732 (xtensa_expand_prologue): New function to replace
7733 xtensa_function_prologue and xtensa_reorg.
7734 (xtensa_function_epilogue): Declare this as static. Delete code
7735 to print the retw.n or retw instruction.
7736 (xtensa_return_addr): Use A0_REG instead of 0.
7737 (xtensa_rtx_costs): Add costs for using the const16 option.
7738 * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
7739 (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
7740 (TARGET_SWITCHES): Add "const16" and "no-const16".
7741 (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
7742 (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
7743 using the const16 option.
7744 (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
7745 (TRAMPOLINE_SIZE): Change from 49 to 59.
7746 (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
7747 (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
7748 when using the const16 option.
7749 (PREDICATE_CODES): Delete non_const_move_operand.
7750 * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
7751 UNSPECV_ENTRY.
7752 (movdi, movdf): If the source is a constant, always expand to a
7753 sequence of movsi insns.
7754 (movdi_internal, movdf_internal): Remove alternative using l32r insns.
7755 (movsi_internal, movsf_internal): Add alternative using const16 insns.
7756 (movsf): Add const16 support.
7757 (entry, prologue, epilogue): New.
7758 (set_frame_ptr): Add missing mode for unspec_volatile operation.
7759 Likewise for subsequent split pattern.
7760 * doc/invoke.texi (Option Summary, Xtensa Options): Document new
7761 "-mconst16" and "-mno-const16" options.
7762
7763 2003-05-14 Richard Henderson <rth@redhat.com>
7764
7765 * config/ia64/ia64.c (ia64_expand_load_address): Force destination
7766 to be DImode register. Merge load_symptr.
7767 * config/ia64/ia64.md (load_symptr): Remove.
7768
7769 2003-05-14 Richard Henderson <rth@redhat.com>
7770
7771 * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
7772 DEFERRED_CONSTANT_P.
7773 * integrate.c (copy_rtx_and_substitute): Update use.
7774 * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
7775 to the copy generated.
7776 (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
7777 of the constant to see if we should emit.
7778 (mark_constant): Similarly.
7779 (output_constant_def_contents): Set TREE_ASM_WRITTEN.
7780
7781 2003-05-14 David Edelsohn <edelsohn@gnu.org>
7782
7783 * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
7784 move record condition.
7785 (movdi_internal2): Same.
7786
7787 2003-05-14 Nathan Sidwell <nathan@codesourcery.com>
7788
7789 * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
7790 (GCOV_TAG_*) Force type to gcov_unsigned_t.
7791 (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
7792 (struct gcov_var): Remove modified. Add start, length, offset,
7793 overread. Have buffer array for libgcov.
7794 (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
7795 (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
7796 * gcov-io.c (gcov_open): Set mode, do not read anything.
7797 (gcov_close): Write final block.
7798 (gcov_write_block, gcov_allocate): New.
7799 (gcov_write_bytes): Make static. Write or allocate buffer.
7800 (gcov_write_unsigned, gcov_write_counter): Buffer can never be
7801 null.
7802 (gcov_write_string): Adjust.
7803 (gcov_write_tag)
7804 (gcov_write_length): Adjust. Flush the block.
7805 (gcov_write_tag_length): Buffer can never be null.
7806 (gcov_read_bytes): Make static. Read in block.
7807 (gcov_sync): Moved here. Adjust.
7808 (gcov_seek): Moved here. Adjust.
7809 * coverage.c (read_counts_file): Adjust.
7810 * gcov-dump.c (print_prefix): Add position parameter.
7811 (flag_dump_positions): New flag.
7812 (options, main, print_usage): Add it.
7813 (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
7814 tag_summary): Adjust.
7815 * gcov.c (read_graph_file, read_count_file): Adjust.
7816 * libgcov.c (gcov_exit): Adjust.
7817
7818 * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
7819 (libgcov.a): Depend on libgcc.a.
7820 (gcov.o, gcov-dump.o): Add gcov-io.c.
7821 * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
7822
7823 * loop.c (check_dbra_loop): Factor common test.
7824
7825 2003-05-14 Ben Elliston <bje@wasabisystems.com>
7826
7827 * doc/md.texi (Automaton pipeline description): Grammar fixes.
7828
7829 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
7830
7831 * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
7832 (TARGET_INITIALIZER): Include it.
7833 * target.h (struct gcc_target): Add machine_dependent_reorg field.
7834 * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
7835 * system.h: Poison MACHINE_DEPENDENT_REORG.
7836
7837 * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
7838 * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
7839 * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7840 (alpha_handle_trap_shadows): Remove "first insn" parameter.
7841 (alpha_align_insns): Likewise.
7842 (alpha_reorg): Likewise. Make static. Update calls to above
7843 functions.
7844
7845 * config/arm/arm-protos.h (arm_reorg): Remove declaration.
7846 * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
7847 * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7848 (arm_reorg): Remove parameter. Make static.
7849
7850 * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
7851 * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
7852 * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7853 (avr_reorg): Renamed from machine_dependent_reorg. Make static.
7854 Remove parameter.
7855
7856 * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
7857 * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
7858 * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7859 (c4x_reorg): Renamed from c4x_process_after_reload. Make static.
7860 Remove parameter.
7861
7862 * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
7863 * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
7864 * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
7865
7866 * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
7867 * config/frv/frv.c: Remove orphaned comment.
7868
7869 * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
7870 * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
7871 * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7872 (ix86_reorg): Renamed from x86_machine_dependent_reorg. Make static.
7873 Remove parameter.
7874
7875 * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
7876 * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
7877 * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7878 (emit_insn_group_barriers): Remove "first insn" parameter.
7879 (emit_all_insn_group_barriers): Likewise.
7880 (ia64_reorg): Likewise. Make static. Update calls to above functions.
7881 (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
7882
7883 * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
7884 * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
7885 * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7886 (ip2k_reorg): Renamed from machine_dependent_reorg. Make static.
7887 Remove parameter.
7888
7889 * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
7890 * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
7891 * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7892 (m68hc11_reorg): Make static. Remove parameter.
7893
7894 * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
7895 * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
7896 * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7897 (conditionalize_optimization): Remove parameter.
7898 (mcore_reorg): Renamed from mcore_dependent_reorg. Remove parameter.
7899 Make static. Update call to conditionalize_optimization.
7900
7901 * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
7902 * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
7903 * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7904 (mips_reorg): Renamed from machine_dependent_reorg. Remove parameter.
7905 Make static.
7906
7907 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
7908 * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
7909 * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7910 (mmix_reorg): Renamed from mmix_machine_dependent_reorg. Make static.
7911 Remove parameter.
7912
7913 * config/pa/pa-protos.h (pa_reorg): Remove declaration.
7914 * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
7915 * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7916 (pa_combine_instructions): Remove "first insn" parameter.
7917 (remove_useless_addtr_insns): Likewise.
7918 (pa_reorg): Likewise. Make static. Update calls to above functions.
7919
7920 * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
7921 commented-out definition.
7922
7923 * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
7924 * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
7925 * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7926 (s390_reorg): Renamed from s390_machine_dependent_reorg. Make static.
7927 Remove parameter.
7928
7929 * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
7930 * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
7931 * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7932 (sh_reorg): Renamed from machine_dependent_reorg. Make static.
7933 Remove parameter.
7934 (sh_output_mi_thunk): Call sh_reorg directly.
7935 * config/sh/sh.md: Update comment.
7936
7937 * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
7938 commented-out definition.
7939
7940 * config/v850/v850-protos.h (v850_reorg): Remove declaration.
7941 * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
7942 * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7943 (v850_reorg): Make static. Remove parameter.
7944
7945 * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
7946 * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
7947 * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7948 (xtensa_reorg): Make static. Remove parameter.
7949
7950 * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
7951 (TARGET_MACHINE_DEPENDENT_REORG): Document.
7952
7953 2003-05-13 Richard Henderson <rth@redhat.com>
7954
7955 * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
7956 the old decl had instantiated DECL_RTL.
7957
7958 2003-05-13 Mike Stump <mrs@apple.com>
7959
7960 * doc/invoke.texi (Option Summary): Kill off documentation for -$.
7961
7962 2003-05-13 Janis Johnson <janis187@us.ibm.com>
7963
7964 * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
7965 HOST_WIDE_INT argument.
7966
7967 2003-05-13 Jason Merrill <jason@redhat.com>
7968
7969 * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
7970
7971 * tree.c (iterative_hash_expr): New fn.
7972
7973 * c-semantics.c (emit_local_var): Don't mess with temp slots if
7974 there's no initializer.
7975
7976 2003-05-13 Richard Sandiford <rsandifo@redhat.com>
7977
7978 * final.c (final_scan_insn): Apply the effects of frame-related
7979 delay slot insns before emitting a delayed branch.
7980
7981 2003-05-13 Nick Clifton <nickc@redhat.com>
7982
7983 * config/mcore/mcore.md (jump): Use emit_jump_insn.
7984
7985 2003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7986
7987 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
7988 parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
7989
7990 2003-05-12 DJ Delorie <dj@redhat.com>
7991
7992 * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
7993 (emit_push_insn): Don't use push when the source alignment is less
7994 than the stack's push rounding.
7995
7996 2003-05-13 Zack Weinberg <zack@codesourcery.com>
7997
7998 * diagnostic.c (output_format): Add support for %m.
7999 (output_printf, output_verbatim, diagnostic_set_info,
8000 verbatim): Set err_no field of the text_info structure being
8001 initialized.
8002 (fatal_io_error): Delete function.
8003 * diagnostic.h (text_info): Add err_no field.
8004 * toplev.h (fatal_io_error): Delete prototype.
8005
8006 * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
8007 * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
8008 * objc/objc-act.c: Replace all calls to fatal_io_error with
8009 calls to fatal_error; add ": %m" to the end of all the affected
8010 error messages.
8011
8012 2003-05-13 Zack Weinberg <zack@codesourcery.com>
8013
8014 * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
8015 * rtl.h: Prototype it.
8016 * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
8017 when appropriate.
8018
8019 2003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
8020
8021 * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
8022 ("*iorsi3_oi"): Likewise.
8023
8024 2003-05-13 Richard Earnshaw <rearnsha@arm.com>
8025
8026 * arm.md (compare_scc): Use shorter sequence for EQ case.
8027 (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
8028 (and_scc_scc): Ensure split only applies when there is a dominance
8029 of the comparisons.
8030 (and_scc_scc_nodom): New insn-and-split pattern.
8031
8032 2003-05-13 Richard Sandiford <rsandifo@redhat.com>
8033
8034 * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
8035 to _Unwind_SetGRPtr().
8036
8037 2003-05-13 Michael Eager <eager@mvista.com>
8038
8039 * Makefile.in: Initialize program_transform_cross_name from
8040 @program_transform_name@ instead of target_alias.
8041
8042 2003-05-12 Janis Johnson <janis187@us.ibm.com>
8043 Alan Modra <amodra@bigpond.net.au>
8044 Jakub Jelinek <jakub@redhat.com>
8045
8046 * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
8047 * configure: Rebuild.
8048 * config/rs6000/rs6000-protos.h: Update.
8049 * config/rs6000/rs6000.c (rs6000_tls_size): New.
8050 (rs6000_tls_size_string): New.
8051 (rs6000_parse_tls_size_option): New.
8052 (rs6000_legitimize_tls_address): New.
8053 (rs6000_tls_get_addr): New.
8054 (rs6000_got_sym): New.
8055 (rs6000_tls_symbol_ref): New.
8056 (rs6000_tls_symbol_ref_1): New.
8057 (rs6000_get_some_local_dynamic_name): New.
8058 (rs6000_get_some_local_dynamic_name_1): New.
8059 (TARGET_HAVE_TLS): New.
8060 (TARGET_CANNOT_FORCE_CONST_MEM): New.
8061 (rs6000_override_options): Handle -mtls-size option.
8062 (constant_pool_expr_1): Handle TLS symbols.
8063 (rs6000_legitimize_address): Handle TLS symbols.
8064 (rs6000_tls_referenced_p): New.
8065 (rs6000_legitimate_address): Handle TLS symbols.
8066 (rs6000_emit_move): Handle TLS symbols.
8067 (print_operand): Handle TLS symbols.
8068 (uses_TOC): Handle TLS symbols.
8069 (rs6000_emit_prologue): Use symbol for unspec constant.
8070 * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
8071 (some_ld_name): New.
8072 (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
8073 (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
8074 (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
8075 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
8076 Support TLS.
8077 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
8078 tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
8079 tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
8080 tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
8081 tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
8082 tls_tls_64): New.
8083 * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
8084
8085 2003-05-12 Neil Booth <neil@cat.daikokuya.co.uk>
8086
8087 * Makefile.in (stage2_build, stage3_build, stage4_build):
8088 Set BUILD_CC to the same as CC.
8089
8090 2003-05-12 Neil Booth <neil@daikokuya.co.uk>
8091
8092 * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
8093
8094 2003-05-12 Andreas Schwab <schwab@suse.de>
8095
8096 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
8097 as unused.
8098 (bundling): Initialize 'pos'.
8099 (ia64_expand_builtin): Initialize 'rmode'.
8100
8101 2003-05-12 David Edelsohn <edelsohn@gnu.org>
8102
8103 * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
8104 (ASM_OUTPUT_ALIGNED_COMMON): Same.
8105 (ASM_OUTPUT_LOCAL): Same.
8106
8107 Mon May 12 21:53:29 CEST 2003 Jan Hubicka <jh@suse.cz>
8108
8109 * varasm.c (output_constant): Fix underflow.
8110
8111 2003-05-12 Mark Mitchell <mark@codesourcery.com>
8112
8113 PR other/10745
8114 * configure.in: Correct detection of GNU ld version number.
8115 * configure: Regenerated.
8116
8117 2003-05-12 Zack Weinberg <zack@codesourcery.com>
8118
8119 * diagnostic.c (diagnostic_for_decl): Take a
8120 diagnostic_context argument. Restructure to be consistent
8121 with diagnostic_report_diagnostic.
8122 (diagnostic_count_diagnostic): Now static. Take a
8123 diagnostic_info argument, not just a diagnostic_t. Some code
8124 moved here from internal_error. Move a case label for
8125 clarity.
8126 (diagnostic_action_after_output): New function. Code moved
8127 here from internal_error and fatal_error.
8128 (bug_report_request): New #define so that this text appears in
8129 only one place.
8130 (diagnostic_report_diagnostic): Update to match changes to
8131 diagnostic_count_diagnostic. Call diagnostic_action_after_output.
8132 (diagnostic_set_info): Call gettext here.
8133
8134 (pedwarn): Update comment. Don't call gettext here.
8135 (sorry): Use report_diagnostic. Don't call gettext here.
8136 (fatal_error): Remove final fnotice and exit, but call
8137 real_abort to prevent warnings about noreturn function returning.
8138 (internal_error): Likewise. Don't do ICE suppression here nor
8139 call context->internal_error.
8140 (warning_with_decl): Suppress for decls in system headers.
8141 Adjust call to diagnostic_for_decl.
8142 (pedwarn_with_decl): Likewise.
8143 (error_with_decl): Adjust call to diagnostic_for_decl.
8144 (error_recursion): Use bug_report_request.
8145
8146 * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
8147 * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
8148 diagnostic_count_diagnostic.
8149
8150 2003-05-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8151
8152 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
8153
8154 Mon May 12 15:57:54 CEST 2003 Jan Hubicka <jh@suse.cz>
8155
8156 * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
8157 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
8158 * mips/mips.h (ASM_OUTPUT_SKIP): Fix typo in the previous patch.
8159
8160 2003-05-12 Roger Sayle <roger@eyesopen.com>
8161
8162 * doc/rtl.texi: Document zero_extract as a valid destination
8163 of a set insn.
8164
8165 2003-05-12 Richard Earnshaw <rearnsha@arm.com>
8166
8167 * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
8168 '.'. Change all local symbol definitions and references to use LSYM.
8169
8170 Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz>
8171
8172 * expr.h (assemble_static_space): Update prototype.
8173 * output.h (assemble_zeros, output_constant): Likewise.
8174 * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
8175 * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
8176 it 64bit clean.
8177 * elf.h (ASM_OTUPUT_SKIP): Likewise.
8178 * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
8179 * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
8180 Expect HOST_WIDE_INT operand.
8181 * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
8182 Expect HOST_WIDE_INT operand.
8183 * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
8184 Expect HOST_WIDE_INT operand.
8185 * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
8186 HOST_WIDE_INT operand.
8187 * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
8188 ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
8189 * aout.h (ASM_OTUPUT_SKIP): Likewise.
8190 * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
8191 * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
8192 * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
8193 * frv.h (ASM_OTUPUT_SKIP): Likewise.
8194 * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
8195 * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
8196 Make it 64bit
8197 clean.
8198 * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
8199 * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
8200 Make it 64bit clean.
8201 * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
8202 * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
8203 HOST_WIDE_INT operand
8204 * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
8205 Expect HOST_WIDE_INT operand
8206 * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
8207 * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
8208 ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
8209 * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
8210 Likewise.
8211 * m32r.h (ASM_OUTPUT_COMMON): Likewise.
8212 * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
8213 Likewise.
8214 * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
8215 * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
8216 * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
8217 ASM_OUTPUT_SKIP): Likewise.
8218 * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
8219 Likewise.
8220 * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
8221 ASM_OUTPUT_SKIP): Likewise.
8222 * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
8223 ASM_OUTPUT_SKIP): Likewise.
8224 * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
8225 * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
8226 ASM_OUTPUT_SKIP): Likewise.
8227 * sgs.h (ASM_OUTPUT_SKIP): Likewise.
8228 * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
8229 ASM_OUTPUT_SKIP): Likewise.
8230 * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
8231 Likewise.
8232 * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
8233 * iris.h (ASM_OUTPUT_LOCAL): Likewise.
8234 * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
8235 * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
8236 ASM_OUTPUT_SKIP): Make it 64bit clean.
8237 * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
8238 Make it 64bit clean.
8239 * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
8240 ASM_OUTPUT_SKIP): Make it 64bit clean.
8241 * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
8242 64bit clean.
8243 * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
8244 HOST_WIDE_INT argument
8245 * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
8246 * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
8247 HOST_WIDE_INT argument
8248 * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
8249 * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
8250 * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
8251 * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
8252 HOST_WIDE_INT argument
8253 * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
8254 * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
8255 * varasm.c (asm_output_bss, asm_output_aligned_bss,
8256 asm_emit_uninitialized, assemble_zeros, assemble_static_space):
8257 HOST_WIDE_INT argument
8258
8259 2003-05-10 Steven Bosscher <steven@gcc.gnu.org>
8260
8261 * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
8262 favor of walk_tree_without_duplicates. Add comments.
8263
8264 2003-05-12 Josef Zlomek <zlomekj@suse.cz>
8265
8266 * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
8267 (struct alloc_pool_def): New element 'id'.
8268 * alloc-pool.c (fancy_abort): Extern function prototype.
8269 (abort): Macro which uses fancy_abort.
8270 (struct allocation_object_def): New structure.
8271 (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
8272 (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
8273 (last_id): New variable.
8274 (create_alloc_pool): Add the offset of u.data to size of element,
8275 increase and use last_id.
8276 (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
8277 (pool_alloc): Likewise. Set ID for elements.
8278 (pool_free): Check whether the PTR was allocated from POOL.
8279
8280 2003-05-11 Richard Henderson <rth@redhat.com>
8281
8282 PR c/10675
8283 * c-decl.c: Include hashtab.h.
8284 (detect_field_duplicates): New.
8285 (finish_struct): Use it.
8286 * Makefile.in (c-decl.o): Update.
8287 * c-parse.in (structsp_attr): Nreverse component_decl_list results.
8288 (component_decl_list, component_decl_list2,
8289 components, components_notype): Build list in reverse order.
8290 (enumlist): Clarify docs. Use TREE_CHAIN not chainon.
8291
8292 * tree.c (chainon): Special case op2 null as well.
8293 Reorg for clarity.
8294
8295 2003-05-11 Roger Sayle <roger@eyesopen.com>
8296
8297 * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
8298 to implement log, logf and logl built-ins as inline x87 intrinsics.
8299 (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
8300 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
8301 patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
8302
8303 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
8304 UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
8305
8306 2003-05-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8307
8308 * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
8309
8310 * sparc.c (print_operand): Fix uninitialized warning.
8311
8312 2003-05-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8313
8314 * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
8315 real insns.
8316 * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
8317 condition.
8318
8319 2003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
8320
8321 * doc/cpp.texi: Fix typos.
8322
8323 2003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
8324
8325 * config/s390/s390.c (s390_function_arg_float): New function.
8326 (s390_function_arg_pass_by_reference): Use it.
8327 (s390_function_arg_advance): Likewise.
8328 (s390_function_arg): Likewise.
8329 (s390_va_arg): Likewise
8330
8331 2003-05-11 Nathan Sidwell <nathan@codesourcery.com>
8332
8333 * coverage.h (coverage_counter_alloc): New function.
8334 * function.h (struct function): Remove arc_profile flag.
8335 * coverage.c (fn_ident): Remove.
8336 (fn_b_ctrs, no_coverage): New.
8337 (get_coverage_counts): Use current_function_funcdef_no.
8338 (coverage_counter_alloc): New.
8339 (coverage_counter_ref): Adjust.
8340 (coverage_begin_output): Check no_coverage. Use
8341 current_function_funcdef_no.
8342 (coverage_end_function): Likewise.
8343 (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
8344 than clearing flag_inline_functions. Do not clear arc_profile
8345 flag.
8346 * function.c (prepare_function_start): Do not set arc_profile
8347 flag.
8348 * profile.c (instrument_edges): Return number of instrumented
8349 edges. Use a for loop.
8350 (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
8351 local to here and simplify. Use profile_arc_flag not arc_profile
8352 flag.
8353 (find_spanning_tree): Reformat.
8354 * toplev.c (rest_of_compilation): Use profile_arc_flags and
8355 flag_test_coverage rather than arc_profile flag.
8356
8357 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
8358
8359 * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
8360
8361 2003-05-11 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8362
8363 * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
8364
8365 2003-05-11 Bruno Haible <bruno@clisp.org>
8366
8367 * cppfiles.c (find_or_create_entry): Preserve errno.
8368
8369 2003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
8370
8371 * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
8372 cpplib as it's a Standard Predefined Macro.
8373 * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
8374 * cppinit.c (_cpp_init_builtins): Take HOSTED. Define
8375 __STDC_HOSTED__ appropriately.
8376 * cpplib.h (_cpp_init_builtins): Update.
8377 * fix-header.c (read_scan_file): Update.
8378 * doc/cpp.texi, doc/cppopts.texi: Update documentation.
8379
8380 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
8381
8382 PR C++/689
8383 PR C++/9257
8384 * c-opts.c (c_common_decode_option): Don't set
8385 warn_ctor_dtor_privacy wen -Wall.
8386 * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
8387
8388 2003-05-10 Alexandre Oliva <aoliva@redhat.com>
8389
8390 * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
8391 patch.
8392
8393 2003-05-10 Zack Weinberg <zack@codesourcery.com>
8394
8395 * diagnostic.c: Reorder functions for clarity, putting all the
8396 functions in the "error" family next to each other, and
8397 likewise all the functions in the "error_with_decl" family.
8398 Some other routines were moved too. Add comments.
8399 (vbuild_message_string): Fold into sole caller.
8400
8401
8402 2003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
8403
8404 * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
8405 (EH_RETURN_HANDLER_RTX): Likewise.
8406 (expand_builtin_eh_return): Do not copy stack adjustment
8407 if EH_RETURN_STACKADJ_RTX is not defined.
8408 (expand_eh_return): Likewise. Also, do not pass stack
8409 adjustment as argument to the eh_return pattern.
8410 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
8411 because EH_RETURN_STACKADJ_RTX is not defined.
8412 * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
8413 is not defined, treat stack pointer like a regular register.
8414 (uw_init_context_1): Set up fake initial stack pointer register.
8415 (uw_install_context_1): Do not compute stack adjustment if
8416 EH_RETURN_STACKADJ_RTX is not defined.
8417
8418 * config/i386/i386.md ("eh_return"): Remove first argument.
8419 * config/mips/mips.md ("eh_return"): Likewise.
8420 * config/rs6000/rs6000.md ("eh_return"): Likewise.
8421 * config/sh/sh.md ("eh_return"): Likewise.
8422
8423 * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
8424
8425 2003-05-10 Alexander Aganichev <aaganichev@yandex.ru>
8426
8427 * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
8428
8429 2003-05-10 Nathan Sidwell <nathan@codesourcery.com>
8430
8431 * defaults.h (GCOV_TYPE_SIZE): Remove.
8432 * gcov-io.h (gcov_type): Set to specific mode int on target.
8433 (gcov_unsigned_t, gcov_position_t): New.
8434 (GCOV_TYPE_NODE): New.
8435 (GCOV_TAG_SUMMARY_LENGTH): Adjust.
8436 (GCOV_COUNTERS_SUMMABLE): New.
8437 (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
8438 gcov_ctr_info, gcov_info): Adjust types.
8439 (gcov_var): Adjust types.
8440 (gcov_write_unsigned, gcov_write_tag,
8441 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
8442 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
8443 (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
8444 * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
8445 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
8446 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
8447 * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
8448 __gcov_init, __gcov_merge_add): Adjust gcov types.
8449 * coverage.c (ctr_merge_functions): Constify.
8450 (ctr_names): New.
8451 (read_counts_file): Adjust gcov types. Only summarize & merge
8452 summable counters.
8453 (coverage_counter_ref): Use GCOV_TYPE_NODE.
8454 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
8455 build_ctr_info_value, build_gcov_info): Adjust types.
8456 * profile.c (branch_prob): Adjust gcov types.
8457 * gcov_dump (dump_file): Adjust gcov types.
8458
8459 2003-05-10 Richard Earnshaw <rearnsha@arm.com>
8460
8461 * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
8462 constants.
8463 (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
8464 * arm.c (arm_select_dominance_cc_mode): Renamed from
8465 select_dominance_cc_mode, no-longer static. Use DOM_CC... constants.
8466 Callers updated.
8467 * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
8468
8469 2003-05-09 Roger Sayle <roger@eyesopen.com>
8470
8471 * config/alpha/alpha.c (alpha_start_function): Declare frame_size
8472 as unsigned to avoid signed/unsigned comparison warnings.
8473
8474 2003-05-09 Bob Wilson <bob.wilson@acm.org>
8475
8476 * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
8477 instruction if the Xtensa density option is enabled.
8478
8479 2003-05-09 Matt Kraai <kraai@alumni.cmu.edu>
8480
8481 * mklibgcc.in: Remove extra quotes.
8482
8483 2003-05-09 Mark Mitchell <mark@codesourcery.com>
8484
8485 * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
8486 of int_ftype_void.
8487
8488 2003-05-09 Alexandre Oliva <aoliva@redhat.com>
8489
8490 * reload1.c (reload_cse_move2add): Don't turn an implicit
8491 truncation into a self-set in the narrow mode.
8492
8493 2003-05-09 Richard Earnshaw <rearnsha@arm.com>
8494
8495 * arm.md (clzsi2): The CLZ instruction is predicable.
8496
8497 2003-05-09 Bob Wilson <bob.wilson@acm.org>
8498
8499 * config/xtensa/xtensa.c: Formatting.
8500
8501 2003-05-09 Diego Novillo <dnovillo@redhat.com>
8502
8503 * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
8504 instead of TREE_OPERAND to access the operand of a
8505 CONSTRUCTOR node.
8506
8507 2003-05-09 Diego Novillo <dnovillo@redhat.com>
8508
8509 * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
8510 one operand.
8511
8512 2003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8513
8514 * toplev.h (warning_with_file_and_line): Don't declare.
8515 (error_with_file_and_line): Likewise.
8516 * diagnostic.c (error_with_file_and_line): Remove.
8517 (warning_with_file_and_line): Likewise.
8518
8519 2003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8520
8521 * c-parse.in (if_stmt_locus): New object.
8522 (if_prefix rule): Use it. Don't use warning_with_file_and_line.
8523 (select_or_iter_stmt rule): Likewise.
8524 (if_stmt_file): Remove.
8525 (if_stmt_line): Likewise.
8526 * jump.c: include "diagnostic.h"
8527 (never_reached_warning): Don't use warning_with_file_and_line.
8528 * Makefile.in (jump.o): Add dependce on diagnostic.h
8529
8530 2003-05-09 Alan Modra <amodra@bigpond.net.au>
8531
8532 * expr.c (move_block_from_reg): Remove "size" parm. Localize vars.
8533 Move code handling pieces not larger than a word to..
8534 * function.c (assign_parms): ..here, but use change_address instead
8535 of adjust_address and operand_subword, and expand_binop instead of
8536 expand_shift. Adjust calls to move_block_from_reg.
8537 * expr.h (move_block_from_reg): Update declaration.
8538 (copy_blkmode_from_reg): Formatting.
8539 * Makefile.in (function.o): Add $(OPTABS_H) to deps.
8540 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
8541 move_block_from_reg calls.
8542 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
8543 * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
8544 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
8545 * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
8546 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
8547 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
8548 * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
8549 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
8550 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
8551
8552 2003-05-08 DJ Delorie <dj@redhat.com>
8553
8554 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
8555 to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
8556 variable-sized types).
8557 (xstormy16_function_arg): New. Pass them that way too.
8558 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
8559 * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
8560
8561 2003-05-08 Aldy Hernandez <aldyh@redhat.com>
8562
8563 * mklibgcc.in: Use mkinstalldirs when installing multilib
8564 directories.
8565
8566 2003-05-08 J"orn Rennecke <joern.rennecke@superh.com>
8567
8568 * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
8569 instead of CODE_FOR_jump
8570
8571 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
8572
8573 * objc/objc-act.c (error_with_ivar): Don't use
8574 error_with_file_and_line.
8575 (warn_with_method): Don't use warning_with_file_and_line.
8576
8577 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
8578
8579 * stmt.c (emit_locus): New macro.
8580 (emit_filename): Remove.
8581 (emit_lineno): Likewise.
8582 (struct stmt_status): Replace members x_emit_filename and
8583 x_emit_lineno with x_emit_locus.
8584 (set_file_and_line_for_stmt): Adjust.
8585 (expand_expr_stmt_value): Don't use warning_with_file_and_line.
8586 (warn_if_unused_value): Likewise.
8587 (check_seenlabel): Likewise.
8588
8589 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
8590
8591 * c-decl.c (define_label): Tidy. Don't use any of
8592 error_with_file_and_line or warning_with_file_and_file.
8593 (pending_xref_error): Likewise.
8594 (store_parm_decls): Likewise.
8595 (current_function_prototype_locus): New object. Package from
8596 current_function_prototype_file and current_function_prototype_line.
8597 (start_function): Use it.
8598 (current_function_prototype_file): Remove.
8599 (current_function_prototype_line): Remove;
8600
8601 2003-05-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8602
8603 * builtins.c (readonly_data_expr): New function.
8604 (expand_builtin_memmove): Optimize any rodata source, not just
8605 strings.
8606
8607 2003-05-07 David Mosberger <davidm@hpl.hp.com>
8608
8609 * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
8610
8611 2003-05-07 Richard Henderson <rth@redhat.com>
8612
8613 * config/i386/i386.c (ix86_split_long_move): Fix base register
8614 mode for XFmode splits for TARGET_64BIT.
8615
8616 2003-05-07 Richard Henderson <rth@redhat.com>
8617
8618 * sched-ebb.c (schedule_ebb): Supply the correct starting
8619 block number to save_line_notes.
8620
8621 2003-05-07 Richard Henderson <rth@redhat.com>
8622
8623 * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
8624 (dump_file): Likewise.
8625
8626 2003-05-07 David Mosberger <davidm@hpl.hp.com>
8627
8628 * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
8629 forget to preserve gp.
8630 * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
8631
8632 * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
8633 .prologue directive.
8634 Use .skip instead of data8 for .bss section to make Intel
8635 Assembler (ias) happy. Minor whitespace fixups. Make "nop 0"
8636 explicit in the .mib bundles and remove the unnecessary stop
8637 bits. Replace local labels with normal labels, to make ias
8638 happy. Don't register __do_global_ctors_aux here, do it in
8639 crtend.asm instead.
8640
8641 * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
8642 __do_global_ctors_aux in .init_array section instead of
8643 declaring it as a hidden global. Replace local labels with
8644 ordinary labels to make ias happy.
8645
8646 2003-05-07 Richard Henderson <rth@redhat.com>
8647
8648 PR c++/10570
8649 * except.c: Revert 04-01 and 04-02 forced-unwind changes.
8650 * flags.h, toplev.c, doc/invoke.texi: Likewise.
8651
8652 * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
8653 * unwind.inc (_Unwind_DeleteException): Check for null
8654 exception_cleanup.
8655
8656 * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
8657 * unwind.inc (_Unwind_Resume_or_Rethrow): New.
8658 * unwind.h: Declare them.
8659 * libgcc-std.ver (GCC_3.3): Export them.
8660
8661 2003-05-07 Richard Henderson <rth@redhat.com>
8662
8663 * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
8664 not _Unwind_Word.
8665
8666 2003-05-07 Zack Weinberg <zack@codesourcery.com>
8667
8668 * stmt.c (force_label_rtx): New function, based on logic
8669 formerly found in expand_expr.
8670 * expr.h: Prototype it.
8671 * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
8672 appropriate.
8673 * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
8674
8675 * print-tree.c (debug_tree): Free the table after we're done
8676 with it. Use putc.
8677
8678 2003-05-07 Aldy Hernandez <aldyh@redhat.com>
8679
8680 * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
8681 Unreverse arguments for __ev_subw.
8682
8683 * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
8684
8685 2003-05-07 Nick Clifton <nickc@redhat.com>
8686
8687 * config/stormy16/stormy-abi: Update to include
8688 R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
8689 R_XSTORMY16_12 relocs.
8690
8691 2003-05-07 Alan Modra <amodra@bigpond.net.au>
8692
8693 * function.c (assign_parms): Correct reversed reg_parm_stack_space
8694 test. Add partial in-regs size to stack_args_size.
8695
8696 2003-05-07 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8697
8698 * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
8699 as a C only option.
8700
8701 2003-05-07 Nathan Sidwell <nathan@codesourcery.com>
8702
8703 * gcov-io.h (GCOV_LOCKED): New #define.
8704 (GCOV_LINKAGE): Make sure it is #defined.
8705 (gcov_write_string, gcov_write_tag, gcov_write_length,
8706 gcov_read_string, gcov_time): Poison in libgcov.
8707 (gcov_seek_end): Remove.
8708 (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
8709 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
8710 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
8711 GCOV_TAG_SUMMARY_LENGTH): New #defines.
8712 (gcov_write_tag, gcov_write_length): Not in libgcov.
8713 * gcov-io.c (gcov_open): Use GCOV_LOCKED.
8714 (gcov_write_tag, gcov_write_length): Not in libgcov.
8715 (gcov_write_tag_length): New.
8716 (gcov_write_summary): Use gcov_write_tag_length.
8717 * libgcov.c: Always #include gcov-io.h.
8718 (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
8719 (GCOV_LINKAGE): Define to nothing for L_gcov.
8720 (gcov_exit): Replace gcov_write_tag, gcov_write_length with
8721 gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
8722 * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
8723 (read_count_file): Likewise.
8724 * gcov-dump.c (dump_file): Likewise.
8725 * coverag.c (read_counts_file): Likewise.
8726
8727 2003-05-06 Mark Mitchell <mark@codesourcery.com>
8728
8729 PR other/10658
8730 * gcc.c (process_command): Update copyright date.
8731
8732 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
8733
8734 * doc/install.texi (mips-*-*): Add note about libstdc++.
8735
8736 2003-05-06 DJ Delorie <dj@redhat.com>
8737
8738 * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
8739 * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
8740 * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
8741
8742 2003-05-06 <neil@cat.daikokuya.co.uk>
8743
8744 * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
8745 and -Wstrict-prototypes if C++.
8746
8747 2003-05-06 Aldy Hernandez <aldyh@redhat.com>
8748
8749 * config/rs6000/linuxspe.h: New file.
8750
8751 * config.gcc: Add powerpc-*-linux-gnuspe* target.
8752
8753 2003-05-06 Richard Henderson <rth@redhat.com>
8754
8755 * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
8756 previous frame didn't save sp. Clear sp for next frame.
8757 (uw_install_context_1): Honor saved sp from frame.
8758
8759 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
8760
8761 * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
8762 (mips_move_1word, mips_move_2words): Remove declaration.
8763 (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
8764 (mips_restore_gp): Remove insn argument.
8765 * config/mips/mips.h (FP_REG_RTX_P): New macro.
8766 * config/mips/mips.c (volatile_buffer): Remove.
8767 (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
8768 (mips_move_1word, mips_move_2words): Remove, replacing with...
8769 (mips_output_move): ...this new function.
8770 (mips_restore_gp): Remove insn argument. Adjust for above changes.
8771 (print_operand): Make '%h' print %hi(op) for HIGH operands. Remove
8772 handling of floating-point constants. Handle zero CONST_DOUBLE
8773 arguments.
8774 (mips_annotate_frame_insn): Replace with...
8775 (mips_set_frame_expr): ...this, which just takes one argument.
8776 (mips_frame_set): Change the register argument to an rtx.
8777 (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
8778 check whether moves should be split. Use mips_split_64bit_move
8779 to split them. Use mips_subword to generate the high and low
8780 parts of a paired FPR. Adjust calls to frame_set and
8781 mips_set_frame_expr.
8782 (mips_expand_prologue): Simplify due to above changes.
8783 * config/mips/mips.md: Add splitters for 64-bit moves on 32-bit
8784 targets, replacing xisting register-only versions.
8785 (UNSPEC_STORE_DF_HIGH): New unspec.
8786 (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
8787 (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
8788 (*paradoxical_extendhidi2): Remove.
8789 (movdi_internal, movdi_internal2): Use mips_output_move.
8790 (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
8791 (movsf_internal1, movsf_internal2): Likewise.
8792 (movdf_internal1a): Likewise. Fix length and type of f <- G case.
8793 (movdf_internal1b): Use mips_output_move. Fix type of f <- G case.
8794 (movdf_internal2): Use mips_output_move. Fix lengths of FPR moves.
8795 Add m <- G alternative.
8796 (load_df_low, load_df_high, store_df_low): New patterns.
8797 (movhi_internal): Use @ template instead of calling a function.
8798 Remove unnecessary 'z' alternatives.
8799 (movqi_internal): Likewise.
8800 (exception_receiver): Update call to mips_restore_gp.
8801
8802 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
8803
8804 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
8805 (mips_delegitimize_address): Declare.
8806 * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
8807 (FIND_BASE_TERM): Define.
8808 * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8809 (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
8810 Handle small-data addresses.
8811
8812 2003-05-05 Roger Sayle <roger@eyesopen.com>
8813
8814 * real.c (real_powi): New function to calculate the value of
8815 a real raised to an integer power, i.e. pow(x,n) for int n.
8816 (real_sqrt): Convert to using the faster do_add, do_multiply
8817 and do_divide API for consistency with the rest of real.c.
8818 * real.h (real_powi): Prototype here.
8819 * builtins.c (fold_builtin): Avoid local variable mode when
8820 evaluating sqrt at compile time. Attempt to evaluate pow at
8821 compile-time, by checking for an integral exponent.
8822
8823 2003-05-05 Richard Henderson <rth@redhat.com>
8824
8825 * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
8826
8827 2003-05-05 David O'Brien <obrien@FreeBSD.org>
8828
8829 * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
8830 other FreeBSD ports.
8831 (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
8832 (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
8833
8834 2003-05-05 Janis Johnson <janis187@us.ibm.com>
8835
8836 * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
8837 expanded variables.
8838 * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
8839
8840 2003-05-05 Zack Weinberg <zack@codesourcery.com>
8841
8842 * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
8843 * varasm.c (struct varasm_status): Add deferred_constants field.
8844 (n_deferred_strings): Delete variable.
8845 (n_deferred_constants): New #define.
8846 (struct constant_descriptor_tree): Kill next and label fields.
8847 (const_hash_table, MAX_HASH_TABLE): Delete.
8848 (const_desc_htab): New static variable.
8849 (const_hash): Rename const_desc_hash, and make it fit the
8850 hashtab.h interface.
8851 (const_desc_eq): New.
8852 (const_hash_1, compare_constant): Const-ify arguments.
8853 (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
8854 SYMBOL_REFs. Clarify comments. Don't set desc->label.
8855 (output_constant_def): Do the lookup/insert using the
8856 hashtab.h interface. Don't muck with n_deferred_constants or
8857 DEFERRED_CONSTANT_P here.
8858 Always call maybe_output_constant_def_contents.
8859 (maybe_output_constant_def_contents): Take a pointer to the
8860 descriptor, not the EXP and RTL separately. Return
8861 immediately if this constant is not deferred. Defer output of
8862 everything, except writable string constants. Update
8863 n_deferred_constants here.
8864 (output_constant_def_contents): Now takes just one argument,
8865 an rtx. Clear DEFERRED_CONSTANT_P here.
8866 (mark_constant_pool): Update for rename of n_deferred_strings.
8867 (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
8868
8869 (init_varasm_status): Clear p->deferred_constants.
8870 (init_varasm_once): Call htab_create_ggc for const_desc_htab.
8871
8872 2003-05-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8873
8874 * builtins.c (expand_builtin_stpcpy): Only expand when the length
8875 of the source string can be evaluated at compile-time.
8876
8877 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
8878
8879 * testsuite/gcc.c-torture/compile/simd-6.c: New.
8880
8881 * c-typeck.c (digest_init): Handle arrays of vector constants.
8882
8883 2003-05-05 Jakub Jelinek <jakub@redhat.com>
8884
8885 * builtins.c (expand_builtin_mempcpy): New function.
8886 (expand_builtin_stpcpy): Optimize stpcpy whose return value is
8887 ignored into strcpy no matter what arguments it has.
8888 (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
8889 expand_builtin_mempcpy.
8890
8891 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
8892
8893 * testsuite/gcc.dg/20030505.c: New.
8894
8895 * c-typeck.c (convert_for_assignment): Opaque pointers can
8896 interconvert.
8897
8898 * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
8899 (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
8900 (spe_init_builtins): Rename all pv2si_type_node to
8901 opaque_p_V2SI_type_node.
8902 Remove declaration of pv2si_type_node.
8903 (is_ev64_opaque_type): Accept opaque pointers.
8904
8905 2003-05-05 Geoffrey Keating <geoffk@apple.com>
8906
8907 * config/rs6000/rs6000.c (validate_condition_mode): Use
8908 flag_finite_math_only.
8909 (rs6000_reverse_condition): Never return UNKNOWN; use
8910 flag_finite_math_only.
8911 (rs6000_generate_compare): Use flag_finite_math_only.
8912 (rs6000_emit_cmove): Handle UNLE. Support UNEQ under -ffast-math.
8913 Use HONOR_* rather than flag_unsafe_math_optimizations. Correct
8914 UNGE and GT cases. Handle UNEQ and LTGT when ! HONOR_NANS.
8915
8916 * toplev.c (check_global_declarations): Suppress not-used warning
8917 for volatile variables.
8918
8919 2003-05-05 Olivier Hainque <hainque@act-europe.fr>
8920
8921 * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
8922 usage of bitfield instructions for mode1 != BLKmode, only ignoring
8923 SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
8924 (store_field): Likewise.
8925
8926 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
8927
8928 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
8929 evsubifw to builtins accepting 5-bit unsigned constants.
8930 (easy_vector_constant): Return if V1DImode. Fix typo.
8931
8932 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
8933
8934 * config/rs6000/spe.h: Revert licensing change from last patch.
8935
8936 2003-05-05 DJ Delorie <dj@redhat.com>
8937
8938 * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
8939 before reload, but defer the split until after.
8940 * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
8941 to match.
8942
8943 2003-05-05 David Edelsohn <edelsohn@gnu.org>
8944
8945 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
8946 * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
8947
8948 2003-05-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8949
8950 * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
8951 is defined.
8952
8953 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8954
8955 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
8956 ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
8957 ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
8958
8959 (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
8960 ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
8961 ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
8962 New.
8963
8964 * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
8965 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
8966
8967 (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
8968 BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
8969 BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
8970 BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
8971 BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
8972 BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
8973 BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
8974 BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
8975 BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
8976 BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
8977 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
8978 BUILT_IN_STRDUP): Add "nonnull" attribute.
8979
8980 2003-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8981
8982 * expr.c (store_field): Don't clobber TEMP in shift: it might be
8983 a variable.
8984 (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
8985 whose purpose is to step up the alignment.
8986 (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
8987
8988 * stor-layout.c (compute_record_mode): Relax restriction
8989 on fields crossing word boundaries forcing BLKmode.
8990
8991 2003-05-04 Neil Booth <neil@daikokuya.co.uk>
8992
8993 * cppinit.c (cpp_create_reader, post_options): Warn about
8994 trigraphs unless explicity set or -trigraphs.
8995 * cpplex.c (warn_in_comment): New.
8996 (_cpp_process_line_notes): Better handling of -Wtrigraphs.
8997 (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
8998 * doc/cppopts.texi, doc/cpp.texi: Update.
8999
9000 2003-05-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9001
9002 * Makefile.in (LIBGCOV): Add _gcov_merge_add.
9003 * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
9004 namespace clash.
9005 (GCOV_MERGE_FUNCTIONS): New.
9006 (gcov_merge_fn): Declare.
9007 (struct gcov_ctr_info): New field "merge".
9008 (__gcov_merge_add): Declare.
9009 * coverage.c (ctr_merge_functions): New.
9010 (build_ctr_info_type, build_ctr_info_value): Initialize merge field
9011 of gcov_ctr_info type.
9012 * libgcov.c (__gcov_merge_add): New.
9013 (gcov_exit): Call a hook to merge values of counters.
9014
9015 2003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
9016
9017 * toplev.h (pedwarn_with_file_and_line): Don't declare.
9018 * diagnostic.c (pedwarn_with_file_and_line): Remove.
9019
9020 2003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
9021
9022 * varasm.c (assemble_variable): Don't use error_with_file_and_line.
9023
9024 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9025
9026 * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
9027 expand_builtin_frame_address): Update prototypes.
9028 (expand_builtin_constant_p, expand_builtin_strlen,
9029 expand_builtin_strcpy, expand_builtin_memset,
9030 expand_builtin_bzero, expand_builtin_args_info,
9031 expand_builtin_frame_address): Pass in just the argument(s)
9032 needed, not the entire expression `exp'.
9033 (expand_builtin): Update all calls to these functions.
9034
9035 2003-05-03 Richard Henderson <rth@redhat.com>
9036
9037 * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
9038 <BUILT_IN_DWARF_SP_COLUMN>: New.
9039 * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
9040 (BUILT_IN_DWARF_SP_COLUMN): New.
9041 * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
9042 (expand_builtin_dwarf_sp_column): New.
9043 * except.h: Update to match.
9044 * unwind-dw2.c (execute_stack_op): Correct stack push typo.
9045 (execute_cfa_program): Record location expression address
9046 before extracting length.
9047 (uw_update_context_1): Install old CFA into stack pointer column.
9048 (uw_init_context_1): Set cfa_reg to stack pointer column.
9049
9050 2003-05-03 Richard Henderson <rth@redhat.com>
9051
9052 * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
9053 return bool.
9054 (toc_relative_expr_p): Likewise.
9055 (SPE_CONST_OFFSET_OK): Move from rs6000.h.
9056 (legitimate_constant_pool_address_p): Move from rs6000.h, change
9057 into a function, downcase all users.
9058 (legitimate_small_data_p): Likewise.
9059 (legitimate_offset_address_p): Likewise.
9060 (legitimate_indexed_address_p): Likewise.
9061 (legitimate_indirect_address_p): Likewise.
9062 (legitimate_lo_sum_address_p): Likewise.
9063 (rs6000_mode_dependent_address): Likewise.
9064 * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
9065 (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
9066 LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
9067 LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
9068 LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
9069 (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
9070 (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
9071 * config/rs6000/rs6000-protos.h: Update.
9072
9073 2003-05-03 Geoffrey Keating <geoffk@apple.com>
9074
9075 * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
9076 (REVERSE_CONDITION): Define.
9077
9078 * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
9079 to branch_positive_comparison_operator.
9080 (ccr_bit): Check that sCOND conditions are actually a positive bit.
9081 (print_operand): Remove %D substitution.
9082 (rs6000_emit_sCOND): Generate complement operation to ensure that
9083 sCOND input is a positive bit.
9084 * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
9085 same order as bCOND, and add the missing ones. Remove the %D
9086 substitutions from the scc patterns.
9087
9088 * simplify-rtx.c (simplify_relational_operation): Add case for
9089 ! (fabs(x) < 0.0).
9090
9091 2003-05-03 Bruce Korb <bkorb@gnu.org>
9092
9093 * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
9094 in fixincl.x
9095 * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
9096
9097 2003-05-03 Aldy Hernandez <aldyh@redhat.com>
9098
9099 * config/rs6000/spe.h: Remove unecessary casts. Misc cleanups.
9100
9101 2003-05-03 Zack Weinberg <zack@codesourcery.com>
9102
9103 PR c/10604
9104 * c-common.c (warn_sign_compare): Initialize to -1.
9105 * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
9106 (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
9107 for C++ only.
9108 (c_common_post_options): Set warn_sign_compare from extra_warnings
9109 if it's still -1 at this point.
9110
9111 * toplev.c (maybe_warn_unused_parameter): New static variable.
9112 (set_Wextra): New static function.
9113 (W_options): Remove "extra".
9114 (decode_W_option): Call set_Wextra.
9115 (independent_decode_option): Likewise.
9116 (set_Wunused): Cooperate with set_Wextra in setting
9117 warn_unused_parameter.
9118 (rest_of_compilation): No need to check extra_warnings as
9119 well as warn_uninitialized.
9120
9121 * c-typeck.c (build_binary_op, build_conditional_expr):
9122 No need to check extra_warnings as well as warn_sign_compare.
9123 (internal_build_compound_expr): No need to check extra_warnings
9124 as well as warn_unused_value.
9125 * function.c (expand_function_end): No need to check extra_warnings
9126 as well as warn_unused_parameter.
9127 * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
9128 as well as warn_unused_value.
9129
9130 * doc/invoke.texi: Clarify documentation of -Wsign-compare.
9131
9132 * Makefile.in: Disable -Werror for gengtype-lex.o.
9133
9134 2003-05-03 Olivier Hainque <hainque@act-europe.fr>
9135
9136 * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
9137 * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
9138 * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
9139 * calls.c (emit_call_1): Likewise.
9140 (expand_call): For calls initializing constant memory, replace
9141 emission of standalone mem /u clobber with function usage entry.
9142 * expr.c (emit_block_move_via_libcall): Likewise.
9143 * cse.c (count_reg_usage, case EXPR_LIST): New case.
9144 * flow.c (propagate_one_insn): Pass entire operand of
9145 CALL_INSN_FUNCTION_USAGE to mark_used_regs.
9146 * integrate.c (try_constants): For CALL_INSNs, substitute constants
9147 within the FUNCTION_USAGE also.
9148 * loop.c (prescan_loop): Note clobbers of const mem mentioned in
9149 FUNCTION_USAGE lists.
9150 * reload1.c (replace_pseudos_in): Renamed.
9151 (reload): Use it for clobbers surviving until the end of the reload.
9152
9153 2003-05-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9154
9155 * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
9156 gen_lowpart on non-integer modes.
9157
9158 * stor-layout.c (place_field): When adjusting offset_align, use
9159 desired_align, not DECL_ALIGN.
9160
9161 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
9162
9163 * c-decl.c (pending_invalid_xref_file): Remove.
9164 (pending_invalid_xref_line): Remove.
9165 (pending_invalid_xref_location): New.
9166 (lookup_label): Use location_t and input_location directly.
9167 (lookup_tag): Likewise.
9168 (pending_xref_error): Likewise.
9169 (c_expand_body_1): Likewise.
9170 * c-common.c (x_expand_start_cond): Likewise.
9171 * c-semantics.c (genrtl_for_stmt): Likewise.
9172 (find_reachable_label): Likewise.
9173 * expr.c (expand_expr): Likewise.
9174 * integrate.c (output_inline_function): Likewise.
9175 * tree-inline.c (find_alloca_call): Likewise.
9176 (find_builtin_longjmp_call): Likewise.
9177 * gcc.c (input_filename): Make static.
9178
9179 2003-05-03 Richard Sandiford <rsandifo@redhat.com>
9180
9181 * config/mips/mips.md: Fix comment typo.
9182
9183 * config/mips/mips.c (mips_integer_op): New structure.
9184 (MIPS_MAX_INTEGER_OPS): Define.
9185 (mips_const_insns): Use mips_build_integer to determine the number
9186 of instructions needed to load a CONST_INT.
9187 (move_operand): Reject compound CONST_INTs.
9188 (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
9189 (mips_move_integer): New fn.
9190 (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
9191 (mips_legitimize_move): Only legitimize constants when moving
9192 word or subword values.
9193
9194 2003-05-02 Matt Kraai <kraai@alumni.cmu.edu>
9195
9196 * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
9197
9198 2003-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9199
9200 * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
9201 modifying it.
9202
9203 2003-05-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
9204 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9205
9206 * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
9207 Hernandez, and Kazu Hirata. Update Richard Henderson.
9208
9209 2003-05-02 Geoffrey Keating <geoffk@apple.com>
9210
9211 * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
9212 to tentative declaration.
9213
9214 * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
9215 (SYMBOL_FLAG_SMALL_V4): Delete.
9216 * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
9217 (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
9218 (rs6000_elf_in_small_data_p): Add extra section names. Add
9219 comment about TREE_PUBLIC test.
9220
9221 * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
9222 expand_stmt on result of expand_unreachable_stmt.
9223
9224 2003-05-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9225
9226 * doc/contrib.texi (Contributors): Add Daniel Berlin.
9227
9228 2003-05-02 David Edelsohn <edelsohn@gnu.org>
9229
9230 * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
9231 number of automata.
9232
9233 * config/rs6000/rs6000.c (symbol_ref_operand): Check
9234 SYMBOL_REF_FUNCTION_P on AIX.
9235 (current_file_function_operand): Same.
9236 * config/rs6000/rs6000.md (call,call_value): Force non-function
9237 symbol_ref into register on AIX.
9238
9239 2003-05-02 Alan Modra <amodra@bigpond.net.au>
9240
9241 * calls.c (struct arg_data): Move offset, slot_offset, size and
9242 alignment_pad to struct locate_and_pad_arg_data. Update all refs.
9243 (initialize_argument_information): Adjust call to locate_and_pad_parm.
9244 Delete alignment_pad var. Don't calculate slot_offset here.
9245 (emit_library_call_value_1): Delete alignment_pad, offset and size
9246 vars. Use struct locate_and_pad_arg_data instead. Adjust refs.
9247 Adjust call to locate_and_pad_parm. Don't tweak arg size for
9248 partial in-regs here. Formatting fixes.
9249 * expr.h (struct locate_and_pad_arg_data): New struct.
9250 (locate_and_pad_parm): Adjust declaration.
9251 * function.c (assign_parms): Localize vars. Use "locate" instead of
9252 other arg location vars. Don't invoke FUNCTION_ARG or
9253 FUNCTION_INCOMING_ARG unless pretend_named is different from
9254 named_arg. Heed MUST_PASS_IN_STACK and set up "partial" before
9255 calling locate_and_pad_parm. Adjust locate_and_pad_parm call.
9256 Use slot_offset for stack home of reg parms. Correct test for
9257 parm passed in memory. Formatting fixes.
9258 (locate_and_pad_parm): Add "partial" to params. Replace offset_ptr
9259 arg_size_ptr and alignment pad with "locate". Set slot_offset here.
9260 Correct initial_offset_ptr handling. Localize vars. Always pad
9261 locate->offset even when in_regs.
9262
9263 2003-05-02 Nathan Sidwell <nathan@codesourcery.com>
9264
9265 * Makefile.in (TREE_H): Replace location.h with input.h.
9266 (GTFILES) Remove location.h
9267 (gt-lists.h): Replace gt-location.h with gt-input.h
9268 * input.h (input_filename, input_line): Remove variables.
9269 (location_s, location_t): Move from location.h.
9270 (input_location): New.
9271 (input_filename, input_line): New #defines.
9272 * location.h: Remove.
9273 * tree.h: Replace location.h with input.h.
9274 (input_filename, input_line): Remove.
9275 * diagnostic.h: Replace location.h with input.h.
9276 * gcc.h (input_filename, input_filename_length): Remove declarations.
9277 * toplev.c (input_filename, input_line): Remove.
9278 (input_location): Define.
9279 (push_srcloc, pop_srcloc): Adjust.
9280 * diagnostic.c (diagnostic_report_current_module): Adjust.
9281
9282 2003-05-02 Nick Clifton <nickc@redhat.com>
9283
9284 * configure.in: Add xstormy16 to list of targets that has a nop
9285 instruction and hence which can be tested to see if the
9286 assembler supports the --gdwarf2 switch.
9287 * configure: Regenerate.
9288
9289 2003-05-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
9290
9291 PR target/8257
9292 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
9293 alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
9294 Avoid undefined shifts by making the shift operand unsigned.
9295
9296 2003-05-01 DJ Delorie <dj@redhat.com>
9297
9298 * reload.c (find_reloads): Also check that all of a multi-reg
9299 value is in the class.
9300
9301 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
9302
9303 * scan.h (lineno): Revert the rename here.
9304
9305 2003-05-01 Stan Shebs <shebs@apple.com>
9306
9307 * config/darwin.c (darwin_encode_section_info): Call
9308 default_encode_section_info.
9309
9310 2003-05-01 David Edelsohn <edelsohn@gnu.org>
9311
9312 * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
9313 (movsi_internal1): Use new mfjmpr attribute.
9314 (movhi_internal): Same.
9315 (movqi_internal): Same.
9316 (movcc_internal1): Same.
9317 (movdi_internal64): Same.
9318 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
9319 power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
9320 * config/rs6000/40x.md: Add fpu_405.
9321 * config/rs6000/power4.md: Merge power4lsu and power4disp automata
9322 into power4misc automata. Remove extraneous parentheses.
9323 * config/rs6000/440.md: New file.
9324 * config/rs6000/rs6000.c (processor_target_table): Add 440,
9325 440fp. Rename 405f to 405fp.
9326 (function_arg_padding): Correct formatting.
9327 (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
9328
9329 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
9330
9331 * input.h (lineno): Rename to ...
9332 (input_line): ... here.
9333 * tree.h (lineno): Rename to ...
9334 (input_line): ... here.
9335 * scan.h (lineno): Rename to ...
9336 (input_line): ... here.
9337 * toplev.c (lineno): Rename to ...
9338 (input_line): ... here.
9339 (push_srcloc, pop_srcloc): Rename lineno to input_line.
9340 * c-common.c (c_expand_start_cond, fname_decl): Likewise.
9341 * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
9342 store_parm_decls, c_expand_body_1): Likewise.
9343 * c-errors.c (pedwarn_c99): Likewise.
9344 * c-format.c (status_warning): Likewise.
9345 * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
9346 * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
9347 * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
9348 * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
9349 gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
9350 genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
9351 genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
9352 build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
9353 prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
9354 * coverage.c (create_coverage): Likewise.
9355 * diagnostic.c (pedwarn, sorry, error, fatal_error,
9356 internal_error, warning, diagnostic_report_current_module,
9357 inform): Likewise.
9358 * expr.c (expand_expr): Likewise.
9359 * integrate.c (expand_inline_function,
9360 output_inline_function): Likewise.
9361 * rtl-error.c (file_and_line_for_asm): Likewise.
9362 * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
9363 walk_tree): Likewise.
9364 * tree.c (make_node): Likewise.
9365 * ada, cp, f, java, objc, treelang: Likewise.
9366 * objc/objc-act.c (objc_init): Rename lineno to input_line.
9367 (build_module_descriptor, build_selector_translation_table,
9368 build_protocol_template, build_method_prototype_list_template,
9369 build_category_template, build_selector_table,
9370 build_class_template, build_super_template, build_ivar_template,
9371 build_ivar_list_template, build_method_list_template,
9372 build_method_template, add_instance_variable): Likewise.
9373
9374 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
9375 name from input_filename.
9376
9377 2003-04-30 Eric Christopher <echristo@redhat.com>
9378 Richard Sandiford <rsandifo@redhat.com>
9379
9380 * configure: Regenerate from patches below.
9381 * combine.c (gen_lowpart_for_combine): Fix comment and add tests
9382 for all symbolic operands.
9383 * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
9384 to function.
9385 * config/mips/linux.h: Fix typo.
9386 * Merge from mips-3_4-rewrite branch:
9387
9388 2003-04-07 Richard Sandiford <rsandifo@redhat.com>
9389
9390 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
9391 handling local labels when TARGET_ABICALLS.
9392
9393 2003-04-04 Richard Sandiford <rsandifo@redhat.com>
9394
9395 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
9396 integer argument.
9397 (mips_expand_call): Likewise.
9398 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
9399 (FIXED_REGISTERS): Clear $31 entry.
9400 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
9401 (EPILOGUE_USES): Define.
9402 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
9403 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
9404 (override_options): Add a 'j' register class.
9405 (mips_expand_call): Handle sibcalls
9406 (mips_expand_epilogue): Handle epilogues for sibcalls.
9407 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
9408 (sibcall_epilogue): New pattern.
9409 (call, call_value): Adjust calls to mips_expand_call.
9410 (sibcall, sibcall_value): New expanders.
9411 (sibcall_internal, sibcall_value_internal): New patterns.
9412 (sibcall_value_multiple_internal): New pattern.
9413
9414 2003-03-25 Richard Sandiford <rsandifo@redhat.com>
9415
9416 * config/mips/mips.md (extended_mips16): New attribute.
9417 (define_attr length): Default to 8 if extended_mips16 == yes.
9418 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
9419 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
9420 (call_internal): Set extended_mips16 to yes for direct jumps.
9421 Remove redundant mode attribute.
9422 (call_value_internal, call_value_multiple_internal): Likewise.
9423 (call_split): Remove redundant mode attribute.
9424 (call_value_split, call_value_multiple_split): Likewise.
9425
9426 * config/mips/mips.c (mips_symbol_insns): Rework. Fix handling
9427 of unaligned offsets.
9428
9429 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
9430 of SYMBOL_GENERAL.
9431
9432 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
9433
9434 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
9435 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
9436 for mips16 code.
9437
9438 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
9439
9440 * config/mips/mips.h (ADDRESS_COST): Define.
9441
9442 2003-03-20 Richard Sandiford <rsandifo@redhat.com>
9443
9444 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
9445 'R' to 'U'. Make 'R' mean a single-instruction memory reference.
9446 * config/mips/mips.md: Replace 'R' constraints with 'U'.
9447
9448 2003-03-18 Richard Sandiford <rsandifo@redhat.com>
9449
9450 * config/mips/mips.md (truncdisi2): Add commentary. Use sll instead
9451 of a two-instruction sequence. Add register->memory alternative.
9452 (truncdihi2, truncdiqi2): Likewise.
9453 Rework shift/truncate instructions so that they only handle right
9454 shifts of 32 (or more, in the case of arithmetic shifts).
9455 Add patterns for truncate/sign-extend.
9456
9457 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
9458
9459 * configure.in (mips*-*-*): Check for explicit relocation support.
9460 * configure: Regenerate.
9461
9462 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
9463
9464 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
9465 and -mno-explicit-relocs.
9466 (MASK_EXPLICIT_RELOCS): Define.
9467 (TARGET_EXPLICIT_RELOCS): Use it.
9468 (mips_split_addresses): Remove declaration.
9469 * config/mips/mips.c (override_options): Update comment for
9470 mips_split_addresses. Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
9471
9472 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
9473
9474 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
9475 a CONST as identity. Check the return value of gen_lowpart_common.
9476
9477 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
9478
9479 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
9480 references for TARGET_EXPLICIT_RELOCS.
9481 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
9482 !TARGET_MIPS16.
9483
9484 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
9485
9486 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
9487 (addsi3): Remove redundant constraints.
9488 (addsi3_internal): Use separate register & constant alternatives.
9489 Use a 'Q' constraint and "addiu" insn for the latter.
9490 (adddi3_internal_3, addsi3_internal_2): Likewise.
9491
9492 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
9493
9494 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
9495 (mips_expand_unaligned_store): Declare.
9496 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
9497 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
9498 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
9499 (UNSPEC_ULD, UNSPEC_USD): Remove.
9500 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
9501 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
9502 (extv, extzv): Use mips_expand_unaligned_load.
9503 (insv): Use mips_expand_unaligned_store. Use a reg_or_0_operand
9504 predicate for operand 3.
9505 (movsi_ulw, movsi_usw): Replace with...
9506 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
9507 (movdi_uld, movdi_usd): Likewise replace with...
9508 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
9509
9510 2003-02-26 Richard Sandiford <rsandifo@redhat.com>
9511
9512 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
9513 * config/mips/mips.h (LEA_REGS): New register class.
9514 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
9515 (GR_REG_CLASS_P): Include LEA_REGS.
9516 (DANGEROUS_FOR_LA25_P): New macro.
9517 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
9518 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
9519 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
9520 entries to LEA_REGS.
9521 (mips_global_pic_constant_p): New function.
9522 (override_options): Add 'e' register constraint.
9523 (mips_secondary_reload_class): Return LEA_REGS when reloading
9524 a dangerous constant into a class containing $25.
9525 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
9526 (movsi_internal): Likewise.
9527
9528 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
9529
9530 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
9531 * config/mips/mips.md (call_split): New insn.
9532 (call_value_split, call_value_multiple_split): New insns.
9533 (call_internal): Turn into a define_insn_and_split. Split the
9534 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
9535 (call_value_internal, call_value_multiple_internal): Likewise.
9536
9537 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
9538
9539 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
9540 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
9541 (mips_encode_section_info): Don't take symbol visibility into
9542 account if TARGET_ABICALLS. Add more commentary.
9543 * config/mips/mips.md: Add commentary above reloc constants.
9544
9545 2003-02-12 Richard Sandiford <rsandifo@redhat.com>
9546
9547 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
9548 from mips_legitimize_move. Legitimize constant pool references.
9549 (mips_legitimize_move): Call mips_legitimize_const_move. Attach
9550 a REG_EQUAL note to the last instruction.
9551
9552 2003-02-11 Richard Sandiford <rsandifo@redhat.com>
9553
9554 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
9555 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
9556 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
9557 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
9558 * config/mips/mips.md (UNSPEC_HIGH): New constant.
9559 (UNSPEC_RELOC_GPREL16): Rename to...
9560 (RELOC_GPREL16): ...this.
9561 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
9562 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
9563 (macro_calls): New attribute.
9564 (length): Use it to set the default length of calls. Don't allow
9565 calls to have delay slots if macro_calls is "yes".
9566 (luisi, luidi): New patterns.
9567 (lowsi, lowdi): Use '%R' to print the relocation.
9568 (lowdi_extend): Remove.
9569 (loadgp): Remove mode from operand 0. Use '%0' instead of '%a0'.
9570 (call_internal): Merge alternatives. Always use "jal".
9571 (call_value_internal, call_value_multiple_internal): Likewise.
9572 (reloc_gprel16): Remove.
9573 * config/mips/mips.c (mips_got_alias_set): New variable.
9574 (mips_classify_constant): Handle the new relocation constants.
9575 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
9576 (mips_symbolic_address_p): Return false if generating explicit relocs.
9577 Otherwise allow local PIC symbols to have an offset.
9578 (mips_splittable_symbol_p): New function.
9579 (mips_classify_address): Use it to check whether a LO_SUM is valid.
9580 (mips_const_insns): Always accept HIGH.
9581 (call_insn_operand): Don't accept global symbols if using explicit
9582 relocs.
9583 (move_operand): Don't accept HIGH when generating PIC.
9584 (mips_reloc, mips_lui_reloc): New functions.
9585 (mips_force_temporary): Remove MODE argument. Expect VALUE to
9586 be a valid right-hand-side for a SET pattern.
9587 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
9588 (mips_emit_high): New function.
9589 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
9590 case. Use mips_splittable_symbol_p to check whether a LO_SUM
9591 address should be used. Use mips_emit_high to generate the
9592 high part of such an address. Adjust the global symbol + offset
9593 case to match the change to mips_force_temprorary.
9594 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
9595 If generating explicit-reloc PIC, load the address of global
9596 symbols from the GOT. Use mips_emit_high to emit the high part
9597 of an address.
9598 (mips_simplify_dwarf_addr): New function.
9599 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
9600 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
9601 (mips_expand_call): Load the addresses of global functions using
9602 %call* relocs if generating explicit-reloc PIC. Don't generate
9603 an exception_receiver pattern.
9604 (override_options): Initialize mips_got_alias_set.
9605 (print_relocation): Remove in favor of...
9606 (mips_reloc_string): ...this new function.
9607 (print_operand): Handle '%R'. Use mips_reloc_string.
9608 (print_operand_address): Use print_operand to print the symbolic
9609 part of a LO_SUM address.
9610 (mips_output_function_prologue): Use .cprestore, reverting last patch.
9611 (mips_encode_section_info): Factor out DECL_RTL accesses. Reverse
9612 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
9613 for local symbols.
9614
9615 2003-02-02 Eric Christopher <echristo@redhat.com>
9616
9617 * config/mips/mips.c (mips_sign_extend): Remove.
9618 * config/mips/mips-protos.h: Ditto.
9619 * config/mips/mips.md (movdi_internal2_extend): Remove.
9620 (extendsidi2): Fix mode of convert_memory_address.
9621
9622 2003-01-24 Eric Christopher <echristo@redhat.com>
9623
9624 * config/mips/mips.md: Rewrite zero_extend* and extend*
9625 patterns. Use explicit instructions and split after reload
9626 for register extensions.
9627 (ashlsi3_internal1_extend): New combiner pattern for
9628 shift and extend combinations.
9629 * config/mips/mips.h: Change Pmode back to ptr_mode
9630 for performance enhancement.
9631 * combine.c (expand_compound_operation): Make sure
9632 that zero_extend operation is profitable.
9633
9634 2003-01-14 Richard Sandiford <rsandifo@redhat.com>
9635
9636 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
9637 addresses depend on ptr_mode rather than Pmode.
9638 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
9639 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
9640 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
9641 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
9642 * config/mips/mips.md (tablejump): Likewise. Remove Pmode
9643 condition for selecting cpaddsi or cpadddi: use cpadd instead.
9644 (tablejump_internal1): Remove condition.
9645 (tablejump_internal2): Change condition to TARGET_64BIT.
9646 (cpaddsi): Rename to...
9647 (cpadd): ...this.
9648 (cpadddi): Remove.
9649
9650 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
9651
9652 * config/mips/mips-protos.h (mips16_constant_after_function_p,
9653 mips_address_cost, mips_check_split, double_memory_operand,
9654 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
9655 pic_address_needs_scratch, symbolic_operand): Remove declarations.
9656 (mips_legitimate_address_p): Return bool.
9657 (mips_address_insns, mips_fetch_insns, mips_const_insns,
9658 mips_legitimize_address, mips_legitimize_move,
9659 mips_expand_call): Declare.
9660 (mips_return_addr): Move outside #ifdef RTX_CODE.
9661
9662 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
9663 (PIC_FN_ADDR_REG): New reg_class.
9664 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
9665 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
9666 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
9667 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
9668 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
9669 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
9670 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
9671 (LEGITIMATE_PIC_OPERAND): Undefine.
9672 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
9673 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
9674 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
9675 (FUNCTION_MODE): Change to SImode.
9676 (CONST_COSTS): Use mips_const_insns to calculate the cost of
9677 most constants. Treat const_artih_operands specially if they
9678 occur in a PLUS or MINUS.
9679 (CONSTANT_POOL_COST): New macro.
9680 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
9681 Add LO_SUM handling.
9682 (ADDRESS_COST): Undefine.
9683 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
9684 Add CONST to the list of codes for arith_operand. Add LABEL_REF
9685 to call_insn_operand and remove CONST_INT.
9686
9687 * config/mips/mips.c: Include integrate.h.
9688 (SINGLE_WORD_MODE_P): New macro.
9689 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
9690 (mips_constant_info, mips_address_info): New structs.
9691 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
9692 (mips_classify_constant, mips_classify_symbol,
9693 mips_valid_base_register_p, mips_symbolic_address_p,
9694 mips_classify_address, mips_symbol_insns,
9695 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
9696 mips_fetch_insns, mips_force_temporary, mips_add_offset,
9697 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
9698 mips_print_relocation): New functions.
9699 (const_arith_operand): New operand predicate.
9700 (arith_operand): Use it.
9701 (mips_const_double_ok, mips16_simple_memory_operand,
9702 simple_memory_operand, double_memory_operand, mips_check_split,
9703 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
9704 mips16_gp_offset_p, mips16_output_gp_offset,
9705 mips16_constant_after_function_p, mips16_constant): Remove.
9706 (call_insn_operand): Be more fussy about symbolic constants.
9707 Use register_operand.
9708 (move_operand): Use mips_symbolic_address_p to check symbolic
9709 operands and general_operand to check the rest.
9710 (symbolic_operand): Use mips_classify_constant.
9711 (mips_legitimate_address_p): Use mips_classify_address.
9712 (mips_move_1word): Combine handling of symbolic addresses.
9713 Remove special treatment of gp-relative loads for TARGET_MIPS16.
9714 (move_move_2words): Likewise. Assume addresses are offsettable
9715 if they need to refer to more than one word. Add HIGH handling.
9716 (mips_restore_gp): Use ptr_mode for the GP save slot.
9717 (mips_expand_call): New function, combining the old mips.md
9718 call and call_internal define_expands. If the address isn't
9719 a call_insn_operand, force it into a register. For SVR4 PIC,
9720 emit an exception_receiver instruction after the call.
9721 (override_options): Only override flag_pic for TARGET_ABICALLS
9722 if it is currently zero. Allow mips_split_addresses when
9723 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
9724 Add new register class letter, 'c'.
9725 (print_operand): Use mips_classify_constant for constant operands.
9726 (print_operand_address): Use mips_classify_address.
9727 (mips_output_function_prologue): Don't use .cprestore.
9728 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
9729 via the frame pointer if current_function_calls_eh_return.
9730 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
9731 to mark whether a symbol is local or global.
9732 (build_mips16_call_stub): Expect the address of the function rather
9733 than a MEM reference to it. Update call generation sequences.
9734 (mips16_optimize_gp): Remove Pmode checks. Temporarily disable
9735 small-data adjustments.
9736
9737 * config/mips/mips.md: Remove 'R'/'m' memory distinction. Use default
9738 length for loads and stores.
9739 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
9740 (define_attr type): Add const and prefetch.
9741 (define_attr length): Use mips_const_insns for const instructions.
9742 Use mips_fetch_insns for load and store instructions.
9743 (define_attr single_insn): New.
9744 (define_attr can_delay): Use it.
9745 (define_attr abicalls): Remove.
9746 (define_delay): Use can_delay. Always allow calls to have delay slots.
9747 (addsi3_internal_2): Add 'Q' constraint.
9748 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
9749 (high): Remove.
9750 (lowsi): Renamed from low.
9751 (lowdi): New pattern.
9752 (movdi, movsi): Use mips_legitimize_move. Remove define_split.
9753 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
9754 (loadgp): Change operand 0 to an immediate_operand.
9755 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
9756 beforehand.
9757 (cpaddsi, cpadddi): New patterns.
9758 (tablejump_internal3, tablejump_internal4): Remove define_expands
9759 and associated define_splits.
9760 (call, call_value): Use mips_expand_call.
9761 (call_internal): New, replacing all existing call_internal* insns.
9762 (call_value_internal): Likewise call_value_internal*.
9763 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
9764 (untyped_call): Remove if (operands[0]) magic.
9765 (prefetch_si_address, prefetch_si): Change type to "prefetch".
9766 (prefetch_di_address, prefetch_di): Likewise.
9767 (leasi, leadi): Remove.
9768 (reloc_gprel16): New.
9769
9770 * config/mips/5400.md (ir_vr54_hilo): Include const type.
9771 * config/mips/5500.md (ir_vr55_hilo): Likewise.
9772 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
9773
9774 2003-01-08 Eric Christopher <echristo@redhat.com>
9775
9776 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
9777 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
9778 configure check for libgloss.
9779 * config/mips/elf64.h: Ditto.
9780 * config/mips/mips.c: Remove ABI_MEABI.
9781 * config/mips/mips.h: Ditto.
9782
9783 2002-11-05 Richard Sandiford <rsandifo@redhat.com>
9784
9785 Fix merge fallout.
9786 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
9787 (muldi3_internal): Remove outdated comment.
9788 (*muls_di, *umuls_di): Fix comment and 64-bitness.
9789 (*smsac_di, *umsac_di): Likewise. Reformat.
9790 (umulsi3_highpart): Minor formatting tweaks.
9791 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI. Remove
9792 redundant scratch operand. Minor formatting tweak.
9793 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
9794 (umulsi3_highpart_neg_mulhi_internal): Likewise. Fix asm template.
9795 (smulsi3_highpart): As for the unsigned version.
9796 (smulsi3_highpart_internal): Likewise.
9797 (smulsi3_highpart_mulhi_internal): Likewise.
9798 (smulsi3_highpart_neg_mulhi_internal): Likewise.
9799 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
9800 (*smul_acc_di): Remove duplicated pattern.
9801 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
9802 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
9803 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
9804
9805 2002-10-22 Eric Christopher <echristo@redhat.com>
9806
9807 * config/mips/mips-protos.h (mips_return_addr): New.
9808 * config/mips/mips.c (mips_return_addr): New.
9809 (movdi_operand): Remove.
9810 (se_register_operand): Ditto.
9811 (se_reg_or_0_operand): Ditto.
9812 (se_uns_arith_operand): Ditto.
9813 (se_arith_operand): Ditto.
9814 (se_nonmemory_operand): Ditto.
9815 (extend_operator): Ditto.
9816 (highpart_shift_operator): Ditto.
9817 (mips_initial_elimination_offset): Remove return address pointer
9818 elimination.
9819 (mips_reg_names): Remove $ra.
9820 (mips_regno_to_class): Ditto.
9821 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
9822 and TARGET_64BIT.
9823 (POINTER_BOUNDARY): Remove.
9824 (POINTERS_EXTEND_UNSIGNED): Define to 0.
9825 (PROMOTE_MODE): Promote to Pmode.
9826 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
9827 (Pmode): Define to TARGET_64BIT.
9828 (FUNCTION_MODE): Define as Pmode.
9829 (mips_args): Remove deleted functions.
9830 (SIZE_TYPE): Depend on POINTER_SIZE.
9831 (PTRDIFF_TYPE): Ditto.
9832 (FIXED_REGISTERS): Fix extra registers.
9833 (CALL_USED_REGISTERS): Ditto.
9834 (CALL_REALLY_USED_REGISTERS): Ditto.
9835 (RAP_REG_NUM): Remove.
9836 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
9837 (RETURN_ADDR_RTX): Define to mips_return_addr.
9838 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
9839 (CAN_ELIMINATE): Ditto.
9840 * config/mips/mips.md: For DImode patterns, take into account
9841 deletions above. Split mulsidi patterns into sign_extend and
9842 zero_extend.
9843
9844 2002-10-16 Richard Sandiford <rsandifo@redhat.com>
9845 Michael Meissner <meissner@redhat.com>
9846
9847 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
9848 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
9849 mop up unnecessarly moves through LO.
9850 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
9851 (*macc): New pattern for ISA_HAS_MACC. Add define_peephole2s to
9852 change mtlo/macc sequences into mul/add sequences when a three-
9853 address mul is available.
9854 (*macc2): New pattern. Add a define_peephole2 to generate it.
9855 (*mul_sub_si): Fix contraint for operand 5.
9856 (*muls): Use in 32-bit code as well.
9857 (*msac): Likewise. Use msub instead of msac in vr5500 code
9858 if the destination is LO. Remove duplicate define_split.
9859 (*muls_di): Use only in 32-bit code. Adjust rtl accordingly.
9860 (*msac_di): Likewise. Fix formatting.
9861 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
9862 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
9863 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
9864 (*xmulsi3_neg_highpart_mulhi): Likewise.
9865 (*mul_acc_64bit_di): Remove.
9866 (*mul_acc_di): Use only in 32-bit code. Handle ISA_HAS_MACC as well.
9867
9868 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
9869
9870 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
9871 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
9872 (MULTILIB_DIRNAMES): Remove long32.
9873 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
9874 (MULTILIB_REDUNDANT_DIRS): Remove.
9875
9876 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
9877
9878 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
9879 * gcc.c (driver_self_specs): New variable.
9880 (do_self_spec): New function.
9881 (main): Use it to process driver_self_specs.
9882
9883 2002-10-09 Richard Sandiford <rsandifo@redhat.com>
9884
9885 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
9886 Remove DImode define_split for !TARGET_64BIT.
9887 (anddi3): Remove !TARGET_64BIT support from here as well.
9888 Change operand 2's predicate to se_uns_arith_operand.
9889 Add constant alternatives to define_insn.
9890 (iordi3, xordi3, *nordi3): Likewise.
9891 (anddi3_internal1, xordi3_immed): Remove.
9892
9893 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9894
9895 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
9896 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
9897 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
9898 * config/mips/mips.md: Apply same renaming here.
9899
9900 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9901
9902 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
9903 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
9904 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
9905 * config/mips/mips.md (define_attr cpu): Remove r4320.
9906 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
9907
9908 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9909
9910 * config/mips/mips.c (mips16_strings): New variable.
9911 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
9912 symbol in mips16_strings. Free the list.
9913 (mips_encode_section_info): Keep track of local strings.
9914
9915 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9916
9917 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
9918 (sordered_df, sordered_sf): Remove.
9919 * config/mips/mips.c (get_float_compare_codes): New fn.
9920 (gen_int_relational, gen_conditional_move): Use it.
9921
9922 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9923
9924 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
9925 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
9926 * config/mips/mips.c (fcc_register_operand): New function.
9927 (mips_emit_fcc_reload): New function, extracted from reload_incc.
9928 (override_options): Allow TFmode values in float registers
9929 if ISA_HAS_8CC.
9930 * cnfig/mips/mips.md (reload_incc): Change destination prediate
9931 to fcc_register_operand. Remove misleading source constraint.
9932 Use mips_emit_fcc_reload.
9933 (reload_outcc): Duplicate reload_incc.
9934
9935
9936 2003-04-30 Diego Novillo <dnovillo@redhat.com>
9937
9938 * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
9939
9940 2003-04-30 Geoffrey Keating <geoffk@apple.com>
9941
9942 * tree-inline.c (inlinable_function_p): Back out last change, it's
9943 unnecessary.
9944
9945 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
9946
9947 * ggc-page.c (TREE_EXP_SIZE): Define.
9948 (extra_order_size_table): New entry for expr trees with
9949 two operands.
9950
9951 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
9952
9953 * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
9954 (c_expand_start_cond): Adjust.
9955 (c_expand_end_cond): Don't use warning_with_file_and_file.
9956 (shadow_warning): Likewise.
9957
9958 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
9959
9960 * tree.h (DECL_POINTER_DEPTH): Remove.
9961 (struct tree_decl): Remove pointer_depth.
9962
9963 2003-04-30 Janis Johnson <janis187@us.ibm.com>
9964
9965 * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
9966 * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
9967 (rs6000_xcoff_encode_section_info): Remove.
9968 (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
9969 (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
9970 (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
9971 Use SYMBOL_REF_FLAGS.
9972 (rs6000_elf_encode_section_info): Call default_encode_section_info for
9973 generic flags, use SYMBOL_REF_FLAGS; code cleanups.
9974 * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
9975 (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
9976 * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
9977 (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
9978
9979 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
9980
9981 * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
9982
9983 2003-04-30 Andreas Schwab <schwab@suse.de>
9984
9985 * doc/extend.texi (Other Builtins): Enclose multiple word data
9986 type in braces for @deftypefn.
9987
9988 2003-04-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9989
9990 * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
9991
9992 * doc/install.texi (--enable-threads): Document "gnat" option.
9993
9994 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
9995
9996 * diagnostic.h (output_formatted_scalar): Tweak.
9997 * diagnostic.c (output_long_decimal): Likewise.
9998 (output_unsigned_decimal): Likewise.
9999 (output_long_unsigned_decimal): Likewise.
10000 (output_octal): Likewise.
10001 (output_long_octal): Likewise.
10002 (output_hexadecimal): Likewise.
10003 (output_long_hexadecimal): Likewise.
10004 (output_pointer): New function.
10005 (output_format): Use it. Recognize "%p" format specifier.
10006
10007 2003-04-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10008
10009 * function.c (purge_addressof_1): Postpone insn in fewer cases.
10010
10011 2003-04-29 Geoffrey Keating <geoffk@apple.com>
10012
10013 * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
10014 call abort() after running out of stack space.
10015
10016 * c-typeck.c (function_types_compatible_p): Ignore incompatible
10017 'volatile' qualifiers on a function's return type in GNU mode.
10018
10019 2003-04-29 Aldy Hernandez <aldyh@redhat.com>
10020
10021 * expr.c (emit_group_load): Dump parallels of simd types to
10022 memory.
10023
10024 2003-04-29 Vladimir Makarov <vmakarov@redhat.com>
10025
10026 * genautomata.c (add_vect): Check undefined value for range type
10027 too.
10028
10029 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
10030
10031 * configure.in: More general test for cmp --ignore-initial.
10032 * configure: Regenerate.
10033
10034 2003-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10035
10036 * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
10037 (layout_decl, place_field): Likewise.
10038 Also make minor type and whitespace changes.
10039
10040 * tree.c (save_expr): Don't fold a COMPONENT_REF.
10041
10042 2003-04-29 Olivier Hainque <hainque@act-europe.fr>
10043
10044 * calls.c (expand_call): When modes of target and valreg match, force
10045 sibcall failure when target is a MEM.
10046
10047 2003-04-29 Geoffrey Keating <geoffk@apple.com>
10048
10049 * tree-inline.c (inlinable_function_p): Don't support inlining
10050 functions using varargs.
10051
10052 * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
10053
10054 * dwarf2out.c (output_call_frame_info): No need to output EH
10055 unwind information if all_throwers_are_sibcalls.
10056
10057 * c-semantics.c (expand_unreachable_stmt): Return a tree.
10058 (expand_stmt): Update for change to expand_unreachable_stmt.
10059 (expand_unreachable_if_stmt): Likewise.
10060
10061 * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
10062
10063 2003-04-29 Jason Merrill <jason@redhat.com>
10064
10065 PR middle-end/10336
10066 * jump.c (never_reached_warning): Really stop looking if we reach
10067 the beginning of the function.
10068
10069 2003-04-29 Bob Wilson <bob.wilson@acm.org>
10070
10071 * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
10072 Remove redundant macros.
10073 (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
10074 (LOCAL_LABEL_PREFIX): Define unconditionally.
10075 (NO_DOT_IN_LABEL): Clarify comment.
10076 * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
10077 definition to "long int".
10078
10079 2003-04-29 Alexander Kabaev <kan@FreeBSD.ORG>
10080
10081 bootstrap/10452
10082 * gengtype-yacc.y: Improve portability.
10083
10084 2003-04-29 Zack Weinberg <zack@codesourcery.com>
10085
10086 * config.gcc: Install obsolete target list for GCC 3.3.
10087 * doc/install.texi: Mention in specific-target instructions
10088 that certain configurations are deprecated.
10089
10090 2003-04-29 Zack Weinberg <zack@codesourcery.com>
10091
10092 * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
10093
10094 2003-04-29 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
10095
10096 * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
10097 * gcc.c (display_help): Likewise.
10098 * toplev.c (f_options): Likewise.
10099 * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
10100 * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
10101 * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
10102 * config/s390/s390.h (TARGET_SWITCHES): Likewise.
10103 * config/v850/v850.h (TARGET_SWITCHES): Likewise.
10104
10105 2003-04-29 J"orn Rennecke <joern.rennecke@superh.com>
10106
10107 * varasm.c (default_assemble_visibility): Use assemble_name.
10108
10109 2003-04-29 David O'Brien <obrien@FreeBSD.org>
10110
10111 * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
10112 * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
10113 (SIZE_TYPE): New macro.
10114 * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
10115 (SET_ASM_OP): New macro.
10116 (HANDLE_SYSV_PRAGMA): New macro.
10117 (ASM_WEAKEN_LABEL): New macro.
10118
10119 2003-04-28 Mark Mitchell <mark@codesourcery.com>
10120
10121 PR c++/10180
10122 * tree-inline.c (expand_call_inline): Call push_srcloc when
10123 encountering EXPR_WITH_FILE_LOCATION. Honor warn_inline.
10124
10125 2003-04-28 Mike Stump <mrs@apple.com>
10126
10127 * gdbinit.in: Update to reflect new identifier structure.
10128
10129 2003-04-28 Zack Weinberg <zack@codesourcery.com>
10130
10131 * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
10132 (struct tree_int_cst, struct tree_real_cst, struct tree_string,
10133 struct tree_complex, struct tree_vector): Remove RTL field.
10134 (CONSTRUCTOR_ELTS): Use elt 0.
10135 * tree.def (CONSTRUCTOR): Delete first of its two operands.
10136 * varasm.c (output_constant_def): Remove early exit if
10137 TREE_CST_RTL is set. Don't set TREE_CST_RTL.
10138 (decode_addr_const): Don't mention TREE_CST_RTL in comment.
10139 * target.h (select_section): Don't mention TREE_CST_RTL in comment.
10140 * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
10141
10142 2003-04-28 Jakub Jelinek <jakub@redhat.com>
10143
10144 * c-decl.c (finish_decl): When prototype with asmspec is found
10145 for built-in, adjust built_in_decls as well as expr.c decls.
10146 * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
10147 (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
10148 * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
10149
10150 2003-04-28 Richard Henderson <rth@redhat.com>
10151
10152 * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
10153 * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
10154 integral constant mult operand.
10155 (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
10156 (const_smulsi3_highpart_v8plus): Likewise.
10157 (const_smulsi3_highpart): Likewise.
10158 (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
10159 (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
10160 (const_umulsi3_highpart_v8plus): Likewise.
10161 (const_umulsi3_highpart): Likewise.
10162
10163 2003-04-28 David O'Brien <obrien@FreeBSD.org>
10164
10165 * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
10166 Define as 1.
10167
10168 2003-04-28 David O'Brien <obrien@FreeBSD.org>
10169
10170 * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
10171
10172 2003-04-28 Jakub Jelinek <jakub@redhat.com>
10173
10174 * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
10175 * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
10176 * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
10177 functions.
10178 (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
10179
10180 2003-04-28 Nick Clifton <nickc@redhat.com>
10181
10182 * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
10183
10184 2003-04-27 Zack Weinberg <zack@codesourcery.com>
10185
10186 * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
10187 output_constant_def, use its result instead of TREE_CST_RTL (exp).
10188 Can assume it has the form (mem (symbol_ref ".LCxxx")).
10189 (expand_expr <COMPONENT_REF>): Can always just extract the
10190 relevant field of a CONSTRUCTOR.
10191 (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
10192 ARRAY_RANGE_REF>): Make control flow explicit.
10193 * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
10194 an INTEGER_CST.
10195
10196 2003-04-27 Kazu Hirata <kazu@cs.umass.edu>
10197
10198 * reload1.c (reg_set_luid): Fix a comment typo.
10199
10200 2003-04-27 Zack Weinberg <zack@codesourcery.com>
10201
10202 * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
10203 struct deferred_string, const_str_htab): Kill.
10204 (n_deferred_strings): New static variable.
10205 (build_constant_desc): Set SYMBOL_REF_DECL of the new
10206 symbol_ref to point to the constant.
10207 (output_constant_def): When a deferred string is forced out,
10208 just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
10209 (mark_constant): Likewise.
10210 (maybe_output_constant_def_contents): When deferring a string
10211 constant, just set STRING_POOL_ADDRESS_P and increment
10212 n_deferred_strings.
10213 (mark_constant_pool): Check n_deferred_strings, not the size
10214 of const_str_htab.
10215 (init_varasm_once): No need to create const_str_htab.
10216
10217 * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
10218 SYMBOL_REF_DECL points to a constant.
10219
10220 2003-04-26 Zack Weinberg <zack@codesourcery.com>
10221
10222 * varasm.c (output_constant_def): Split out two new static
10223 functions, build_constant_desc and maybe_output_constant_def_contents.
10224 Restructure for comprehensibility. Don't call
10225 output_addressed_constants. Treat defstr being non-NULL for
10226 STRING_POOL_ADDRESS_P constants as an invariant.
10227 (struct deferred_string): Remove labelno field.
10228 (output_constant_def_contents): Kill labelno argument. Call
10229 output_addressed_constants here. Use ASM_OUTPUT_LABEL, not
10230 asm_out.internal_label.
10231 (mark_constant): Update call to output_constant_def_contents.
10232 Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
10233 constants as an invariant.
10234
10235 2003-04-26 Richard Henderson <rth@redhat.com>
10236
10237 * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
10238 (ix86_expand_call, ix86_rtx_consts): Likewise.
10239
10240 2003-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10241
10242 * doc/md.texi (cmpstr): Document additional restrictions.
10243
10244 2003-04-26 Neil Booth <neil@daikokuya.co.uk>
10245
10246 * flags.h (time_report): Remove.
10247 * timevar.c (timevar_enable): New.
10248 (TIMEVAR_ENABLE): Remove, use timevar_enable.
10249 (timevar_init): Rename from init_timevar.
10250 * timevar.h (timevar_init): Rename from init_timevar.
10251 * toplev.c (time_report): Make static.
10252 (do_compile): Conditionally call init_timevar first.
10253 (preprocess_options): Move some code to do_compile.
10254
10255 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
10256
10257 * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
10258
10259 2003-04-26 Neil Booth <neil@daikokuya.co.uk>
10260
10261 * _cpp_lex_direct: Remove pointless code.
10262
10263 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
10264
10265 * doc/extend.texi (Function Attributes): Document "near" and "far"
10266 for 68HC11 and 68HC12.
10267
10268 2003-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10269
10270 * expr.c (store_field): When making temporary for store, don't
10271 make it TYPE_QUAL_CONST.
10272
10273 2003-04-25 Phil Edwards <pme@gcc.gnu.org>
10274
10275 * toplev.c (read_integral_parameter): Use "argument" in error
10276 message to distinguish it from actual invalid options.
10277
10278 2003-04-25 Bob Wilson <bob.wilson@acm.org>
10279
10280 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
10281 addition of __PIC__ and __pic__ macros.
10282 * config/xtensa/xtensa.h: Clean up indentation.
10283
10284 2003-04-25 Bob Wilson <bob.wilson@acm.org>
10285
10286 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
10287 _GNU_SOURCE. Add definitions of __PIC__ and __pic__.
10288 (SUBTARGET_CPP_SPEC): Define.
10289 (LIB_SPEC): Delete.
10290 * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
10291 * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
10292 * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
10293 Define.
10294 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
10295 (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
10296
10297 2003-04-25 H.J. Lu <hjl@gnu.org>
10298
10299 * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
10300 for return mode.
10301 (ia64_expand_builtin): Set rmode to SImode for
10302 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
10303 IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
10304 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
10305 for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
10306
10307 2003-04-25 Phil Edwards <pme@gcc.gnu.org>
10308
10309 * configure.in (make_compare_target): Test for GNU cmp and set this
10310 variable appropriately.
10311 * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
10312 compare4-lean): Rename actual targets to slowcompare*. New compare*
10313 targets depend on names based on make_compare_target.
10314 * configure: Regenerated.
10315
10316 2003-04-25 Richard Henderson <rth@redhat.com>
10317
10318 * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
10319 to clobber ar.pfs and ar.unat.
10320 (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
10321 fix test for spilling ar.pfs to the stack.
10322
10323 2003-04-25 Richard Henderson <rth@redhat.com>
10324
10325 PR opt/10315
10326 * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
10327 checks during reload; use validize_mem instead of adjust_address.
10328
10329 2003-04-26 Ben Elliston <bje@wasabisystems.com>
10330
10331 * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
10332 return values from recog_memoized().
10333
10334 2003-04-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10335
10336 PR opt/8705
10337 * gcse.c (try_replace_reg): On a successful substitution of a constant
10338 into a single set, try to simplify the source of the set.
10339 * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
10340 constant source.
10341
10342 2003-04-24 Neil Booth <neil@daikokuya.co.uk>
10343
10344 * cpplex.c (cpp_token_len): Tighten up.
10345 (cpp_token_as_text): Need extra byte now.
10346 * cpplib.c (glue_header_name): Need extra 2 bytes.
10347 * cppmacro.c (cpp_macro_definition): Need extra byte.
10348
10349 2003-04-24 Alexander Kabaev <kan@FreeBSD.ORG>
10350
10351 * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
10352 const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
10353 where they might be not present. Use their _sp64 equivalent
10354 instead.
10355
10356 Thu Apr 24 20:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
10357
10358 * i386.md (cvtsi2sdq): Fix typo in previous patch.
10359
10360 2003-04-24 Krister Walfridsson <cato@df.lth.se>
10361
10362 * configure.in: Check whether mbstowcs works.
10363 * configure, config.in: Regenerate.
10364 * intl.c: Use HAVE_WORKING_MBSTOWCS.
10365
10366 2003-04-24 H.J. Lu <hjl@gnu.org>
10367
10368 * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
10369 for __sync_bool_compare_and_swap_di for int return type.
10370
10371 * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
10372 Change return type to int.
10373 (__sync_bool_compare_and_swap): Likewise.
10374
10375 Thu Apr 24 16:55:26 CEST 2003 Jan Hubicka <jh@suse.cz>
10376
10377 * cfgbuild.c (make_edges): Do not use next_nonnote_insn when
10378 looking for fallthru edge.
10379
10380 * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
10381 Fix.
10382 (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
10383 athlon-fvector): New.
10384 (athlon_*): Revisit to match new optimization guide.
10385 * i386.c (ix86_adjust_cost): Fix memory operand costs on Athlon/k8
10386 * i386.md (cvt??2?? patterns): Fix modes.
10387 (fistp patterns): Set modes.
10388
10389 Accidentaly commited with my earlier reload patch:
10390 PR c/10308
10391 * reload.c (find_reloads_address_1): Reload plus at the place of
10392 index register.
10393
10394 2003-04-24 Nathan Sidwell <nathan@codesourcery.com>
10395
10396 New GCOV_TAG_FUNCTION layout
10397 * coverage.c (struct function_list): Replace name with ident.
10398 (struct counts_entry): Likewise.
10399 (fn_ident): New.
10400 (htab_counts_entry_hash, htab_counts_entry_eq,
10401 htab_counts_entry_del): Adjust.
10402 (reads_count_file, get_coverage_counts,
10403 coverage_begin_output, coverage_end_function): Adjust.
10404 (build_fn_info_type, build_fn_info_value): Likewise.
10405 * gcov-dump.c (tag_function): Adjust.
10406 * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
10407 * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
10408 * gcov.c (struct function_info): Add ident.
10409 (read_graph_file, read_count_file): Adjust.
10410 * libgcov.c (gcov_exit): Adjust.
10411
10412 2003-04-23 Richard Henderson <rth@redhat.com>
10413
10414 PR opt/8300
10415 * toplev.c (rest_of_compilation): Delay no_new_pseudos until
10416 after initialize_uninitialized_subregs; update reg info assuming
10417 new pseudos were created.
10418
10419 2003-04-23 Neil Booth <neil@daikokuya.co.uk>
10420
10421 * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
10422 * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
10423 (lex_string): Take cpp_string with full spelling.
10424 (cb_ident): Update.
10425 (c_lex): Update diagnostics.
10426 * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
10427 (create_literal): New.
10428 (lex_string): Unterminated literals have type CPP_OTHER.
10429 (_cpp_lex_direct): Update calls to lex_string. Use create_literal
10430 for CPP_OTHER.
10431 (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
10432 (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
10433 * cpplib.c (parse_include, do_line, do_linemarker,
10434 destringize_and_run): Update for token storing full spelling.
10435 * cpplib.h: Update token spelling types.
10436 * cppmacro.c (stringify_arg, check_trad_stringification):
10437 Update for token storing full spelling.
10438
10439 2003-04-23 Ulrich Weigand <uweigand@de.ibm.com>
10440
10441 * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
10442
10443 2003-04-23 Richard Earnshaw <rearnsha@arm.com>
10444
10445 * arm.h (TARGET_OPTIONS): Add value field.
10446
10447 2003-04-23 Mark Mitchell <mark@codesourcery.com>
10448
10449 * doc/extend.texi: Remove duplicate 2003 copyright date.
10450
10451 2003-04-23 Nathan Sidwell <nathan@codesourcery.com>
10452
10453 * Makefile.in (LIBGCC_DEPS): Add gcov headers.
10454 (libgcov.a): Depends on LIBGCC_DEPS.
10455 * basic-block.h (profile_info): Moved here from coverage.h. Made
10456 a pointer.
10457 * coverage.c (struct function_list): Fixed array of counter types.
10458 (struct counts_entry): Keyed by counter type, contains summary.
10459 (profile_info): Moved to profile.c.
10460 (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
10461 vars.
10462 (profiler_label): Remove.
10463 (ctr_labels): New.
10464 (set_purpose, label_for_tag, build_counter_section_fields,
10465 build_counter_section_value, build_counter_section_data_fields,
10466 build_counter_section_data_values, build_function_info_fields,
10467 build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
10468 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
10469 build_ctr_info_value, build_gcov_info): New.
10470 (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
10471 (reads_counts_file): Adjust.
10472 (get_coverage_counts): Takes counter number. Add summary
10473 parameter. Adjust.
10474 (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
10475 create counter array labels.
10476 (coverage_end_function): Adjust.
10477 (create_coverage): Adjust.
10478 (find_counters_section): Remove.
10479 * coverage.h (MAX_COUNTER_SECTIONS): Remove.
10480 (struct section_info, struct profile_info): Remove.
10481 (profile_info): Moved to basic-block.h.
10482 (coverage_counter_ref): Takes a counter number.
10483 (get_coverage_counts): Takes a counter number. Added summary
10484 parameter.
10485 (find_counters_section): Remove.
10486 * gcov-dump.c (tag_arc_counts): Rename to ...
10487 (tag_counters): ... here. Adjust.
10488 (tag_table): Move tag_counters to 3rd entry. Remove
10489 PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
10490 (dump_file): Check for counter tag values here.
10491 (tag_summary): Adjust.
10492 * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
10493 * gcov-io.h (GCOV_LOCKED): New.
10494 (GCOV_TAG_ARC_COUNTS): Rename to ...
10495 (GCOV_TAG_COUNTS_BASE): ... here.
10496 (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
10497 Remove.
10498 (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
10499 (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
10500 GCOV_TAG_IS_COUNTER): New.
10501 (struct gcov_ctr_summary): New.
10502 (struct gcov_summary): Adjust.
10503 (struct gcov_counter_section): Remove.
10504 struct gcov_counter_section_data): Remove.
10505 (struct gcov_function_info): Rename to ...
10506 (struct gcov_fn_info): ... here. Adjust.
10507 (struct gcov_ctr_info): New.
10508 (struct gcov_info): Adjust.
10509 * gcov.c (read_count_file): Adjust.
10510 (output_lines): Adjust.
10511 * libgcov.c (gcov_exit): Adjust.
10512 (__gcov_flush): Adjust.
10513 * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
10514 * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
10515 probably_never_executed_bb_p, compute_frequency_function): Adjust
10516 profile_info use.
10517 * profile.c (struct counts_entry): Remove.
10518 (profile_info): Define here.
10519 (get_exec_counts): Adjust get_coverage_counts call.
10520 (compute_branch_probablilities): Remove find_counters_section
10521 call.
10522 (gen_edge_profiler): Adjust coverage_counter_ref call.
10523 * tracer.c (tail_duplicate): Adjust profile_info use.
10524
10525 2003-04-23 Roger Sayle <roger@eyesopen.com>
10526
10527 PR optimization/10339
10528 * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
10529 directly instead of unsafely transforming call into a memcmp.
10530 (expand_builtin_strncmp): Likewise.
10531
10532 2003-04-22 Roger Sayle <roger@eyesopen.com>
10533
10534 * alias.c (mark_constant_function): Check for constancy and
10535 purity even of void functions. Update both the function decl
10536 and the cgraph RTL info with the results.
10537
10538 2003-04-22 Roger Sayle <roger@eyesopen.com>
10539
10540 * real.c (do_add): Change to return a bool indicating that the
10541 result of the operation may be inexact due to loss of precision.
10542 (do_multiply): Likewise.
10543 (do_divide): Likewise.
10544
10545 2003-04-22 Geoffrey Keating <geoffk@apple.com>
10546 Loren James Rittle <ljrittle@acm.org>
10547
10548 * dwarf2out.c (fde_table_allocated): Mark with GTY.
10549 (decl_die_table_allocated): Likewise.
10550 (abbrev_die_table_allocated): Likewise.
10551 (line_info_table_allocated): Likewise.
10552 (separate_line_info_table_allocated): Likewise.
10553 (pubname_table_allocated): Likewise.
10554 (arange_table_allocated): Likewise.
10555 (ranges_table_allocated): Likewise.
10556 (decl_die_table_in_use): Unconditionalize; mark with GTY.
10557 (abbrev_die_table_in_use): Likewise.
10558 (line_info_table_in_use): Likewise.
10559 (separate_line_info_table_in_use): Likewise.
10560 (pubname_table_in_use): Likewise.
10561 (arange_table_in_use): Likewise.
10562 (ranges_table_in_use): Likewise.
10563 (have_location_lists): Likewise.
10564 (emitcount): New GTY-marked static, moved...
10565 (maybe_emit_file): ...from here.
10566 (label_num): New GTY-marked static, moved...
10567 (gen_internal_sym): ...from here.
10568
10569 2003-04-22 Richard Henderson <rth@redhat.com>
10570
10571 PR 8866
10572 * rtl.h (MEM_NOTRAP_P): New.
10573 (MEM_COPY_ATTRIBUTES): Copy it.
10574 * rtlanal.c (may_trap_p): Check it.
10575 * expr.c (do_tablejump): Set it.
10576 * doc/rtl.texi (Flags): Document it.
10577
10578 * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
10579
10580 2003-04-22 Olivier Hainque <hainque@act-europe.fr>
10581
10582 * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
10583 set FRP on stack adjustment for outgoing args if frame_pointer_needed.
10584
10585 2003-04-22 Vincent Celier <celier@gnat.com>
10586
10587 * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
10588 --enable-threads=gnat.
10589 * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
10590 * configure.in: Add gnat to the list of thread packages
10591 * configure: Rebuild.
10592 * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
10593
10594 2003-04-22 Neil Booth <neil@daikokuya.co.uk>
10595
10596 * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
10597
10598 2003-04-22 Devang Patel <dpatel@apple.com>
10599
10600 * cpptrad.c (_cpp_replacement_text_len): Add check for macro
10601 parameter count.
10602 (_cpp_copy_replacement_text): Same.
10603
10604 2003-04-22 Neil Booth <neil@daikokuya.co.uk>
10605
10606 * c-lex.c (c_lex): Handle CPP_OTHER differently.
10607 * cppexp.c (_cpp_parse_expr): Similarly.
10608 * cpplex.c (SPELL_CHAR): Remove.
10609 (_cpp_lex_direct): Stray chars are saved as byte strings.
10610 (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
10611 handle SPELL_CHAR.
10612 (cpp_avoid_paste): Update handling of CPP_OTHER.
10613 * cpplib.h: Spell CPP_OTHER like a number.
10614 (struct cpp_token): Remove member c.
10615 * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
10616
10617 2003-04-22 David Turner <novalis@gnu.org>
10618
10619 * gbl-ctors.h: Add special license exception.
10620 * libgcc2.h: Likewise.
10621 * tsystem.h: Likewise.
10622 * gcov-io.h: Likewise.
10623
10624 2003-04-22 David Edelsohn <edelsohn@gnu.org>
10625
10626 * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
10627 macro defaulting to original BRANCH_COST heuristic.
10628 * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
10629
10630 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
10631
10632 2003-04-22 Aldy Hernandez <aldyh@redhat.com>
10633
10634 * config/rs6000/t-spe: Merge in t-fprules into file.
10635
10636 * config.gcc: Add t-spe to powerpc-eabispe.
10637
10638 2003-04-22 Kean Johnston <jkj@sco.com>
10639
10640 * tlink.c (recompile_files): Add missing '=' to putenv calls
10641
10642 2003-04-22 Nathan Sidwell <nathan@codesourcery.com>
10643
10644 * ginclude/stddef.h: Provide C++ safe offsetof.
10645
10646 2003-04-22 J"orn Rennecke <joern.rennecke@superh.com>
10647
10648 * function.c (purge_addressof_1): In (mem (addressof (reg))) case
10649 for reg notes, if there are no substitutions, just use a SUBREG.
10650
10651 2003-04-21 Mark Mitchell <mark@codesourcery.com>
10652
10653 * Makefile.in (calls.o): Depend on except.h.
10654 * calls.c: Include except.h.
10655 (emit_call_1): Call note_eh_region_may_contain_throw if
10656 appropriate.
10657 * except.c (eh_region): Add may_contain_throw.
10658 (expand_eh_region_end_cleanup): Do not include handler code when
10659 it cannot be reached.
10660 (note_eh_region_may_contain_throw): New function.
10661 * except.h (note_eh_region_may_contain_throw): New function.
10662
10663 2003-04-21 Mark Mitchell <mark@codesourcery.com>
10664
10665 * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
10666 changes.
10667
10668 2003-04-21 Aldy Hernandez <aldyh@redhat.com>
10669
10670 * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
10671 64-bit long doubles.
10672
10673 2003-04-21 Olivier Hainque <hainque@act-europe.fr>
10674
10675 * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
10676 a number of conversions required for type consistency and previously
10677 stripped off by STRIP_NOPS.
10678
10679 * calls.c (expand_call): Prevent sibcall optimization for calls to
10680 nested subprograms.
10681
10682 * expmed.c (extract_bit_field): Reverse operands of && condition to
10683 prevent a potential division by zero in the previously first branch.
10684 * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
10685
10686 2003-04-21 Joel Brobecker <brobecker@gnat.com>
10687
10688 * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
10689 (subrange_type_die): Likewise.
10690 (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
10691 (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
10692
10693 2003-04-21 Nathan Sidwell <nathan@codesourcery.com>
10694
10695 Break out coverage routines to new file.
10696 * Makefile.in (COVERAGE_H): New variable
10697 (C_OBJS): Add coverage.o
10698 (coverage.o): New target.
10699 (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
10700 dependencies.
10701 (GTFILES): Adjust.
10702 (gt-coverage.h): New target.
10703 (gt-profile.h): Remove.
10704 * profile.h: Remove. Move to ...
10705 * coverage.h: ... here. New. #include gcov-io.h.
10706 * gcov-io.h: Move function definitions to ...
10707 * gcov-io.c: ... here. New.
10708 * profile.c: Move coverage routines to coverage.c.
10709 (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
10710 end_branch_prob): Adjust.
10711 * coverage.c: New. Coverage routines from profile.c
10712 (coverage_counter_ref, coverage_init, coverage_finish,
10713 coverage_end_function, coverage_begin_output,
10714 coverage_counter_ref, get_coverage_counts): Define.
10715 * gcov-dump.c, gcov.c: #include gcov-io.c.
10716 * libgcov.c: Likewise. Adjust.
10717 * loop-init.c: Don't #include profile.h
10718 * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
10719 * rtl.h: Add coverage prototypes.
10720 * toplev.c (compile_file): Init coverage, not branch_prob.
10721 Always call coverage_finish.
10722 (rest_of_compilation): Call coverage_end_function.
10723
10724 2003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
10725
10726 * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
10727
10728 2003-04-21 Neil Booth <neil@daikokuya.co.uk>
10729
10730 * c-ppoutput.c (cb_include): Don't take a cpp_token.
10731 * cppfiles.c: Don't undef strcmp.
10732 (find_include_file): Don't take a cpp_token. Check for empty
10733 file names.
10734 (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
10735 (cpp_push_include): Simplify.
10736 * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
10737 * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
10738 (parse_include): Similary. Don't check for zero-length filenames.
10739 (do_include_common, do_pragma_dependency): Update accordingly.
10740 * cpplib.h (struct cpp_callbacks): Change prototype of include.
10741
10742 2003-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10743
10744 * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
10745 details of conflict handling.
10746
10747 * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
10748 when conversion overflows.
10749
10750 * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
10751
10752 * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
10753 before clearing.
10754
10755 2003-04-21 Mark Mitchell <mark@codesourcery.com>
10756
10757 * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
10758 have the same form as the old RTL.
10759
10760 2003-04-21 Andreas Jaeger <aj@suse.de>
10761
10762 * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
10763
10764 2003-04-20 Chris Lattner <sabre@nondot.org>
10765 Zack Weinberg <zack@codesourcery.com>
10766
10767 * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
10768 genrtl_cleanup_stmt. Correct comment at head of
10769 genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
10770
10771 * stmt.c (struct nesting): Kill n_function_calls.
10772 (expand_start_bindings): Don't set
10773 thisblock->data.block.n_function_calls.
10774 (expand_end_bindings): Compare function_call_count against 0.
10775 (expand_cleanups): Kill DONT_DO argument; all callers passed
10776 NULL_TREE. All callers updated to match.
10777
10778 2003-04-20 Zack Weinberg <zack@codesourcery.com>
10779
10780 * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
10781 (defer_addressed_constants, output_deferred_addressed_constants): Kill.
10782 (output_constant_def): Remove code predicated on
10783 defer_addressed_constants_flag.
10784
10785 * output.h: Remove prototypes of deleted functions.
10786 * c-typeck.c (constructor_subconstants_deferred): Kill.
10787 (struct initializer_stack): Remove 'deferred' field.
10788 (start_init): Remove all references to the above.
10789 (finish_init): Likewise. Also remove never-executed call to
10790 output_deferred_addressed_constants. Pull assignment to
10791 defstr out of if expression.
10792
10793 2003-04-20 Neil Booth <neil@daikokuya.co.uk>
10794
10795 * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
10796 NOTE_NEWLINE): Remove.
10797 * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
10798 to handle new form of line note type.
10799
10800 2003-04-20 Zack Weinberg <zack@codesourcery.com>
10801
10802 * target.h (encode_section_info): Add new argument carrying
10803 the RTL to be modified by the hook.
10804
10805 * varasm.c (make_decl_rtl, output_constant_def): Update calls
10806 to encode_section_info.
10807 (default_encode_section_info): Take and use RTL argument,
10808 don't use TREE_CST_RTL or DECL_RTL.
10809 * output.h: Update prototype of default_encode_section_info.
10810 * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
10811 (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
10812 Update calls to encode_section_info.
10813
10814 * config/darwin.c, config/arm/arm.c, config/arm/pe.c
10815 * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
10816 * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
10817 * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
10818 * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
10819 * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
10820 Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
10821 except for PE dllimport/dllexport. Update calls to
10822 default_encode_section_info.
10823
10824 * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
10825 Update prototypes.
10826
10827 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
10828
10829 2003-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10830
10831 PR/8705
10832 * pa.md (movccfp): New expander.
10833 (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
10834 Reverse fcmp conditions.
10835
10836 2003-04-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
10837
10838 * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
10839 of operand 1 correctly.
10840
10841 2003-04-20 Nathan Sidwell <nathan@codesourcery.com>
10842
10843 * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
10844 * gcov.c (output_lines): Don't be so fussy about going past EOF.
10845
10846 2003-04-20 Neil Booth <neil@daikokuya.co.uk>
10847
10848 * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
10849 (cppcharset.o): New target.
10850 * c-lex.c (is_extended_char): Move to cppcharset.c.
10851 (utf8_extend_token): Delete.
10852 * cppcharset.c: New file.
10853 * cpphash.h (_cpp_valid_ucn): New.
10854 * cpplex.c (lex_identifier): Update prototype.
10855 (continues_identifier_p): Rename forms_identifier_p. Handle UCN
10856 escapes.
10857 (maybe_read_ucs): Rename maybe_read_ucn. Update to use code
10858 in cppcharset.c.
10859 (lex_number, lex_identifier, cpp_parse_escape): Update.
10860 (_cpp_lex_direct): Update to handle UCNs.
10861 (cpp_avoid_paste): Don't paste to form a UCN.
10862
10863 2003-04-19 Roger Sayle <roger@eyesopen.com>
10864
10865 * builtins.c (expand_builtin): Don't expand a pure or const
10866 built-in function if the result will be ignored and none of
10867 its arguments are volatile.
10868
10869 2003-04-19 Kean Johnston <jkj@sco.com>
10870
10871 * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
10872 * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
10873 target fragment now: t-sco5; dont compile crti.o.
10874 * config/i386/sco5.h: major overhaul to remove all COFF remnants
10875 and to use elfos.h for most definitions.
10876 (BSS_SECTION_ASM_OP): set correct segment attributes.
10877 (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
10878 (DWARF2_UNWIND_INFO): Always set to 1.
10879 (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
10880 (MD_STARTFILE_PREFIX_1): Define.
10881 (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
10882 (DEFAULT_LINKER): Define if not specified to configure.
10883 (CTORS_SECTION_ASM_OP): Remove COFF crud.
10884 (DTORS_SECTION_ASM_OP): Remove COFF crud.
10885 (WINT_TYPE): Define.
10886 (SDB_DEBUGGING_INFO): Remove.
10887 (EXTRA_SECTIONS): Likewise.
10888 (EXTRA_SECTION_FUNCTIONS): Likewise.
10889 (CTOR_LIST_BEGIN): Likewise.
10890 (CTOR_LIST_END): Likewise.
10891 (INIT_SECTION_FUNCTION): Likewise.
10892 (FINI_SECTION_FUNCTION): Likewise.
10893 (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
10894 (LOCAL_LABEL_PREFIX): Likewise.
10895 (NON_SAVING_SETJMP): Likewise.
10896 (RETURN_POPS_ARGS): Likewise.
10897 (ASM_OUTPUT_SKIP): Likewise.
10898 (TARGET_ASM_NAMED_SECTION): Likewise.
10899 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
10900 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
10901 (ASM_OUTPUT_IDENT): Likewise.
10902 (ASM_OUTPUT_CASE_LABEL): Likewise.
10903 (ASM_OUTPUT_ASCII): Likewise.
10904 (ASM_OUTPUT_LIMITED_STRING): Likewise.
10905 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
10906 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10907 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
10908 (ASM_FINISH_DECLARE_OBJECT): Likewise.
10909 (ASM_DECLARE_OBJECT_NAME): Likewise.
10910 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
10911 (ASM_DECLARE_FUNCTION_NAME): Likewise.
10912 (ASM_DECLARE_RESULT): Likewise.
10913 (ASM_WEAKEN_LABEL): Likewise.
10914 (SUPPORTS_WEAK): Likewise.
10915 (APPLY_RESULT_SIZE): Likewise.
10916 (LPREFIX): Likewise.
10917 (ALIGN_ASM_OP): Likewise.
10918 (ASCII_DATA_ASM_OP): Likewise.
10919 (IDENT_ASM_OP): Likewise.
10920 (ASM_SHORT): Likewise.
10921 (ASM_LONG): Likewise.
10922 (TYPE_ASM_OP): Likewise.
10923 (SIZE_ASM_OP): Likewise.
10924 (STRING_ASM_OP): Likewise.
10925 (SKIP_ASM_OP): Likewise.
10926 (EH_FRAME_SECTION_ASM_OP): Likewise.
10927 (READONLY_DATA_SECTION_ASM_OP): Likewise.
10928 (INIT_SECTION_ASM_OP): Likewise.
10929 (FINI_SECTION_ASM_OP): Likewise.
10930 (TEXT_SECTION_ASM_OP): Likewise.
10931 (DATA_SECTION_ASM_OP): Likewise.
10932 (TYPE_OPERANT_FORMAT): Likewise.
10933 (ASM_SPEC): Remove COFF code.
10934 (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
10935 cause -pg to emit an error; use pcrt1elf.o with -pp
10936 (ENDFILE_SPEC): Likewise.
10937 (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
10938 (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
10939 (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
10940 add -z alt_resolve to support weak symbols the way GCC wants them.
10941 (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
10942 (LIBGCC_SPEC): Dont use -lgcc in -G mode.
10943 (ASM_PREFERED_EH_DATA_FORMAT): Remove.
10944 * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
10945 (CRTSTUFF_T_CFLAGS_S): Define.
10946 (MULTILIB_OPTIONS): Likewise.
10947 (MULTILIB_DIRNAMES): Likewise.
10948 (MULTILIB_MATCHES): Likewise.
10949 (MULTILIB_EXTRA_OPTS): Likewise.
10950 (LIBGCC): Likewise.
10951 (INSTALL_LIBGCC): Likewise.
10952 (crti.o): Remove.
10953 * config/i386/t-sco5gas: Remove.
10954 * doc/install.texi: Updated for new OpenServer instructions.
10955 * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
10956
10957 2003-04-19 Kean Johnston <jkj@sco.com>
10958
10959 * fixinc/check.tpl: Allow user to over-ride diff program.
10960 * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
10961 (sco_math): Added test for SCO math header files.
10962 (sco_regset): Added check for conflicts with ieeefp.h.
10963 (svr4_disable_opt): Removed extraneous #ifdef SVR4.
10964 * fixinc/fixincl.x: Regenerated
10965 * fixinc/tests/base/math.h: Added sco_math tests.
10966 * fixinc/tests/base/string.h: New file.
10967 * fixinc/tests/base/sys/regset.h: New file.
10968
10969 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
10970
10971 * cpphash.h (struct cpp_buffer): Remove backup_to.
10972 * cpplex.c (BACKUP, get_effective_char): Die.
10973 (_cpp_skip_block_comment): Assume '*' is location on entry.
10974 (continues_identifier_p): Respect -fno-dollars-in-identifiers.
10975 (IF_NEXT_IS): Update.
10976 (_cpp_lex_direct): Don't use backup_to; look ahead directly.
10977
10978 2003-04-19 Matt Kraai <kraai@alumni.cmu.edu>
10979
10980 * README.Portability: Move to a new section and obsolete K+R
10981 portability issues.
10982
10983 Sat Apr 19 14:56:17 CEST 2003 Jan Hubicka <jh@suse.cz>
10984
10985 * rtlanal.c (subreg_offset_representable_p): Fix call of
10986 subreg_lowpart.
10987
10988 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
10989
10990 * cpphash.h (struct cpp_reader): New member warned_dollar.
10991 * cpplex.c (continues_identifier_p): New function.
10992 (parse_identifier, parse_number, parse_string): Rename lex_identifer,
10993 lex_number and lex_string, and simplify.
10994 (parse_slow, unescaped_terminator_p): Die.
10995 (_cpp_lex_direct): Update.
10996
10997 2003-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10998
10999 * calls.c (expand_call): Provide init for old_stack_pointer_delta.
11000
11001 2003-04-19 Nathan Sidwell <nathan@codesourcery.com>
11002
11003 * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
11004 fork behavior.
11005
11006 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
11007
11008 * cppexp.c (eval_token): Permit true and false even if pedantic.
11009
11010 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
11011
11012 * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
11013
11014 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
11015
11016 * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
11017 MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
11018 (struct include_file): Remove fefcnt, mapped members.
11019 (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
11020 (read_include_file): Don't use mmap, terminate buffers in '\r'.
11021 (purge_cache): Don't use munmap.
11022 * cpphash.h (CPP_BUF_COLUMN): Update.
11023 (lexer_state): Remove lexing_comment.
11024 (struct _cpp_line_note): New.
11025 (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
11026 next_line and need_line. Remove col_adjust and saved_flags.
11027 (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
11028 _cpp_skip_block_comment, scan_out_logical_line): New.
11029 (_cpp_init_mbchar): Remove.
11030 * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
11031 (cpp_read_main_file): Set line to 1 earlier.
11032 (post_options): -traditional-cpp doesn't want trigraphs.
11033 * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
11034 (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
11035 _cpp_get_fresh_line): New.
11036 (handle_newline, skip_escaped_newlines, trigraph_p,
11037 continue_after_nul, _cpp_init_mbchar): Remove.
11038 (get_effective_char): Update.
11039 (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
11040 (skip_line_comment): Simplify.
11041 (skip_whitespace, parse_identifier, parse_slow, parse_number,
11042 parse_string): Update.
11043 (cpp_lex_direct): Use clean lines and process line notes. Update.
11044 (cpp_interpret_charconst): No MULTIBYTE_CHARS.
11045 * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
11046 directly.
11047 (_cpp_handle_directive): Don't set saved_flags.
11048 (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
11049 cpp_undef, handle_assertion, cpp_push_buffer): Update.
11050 (_cpp_pop_buffer): Free notes.
11051 * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
11052 * cpppch.c (cpp_read_state): \n terminate buffer.
11053 * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
11054 (copy_comment): Use _cpp_skip_block_comment.
11055 (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
11056 Simplify.
11057 (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
11058 save_replacement_text): Update.
11059 (scan_out_logical_line): Update to use clean lines and process
11060 line notes.
11061 * fix-header.c (read_scan_file): Update.
11062
11063 2003-04-18 Douglas B Rupp <rupp@gnat.com>
11064
11065 * unwind-dw2-fde.c (__register_frame_info_bases): Check for
11066 null begin parameter (as well as pointer to null).
11067 (__deregister_frame_info_bases): Likewise.
11068
11069 2003-04-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11070
11071 * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
11072 hard or virtual register and copy into pseudo if replacement fails.
11073
11074 * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
11075
11076 * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
11077
11078 2003-04-18 Olivier Hainque <hainque@act-europe.fr>
11079
11080 * calls.c (expand_call): Move special case for constructor calls
11081 to right place. Ensures constructor calls used to initialize
11082 arguments get a clean outgoing argument block for themselves.
11083 Move check for stack deallocation completeness until after last
11084 deallocation. Add stack_pointer_delta to set of state
11085 variables saved and restored along with current stack_level.
11086
11087 * integrate.c (expand_inline_function): Ensure non-const actuals
11088 don't end up const in the caller's flow after conversion to possibly
11089 const formal type.
11090
11091 2003-04-18 Vincent Celier <celier@gnat.com>
11092
11093 * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
11094 and *_DIV_EXPR as TRUNC_*_EXPR.
11095
11096 2003-04-18 Mark Mitchell <mark@codesourcery.com>
11097
11098 * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
11099 for orphaned jump tables.
11100
11101 2003-04-18 Kazu Hirata <kazu@cs.umass.edu>
11102
11103 * reload1.c: Revert my previous patch on 2002-04-17.
11104
11105 2003-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11106
11107 * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
11108 Add Segher Boessenkool.
11109
11110 2003-04-18 Alexander Sotirov <sluncho@mirizma.org>
11111
11112 PR c/9177
11113 * c-decl.c (c_expand_body): Don't garbage collect the function
11114 body if we are going to dump it later.
11115
11116 2003-04-18 Richard Henderson <rth@redhat.com>
11117
11118 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
11119 (alpha_end_function): Don't set them.
11120 (decl_in_text_section): Remove.
11121 (alpha_encode_section_info): Remove.
11122 (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
11123 (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
11124 sections, rather than decl_in_text_section results.
11125
11126 2003-04-18 Roger Sayle <roger@eyesopen.com>
11127
11128 * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
11129 and SIGN_EXTRACT.
11130
11131 2003-04-18 Eric Botcazou <ebotcazou@libertysurf.fr>
11132
11133 PR optimization/7675
11134 * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
11135 on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
11136 nested functions if they refer to declarations from parent functions.
11137 * stmt.c (expand_decl): Don't put automatic variables in registers
11138 if the DECL_NONLOCAL flag is set.
11139
11140 2003-04-18 Hans-Peter Nilsson <hp@bitrange.com>
11141
11142 * gcse.c (compute_ld_motion_mems): For MEM destinations, only
11143 consider those to be movable where the source matches
11144 want_to_gcse_p.
11145 (update_ld_motion_stores): In comment, refer to
11146 compute_ld_motion_mems for validity of replacement.
11147
11148 Fri Apr 18 01:28:51 CEST 2003 Jan Hubicka <jh@suse.cz>
11149
11150 * gcov-dump.c (tag_summary): Remove max_sum
11151 * gcov-io.h (gcov_summary, gcov_write_summary,
11152 gcov_read_summary): Kill max_sum.
11153 * libgcov.c (gcov_exit): Do one pass over the data. Make error
11154 message more verbose.
11155
11156 * emit-rtl.c (subreg_hard_regno): Check that register is
11157 representable.
11158
11159 * reload.c (reload_inner_reg_of_subreg): When register is not
11160 representable, reload the whole thing.
11161 (find_reloads): Likewsie.
11162 * rtlanal.c (subreg_representable_p): New function.
11163
11164 * profile.c (compute_branch_probabilities): Cleanup sanity checking;
11165 allow negative probabilities for edges from the call to exit.
11166 (branch_prob): Do not add fake edges for functions that may return
11167 twice.
11168
11169 2003-04-17 DJ Delorie <dj@redhat.com>
11170
11171 * toplev.c (target_options): Add value field.
11172 (set_target_switch): Handle target options with values.
11173 * doc/tm.texi: Document how fixed vs variable target
11174 options work.
11175 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
11176 config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
11177 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11178 config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
11179 config/m32r/m32r.h, config/m68hc11/m68hc11.h,
11180 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
11181 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
11182 config/rs6000/rs6000.h, config/rs6000/sysv4.h,
11183 config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
11184 Add value initializer to target options.
11185
11186 2003-04-07 Loren James Rittle <ljrittle@acm.org>
11187
11188 * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
11189
11190 2003-04-17 Kazu Hirata <kazu@cs.umass.edu>
11191
11192 * reload1.c (move2add_last_cc0): New.
11193 (reload_cse_move2add): Detect implicit sets.
11194 (move2add_note_store): Notice a store into cc0.
11195
11196 2003-04-17 Roger Sayle <roger@eyesopen.com>
11197
11198 PR c/10375
11199 * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
11200 function attributes.
11201
11202 2003-04-17 Janis Johnson <janis187@us.ibm.com>
11203
11204 * doc/sourcebuild.texi (Test Suites): Document support for testing
11205 binary compatibility (moved from testsuite/README.compat).
11206
11207 2003-04-17 Richard Henderson <rth@redhat.com>
11208
11209 * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
11210
11211 2003-04-17 Simon Law <sfllaw@engmail.uwaterloo.ca>
11212
11213 * doc/include/gpl.texi: Fix double-spacing after "MA" to match
11214 the one provided by the FSF.
11215
11216 2003-04-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11217
11218 * doc/install.texi (Binaries): Update URL and list of platforms
11219 provided by ftp.thewrittenword.com.
11220
11221 2003-04-17 Richard Henderson <rth@redhat.com>
11222
11223 * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
11224 (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
11225 * config/xtensa/xtensa.md (call, call_value): Likewise.
11226
11227 2003-04-17 Richard Henderson <rth@redhat.com>
11228
11229 * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
11230 (print_operand_address): Likewise.
11231 (ep_memory_operand): Likewise.
11232 (special_symbolref_operand): Likewise.
11233 (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
11234 (v850_encode_section_info): Call default_encode_section_info.
11235 (v850_strip_name_encoding): Remove.
11236 * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
11237 (ASM_OUTPUT_LABELREF): Remove.
11238 (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
11239 (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
11240 (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
11241 (ENCODED_NAME_P): Remove.
11242 (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
11243 (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
11244 (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
11245
11246 2003-04-17 Richard Henderson <rth@redhat.com>
11247
11248 * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
11249 * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
11250 SYMBOL_REF_FUNCTION_P.
11251
11252 2003-04-17 Richard Henderson <rth@redhat.com>
11253
11254 * config/sparc/sparc.c (sparc_encode_section_info): Remove.
11255 (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
11256 (text_segment_operand): Likewise.
11257
11258 2003-04-17 Richard Henderson <rth@redhat.com>
11259
11260 * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
11261 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
11262 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
11263 (sh_encode_section_info): Remove.
11264 (sh_strip_name_encoding): Remove.
11265 * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
11266 (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
11267 (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
11268 (ASM_OUTPUT_LABELREF): Remove.
11269 (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
11270 * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
11271
11272 2003-04-17 Richard Henderson <rth@redhat.com>
11273
11274 * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
11275 (tls_model_chars): Remove.
11276 (larl_operand): Use SYMBOL_REF_FLAGS.
11277 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
11278 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
11279 (s390_output_mi_thunk): Likewise.
11280 (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
11281 (s390_function_profiler): Likewise.
11282 (s390_encode_section_info): Use default_encode_section_info
11283 and SYMBOL_FLAG_ALIGN1.
11284 (s390_strip_name_encoding): Remove.
11285 * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
11286 * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
11287 (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
11288
11289 2003-04-17 Richard Henderson <rth@redhat.com>
11290
11291 * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
11292 (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
11293 (print_operand_address): Likewise.
11294
11295 * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
11296 * config/ns32k/ns32k.c (expand_block_move): Don't check
11297 flag_unroll_loops.
11298
11299 2003-04-17 Richard Henderson <rth@redhat.com>
11300
11301 * config/mcore/mcore.c (mcore_encode_section_info): Don't set
11302 SYMBOL_REF_FLAG.
11303
11304 2003-04-17 Richard Henderson <rth@redhat.com>
11305
11306 * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
11307
11308 * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
11309 (SYMBOL_REF_MODEL): New.
11310 (LIT_NAME_P): Move from m32r.h.
11311 (m32r_select_section): Remove.
11312 (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
11313 (m32r_strip_name_encoding): Remove.
11314 (m32r_in_small_data_p): New.
11315 (small_data_operand): Use SYMBOL_REF_SMALL_P.
11316 (addr24_operand): Use SYMBOL_REF_MODEL.
11317 (call26_operand): Likewise.
11318 (addr32_operand): Tidy.
11319 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
11320 * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
11321 (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
11322 (READONLY_DATA_SECTION_ASM_OP): Remove.
11323 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
11324 (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
11325 (TARGET_ASM_SELECT_SECTION): Remove.
11326 (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
11327 (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
11328 (LARGE_NAME_P, ENCODED_NAME_P): Remove.
11329 (ASM_OUTPUT_LABELREF): Remove.
11330
11331 2003-04-17 Richard Henderson <rth@redhat.com>
11332
11333 * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
11334 (encode_section_info): Remove.
11335 * config/ip2k/ip2k-protos.h: Update.
11336
11337 2003-04-17 Richard Henderson <rth@redhat.com>
11338
11339 * varasm.c (default_encode_section_info): Don't set
11340 SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
11341 * config/i370/i370.c (i370_encode_section_info): Remove.
11342 * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
11343 (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
11344 * config/i370/i370.md (movsi): Likewise.
11345
11346 * config/i370/t-i370: Add missing backslash.
11347
11348 2003-04-17 Eric Botcazou <ebotcazou@libertysurf.fr>
11349
11350 * doc/invoke.texi (inline-limit): Fix pasto.
11351
11352 2003-04-17 Richard Henderson <rth@redhat.com>
11353
11354 * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
11355 (small_call_insn_operand): Use it.
11356 (SYMBOL_FLAG_EIGHTBIT_DATA): New.
11357 (h8300_eightbit_constant_address_p): Use it.
11358 (SYMBOL_FLAG_TINY_DATA): New.
11359 (h8300_tiny_constant_address_p): Use it.
11360 (h8300_encode_label, h8300_strip_name_encoding): Remove.
11361 (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
11362 * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
11363 (ASM_OUTPUT_LABELREF): Remove.
11364
11365 2003-04-16 Richard Henderson <rth@redhat.com>
11366
11367 * config/frv/frv.c (symbol_ref_small_data_p): Remove. Replace
11368 all users with SYMBOL_REF_SMALL_P.
11369 (const_small_data_p): Use SYMBOL_REF_SMALL_P.
11370 (frv_encode_section_info): Remove.
11371 (frv_strip_name_encoding): Remove.
11372 (frv_in_small_data_p): Merge tests from encode_section_info.
11373 (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
11374 * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
11375 (SDATA_NAME_P): Remove.
11376 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
11377 (ASM_OUTPUT_LABELREF): Remove.
11378 (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
11379
11380 * config/frv/frv.c (frv_asm_out_constructor): New.
11381 (frv_asm_out_destructor): New.
11382 * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
11383 (DTORS_SECTION_ASM_OP): New.
11384 (ASM_OUTPUT_CONSTRUCTOR): Remove.
11385 (ASM_OUTPUT_DESTRUCTOR): Remove.
11386
11387 2003-04-16 Richard Henderson <rth@redhat.com>
11388
11389 * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
11390 SYMBOL_REF_LOCAL_P; abort if not pic.
11391 (cris_encode_section_info): Remove.
11392
11393 2003-04-16 Richard Henderson <rth@redhat.com>
11394
11395 * config/c4x/c4x.c (c4x_encode_section_info): Remove.
11396 (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
11397
11398 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
11399 flag_inline_trees.
11400
11401 2003-04-16 Richard Henderson <rth@redhat.com>
11402
11403 * config/avr/avr.c (avr_encode_section_info): Remove.
11404 (avr_insert_attributes): New.
11405 (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
11406 (avr_assemble_integer): Likewise.
11407
11408 2003-04-16 Richard Henderson <rth@redhat.com>
11409
11410 * arc.c (arc_encode_section_info): Remove.
11411 (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
11412 (arc_print_operand, arc_print_operand_address): Likewise.
11413 * arc.h (EXTRA_CONSTRAINT): Likewise.
11414
11415 2003-04-16 Roger Sayle <roger@eyesopen.com>
11416
11417 * c-semantics.c (find_reachable_label): New function to find a
11418 potentially reachable label in an expression.
11419 (expand_unreachable_if_stmt): Similar to expand_if_stmt but
11420 assumes the start of the IF_STMT is unreachable (dead) code.
11421 (expand_unreachable_stmt): Similar to expand_stmt but assumes
11422 the start of the statement list is unreachable (dead) code.
11423 (genrtl_if_stmt): If the controlling expression of the IF
11424 is constant, use expand_unreachable_stmt for the THEN or ELSE
11425 clause as appropriate.
11426 (genrtl_switch_stmt): Use expand_unreachable_stmt to expand
11427 the body of a SWITCH statement.
11428 (expand_stmt): The code immediately following a "return",
11429 "break", "continue" or "goto" is unreachable.
11430 * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
11431
11432 2003-04-16 Richard Henderson <rth@redhat.com>
11433
11434 * rtl.h (MEM_ALIAS_SET): Update documentation.
11435 * doc/rtl.texi (Special Accessors): New node.
11436 (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
11437
11438 2003-04-16 Alexandre Oliva <aoliva@redhat.com>
11439
11440 * reload1.c (reload_cse_noop_set_p): Return false if mode of
11441 SET_DEST is not the same as that returned by...
11442 * cselib.h (cselib_reg_set_mode): ... new function.
11443 * cselib.c (cselib_reg_set_mode): Define it.
11444 (REG_VALUES): Document semantics of first element as set mode.
11445 (cselib_subst_to_values): Skip first element if ELT is NULL.
11446 (cselib_lookup): Likewise. Insert past the first element.
11447 (cselib_invalidate_regno): NULLify first element.
11448 (cselib_record_set): Set first element.
11449
11450 2003-04-16 Olivier Hainque <hainque@act-europe.fr>
11451
11452 * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
11453 (save_expr): Replace loop by call to skip_simple_arithmetics_at.
11454 * tree.h: Add prototypes for the two new functions.
11455 * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
11456 updates introduced in the previous revision by call to saved_expr_p.
11457 * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
11458
11459 * expr.c (store_field): Force usage of bitfield instructions when
11460 the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
11461 (expand_expr, case BIT_FIELD_REF): likewise.
11462
11463 2003-04-16 Mark Mitchell <mark@codesourcery.com>
11464
11465 PR middle-end/8866
11466 * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
11467 jumptables.
11468
11469 2003-04-16 Richard Henderson <rth@redhat.com>
11470
11471 * config/ia64/ia64.c (sdata_symbolic_operand): Use
11472 SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
11473 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
11474 (function_operand): Use SYMBOL_REF_FUNCTION_P.
11475 (ia64_expand_load_address): Likewise.
11476 (ia64_assemble_integer): Likewise.
11477 (ia64_encode_section_info): Remove.
11478 (ia64_strip_name_encoding): Remove.
11479 * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
11480 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
11481
11482 2003-04-16 Richard Henderson <rth@redhat.com>
11483
11484 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
11485 (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
11486 (direct_call_operand): Use SYMBOL_FLAG_NEAR.
11487 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
11488 (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
11489 (global_symbolic_operand): Similarly.
11490 (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
11491 (tls_symbolic_operand_type): Likewise.
11492 (alpha_encode_section_info): Use default_encode_section_info.
11493 (alpha_strip_name_encoding): Remove.
11494 (get_tls_get_addr): Split out from ...
11495 (alpha_legitimize_address): ... here.
11496 (alpha_emit_xfloating_libcall): Use init_one_libfunc.
11497 (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
11498 (alpha_initialize_trampoline): Use init_one_libfunc.
11499 (alpha_setup_incoming_varargs): Mark unused parameters.
11500 (alpha_initial_elimination_offset): Likewise.
11501 (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
11502 (unicosmk_unique_section): Use default_strip_name_encoding.
11503 (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
11504
11505 2003-04-16 Aldy Hernandez <aldyh@redhat.com>
11506
11507 * config.gcc: Add t-spe for eabispe.
11508
11509 * config/rs6000/t-spe: New.
11510
11511 2003-04-16 J"orn Rennecke <joern.rennecke@superh.com>
11512
11513 Re-apply this patch:
11514
11515 2002-05-16 Dale Johannesen <dalej@apple.com>
11516 * combine.c (cant_combine_insn_p): Reenable combinations
11517 involving hard regs unless CLASS_LIKELY_SPILLED_P.
11518
11519 2003-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11520
11521 PR/10271
11522 * pa-protos.h (function_arg): Remove last argument.
11523 * pa.c (function_arg): Likewise. Use CUMULATIVE_ARGS struct instead.
11524 * pa.h (struct hppa_args): Add member incoming.
11525 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
11526 member incoming.
11527 (FUNCTION_ARG): Revise call to function_arg.
11528 (FUNCTION_INCOMING_ARG): Delete.
11529
11530 2003-04-15 Zack Weinberg <zack@codesourcery.com>
11531
11532 * configure.in: Unify the code which creates symlinks to a
11533 just-built as, ld, objdump, and nm with the code that detects
11534 their presence for purposes of feature tests.
11535 * configure: Regenerate.
11536
11537 2003-04-15 Zack Weinberg <zack@codesourcery.com>
11538
11539 * varasm.c (output_constant_def): Do not consult
11540 CONSTANT_AFTER_FUNCTION_P. Remove all code predicated on it.
11541 (after_function_constants, output_after_function_constants): Delete.
11542 * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
11543 * config/mips/mips-protos.h, config/mips/mips.c
11544 (mips16_constant_after_function_p): Delete.
11545 * config/mips/mips.h: Delete #if-0-ed definition of
11546 CONSTANT_AFTER_FUNCTION_P.
11547 * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
11548 mention of CONSTANT_AFTER_FUNCTION_P in comment.
11549
11550 2003-04-15 Geoffrey Keating <geoffk@apple.com>
11551
11552 * tree.c (next_decl_uid): Mark with GTY.
11553 (next_type_uid): Likewise.
11554
11555 2003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
11556
11557 PR target/9594:
11558 * sh.c (barrier_align): Also recognize stuff_delay_slot as
11559 an indicator that a barrier was created by branch splitting.
11560
11561 2003-04-15 Mark Mitchell <mark@codesourcery.com>
11562
11563 * c-decl.c (implicitly_declare): Copy declarations that are going
11564 to be placed in a local scope.
11565
11566 2003-04-15 James A. Morrison <ja2morri@uwaterloo.ca>
11567
11568 * invoke.texi (Spec Files): Wrap if-exists-else example.
11569 (MCore): Remove duplicate @itemx entries and @opindex entries.
11570
11571 2003-04-15 Ulrich Weigand <uweigand@de.ibm.com>
11572
11573 * unwind.inc (_Unwind_Backtrace): New function.
11574 * unwind.h (_Unwind_Backtrace): Declare it.
11575 * libgcc-std.ver (_Unwind_Backtrace): Export it.
11576
11577 2003-04-14 Jason Merrill <jason@redhat.com>
11578
11579 PR middle-end/10336, c++/10401
11580 * jump.c (never_reached_warning): Also stop looking if we reach the
11581 beginning of the function.
11582
11583 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11584
11585 PR target/10338
11586 PR bootstrap/10198
11587 PR bootstrap/10140
11588 * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
11589
11590 2003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
11591
11592 * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
11593
11594 2003-04-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11595
11596 * optabs.c (expand_binop): In multi-word add cases, ensure
11597 XTARGET is copied to TARGET if they are different.
11598
11599 2003-04-15 Olivier Hainque <hainque@act-europe.fr>
11600
11601 * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
11602 to region, possible after integration of function with unreachable
11603 regions that were optimized away.
11604
11605 2003-04-15 Jakub Jelinek <jakub@redhat.com>
11606
11607 * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
11608 instead of TOC_REGISTER in epilogue in
11609 current_function_calls_eh_return functions.
11610
11611 2003-04-14 Mark Mitchell <mark@codesourcery.com>
11612
11613 * doc/extend.texi (Empty Structures): Correct description of G++'s
11614 handling of these structures.
11615
11616 * c-decl.c (grokdeclarator): Reject extern redeclarations of
11617 static variables.
11618
11619 2003-04-14 Janis Johnson <janis287@us.ibm.com>
11620
11621 * config/rs6000/rs6000.md (define_constants): Define constants for
11622 all UNSPEC usage, including new values for TLS support.
11623 (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
11624 load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
11625 load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
11626 macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
11627 stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
11628 eh_set_lr_di): Use them.
11629 * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
11630 rs6000_emit_epilogue) Use them.
11631
11632 * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
11633
11634 2003-04-14 Neil Booth <neil@daikokuya.co.uk>
11635
11636 * Makefile.in (c-opts.o): Use custom action.
11637
11638 2003-04-14 Douglas B Rupp <rupp@gnat.com>
11639
11640 * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
11641
11642 2003-04-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11643
11644 * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
11645 handle "superflat arrays" in Ada.
11646
11647 * integrate.c (expand_inline_function): Don't inline if would
11648 lose /u on a BLKmode TARGET.
11649
11650 2003-04-14 Joel Brobecker <brobecker@gnat.com>
11651
11652 * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
11653 extracted from dbxout_type.
11654 (dbxout_range_type): print large bounds in octal format.
11655 (dbxout_type): Replace extracted code by call to
11656 print_int_cst_bounds_in_octal_p.
11657
11658 * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
11659 of DW_LANG_Ada83 for Ada units.
11660
11661 2003-04-14 Olivier Hainque <hainque@act-europe.fr>
11662
11663 * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
11664 temporary used to round CONST_INT sizes.
11665
11666 * tree.c (int_fits_type_p): Extract generic checks from the case
11667 of constant type bounds. Refine the checks against constant type
11668 bounds to allow for possible decisions against each of these bounds
11669 without requiring both bounds to be constant.
11670 (tree_int_cst_msb): Put back.
11671 * tree.h (tree_int_cst_msb): Likewise.
11672
11673 * global.c (global_conflicts): Prevent allocation of call clobbered
11674 hard regs to pseudos live across abnormal edges, as later passes are
11675 not ready to handle them.
11676
11677 * fold-const.c (fold): Reorder tests for conditional expressions.
11678
11679 * expr.c (highest_pow2_factor): Return unsigned.
11680 * expr.h (offset_address): Likewise.
11681 * emit-rtl.c (offset_address): POW2 argument now unsigned.
11682
11683 2003-04-14 Roger Sayle <roger@eyesopen.com>
11684
11685 * builtins.c (expand_builtin_strlen): Evaluate the lengths of
11686 string literals at compile-time.
11687
11688 2003-04-14 Roger Sayle <roger@eyesopen.com>
11689
11690 * fold-const.c (fold): Transform (c1 - x) cmp c2, where cmp is a
11691 comparison operation and c1/c2 are floating point constants into
11692 x swap(cmp) (c1 - c2).
11693
11694 2003-04-14 Vladimir Makarov <vmakarov@redhat.com>
11695
11696 * genautomata.c (output_translate_vect): Fix a typo in loop
11697 condition.
11698
11699 2003-04-14 Hans-Peter Nilsson <hp@axis.com>
11700
11701 PR target/10377
11702 * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
11703 ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
11704 ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
11705 ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
11706 ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
11707 ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
11708 ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
11709 ("*extopqihi_swap_side", "*extopqisi_swap_side")
11710 ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
11711 When next to constraint R, replace constraint i with n.
11712
11713 Mon Apr 14 16:18:37 CEST 2003 Jan Hubicka <jh@suse.cz>
11714
11715 PR opt/10024
11716 * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
11717
11718 2003-04-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
11719
11720 * doc/contrib.texi (Contributors): Correct my entry.
11721
11722 2003-04-13 Roger Sayle <roger@eyesopen.com>
11723
11724 * tree.h (DECL_BUILT_IN_NONANSI): Remove.
11725 * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
11726 * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
11727 implies DECL_BUILT_IN to simplify logic.
11728 * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
11729
11730 2003-04-13 Roger Sayle <roger@eyesopen.com>
11731
11732 * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
11733 (BT_FN_PTR_SIZE_SIZE): Likewise.
11734 * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
11735 New built-in functions for malloc, calloc and strdup respectively.
11736 * calls.c (special_function_p): No need to handle malloc-like
11737 functions any longer. ECF_MALLOC is set via built-in attributes.
11738
11739 * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
11740
11741 * doc/extend.texi: Document these new built-in functions.
11742
11743 2003-04-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11744
11745 * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
11746 (expand_builtin_stpcpy): New.
11747 (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
11748 * builtins.def: Add mempcpy & stpcpy support.
11749 * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
11750
11751 2003-04-13 Nick Clifton <nickc@redhat.com>
11752
11753 * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
11754 "GCC".
11755 * config/rs6000/40x.md, config/rs6000/603.md,
11756 config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
11757 config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
11758 config/rs6000/aix3newas.h, config/rs6000/aix41.h,
11759 config/rs6000/aix43.h, config/rs6000/aix51.h,
11760 config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
11761 config/rs6000/altivec.h, config/rs6000/altivec.md,
11762 config/rs6000/beos.h, config/rs6000/darwin.h,
11763 config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
11764 config/rs6000/eabisim.h, config/rs6000/eabispe.h,
11765 config/rs6000/freebsd.h, config/rs6000/gnu.h,
11766 config/rs6000/host-darwin.c, config/rs6000/linux.h,
11767 config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
11768 config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
11769 config/rs6000/netbsd.h, config/rs6000/power4.md,
11770 config/rs6000/rios1.md, config/rs6000/rios2.md,
11771 config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
11772 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
11773 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
11774 config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
11775 config/rs6000/spe.md, config/rs6000/sysv4.h,
11776 config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
11777 config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
11778
11779 2003-04-13 Nick Clifton <nickc@redhat.com>
11780
11781 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
11782 support for -mcall-aix switch.
11783 * config/rs6000/eabiaix.h: Delete.
11784 * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
11785 (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
11786 RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
11787 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
11788 * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
11789 debug_stack_info, output_function_profiler,
11790 rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
11791 * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
11792 call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
11793 call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
11794 sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
11795 * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
11796 multilibs.
11797 (MULTILIB_DIRNAMES): Remove mcall-aix directories.
11798 (MULTILIB_EXCEPTIONS): Delete.
11799 (MULTILIB_MATCHES): Remove mcall-aix matches.
11800
11801 * doc/fragments.texi: Replace -mcall-aix example with an ARM
11802 one.
11803 * doc/install.texi: Delete powerpc-*-eabiaix target.
11804 * doc/invoke.texi: Remove documentation of mcall-aix switch.
11805 * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
11806 * config.gcc: Delete powerpc-*-eabiaix target.
11807
11808 2003-04-13 Kazu Hirata <kazu@cs.umass.edu>
11809
11810 * doc/invoke.texi: Fix typos.
11811 * doc/tm.texi: Likewise.
11812
11813 2003-04-12 Zack Weinberg <zack@codesourcery.com>
11814
11815 * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
11816
11817 2003-04-12 Zack Weinberg <zack@codesourcery.com>
11818
11819 * tree.c (build_constructor): New function.
11820 * tree.h: Prototype it.
11821
11822 * c-typeck.c (build_c_cast, pop_init_level)
11823 * profile.c (build_function_info_value, build_gcov_info_value)
11824 (create_profiler):
11825 Use build_constructor.
11826
11827 * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
11828
11829 * objc/objc-act.c (build_constructor):
11830 Rename objc_build_constructor. Use build_constructor.
11831 (build_objc_string_object, objc_add_static_instance)
11832 (init_def_list, init_objc_symtab, init_module_descriptor)
11833 (generate_static_references, build_selector_translation_table)
11834 (build_descriptor_table_initializer, generate_descriptor_table)
11835 (build_protocol_initializer, build_ivar_list_initializer)
11836 (generate_ivars_list, build_dispatch_table_initializer)
11837 (generate_dispatch_table, generate_protocol_list)
11838 (build_category_initializer, build_shared_structure_initializer):
11839 Update to match.
11840
11841 2003-04-12 Zack Weinberg <zack@codesourcery.com>
11842
11843 * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
11844
11845 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11846
11847 * config/m68hc11/m68hc11-protos.h
11848 (m68hc11_eq_compare_operator): Declare
11849 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
11850 * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
11851 (d_register_operand): Check the operand mode.
11852 (hard_addr_reg_operand): Likewise.
11853
11854 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11855
11856 * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
11857 pattern for dbcc/ibcc generation for 68HC12.
11858 ("doloop_end"): New pattern.
11859 ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
11860 ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
11861 ("m68hc12_dbcc_dec_qi"): New pattern.
11862 ("m68hc12_dbcc_inc_qi"): New pattern.
11863 (split): Add split for the above when we can't use dbcc/ibcc due to
11864 reloading.
11865 (peephole2): Add peephole2 to generate the above when possible.
11866
11867 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11868
11869 * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
11870 mode of operand 0.
11871 (peephole2 optimize const load): Likewise for operand 2.
11872 ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
11873 clobbers CC_REGNUM.
11874 ("*rotrhi3_with_carry"): Likewise.
11875 (ashift:DI 1 split): Update pattern to create the above rotate.
11876 (lshiftrt:DI 1 split): Likewise.
11877
11878 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11879
11880 * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
11881 ("tstqi_z_used" split): Use it.
11882 ("cmphi_z_used"): Likewise.
11883 ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
11884 ("cmpqi_z_used"): Likewise.
11885
11886 2003-04-12 Mark Mitchell <mark@codesourcery.com>
11887
11888 PR c++/7910
11889 * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
11890
11891 2003-04-12 Zack Weinberg <zack@codesourcery.com>
11892
11893 * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
11894 * configure, config.in: Regenerate.
11895 * intl.c (gcc_gettext_width): New function.
11896 * intl.h: Prototype it.
11897
11898 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11899
11900 * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
11901 recognize -mnorelax.
11902 (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
11903 (REG_CLASS_NAMES): Add its name.
11904 (REG_CLASS_CONTENTS): Define its content.
11905
11906 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11907
11908 * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
11909 parameters so that offsets are valid for far definition.
11910 (__mulsi3): Likewise and use ret to return.
11911 (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
11912
11913 2003-04-12 David Edelsohn <edelsohn@gnu.org>
11914
11915 * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
11916
11917 2003-04-12 Alexandre Oliva <aoliva@redhat.com>
11918
11919 * mklibgcc.in (libgcc-stage-start): For every multilib directory
11920 containing a libgcc.a, move lib* to the corresponding stage dir.
11921
11922 * Makefile.in (stage1-start, stage2-start, stage3-start,
11923 stage4-start): Move $(SPECS) to specs in stage dir.
11924 (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
11925 back as $(SPECS).
11926
11927 * mklibgcc.in (libgcc-stage-start): Move into the stage directory
11928 object files from the non-libgcc/ multilib directories as well.
11929
11930 2003-04-11 Geoffrey Keating <geoffk@apple.com>
11931
11932 * profile.c (read_counts_file): Initialise 'checksum'.
11933
11934 * emit-rtl.c (gen_rtx): Really correct typo.
11935
11936 PR c++/9393
11937 * doc/invoke.texi (Debugging Options): Document -frandom-seed.
11938 * configure.in: Check for gettimeofday.
11939 * tree.c (flag_random_seed): Define.
11940 (default_flag_random_seed): New.
11941 (append_random_chars): Use flag_random_seed rather than trying
11942 to acquire randomness here.
11943 * tree.h (default_flag_random_seed): Declare.
11944 * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
11945 descriptions.
11946 (decode_f_option): Handle -frandom-seed.
11947 (print_switch_values): Call default_flag_random_seed.
11948 * flags.h (flag_random_seed): Declare.
11949 * configure: Regenerate.
11950 * config.in: Regenerate.
11951 * config/alpha/t-crtfm: Use -frandom-seed.
11952
11953 * doc/extend.texi (Empty Structures): New.
11954
11955 * c-pch.c: Include flags.h. Add comments to routines.
11956 (struct c_pch_validity): New.
11957 (get_ident): Update PCH file version number.
11958 (pch_init): Output current debugging type.
11959 (c_common_valid_pch): Check debugging type.
11960 * Makefile.in (c-pch.o): Update dependencies.
11961 * flags.h (debug_type_names): Declare.
11962 * toplev.c (debug_type_names): Move out of decode_g_option.
11963
11964 2003-04-11 Eric Christopher <echristo@redhat.com>
11965
11966 * emit-rtl.c (gen_rtx): Fix typos.
11967
11968 2003-04-11 Richard Henderson <rth@redhat.com>
11969
11970 * emit-rtl.c (gen_rtx): Zero '0' fields.
11971
11972 2003-04-11 Richard Henderson <rth@redhat.com>
11973
11974 PR c++/10202
11975 * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
11976 not COMPLETE_TYPE_P for re-invoking layout_decl.
11977
11978 2003-04-11 Simon Law <sfllaw@engmail.uwaterloo.ca>
11979
11980 * doc/bugreport.texi: Fix paragraph breaking between sections
11981 in preparation for TeXinfo's paragraph indentation fixes.
11982 * doc/extend.texi: Ditto.
11983 * doc/invoke.texi: Ditto.
11984 * doc/objc.texi: Ditto.
11985 * doc/gcov.texi: Wrap 'gcov' in @command{}.
11986 * doc/invoke.texi (Darwin Options): Add a preamble.
11987
11988 2003-04-11 Richard Henderson <rth@redhat.com>
11989
11990 * config/i386/i386.c (tls_model_chars): Remove.
11991 (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
11992 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
11993 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
11994 (tls_symbolic_operand_1): Likewise.
11995 (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
11996 * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
11997 (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
11998 * config/i386/winnt.c (i386_pe_encode_section_info): Replace
11999 bits "copied from i386.h" with default_encode_section_info.
12000
12001 2003-04-11 Richard Henderson <rth@redhat.com>
12002
12003 * rtl.def (SYMBOL_REF): Add two 0 fields.
12004 * gengtype.c (adjust_field_rtx_def): Handle them.
12005 * print-rtl.c (print_rtx): Print them.
12006 * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
12007 (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
12008 (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
12009 (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
12010 (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
12011 (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
12012 (SYMBOL_FLAG_MACH_DEP): New.
12013 * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
12014 * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
12015 (assemble_static_space): Set SYMBOL_REF_FLAGS.
12016 (assemble_trampoline_template): Likewise.
12017 (output_constant_def, force_const_mem): Likewise.
12018 (default_encode_section_info): New.
12019 * output.h: Declare it.
12020 * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
12021
12022 2003-04-11 Richard Henderson <rth@redhat.com>
12023
12024 * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
12025 (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
12026 * optabs.c (init_optabs): Initialize them.
12027 (init_libfuncs): Use init_one_libfunc.
12028 * calls.c (expand_call): Use gcov_flush_libfunc.
12029 * expr.c (store_constructor): Use setbits_libfunc.
12030 * function.c (expand_main_function): Use init_one_libfunc.
12031 * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
12032
12033 2003-04-11 Mark Mitchell <mark@codesourcery.com>
12034
12035 * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
12036 documentation; add DECL_FRIEND_CONTEXT.
12037
12038 2003-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12039
12040 * doc/install.texi (hppa): Update links for HP-UX patches. Revise
12041 notes on linker selection and configuration for 64-bit HP-UX port.
12042 * doc/invoke.texi (hppa): Remove hppa text from description for
12043 -ffunction-sections and -fdata-sections. Document -static, -nolibdld
12044 and -threads options.
12045
12046 * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
12047 libc.a on libdld.sl when -static is specified and -nolibdld is not
12048 specified.
12049 * pa64-hpux.h (LIB_SPEC): Likewise.
12050 * pa-hpux11.h (LIB_SPEC): Likewise.
12051 (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
12052 is not specified.
12053
12054 2003-04-11 Zack Weinberg <zack@codesourcery.com>
12055
12056 * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
12057 not IDENTIFIER_LOCAL_VALUE.
12058
12059 2003-04-11 Richard Henderson <rth@redhat.com>
12060
12061 PR c/10201
12062 * expr.c (expand_expr): Move DECL_RTL frobbing ...
12063 * stor-layout.c (layout_decl): ... here.
12064
12065 2003-04-11 James A. Morrison <ja2morri@uwaterloo.ca>
12066
12067 * doc/invoke.texi: Eliminate extra white-space caused by
12068 @gccoptlist{ on its own line.
12069 * doc/invoke.texi: Ensured there are two spaces between each option.
12070 * doc/invoke.texi: Re-wrapped option lines that were too wide.
12071 Added @gol to options that didn't have them.
12072
12073 2003-04-11 Nathan Sidwell <nathan@codesourcery.com>
12074
12075 * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
12076 gcov-iov.h.
12077
12078 Simplify interface to gcov reading and writing.
12079 * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
12080 gcov_alloc, gcov_modified, gcov_errored): Move into ...
12081 (struct gcov_var gcov_var): ... this static structure.
12082 (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
12083 Return void.
12084 (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
12085 read object.
12086 (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
12087 (gcov_reserve_length): Remove.
12088 (gcov_write_tag): New.
12089 (gcov_write_length): Adjust.
12090 (gcov_read_summary, gcov_write_summary): Adjust.
12091 (gcov_eof, gcov_ok): Rename to ...
12092 (gcov_is_eof, gcov_is_error): ... here. Return error code.
12093 (gcov_save_position, gcov_resync): Rename to ...
12094 (gcov_position, gcov_seek): ... here.
12095 (gcov_skip, gcov_skip_string): Remove.
12096 (gcov_error): Remove.
12097 (gcov_open, gcov_close): Adjust.
12098 * gcov.c (find_source): Take const char *, copy it on allocation.
12099 (read_graph_file): Adjust.
12100 (read_count_file): Adjust.
12101 * libgcov.c (gcov_exit): Adjust.
12102 * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
12103 tag_arc_counts, tag_summary): Return void. Adjust.
12104 (struct tag_format): Adjust proc member.
12105 (dump_file): Adjust gcov calls.
12106
12107 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
12108
12109 * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
12110 mkfixinc.sh.
12111 * fixinc/mkfixinc.sh (defs): Add LIBERTY.
12112 * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
12113 build != host sysrooted builds.
12114 * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
12115 TARGET_SYSTEM_ROOT even on sysrooted natives.
12116 * configure: Rebuilt.
12117
12118 2003-04-10 Zack Weinberg <zack@codesourcery.com>
12119
12120 * c-decl.c (struct binding_level): Add shadowed_tags and
12121 function_body; remove this_block, tag_transparent, and
12122 subblocks_tag_transparent; update comments.
12123 (clear_binding_level, lookup_tag_reverse): Kill.
12124 (make_binding_level): Use ggc_alloc_cleared or memset.
12125 (lookup_tag): Remove struct binding_level* parameter. All
12126 callers changed. Just look at IDENTIFIER_TAG_VALUE, and
12127 current_binding_level->tags if asked for thislevel_only or if
12128 we might have to diagnose "struct foo; union foo;"
12129 (pushlevel): Ignore argument. Do not push another binding
12130 level on the transition from the parameters to the top level
12131 of the function body; just tweak the flags and proceed.
12132 (poplevel): Overhaul. Clear IDENTIFIER_TAG_VALUEs; on exiting
12133 a function body, separate the parameter list from the
12134 top-level local variables.
12135 (set_block): Do nothing.
12136 (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
12137 shadowed_tags if necessary.
12138 (warn_if_shadowing): Nuke the special case for local shadowing
12139 parameter.
12140 (pushdecl): Do not create a shadow entry if we are replacing
12141 an older decl in the same binding level.
12142 (pushdecl_function_level): Tweak for new way of indicating
12143 function scope.
12144 (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
12145 (start_function): Don't set subblocks_tag_transparent.
12146 (finish_function): Fix up the binding_level stack for totally
12147 empty functions. Otherwise, don't call poplevel.
12148
12149 * c-common.c (shadow_warning): MANDATORY argument is no longer
12150 necessary. Always use plain warning.
12151 * c-common.h: Update to match.
12152
12153 * cfglayout.c (scope_to_insns_initialize): Clear block when we
12154 hit the FUNCTION_DECL.
12155 * function.c: Do not create cyclic tree structure.
12156
12157 2003-04-10 Zack Weinberg <zack@codesourcery.com>
12158
12159 * c-tree.h (struct lang_identifier): Replace global_value,
12160 local_value members with symbol_value, tag_value. Kill
12161 implicit_decl and limbo_value.
12162 (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
12163 IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
12164 C_MISSING_PROTOTYPE_WARNED): Kill.
12165 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
12166 C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
12167 (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
12168 (implicit_decl_warning, lookup_name_current_level,
12169 record_function_scope_shadow): Don't prototype.
12170 (pushdecl_function_level): Prototype.
12171
12172 * c-decl.c (truly_local_externals): New variable.
12173 (struct binding_level): Adjust commentary.
12174 (get_function_binding_level, clear_limbo_values,
12175 record_function_scope_shadow): Kill.
12176 (lookup_name_current_level, implicit_decl_warning): Are now static.
12177 (any_external_decl, record_external_decl): New static functions.
12178 (clone_underlying type): Split out of pushdecl.
12179 (c_print_identifier): Update to match changes to struct
12180 lang_identifier.
12181 (poplevel): Delete #if 0 block. Make externals invisible
12182 instead of clearing their IDENTIFIER_SYMBOL_VALUEs. Don't
12183 call clear_limbo_values. Refer to IDENTIFIER_SYMBOL_VALUE not
12184 IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
12185 (duplicate-decls): For real parm decl after a forward decl,
12186 set TREE_ASM_WRITTEN here. Allow void foo(...) followed by
12187 foo(...) { } with only a warning. Say whether a previous
12188 declaration was implicit.
12189 (warn_if_shadowing): Now handles all shadowing, not just
12190 local-over-local. Clarify comments.
12191 (pushdecl): Rewritten. There is no longer a distinction
12192 between global and local symbol values; they're all
12193 IDENTIFIER_SYMBOL_VALUE. Call record_external_decl on all
12194 DECL_EXTERNAL decls, and use any_external_decl to check
12195 against previous externals. Kill #if 0 blocks. Don't
12196 tolerate error_mark_node being NULL.
12197 (pushdecl_top_level): Handle only those cases which
12198 Objective C (the only user) needs.
12199 (pushdecl_function_level): New function.
12200 (implicitly_declare): Create ordinary decls with
12201 C_DECL_IMPLICIT set. Recycle old decls, however they got
12202 created.
12203 (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
12204 for C_DECL_INVISIBLE symbols.
12205 (lookup_name_current_level): Likewise. Use chain_member.
12206 (c_make_fname_decl): Don't muck with DECL_CONTEXT.
12207 Use pushdecl_function_level.
12208 (builtin_function): Use C_DECL_INVISIBLE.
12209 (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
12210 Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
12211 (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
12212 (identifier_global_value): Same. Must scan
12213 global_binding_level in extremis.
12214
12215 * c-typeck.c (undeclared_variable): New static function, split
12216 from build_external_ref.
12217 (build_external_ref): Use DECL_CONTEXT, not
12218 IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
12219 an instance variable. Restructure for clarity.
12220 * objc/objc-act.c: Use identifier_global_value, not
12221 IDENTIFIER_GLOBAL_VALUE.
12222
12223 2003-04-08 Jonathan Wakely <redi@gcc.gnu.org>
12224
12225 * doc/extend.texi (Template Instantiation): Refer to ISO standard,
12226 not Working Paper.
12227 * doc/invoke.texi (C++ Dialect Options): Same.
12228
12229 2003-04-10 Zack Weinberg <zack@codesourcery.com>
12230
12231 * tree.c (tree_operand_check_failed): New function.
12232 * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
12233 TREE_RTL_OPERAND_CHECK): New checking macros.
12234 (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
12235 RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
12236 CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
12237 EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
12238 EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
12239 TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
12240 checking macros.
12241
12242 Thu Apr 10 23:52:30 CEST 2003 Jan Hubicka <jh@suse.cz>
12243
12244 PR inline-asm/8803
12245 * function.c (instantate_virtual_regs): Verify that all ASM statements
12246 match after the virutal regs instantiation.
12247
12248 2003-04-10 Steve Ellcey <sje@cup.hp.com>
12249
12250 * ia64-protos.h (addp4_optimize_ok): New.
12251 * ia64.c (addp4_optimize_ok): New.
12252 * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
12253 (*ptr_extend_plus_2): Ditto.
12254
12255 2003-04-10 Steve Ellcey <sje@cup.hp.com>
12256
12257 * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
12258 not with convert_memory_address.
12259 (store_constructor): Ditto, and same for copy_size_rtx.
12260 (expand_expr): Ditto.
12261
12262 2003-04-10 Douglas B Rupp <rupp@gnat.com>
12263
12264 * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
12265
12266 2003-04-10 Bob Wilson <bob.wilson@acm.org>
12267
12268 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
12269 even if it is configured to be write-through.
12270
12271 2003-04-10 Ulrich Weigand <uweigand@de.ibm.com>
12272
12273 * config/s390/s390.c (larl_operand): Do not allow symbols
12274 marked with '@'.
12275 (s390_encode_section_info): Mark symbols with forced 1-byte
12276 alignment with '@'.
12277 (s390_strip_name_encoding): Strip '@'.
12278 (legitimize_pic_address): Handle symbols that are not valid
12279 LARL operands in 64-bit mode.
12280
12281 2003-04-10 Andrew Haley <aph@redhat.com>
12282
12283 * tree-inline.c (inlinable_function_p): Disable inlining for
12284 synchronized methods.
12285
12286 2003-04-09 Steven Bosscher <steven@gcc.gnu.org>
12287
12288 * c-common.h (lang_statement_code_p): Remove declaration.
12289 (statement_code_p): Ditto.
12290 (c_common_stmt_codes): Define; list of c-common statement codes.
12291 (statement_code_p): New extern declaration.
12292 (STATEMENT_CODE_P): Define.
12293 (INIT_STATEMENT_CODES): Define.
12294 * c-common.c (statement_code_p): Kill the function, declare
12295 as an array of bools instead.
12296 (lang_statement_code_p): Remove.
12297 (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
12298 (c_safe_from_p): Ditto.
12299 * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
12300 to initialize the statement_code_p array.
12301 * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
12302 statement_code_p.
12303 (copy_tree_r): Ditto.
12304 * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
12305 statement tree codes.
12306 * cp/lex.c (cxx_init): Add missing print line break. Use
12307 INIT_STATEMENT_CODES to initialize the statement_code_p array.
12308 * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
12309 instead of statement_code_p.
12310 * cp/pt.c (tsubst_expr): Ditto.
12311 * cp/tree.c (verify_stmt_tree_r): Ditto.
12312 (cp_statement_code_p): Remove.
12313 (init_tree): Don't set lang_statement_code_p, it's gone.
12314
12315 2003-04-09 Dan Nicolaescu <dann@ics.uci.edu>
12316 Zack Weinberg <zack@codesourcery.com>
12317
12318 * regrename.c (struct du_chain): Use a bitfield for reg_class.
12319 * cse.c (struct qty_table_elem, struct table_elt, struct set):
12320 Use bitfields for fields holding enum rtx_code or
12321 enum machine_mode values. Add comments explaining size choices.
12322
12323 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
12324
12325 * config/fp-bit.c (unpack_d): Handle pair of doubles with
12326 different signs correctly.
12327
12328 2003-04-09 Vladimir Makarov <vmakarov@redhat.com>
12329
12330 * sched-deps.c (reg_pending_barrier_mode): New enumeration.
12331 (reg_pending_barrier): Make it of the enumeration type.
12332 (sched_analyze_2): Define the barrier as MOVE_BARRIER or
12333 TRUE_BARRIER.
12334 (sched_analyze): Ditto.
12335 (sched_analyze_insn): Ditto. Use anti-dependencies for
12336 MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
12337 (init_deps_global): Initialize the barrier as NO_BARRIER.
12338
12339 2003-04-09 Vladimir Makarov <vmakarov@redhat.com>
12340
12341 * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
12342 Check that asm insn starts on a new cycle. Add nops after asm
12343 insn to end bundle.
12344 (bundling): Move insn type evaluation from the loop. Call
12345 issue_nops_and_insn with the new parameter. Ignore changing
12346 position for nops after asm insn.
12347
12348 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
12349
12350 * optabs.c: Comment that gen_add2_insn and others may actually
12351 return emitted insns, if the gen functions turn out to return
12352 emitted insns.
12353 * reload1.c (reload_cse_move2add): Cope with emitted insns from
12354 gen_add2_insn.
12355
12356 2003-04-09 Richard Henderson <rth@redhat.com>
12357
12358 * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
12359 but not tls_symbolic_operand.
12360 (ia64_expand_load_address): Remove scratch operand.
12361 (ia64_expand_tls_address): Split out from ia64_expand_move.
12362 (ia64_expand_move): Split symbolics only after reload.
12363 (ia64_emit_cond_move): New.
12364 * config/ia64/ia64-protos.h: Update.
12365 * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
12366 (symbolic splitter): Accept SImode operands too.
12367 (cmove splitter): Use ia64_emit_cond_move.
12368
12369 2003-04-09 Nick Clifton <nickc@redhat.com>
12370
12371 * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
12372 newer.
12373 * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
12374 instead of -mno-fpu.
12375 * config/arm/semi.h (ASM_SPEC): Likewise.
12376 * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
12377 but only if -msoft-float is specified pass. Otherwise pass
12378 -mfpu=softvfp.
12379
12380 2003-04-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12381
12382 * function.c (purge_addressof): Use free_INSN_LIST_node instead of
12383 free_EXPR_LIST_node.
12384
12385 2003-04-08 Roger Sayle <roger@eyesopen.com>
12386
12387 * fold-const.c (fold): Use "fold" following build in more places.
12388 Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
12389 pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
12390
12391 2003-04-08 Roger Sayle <roger@eyesopen.com>
12392
12393 * builtins.c (fold_builtin): Constant fold expressions as x*0.5
12394 instead of x/2.0. Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
12395 log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
12396 pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
12397 Delete function scope "fcode" variable to avoid shadowing.
12398
12399 2003-04-08 Kevin Buettner <kevinb@redhat.com>
12400
12401 * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
12402 Take into account DWARF_INITIAL_LENGTH_SIZE.
12403
12404 2003-04-08 Hans-Peter Nilsson <hp@axis.com>
12405
12406 * reorg.c (fill_slots_from_thread): When considering changing the
12407 insn following a reg-to-reg copy insn to use the source reg of the
12408 copy, bail out if there's overlap between the registers.
12409
12410 2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12411
12412 * function.c (postponed_insns): New.
12413 (purge_addressof_1): Postpone processing of insns if addressofs
12414 are not put into stack.
12415 (purge_addressof): Process postponed insns.
12416
12417 2003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
12418
12419 * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
12420 this is FP_MODE_DOUBLE .
12421 * sh.c (ra.h): #include.
12422 (push_regs): Add second parameter. Changed all callers.
12423 If necessary, set fpscr before saving floating point registers.
12424 (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
12425 do saves / restores with SZ == 1.
12426 (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
12427 (sh_expand_epilogue): Likewise. For TARGET_FMOVD, if floating point
12428 registers are being restored, restore FPSCR only after restoring them.
12429
12430 2003-04-08 Aldy Hernandez <aldyh@redhat.com>
12431
12432 * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
12433 regardless of architecture.
12434 (spe_init_builtins): Change V2SI and V2SF types to opaque types.
12435
12436 2003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
12437
12438 * sh.c (push_regs, calc_live_regs): Return int. Take single
12439 HARD_REG_SET * parameter. Changed all callers.
12440
12441 Tue Apr 8 11:12:07 CEST 2003 Jan Hubicka <jh@suse.cz>
12442
12443 * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
12444 GOTOFF operand.
12445 (legitimize_pic_address): Move plus outside the unspec.
12446 * i386.c (legitimate_constant_p): Check (CONST (PLUS (UNSPEC ...
12447 for validity.
12448
12449 2003-04-08 Nathan Sidwell <nathan@codesourcery.com>
12450
12451 * gcov-io.h (gcov_save_position): Remove __inline__ from
12452 declaration.
12453
12454 2003-04-07 Matt Kraai <kraai@alumni.cmu.edu>
12455
12456 * doc/install.texi: Use @command and @samp for single- and
12457 multi-word commands respectively.
12458 * doc/makefile.texi: Likewise.
12459 * doc/sourcebuild.texi: Likewise.
12460
12461 2003-04-07 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
12462 Richard Henderson <rth@redhat.com>
12463
12464 PR c/9516
12465 * expr.c (safe_from_p): Rearrange to avoid deep recursion in
12466 favor of looping and tail recursion for TREE_LIST and binops.
12467
12468 2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12469
12470 * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
12471 for insns without luid.
12472
12473 2003-04-07 Glen Nakamura <glen@imodulo.com>
12474
12475 PR opt/8634
12476 * explow.c (maybe_set_unchanging): Don't flag non-static const
12477 aggregate type initializers with RTX_UNCHANGING_P.
12478
12479 2003-04-07 Richard Henderson <rth@redhat.com>
12480
12481 PR opt/8634
12482 * function.c (purge_addressof_1): Don't try arithmetics for
12483 unchanging memories.
12484
12485 2003-04-07 Janis Johnson <janis187@us.ibm.com>
12486
12487 * doc/sourcebuild.texi (Test Suites): Document testing support for
12488 gcov and profile-directed optimizations; describe gcc.misc-tests.
12489
12490 Mon Apr 7 22:19:59 CEST 2003 Jan Hubicka <jh@suse.cz>
12491
12492 PR target/10077
12493 * i386.md (movsi_1, movsi_nointerunit_1): Fix SSEMOV alternative.
12494
12495 2003-04-07 Eric Botcazou <ebotcazou@libertysurf.fr>
12496
12497 * doc/rtl.texi (Comparison operations): Update to
12498 record the allowed comparison modes.
12499
12500 2003-04-07 Aldy Hernandez <aldyh@redhat.com>
12501
12502 * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
12503 V2SI_type_node to opaque_V2SI_type_node. Rename all
12504 V2SF_type_node to opaque_V2SF_type_node.
12505 (rs6000_init_builtins): Define opaque_V2SI_type_node and
12506 opaque_V2SF_type_node.
12507 (is_ev64_opaque_type): The types opaque_V2SI_type_node and
12508 opaque_V2SF_type_node are opaque types.
12509
12510 2003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
12511
12512 * gcse.c (replace_store_insn): Use single_set.
12513
12514 2003-04-07 Nathan Sidwell <nathan@codesourcery.com>
12515
12516 Change gcov file interface to single file at a time.
12517 * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
12518 Convert to C89 prototypes.
12519 (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
12520 gcov_error, gcov_modified): New static variables.
12521 (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
12522 functions.
12523 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
12524 gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
12525 (gcov_read_summary, gcov_write_summary): Adjust.
12526 (gcov_save_position, gcov_reserve_length, gcov_write_length):
12527 Adjust.
12528 (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
12529 (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
12530 (da_file_position, da_file_seek, da_file_write, da_file_read):
12531 Remove.
12532 (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
12533 * gcov.c (gcov_type): Don't typedef here.
12534 (IN_GCOV): #define
12535 (read_graph_file, read_count_file): Adjust.
12536 * gcov-dump.c (gcov_type): Don't typedef here.
12537 (IN_GCOV): #define.
12538 (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
12539 Remove FILE parameter, adjust.
12540 (struct tag_format): Adjust proc member.
12541 (dump_file): Adjust.
12542 * libgcov.c (IN_LIBGCOV): #define.
12543 (gcov_exit): Adjust.
12544 * loop-init.c: Don't #include gcov-io.h
12545 * profile.c (struct counts_entry): New structure to hold counter
12546 values.
12547 (struct section_reference, struct da_index_entry): Remove.
12548 (bbg_file, da_file): Remove.
12549 (htab_counts_index_hash, htab_counts_index_eq,
12550 htab_counts_index_del): Replace with ...
12551 (htab_counts_entry_hash, htab_counts_entry_eq,
12552 htab_counts_entry_del): ... these.
12553 (cleanup_counts_index, index_counts_file): Remove.
12554 (read_counts_file): New function.
12555 (get_exec_counts): Adjust.
12556 (compute_branch_probabilities): Don't free the exec counts here.
12557 (branch_prob): Adjust.
12558 (init_branch_prob): Adjust.
12559 (end_branch_prob): Adjust.
12560
12561 2003-04-07 Aldy Hernandez <aldyh@redhat.com>
12562
12563 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
12564 -mfloat-gprs.
12565
12566 * config/rs6000/rs6000.c: Delete rs6000_fprs.
12567 Declare rs6000_float_gprs.
12568 Declare rs6000_float_gprs_string.
12569 (rs6000_parse_float_gprs_option): New.
12570 (rs6000_override_options): Genericize rs6000_parse_* calls to use
12571 rs6000_parse_yes_no_option.
12572 Change check for cpu=8540, to use TARGET_E500.
12573 (rs6000_parse_isel_option): Delete.
12574 (rs6000_parse_spe_option): Delete.
12575 (rs6000_parse_vrsave_option): Delete.
12576
12577 * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
12578 Define rs6000_float_gprs_string.
12579 (TARGET_OPTIONS): Add rs6000_float_gprs option.
12580
12581 * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
12582
12583 * config/rs6000/eabispe.h: Set rs6000_float_gprs.
12584
12585 Mon Apr 7 14:36:24 CEST 2003 Jan Hubicka <jh@suse.cz>
12586
12587 PR opt/10024
12588 * cfglayout.c (cfg_layout_redirect_edge):
12589 Redirect any branch edges unified with the fallthru one.
12590 * cfgrtl.c (force_nonfallthru_and_redirect): Do not special
12591 case fallthru edges when called via cfglayout.c
12592
12593 2003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
12594
12595 * c-typeck.c (output_init_element): Check for type == error_mark_node.
12596
12597 2003-04-07 Kazu Hirata <kazu@cs.umass.edu>
12598
12599 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
12600 split.
12601 (a splitter): Do zero-extension via HImode.
12602
12603 2003-04-07 James A. Morrison <ja2morri@uwaterloo.ca>
12604
12605 * doc/invoke.texi: Eliminate extra white-space caused by
12606 @gccoptlist{ on its own line.
12607 * doc/invoke.texi: Ensured there are two spaces between each option.
12608 * doc/invoke.texi: Re-wrapped option lines that were too wide.
12609 Added @gol to options that didn't have them.
12610
12611 2003-04-07 James A Morrison <ja2morri@student.math.uwaterloo.ca>
12612
12613 * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
12614
12615 2003-04-06 Zack Weinberg <zack@codesourcery.com>
12616
12617 * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
12618 at the sizes of the relevant structures, rather than relying
12619 on TREE_CODE_LENGTH. Call lang_hooks.tree_size to get the
12620 sizes of any such we don't know about. Use
12621 lang_hooks.identifier_size for IDENTIFIER_NODE.
12622
12623 (initializer_zerop): Use CONSTRUCTOR_ELTS.
12624 * tree.def: Update commentary. Make fourth element of
12625 the definition for all 'c' and 'x' nodes zero.
12626
12627 * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
12628 * langhooks-def.h: Update to match.
12629 * langhooks.c: New default, lhd_tree_size.
12630
12631 * c-common.def (SRCLOC): Kill.
12632 * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
12633 Remove entirely - was already #if-ed out.
12634
12635
12636 2003-04-06 Zack Weinberg <zack@codesourcery.com>
12637
12638 * mklibgcc.in: Use a here document to avoid running afoul of
12639 shells that generate control-A from "echo \1".
12640
12641 2003-04-06 Aldy Hernandez <aldyh@redhat.com>
12642
12643 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
12644 option.
12645
12646 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
12647 rs6000_spe.
12648
12649 * config/rs6000/eabi.h (TARGET_E500): Define.
12650
12651 * config/rs6000/rs6000.h (TARGET_E500): Define.
12652 (TARGET_OPTIONS): Add spe= option.
12653 Declare rs6000_spe and rs6000_spe_string extern.
12654
12655 * config/rs6000/rs6000.c (branch_positive_comparison_operator):
12656 Change TARGET_SPE to TARGET_E500.
12657 (ccr_bit): Change TARGET_SPE to TARGET_E500. Check for
12658 !TARGET_FPRS.
12659 (print_operand): Same.
12660 (rs6000_generate_compare): Same.
12661 (output_cbranch): Same.
12662 (rs6000_spe): Declare.
12663 (rs6000_spe_string): Declare.
12664 (rs6000_override_options): Call rs6000_parse_spe_option.
12665 (rs6000_parse_spe_option): New.
12666
12667 2003-04-06 Steven Bosscher <steven@gcc.gnu.org>
12668
12669 * hashtable.c (gcc_obstack_init): Delete this function
12670 and everything related to it.
12671 * hashtable.h: Remove prototype.
12672 * bitmap.c (bitmap_element_allocate): Cleanup redundant
12673 defines. Cleanup some unnecessary whitespace.
12674 * defaults.h (obstack_chunk_alloc): Redefine with
12675 appropriate casts for libiberty obstacks.
12676 (obstack_chunk_free): Ditto.
12677 (OBSTACK_CHUNK_SIZE): Define, default to 0.
12678 (gcc_obstack_init): Define as a call to _obstack_begin.
12679 * tree.c (print_obstack_statistics): Delete this unused
12680 function.
12681 * tree.h (obstack): Don't forward-declare.
12682 (print_obstack_statistics): Delete prototype.
12683 (print_obstack_name): Ditto.
12684 (gcc_obstack_init): Ditto.
12685 * rtl.h (gcc_obstack_init): Ditto.
12686 * java/jv-scan.c (gcc_obstack_init): Delete this
12687 function, its prototype and related defines.
12688 * java/jvgenmain.c (gcc_obstack_init): Delete this
12689 function, and related defines.
12690 * java/parse-scan.y (obstack_chunk_alloc): Don't define.
12691 (obstack_chunk_free): Ditto
12692
12693 2003-04-06 Geoffrey Keating <geoffk@apple.com>
12694
12695 * dbxout.c (dbxout_handle_pch): Move prototype out from
12696 #if defined DBX_DEBUGGING_INFO.
12697
12698 2003-04-05 Nathan Sidwell <nathan@codesourcery.com>
12699
12700 * gcov.c (struct arc_info): Replace local_span with cycle.
12701 (struct block_info): Replace u.span with u.cycle. Add is_call_return.
12702 (solve_flow_graph): Set is_call_return.
12703 (add_line_counts): Adjust. In block mode, blocks attach to last line.
12704 (accumulate_line_counts): Find graph cycles, not spanning tree.
12705 (output_branch_count): Adjust.
12706 (output_lines): Adjust.
12707 * doc/gcov.texi: Update.
12708
12709 2003-04-06 Kazu Hirata <kazu@cs.umass.edu>
12710
12711 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
12712 the second alternative to "#".
12713
12714 2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
12715
12716 * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
12717 (single_zero_operand): Likewise.
12718
12719 2003-04-05 Daniel Berlin <dberlin@dberlin.org>
12720
12721 * Makefile.in (df.o): Depend on alloc-pool.h, not obstack.h.
12722 * df.c: Include alloc-pool.h, not obstack.h.
12723 (df_ref_obstack): Remove.
12724 (df_ref_pool, df_link_pool): Add pools.
12725 (df_alloc): Init the new pools.
12726 (df_free): And free them.
12727 (df_link_create): Use the pools.
12728 (df_ref_create): Ditto.
12729
12730 2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
12731
12732 * simplify-rtx.c: Fix formatting.
12733
12734 2003-04-05 Andrew Pinski <apinski@apple.com>
12735
12736 * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
12737 reg with reg1 == reg2 and offset1 = -8.
12738
12739 2003-04-05 David Edelsohn <edelsohn@gnu.org>
12740
12741 * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
12742 multiply costs. Correct Power4 divide costs.
12743 * config/rs6000/power4.md: Restore multiply and FP latency.
12744
12745 2003-04-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12746
12747 * alias.c (find_base_term): Export.
12748 * rtl.h (find_base_term): Declare.
12749 * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
12750 instead of flag_exceptions. Move test for parameter passing ...
12751 (store_killed_in_insn): ... here.
12752
12753 2003-04-05 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12754
12755 PR bootstrap/10267
12756 * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
12757 for configuring.
12758
12759 2003-04-04 Geoffrey Keating <geoffk@apple.com>
12760
12761 * dbxout.c (scope_labelno): Add GTY.
12762 (have_used_extensions): Add GTY.
12763 (source_label_number): Add GTY.
12764 (lastfile): Add GTY.
12765 (lastfile_is_base): New.
12766 (base_input_file): New.
12767 (dbxout_handle_pch): New.
12768 (dbx_debug_hooks): Add handle_pch.
12769 (xcoff_debug_hooks): Likewise.
12770 (dbxout_function_end): Remove scope_labelno.
12771 (dbxout_init): Set base_input_file.
12772 (dbxout_handle_pch): New.
12773 (dbxout_source_file): Honour lastfile_is_base.
12774 * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
12775 * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
12776 * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
12777 * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
12778 * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
12779 * debug.h (struct gcc_debug_hooks): Add handle_pch.
12780 * c-pch.c (pch_init): Don't call start_source_file, but do call
12781 handle_pch.
12782 (c_common_write_pch): Call handle_pch.
12783 (c_common_read_pch): Don't call start_source_file,
12784 or end_source_file.
12785
12786 Fri Apr 4 17:43:52 2003 Olivier Hainque <hainque@act-europe.fr>
12787
12788 * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
12789 use of default attributes to agree MEM_ALIGN macro.
12790
12791 Fri Apr 4 17:33:24 2003 Joel Brobecker <brobecker@gnat.com>
12792
12793 * dbxout.c (dbxout_type): When printing type index of range type
12794 whose bounds are printed in octal format, print type of parent type if
12795 it exists so enumerated type descriptions are not transformed
12796 into unsigned types.
12797
12798 2003-04-04 Kazu Hirata <kazu@cs.umass.edu>
12799
12800 * config/h8300/h8300-protos.h: Add a prototype for
12801 compute_a_shift_cc.
12802 * config/h8300/h8300.c (shift_one): Update the CC status.
12803 (shift_two): Likewise.
12804 (output_a_shift_cc): Set cc_inline and cc_special.
12805 (compute_a_shift_cc): New.
12806 * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
12807
12808 2003-04-04 Richard Henderson <rth@redhat.com>
12809
12810 * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
12811
12812 2003-04-04 Loren James Rittle <ljrittle@acm.org>
12813
12814 * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
12815 * fixinc/fixincl.x: Rebuilt.
12816 * fixinc/tests/base/stdio.h: Regenerated.
12817
12818 2003-04-04 Nathan Sidwell <nathan@codesourcery.com>
12819
12820 * gcov.c (accumulate_line_counts): Fix span tree merge bug.
12821
12822 Fri Apr 4 15:58:52 2003 J"orn Rennecke <joern.rennecke@superh.com>
12823
12824 * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
12825 (NORMAL_MODE).
12826 * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
12827
12828 2003-04-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12829
12830 * doc/contrib.texi (Contributors): Add entries for Wolfgang
12831 Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
12832 Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
12833 Danny Smith, and Ulrich Weigand.
12834 Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
12835 entry.
12836
12837 2003-04-04 Nick Clifton <nickc@redhat.com>
12838
12839 * config/sparc/sol2-bi.h: Revert previous delta.
12840 * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
12841
12842 2003-04-04 Nick Clifton <nickc@redhat.com>
12843
12844 * config/v850/v850.c (expand_prologue): Only use register save
12845 helper functions if long calls are not being used.
12846 Add a clobber of r11 id using long calls.
12847 (pattern_is_ok_for_prologue): Account for the extra clobber.
12848 (construct_save_jarl): Likewise.
12849 * config/v850/v850.md (prolog pattern): Do not use this pattern
12850 for v850e's.
12851
12852 2003-04-04 Andreas Schwab <schwab@suse.de>
12853
12854 * stor-layout.c (layout_decl): Avoid syntax error in last change
12855 when PCC_BITFIELD_TYPE_MATTERS is defined but not
12856 EMPTY_FIELD_BOUNDARY.
12857
12858 2003-04-03 Jason Merrill <jason@redhat.com>
12859
12860 PR c/10175
12861 * jump.c (never_reached_warning): Revert patch of 2002-11-02.
12862 Look backwards for a line note.
12863
12864 2003-04-03 Neil Booth <neil@daikokuya.co.uk>
12865
12866 * fix-header.c (read_scan_file): Defer switch processing.
12867
12868 2003-04-03 Matt Austern <austern@apple.com>
12869
12870 * cpppch.c (reset_ht): Remove.
12871 (cpp_read_state): Remove loop to reset hashtable identifiers.
12872 * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
12873 after pch file is written.
12874 * ggc.h (gt_pch_fixup_stringpool): Declare.
12875 * stringpool.c (ht_copy_and_clear): Define. Callback. Copy
12876 hashnode's value to another hashtable, then clear the original.
12877 (saved_ident_hash): Define.
12878 (gt_pch_save_stringpool): Create saved_ident_hash, use it to
12879 store definitions in ident_hash, and clear ident_hash.
12880 (gt_pch_fixup_stringpool): Define. Restore definitions from
12881 saved_ident_hash to ident_hash, then destroy saved_ident_hash.
12882
12883 Thu Apr 3 22:27:40 CEST 2003 Jan Hubicka <jh@suse.cz>
12884
12885 * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
12886
12887 2003-04-03 Eric Botcazou <ebotcazou@libertysurf.fr>
12888
12889 PR optimization/10157
12890 * gcse.c (can_copy_p): Rename it to can_copy.
12891 (can_copy_init_p): Remove.
12892 (compute_can_copy): Use can_copy instead of can_copy_p.
12893 (can_copy_p): New exported function. Call compute_can_copy.
12894 (hash_scan_set): Use it.
12895 (gcse_main): Don't call compute_can_copy.
12896 (bypass_jumps): Don't call compute_can_copy.
12897 * rtl.h (can_copy_p): Declare.
12898 * loop.c (scan_loop): Don't move the source and add a reg-to-reg
12899 copy if the mode doesn't support copy operations.
12900
12901 2003-04-03 Jason Merrill <jason@redhat.com>
12902
12903 * Makefile.in (unstrap): Also remove stage_last.
12904
12905 * dwarf2out.c (lookup_filename): Don't check for "<internal>".
12906 (dwarf2out_source_line): Don't do anything if line==0.
12907
12908 * stor-layout.c (do_type_align): New fn, split out from...
12909 (layout_decl): ...here. Do all alignment calculations for
12910 FIELD_DECLs here.
12911 (update_alignment_for_field): Not here.
12912 (start_record_layout, debug_rli): Remove unpadded_align.
12913 * tree.h (struct record_layout_info_s): Remove unpadded_align.
12914 * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
12915 or DECL_MODE on the CONST_DECLs.
12916 (finish_struct): Don't mess with DECL_ALIGN.
12917
12918 Thu Apr 3 18:57:19 CEST 2003 Jan Hubicka <jh@suse.cz>
12919
12920 * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
12921
12922 Thu Apr 3 17:08:09 2003 J"orn Rennecke <joern.rennecke@superh.com>
12923
12924 * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
12925 function is an interrupt handler.
12926
12927 * sh.c (sh_expand_epilogue): Avoid clash of temp register for
12928 restoring target registers with EH_RETURN_STACKADJ_RTX; use
12929 multiple registers in round-robin fashion.
12930
12931 2003-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12932
12933 * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
12934 * system.h (CHAR_BITFIELD): New.
12935
12936 2003-04-03 Kazu Hirata <kazu@cs.umass.edu>
12937
12938 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
12939 and LE.
12940 (another peephole2): Likewise.
12941
12942 2003-04-03 Nick Clifton <nickc@redhat.com>
12943
12944 * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
12945 (DEF_ARCH64_SPEC): Likewise.
12946
12947 Thu Apr 3 09:53:40 CEST 2003 Jan Hubicka <jh@suse.cz>
12948
12949 * i386.c (constant_address_p): Use legitimate_constant_p.
12950 (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
12951
12952 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
12953
12954 * config/h8300/h8300-protos.h: Add a prototype for
12955 gtle_operator.
12956 * config/h8300/h8300.c (gtle_operator): New.
12957 * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
12958 gtle_operator.
12959 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
12960 and LE.
12961
12962 2003-04-02 Richard Henderson <rth@redhat.com>
12963
12964 * libgcc-std.ver (_Unwind_GetCFA): New.
12965 * unwind-dw2.c (_Unwind_GetCFA): New.
12966 * unwind-libunwind.c (_Unwind_GetCFA): New.
12967 * unwind-sjlj.c (_Unwind_GetCFA): New.
12968 * unwind.h: Declare it.
12969
12970 Thu Apr 3 00:31:21 CEST 2003 Jan Hubicka <jh@suse.cz>
12971
12972 PR inline-asm/8088
12973 * i386.c (ix86_hard_regno_mode_ok): Return 0 for MMX/SSE registers
12974 when MMX/SSE is not available.
12975
12976 2003-04-02 Mike Stump <mrs@apple.com>
12977
12978 * doc/install.texi (Specific): Update pointers to apple.com.
12979
12980 Thu Apr 3 00:18:49 CEST 2003 Jan Hubicka <jh@suse.cz>
12981
12982 * i386.c (override_options): Disable red zone by default on i386.
12983 (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
12984 Do not test TARGET_64BIT together with TARGET_RED_ZONE
12985
12986 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
12987
12988 * config/h8300/h8300.md (a peephole2): Tighten the condition.
12989
12990 2003-04-02 Richard Henderson <rth@redhat.com>
12991
12992 * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
12993
12994 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
12995
12996 * config/h8300/h8300.md (a peephole2): New.
12997
12998 2003-04-02 Richard Henderson <rth@redhat.com>
12999
13000 * except.c (sjlj_find_directly_reachable_regions): Recognize when
13001 must-not-throw region has been deleted.
13002
13003 2003-04-02 Richard Henderson <rth@redhat.com>
13004
13005 * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
13006 optimization when flag_exceptions not enabled.
13007
13008 2003-04-02 Vladimir Makarov <vmakarov@redhat.com>
13009
13010 * config/rs6000/rs6000.c
13011 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
13012 macros.
13013 (rs6000_issue_rate): Add case for 8540.
13014 (rs6000_use_sched_lookahead): New function.
13015
13016 * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
13017 units into MU ones.
13018 (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
13019 reservation before retirement.
13020 (ppc8540_multiply, ppc8540_load, ppc8540_store,
13021 ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
13022 Remove additional cycle in the reservation before retirement.
13023 (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
13024 reservation of ppc8540_issue.
13025
13026 2003-04-02 Andreas Schwab <schwab@suse.de>
13027
13028 * real.c (decode_ieee_single): Fix decoding of SNaN bit.
13029
13030 2003-04-01 Richard Henderson <rth@redhat.com>
13031
13032 * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
13033 notes for nothrow calls if flag_forced_unwind_exceptions.
13034 (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
13035 (sjlj_find_directly_reachable_regions): Likewise.
13036 (reachable_handlers): Likewise.
13037 (can_throw_external): Likewise.
13038 (collect_one_action_chain): Record cleanups after catch-all and
13039 must-not-throw if flag_forced_unwind_exceptions.
13040 * flags.h (flag_forced_unwind_exceptions): Declare.
13041 * toplev.c (flag_forced_unwind_exceptions): New.
13042 (lang_independent_options): Add it.
13043 * doc/invoke.text: Add it.
13044
13045 2003-04-01 David Mosberger <davidm@hpl.hp.com>
13046
13047 * config/ia64/crti.asm: Clean up trailing whitespace.
13048 Remove trailing hashes (#) from identifiers.
13049
13050 * config/ia64/crtn.asm: Ditto.
13051
13052 * config/ia64/crtend.asm: Remove trailing hashes (#) from
13053 identifiers.
13054 (__do_global_ctors_aux): Align to 32-byte boundary. Add unwind
13055 directives. Drop explicit bundling---it just makes the code
13056 harder to read. Don't save/restore gp needlessly.
13057
13058 * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
13059 identifiers (they're only needed if the identifier would clash
13060 with a register name otherwise).
13061 (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
13062 directives. Drop explicit bundling---it just makes the code
13063 harder to read.
13064 (__do_jv_register_classes): Ditto.
13065 (.fini_array): Remove "progbits" (newer
13066 assemblers don't like wrong section-types).
13067 (.init_array): Ditto.
13068
13069 2003-04-01 Roger Sayle <roger@eyesopen.com>
13070
13071 PR fortran/9974
13072 * gcse.c (reg_killed_on_edge): New function to test whether the
13073 given reg is overwritten by any instruction queued on an edge.
13074 (bypass_block): Ignore substitutions killed on incoming edges.
13075 Don't bypass outgoing edges that have queued instructions.
13076
13077 2003-04-01 Alexandre Oliva <aoliva@redhat.com>
13078
13079 * real.h (EXP_BITS): Make room for...
13080 (struct real_value): ... added canonical bit.
13081 (struct real_format): Added pnan.
13082 (mips_single_format, mips_double_format, mips_extended_format,
13083 mips_quad_format): New.
13084 * real.c: Copy p to pnan in all formats.
13085 (get_canonical_qnan, get_canonical_snan): Set canonical bit.
13086 (real_nan): Use pnan to compute significand's shift.
13087 (real_identical): Disregard significand in canonical
13088 NaNs.
13089 (real_hash): Likewise. Take signalling into account.
13090 (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
13091 Disregard significand bits in canonical NaNs. Set all bits of
13092 canonical NaN if !qnan_msb_set.
13093 (encode_ibm_extended, decode_ibm_extended): Likewise. Use
13094 qnan_msb_set to tell the base double format.
13095 (ibm_extended_format): Use 53 as pnan.
13096 (mips_single_format, mips_double_format, mips_extended_format,
13097 mips_quad_format): Copied from the corresponding ieee/ibm
13098 formats, with qnan_msb_set false.
13099 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
13100 * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
13101 * config/mips/mips.c (override_options): Use mips_single_format
13102 and mips_double_format. Default TFmode to mips_quad_format.
13103 * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
13104 * config/mips/t-irix6: Likewise.
13105 * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
13106 * config/fp-bit.c (pack_d, unpack_d): Obey it.
13107
13108 2003-04-01 Geoffrey Keating <geoffk@apple.com>
13109
13110 * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
13111 (live_image_destructor): Reset image to initial state.
13112 (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
13113
13114 2003-04-01 Eric Botcazou <ebotcazou@libertysurf.fr>
13115
13116 * config/sparc/sparc.c (input_operand): Accept bare
13117 CONSTANT_P_RTX operands.
13118
13119 2003-04-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13120
13121 * gcse.c (struct ls_expr): Added pattern_regs field.
13122 (ldst_entry): Initialize it.
13123 (extract_mentioned_regs, extract_mentioned_regs_helper): New.
13124 (store_ops_ok): Use regs precomputed by them.
13125 (find_loads, store_killed_in_insn, load_kills_store): Change return
13126 type to bool.
13127 (store_killed_before, store_killed_after): Take position of register
13128 set in account.
13129 (reg_set_info): Store position of the setter.
13130 (gcse_main): Enable store motion.
13131 (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
13132 (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
13133 sharing.
13134 (simple_mem): Enable store motion of non-symbol mems.
13135 (regvec): Type changed.
13136 (LAST_AVAIL_CHECK_FAILURE): New.
13137 (compute_store_table_current_insn): New.
13138 (build_store_vectors): Computation of availability and anticipatability
13139 moved ...
13140 (compute_store_table, find_moveable_store): ... here.
13141 (delete_store): Remove senseless comment.
13142 (store_motion): Reorganize.
13143
13144 2003-04-01 Kevin Buettner <kevinb@redhat.com>
13145
13146 * config/mips/mips.c (override_options): Provide mappings for
13147 HI_REGNUM and LO_REGNUM.
13148 * config/mips/mips.h (MD_DBX_FIRST): Define.
13149
13150 2003-04-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13151
13152 * combine.c (merge_outer_ops): Fix typo.
13153
13154 * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
13155
13156 2003-04-01 David Edelsohn <edelsohn@gnu.org>
13157
13158 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
13159 power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
13160 imul_compare. Add lmul_compare.
13161 * config/rs6000/power4.md: Bump some latencies. Model extra cycle
13162 in second pair of dispatch slots. Model stores more accurately.
13163 Tweak multiply model. Add bypasses for CR instructions dependent
13164 on complicated compares.
13165 * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
13166 (muldi3): Add lmul_compare patterns.
13167 * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
13168 and FPSTORE_UX to split instructions and add COMPARE,
13169 DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
13170 (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
13171 (rs6000_rtx_costs): Separate POWER4 multiply case.
13172
13173 2003-04-01 Ulrich Weigand <uweigand@de.ibm.com>
13174
13175 * config/s390/s390.c (s390_fixup_clobbered_return_reg):
13176 Do nothing if __builtin_return_address was not used.
13177
13178 Tue Apr 1 18:18:23 CEST 2003 Jan Hubicka <jh@suse.cz>
13179
13180 * i386.md (test patterns): Allow memory operand in operand1.
13181
13182 2003-02-31 Aldy Hernandez <aldyh@redhat.com>
13183
13184 * testsuite/gcc.c-torture/execute/simd-3.c: New.
13185
13186 * expr.c (expand_expr): Handle VECTOR_CST.
13187 (const_vector_from_tree): New.
13188
13189 * varasm.c (output_constant): Handle VECTOR_CST.
13190
13191 * c-typeck.c (digest_init): Build a vector constant from a
13192 VECTOR_TYPE.
13193
13194 * config/rs6000/rs6000.c: Remove prototype for
13195 easy_vector_constant.
13196 (easy_vector_constant): Add mode parameter. Rewrite to handle
13197 more easy constants.
13198 (rs6000_emit_move): Pass mode to easy_vector_constant.
13199 Call emit_easy_vector_insn for SPE V2SI vector constant moves.
13200 (emit_easy_vector_insn): New.
13201 (easy_vector_same): New.
13202 (EASY_VECTOR_15): New macro.
13203 (EASY_VECTOR_15_ADD_SELF): New macro.
13204 (bdesc_2arg): Rename to xorv2si3.
13205 (easy_vector_constant_add_self): New.
13206 (input_operand): Allow vector constants.
13207
13208 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
13209 easy_vector_constant, easy_vector_constant_add_self.
13210 (EXTRA_CONSTRAINT): Add 'W'.
13211
13212 * config/rs6000/rs6000-protos.h: Add prototype for
13213 easy_vector_constant, emit_easy_vector_insn.
13214
13215 * config/rs6000/altivec.md (xorv8hi3): New.
13216 (xorv16qi3): New.
13217 Remove all _const0 patterns.
13218 (movv4si_internal): Rewrite to use code. Add vector constant to
13219 vector alternative. Add splitter.
13220 (movv8hi_internal): Same.
13221 (movv16qi_internal): Same.
13222 (movv4sf_internal): Same.
13223 Change the unspecs for vspltis* to use constants.
13224
13225 * config/rs6000/spe.md ("xorv4hi3"): New.
13226 ("spe_evxor"): Rename to xorv2si3.
13227 ("xorv1di3"): New.
13228 Remove all _const0 patterns.
13229 (movv2si_internal): Rewrite to use code. Add vector constant to
13230 alternatives. Add splitter.
13231 (movv4hi_internal): Add vector constant to alternatives.
13232 (movv1di_internal): Same.
13233 (movv2sf_internal): Same.
13234
13235 2003-03-31 Mark Mitchell <mark@codesourcery.com>
13236
13237 PR c/9936
13238 * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
13239 variably-sized arrays in parameters.
13240 (set_save_expr_context): New function.
13241 (c_expand_body): Use it, via walk_tree.
13242
13243 2003-03-31 Eric Christopher <echristo@redhat.com>
13244
13245 * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
13246 (combinable_i3pat): Remove call to expand_field_assignment and
13247 #if 0'd code.
13248
13249 2003-03-31 Mark Mitchell <mark@codesourcery.com>
13250
13251 PR c++/10278
13252 * c-common.c (finish_label_address_expr): Handle the
13253 error_mark_node.
13254
13255 2003-03-31 Richard Henderson <rth@redhat.com>
13256
13257 * real.c (real_identical): Reorg so as to not compare
13258 signalling for normals.
13259
13260 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
13261
13262 * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
13263
13264 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
13265
13266 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
13267 notes as they are boggus.
13268 (m68hc11_gen_movqi): Likewise.
13269
13270 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
13271
13272 * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
13273 save the soft registers after the frame pointer so that gdb can unwind
13274 the frame more easily.
13275 (expand_epilogue): Likewise in opposite order; allow to use X register
13276 as scratch if the return value is by reference.
13277
13278 2003-03-31 Jason Merrill <jason@redhat.com>
13279
13280 PR java/10145
13281 * stor-layout.c (update_alignment_for_field): Respect
13282 DECL_USER_ALIGN for zero-length bitfields, too.
13283 * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
13284 fields.
13285
13286 2003-03-31 Matt Austern <austern@apple.com>
13287
13288 * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
13289 (count_defs): Keep track of number of defs as well as total size.
13290 (write_defs): Put every definition in cpp_savedstate's defs array.
13291 (comp_hashnode): Define. Comparison function for qsort.
13292 (cpp_write_pch_deps): Sort definitions before writing them.
13293 (struct ht_node_list): Define. Like cpp_savedstate but simpler.
13294 (collect_ht_nodes): Define.
13295 (cpp_valid_state): When verifying that undefined identifiers in
13296 the pch file are still undefined, read a sorted list of undefined
13297 identifiers, collect all defined identifiers into a sorted list,
13298 and walk through both lists to make sure there's no match.
13299
13300 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
13301
13302 * config/h8300/h8300.md (a peephole2): New.
13303
13304 2003-03-31 Michael Matz <matz@suse.de>
13305
13306 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
13307
13308 2003-03-31 Segher Boessenkool <segher@koffie.nl>
13309
13310 PR target/10177
13311 * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
13312 * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
13313 all call-clobbered registers as used.
13314
13315 2003-03-31 Michael Matz <matz@suse.de>
13316
13317 * cppexp.c (cpp_classify_number): Accept '.' after "0x".
13318 * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
13319
13320 2003-03-31 Nathan Sidwell <nathan@codesourcery.com>
13321
13322 * gcov.c: Add -a & -u options.
13323 (struct arc_info): Add local_span, is_call_non_return,
13324 is_nonlocal_return, is_unconditional flags, remove is_call flag.
13325 (struct block_info): Add flags, is_call_site, is_nonlocal_return
13326 members. Make encodings a union with span member.
13327 (struct function_info): Add blocks_executed, line, src, line_next
13328 members.
13329 (struct coverage_info): Make branches a union with blocks member.
13330 (struct source_info): Add functions member.
13331 (object_summary, program_count): New global variables.
13332 (flag_all_blocks, flag_unconditional): New flags.
13333 (find_source, output_branch_count): New functions.
13334 (print_usage): Adjust.
13335 (options): Adjust.
13336 (process_args): Adjust.
13337 (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
13338 <GCOV_TAG_BLOCKS>: Read flags.
13339 <GCOV_TAG_LINES>: Adjust.
13340 (read_count_file): Process SUMMARY tags.
13341 (solve_flow_graph): Set is_unconditional and clear is_call_site
13342 appropriately.
13343 (add_branch_counts): Adjust. Don't count unconditional branches.
13344 (add_line_counts): Deal with all-blocks mode, accumulate block
13345 coverage.
13346 (accumulate_line_counts): Adjust, generate local spanning tree for
13347 all-blocks mode.
13348 (output_lines): Adjust.
13349 * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
13350 * doc/gcov.texi: Document.
13351
13352 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
13353
13354 * config/h8300/h8300.md: Organize peephole2's that transform
13355 (compare (reg:HI) (const_int)).
13356
13357 2003-03-31 Roger Sayle <roger@eyesopen.com>
13358
13359 * emit-rtl.c (dconstm2, dconsthalf): New real constants.
13360 (init_emit_once): Initialize dconstm2 and dconsthalf here.
13361 * real.h (dconstm2, dconsthalf): Add prototypes here.
13362 * real.c (real_sqrt): Use dconsthalf rather than local copy.
13363 * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
13364 exp(x/2.0) remember to fold the division if possible.
13365 Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
13366 pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
13367 1.0/(x*x) and pow(x,0.5) as sqrt(x).
13368
13369 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
13370
13371 * config/h8300/h8300.md (a new peephole2): New.
13372
13373 2003-03-31 Richard Sandiford <rsandifo@redhat.com>
13374
13375 * gcse.c (simple_mem): Return false for floating-point accesses
13376 if flag_float_store is true.
13377
13378 2003-03-30 Roger Sayle <roger@eyesopen.com>
13379
13380 * gcse.c (gcse_constant_p): New function to identify constants
13381 suitable for constant propagation, including COMPARE with two
13382 integer constant arguments.
13383 (hash_scan_set): Use gcse_constant_p.
13384 (find_avail_set): Likewise.
13385 (cprop_insn): Likewise.
13386 (do_local_cprop): Likewise.
13387 (find_implicit_sets): Likewise.
13388 (find_bypass_set): Likewise.
13389
13390 2003-03-30 Matt Kraai <kraai@alumni.cmu.edu>
13391
13392 * except.h: Remove definition of varray_type.
13393
13394 2003-03-30 Richard Henderson <rth@redhat.com>
13395
13396 PR opt/10011, opt/10252:
13397 * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
13398 before post-gcse cse pass.
13399
13400 2003-03-30 Roger Sayle <roger@eyesopen.com>
13401
13402 * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
13403
13404 2003-03-30 DJ Delorie <dj@redhat.com>
13405
13406 * profile.c (instrument_edges): Make sure any newly created
13407 jump insns have correct jump label info.
13408
13409 2003-03-30 Richard Henderson <rth@redhat.com>
13410
13411 * cfgbuild.c (make_edges): Use tablejump_p.
13412 * cfgcleanup.c (label_is_jump_target_p): Likewise.
13413 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
13414 * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
13415 (try_redirect_by_replacing_jump): Likewise.
13416 (redirect_edge_and_branch): Likewise.
13417 * cse.c (fold_rtx): Likewise.
13418 * jump.c (delete_related_insns): Likewise.
13419 * rtlanal.c (get_jump_table_offset): Likewise.
13420 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
13421
13422 2003-03-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
13423
13424 * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
13425 (STRICT2_WARN): Likewise.
13426
13427 2003-03-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13428
13429 PR other/6955
13430 * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
13431 * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
13432
13433 2003-03-30 Richard Henderson <rth@redhat.com>
13434
13435 PR c/10083
13436 * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
13437 don't zero_extend const inputs.
13438
13439 2003-03-30 Kazu Hirata <kazu@cs.umass.edu>
13440
13441 * reload1.c (reload_cse_move2add): Fix a comment typo.
13442
13443 2003-03-30 Kazu Hirata <kazu@cs.umass.edu>
13444
13445 * config/h8300/h8300.md (a peephole2): Remove useless code.
13446
13447 2003-03-29 Kazu Hirata <kazu@cs.umass.edu>
13448
13449 * config/h8300/h8300.md (*iorsi3_and_ashift): New.
13450 (*iorsi3_and_lshiftrt): Likewise.
13451 (*iorsi3_zero_extract): Likewise.
13452
13453 2003-03-29 Kazu Hirata <kazu@cs.umass.edu>
13454
13455 * config/h8300/h8300.md (*insv_si_8_8): New.
13456 (*insv_si_8_8_lshiftrt_8): Likewise.
13457 (a peephole2): Likewise.
13458
13459 2003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13460
13461 * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
13462 Uniformly use bugfix instead of bug fix.
13463
13464 2003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13465
13466 PR doc/895
13467 * ONEWS: Remove those items that already appear in the EGCS
13468 release notes on our web pages.
13469
13470 2003-03-29 Alan Modra <amodra@bigpond.net.au>
13471
13472 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
13473 TARGET_HARD_FLOAT. Reformat.
13474 (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
13475
13476 2003-03-28 Albert Chin-A-Young <china@thewrittenword.com>
13477
13478 * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
13479 work on Solaris 2.5.1.
13480
13481 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>
13482
13483 * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
13484 section of h8300.md
13485 (*addsi3_and_nor_r_1): Likewise.
13486
13487 2003-03-29 Ulrich Weigand <uweigand@de.ibm.com>
13488
13489 * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
13490 set up before any trapping memory access if flag_non_call_exceptions.
13491
13492 2003-03-29 Alan Modra <amodra@bigpond.net.au>
13493
13494 * reload1.c (reload_as_needed): Allow a USE in asm reloads.
13495
13496 * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
13497
13498 2003-03-28 Nathanael Nerode <neroden@gcc.gnu.org>
13499
13500 * configure.in: Clarify comments.
13501 * configure: Regenerate.
13502
13503 2003-03-28 Ulrich Weigand <uweigand@de.ibm.com>
13504
13505 * config/s390/s390.md ("literal_pool_31"): Output pool anchor
13506 label even if pool empty when generating PIC.
13507 ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
13508
13509 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>,
13510 Dhananjay Deshpande <dhananjayd@kpit.com>
13511
13512 PR target/10205
13513 * config/h8300/h8300.c (h8300_initial_elimination_offset):
13514 Correct the offset computation when TARGET_NORMAL.
13515
13516 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
13517
13518 PR target/10067
13519 * config/sparc/sparc.md (jump pattern): Correct order
13520 when issuing the annuling marker.
13521
13522 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
13523
13524 PR c/8281
13525 * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
13526 (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
13527
13528 2003-03-28 Alan Modra <amodra@bigpond.net.au>
13529
13530 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
13531 globalize_label.
13532 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13533 * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13534 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13535 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13536 * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13537 * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13538 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
13539
13540 2003-03-28 Alan Modra <amodra@bigpond.net.au>
13541
13542 * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
13543 (replace_loop_mems): Add "written" param. Remove invalid REG_EQUAL
13544 notes after hoisting.
13545 (load_mems): Adjust replace_loop_mems call.
13546
13547 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
13548 Richard Henderson <rth@redhat.com>
13549
13550 PR target/10114 and PR target/10084
13551 * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
13552
13553 2003-03-27 Richard Henderson <rth@redhat.com>
13554
13555 * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
13556
13557 2003-03-27 Roger Sayle <roger@eyesopen.com>
13558
13559 * fold-const.c (fold_inf_compare): New function to simplify FP
13560 comparisons against +Infinity or -Infinity.
13561 (fold): Optimize floating point comparisons against Infs and NaNs.
13562
13563 2003-03-27 Janis Johnson <janis187@us.ibm.com>
13564
13565 * libgcov.c: Provide only dummy functions if libc is not available.
13566
13567 2003-03-27 Richard Henderson <rth@redhat.com>
13568
13569 * real.h (struct real_value): Add signalling.
13570 (EXP_BITS): Decrement.
13571 * real.c (get_canonical_qnan): Don't set MSB-1.
13572 (get_canonical_snan): Likewise. Set signalling.
13573 (real_identical): Compare signalling.
13574 (round_for_format): Remove force-one-bit on code.
13575 (real_nan): Likewise. Set signalling.
13576 (encode_ieee_single): Add force-one-bit code; honor signalling.
13577 (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
13578 (decode_ieee_single): Set signalling.
13579 (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
13580
13581 2003-03-27 Olivier Hainque <hainque@act-europe.fr>
13582
13583 PR ada/9953
13584 * ada/Makefile.in (gnatlib configuration for HPUX): Split
13585 the general section for HPUX into specific sections for
13586 HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
13587 11 case.
13588
13589 2003-03-27 Glen Nakamura <glen@imodulo.com>
13590
13591 PR opt/10087
13592 * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
13593 while incrementing giv.
13594 (record_biv): Check for duplicate biv locations and
13595 set (struct induction *) v->same if found.
13596
13597 2003-03-27 David Mosberger <davidm@hpl.hp.com>
13598
13599 * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
13600 v0.9 API change: replace read of UNW_REG_HANDLER with
13601 unw_get_proc_info().
13602 (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
13603 with unw_get_proc_info().
13604 (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
13605 unw_get_proc_info().
13606
13607 2003-03-27 Vladimir Makarov <vmakarov@redhat.com>
13608
13609 * config/rs6000/8540.md: Use presence_set instead of absence_set.
13610
13611 2003-03-26 Richard Henderson <rth@redhat.com>
13612
13613 * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
13614
13615 2003-03-26 Roger Sayle <roger@eyesopen.com>
13616
13617 PR bootstrap/10051, PR bootstrap/10169.
13618 * mips-tfile.c (init_file): Don't provide a static initializer.
13619 (initialize_init_file): Initialize the contents of init_file.
13620 (add_file): Call initialize_init_file if not already initialized.
13621
13622 2003-03-26 Ulrich Weigand <uweigand@de.ibm.com>
13623
13624 * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
13625 registers used for global asm variables.
13626 (s390_frame_info, s390_arg_frame_offset): Likewise.
13627 (s390_emit_prologue, s390_emit_epilogue): Likewise.
13628
13629 2003-03-26 Vladimir Makarov <vmakarov@redhat.com>
13630
13631 * config/rs6000/8540.md: New file.
13632
13633 * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
13634 power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
13635 reservations for imul.
13636
13637 * config/rs6000/rs6000.md: Include 8540.md. Change
13638 delayed_compare onto mult_compare for insns generating
13639 multiplication.
13640 (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
13641 New type attribute values.
13642
13643 * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
13644 fpsimple instead of fp.
13645 (*divsf3_gpr): Use type vecfdiv instead of fp.
13646 (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
13647 instead of vecfloat.
13648 (spe_evfsdive): Use type vecfdiv instead of vecfloat.
13649 (spe_brinc): Use type brinc instead of veccomplex.
13650 (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
13651 veccomplex.
13652 (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
13653 (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
13654 *movv2sf_internal): Define type attribute values for all
13655 alternatives.
13656 (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
13657 of fpcompare.
13658 (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
13659 instead of fpcompare.
13660
13661 2003-03-26 David Edelsohn <edelsohn@gnu.org>
13662
13663 * config/rs6000/power4.md: Allow delay between dispatch and
13664 function units for simple instructions. Correct store units.
13665 Allow branch to occupy as many dispatch slots as necessary.
13666
13667 2003-03-26 Jakub Jelinek <jakub@redhat.com>
13668
13669 * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
13670 (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
13671 zero extend old to it.
13672 * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
13673 operand.
13674
13675 2003-03-26 Eric Botcazou <ebotcazou@libertysurf.fr>
13676
13677 PR target/7784
13678 * reload.c (find_reloads_address): Handle
13679 (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
13680 all base registers.
13681
13682 2003-03-25 Marcelo Abreu <mmabreu@inf.ufrgs.br>
13683
13684 PR other/10203
13685 * version.c: Reference the GCC web site in the URL.
13686
13687 2003-03-26 Alan Modra <amodra@bigpond.net.au>
13688
13689 * c-incpath.c (add_standard_paths): Add both "translated" and
13690 non-translated header paths.
13691
13692 2003-03-25 Loren James Rittle <ljrittle@acm.org>
13693
13694 * doc/install.texi (*-*-freebsd*): Update with known status.
13695
13696 2003-03-21 Jason Merrill <jason@redhat.com>
13697
13698 PR optimization/10171
13699 * unroll.c (unroll_loop): Don't delete the jump at the end unless
13700 we also delete a jump at the beginning.
13701
13702 2003-03-25 Stephane Carrez <stcarrez@nerim.fr>
13703
13704 * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
13705 contributor.
13706
13707 Tue Mar 25 20:35:51 CET 2003 Jan Hubicka <jh@suse.cz>
13708
13709 * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
13710 constants are not expensive.
13711
13712 Mon Mar 24 20:03:03 CET 2003 Jan Hubicka <jh@suse.cz>
13713
13714 PR opt/10056
13715 * cfglayout.c (fixup_reorder_chain): Fix dealing with the conditional
13716 jump jumping to the next instruction.
13717 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13718
13719 2003-03-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13720
13721 * doc/passes.texi (Passes): Properly document that we do not
13722 perform jump2 any longer; remove command-line option -dJ.
13723
13724 2003-03-25 Eric Botcazou <ebotcazou@libertysurf.fr>
13725
13726 PR optimization/8746
13727 * config/i386/i386.md (and promoting splitters): Disable HImode to
13728 SImode promoting when the sign bit matters and is not preserved, or
13729 when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
13730 for size.
13731
13732 2003-03-24 Kazu Hirata <kazu@cs.umass.edu>
13733
13734 * config/h8300/h8300.md (a peephole2): Extend to support loads
13735 in QImode and HImode.
13736
13737 2003-03-24 Stephane Carrez <stcarrez@nerim.fr>
13738
13739 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
13740 _return_far
13741 (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
13742 (MULTILIB_EXCEPTIONS): Likewise.
13743 * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
13744 by calling some board support routine.
13745 ("call_value"): Likewise.
13746 ("*return_void"): Likewise for return.
13747 ("*return_16bit"): Likewise.
13748 ("*return_32bit"): Likewise.
13749 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
13750 for 68HC11 too.
13751 (DWARF2_ADDR_SIZE): Use 4 so that addresses can
13752 * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
13753 -mlong-calls for 68HC11.
13754 * config/m68hc11/larith.asm (declare_near): New macro.
13755 (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
13756 (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
13757 (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
13758 (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
13759 (__mulhi32): Likewise.
13760 (ret): Update macro for 68HC11.
13761 (__far_trampoline): Implement for 68HC11.
13762 (__call_a16, __call_a32, __return_void, __return_16): New support
13763 routines for 68HC11 memory bank switching calling support.
13764 (__return_32): Likewise.
13765
13766 2003-03-24 Neil Booth <neil@daikokuya.co.uk>
13767
13768 * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
13769
13770 2003-03-24 Janis Johnson <janis187@us.ibm.com>
13771
13772 * doc/install.texi (Testing): Mention test result links from build
13773 status pages.
13774
13775 2003-03-24 Mark Mitchell <mark@codesourcery.com>
13776
13777 * function.c (put_var_into_stack): Change bool parameter to int.
13778 (gen_mem_addressof): Likewise.
13779 * rtl.h (gen_mem_addressof): Likewise.
13780 * tree.h (put_var_into_stack): Likewise.
13781 * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
13782 gen_mem_addressof or put_var_into_stack.
13783 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
13784 * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
13785
13786 2003-03-24 Kazu Hirata <kazu@cs.umass.edu>
13787
13788 * config/h8300/h8300.md (a peephole2): New.
13789
13790 2003-03-24 Jakub Jelinek <jakub@redhat.com>
13791
13792 * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
13793
13794 2003-03-24 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13795
13796 * doc/contrib.texi (Contributors): Update Janis Johnson.
13797
13798 2003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
13799
13800 PR target/10072
13801 * combine.c (simplify_if_then_else): Check that the mode
13802 has MODE_INT class before applying the (OP Z (mult COND C2))
13803 transformation.
13804
13805 2003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
13806
13807 PR optimization/9414
13808 * config/sparc/sparc.md (widening peepholes): Use
13809 widen_memory_access instead of change_address.
13810
13811 2003-03-23 Mark Mitchell <mark@codesourcery.com>
13812
13813 PR c++/7086
13814 * c-typeck.c (c_mark_addressable): Adjust calls to
13815 put_var_into_stack.
13816 * expr.c (expand_expr): Likewise.
13817 * function.c (put_var_into_stack): Add rescan parameter. Do not
13818 call fixup_var_refs when rescan is false.
13819 (gen_mem_addressof): Likewise.
13820 (assign_parms): Adjust calls to put_var_into_stack.
13821 (setjmp_protect): Likewise.
13822 (setjmp_protect_args): Likewise.
13823 * rtl.h (gen_mem_addressof): Change prototype.
13824 * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
13825 * tree.h (put_var_into_stack): Change prototype.
13826
13827 2003-03-23 Arpad Beszedes <beszedes@cc.u-szeged.hu>
13828
13829 PR middle-end/9967
13830 * builtins.c (expand_builtin_fputs): When optimizing for size,
13831 don't transform fputs into fwrite.
13832
13833 2003-03-23 Glen Nakamura <glen@imodulo.com>
13834
13835 PR c/8224
13836 * fold-const.c (extract_muldiv_1): Don't pass through type conversions
13837 when signedness changes for division or modulus.
13838
13839 2003-03-24 Alan Modra <amodra@bigpond.net.au>
13840
13841 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
13842 globalize_label.
13843
13844 2003-03-23 Roger Sayle <roger@eyesopen.com>
13845
13846 PR c/10178
13847 * stmt.c (expand_end_case_type): Check for overflow in range when
13848 determining whether to use a bit-test implementation.
13849
13850 2003-03-23 Richard Henderson <rth@redhat.com>
13851
13852 * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
13853 before flow2.
13854 * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
13855
13856 2003-03-23 Richard Henderson <rth@redhat.com>
13857
13858 PR opt/10116
13859 * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
13860 from then_bb or else_bb after flow2.
13861
13862 2003-03-23 Zack Weinberg <zack@codesourcery.com>
13863
13864 * configure.in: Check whether it is necessary to link against
13865 libm to use ldexp.
13866 * configure: Regenerate.
13867 * Makefile.in: Add LDEXP_LIB substitution variable.
13868
13869 2003-03-23 Kazu Hirata <kazu@cs.umass.edu>
13870
13871 * config/h8300/h8300.md: Fix comment typos.
13872
13873 2003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13874
13875 * pa.c (output_cbranch): Fix typo in comment.
13876
13877 2003-03-22 Richard Henderson <rth@redhat.com>
13878
13879 * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
13880 after reload.
13881
13882 2003-03-22 DJ Delorie <dj at redhat dot com>,
13883 Bruce Korb <bkorb at gnu dot org>
13884
13885 * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
13886 buggy Solaris 2.6 mutex/cond initializers.
13887 (solaris_mutex_init): Rename to solaris_mutex_init_2.
13888 * fixinc/fixincl.x: Regenerate.
13889 * fixinc/tests/base/pthread.h: Update.
13890 * fixinc/fixincl.c(initialize): be explicit about the default case
13891 and indicate verbose level when being very, very verbose.
13892 * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
13893
13894 2003-03-22 Andreas Jaeger <aj@suse.de>
13895
13896 * config/i386/i386.c (ix86_init_machine_status): Return value.
13897
13898 2003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13899
13900 * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
13901 conditional branch to the following instruction. Use next_real_insn
13902 instead of next_active_insn.
13903 (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
13904 instead of next_active_insn.
13905
13906 2003-03-22 Ulrich Weigand <uweigand@de.ibm.com>
13907
13908 * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
13909 instead of 'm' constraint in forced-split alternatives.
13910 ("*adddi3_31", "*subdi3_31"): Likewise. Also, pass 0 instead of 1 as
13911 VALIDATE_ADDRESS parameter to operand_subword.
13912
13913 2003-03-22 Kazu Hirata <kazu@cs.umass.edu>
13914
13915 * config/h8300/h8300.c (notice_update_cc): Correctly handle
13916 the case where the set destination is STRICT_LOW_PART.
13917
13918 2003-03-22 Svein E. Seldal <Svein.Seldal@solidas.com>
13919
13920 * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
13921 c30 instead of a c40 processor.
13922
13923 2003-03-22 Alan Modra <amodra@bigpond.net.au>
13924
13925 * combine.c (simplify_comparison <AND>): Use gen_int_mode. Tidy.
13926
13927 2003-03-21 Zack Weinberg <zack@codesourcery.com>
13928
13929 * c-common.c: Include intl.h.
13930 (shadow_warning): Rewrite to allow better diagnostic translations.
13931 * c-common.h: Update prototype of shadow_warning. Declare sw_kind enum.
13932 * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
13933 use it throughout.
13934 * Makefile.in (c-common.o): Add intl.h.
13935
13936 2003-03-21 Nathanael Nerode <neroden@gcc.gnu.org>
13937
13938 * config.gcc: Remove 'float_format'.
13939
13940 * fixproto: Define NULL and size_t in generated stdlib.h and
13941 unistd.h. Kill unused required_stdlib_h, required_unistd_h.
13942 Rearrange file generation loop for readability. Generate time.h,
13943 string.h if missing.
13944 * tsystem.h: Include <string.h>, <time.h> unconditionally.
13945 * config.gcc: Blow away POSIX defines.
13946
13947 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
13948
13949 * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
13950
13951 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
13952
13953 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
13954 writing .interrupt command.
13955 * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
13956 if it's a far or near function.
13957 ("call_value"): Likewise.
13958 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
13959 near attributes.
13960 (m68hc11_handle_fntype_attribute): Accept attributes on methods.
13961 (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
13962 (m68hc11_initial_elimination_offset): Set current_function_far
13963 according to attributes.
13964 (expand_prologue): Likewise.
13965 (trap_handler_symbol): New global to keep track of trap handlers.
13966 (m68hc11_encode_section_info): Mark symbol as far if needed; set
13967 trap symbol.
13968 (m68hc11_is_far_symbol): New function.
13969 (m68hc11_is_trap_symbol): New function.
13970 * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
13971 (m68hc11_is_trap_symbol): Declare.
13972
13973 2003-03-21 Jan Hubicka <jh@suse.cz>
13974
13975 * i386.c (ix86_compute_frame_layout): Recompute fast prologues
13976 only when amount of saved regs changed.
13977 (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
13978 * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
13979
13980 2003-03-21 Jan Hubicka <jh@suse.cz>
13981
13982 PR inline-asm/7916
13983 * function.c (instantiate_virtual_regs_lossage): New function.
13984 (instantiate_virtual_regs_1): Use it.
13985 (instantiate_virtual_regs): Do not continue in substition when insn has
13986 been deleted.
13987
13988 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
13989
13990 * combine.c (make_field_assignment): Fix a warning.
13991
13992 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
13993
13994 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
13995
13996 2003-03-21 Dale Johannesen <dalej@apple.com>
13997
13998 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Increase
13999 priority for R2 on Darwin.
14000 (HARD_REGNO_MODE_OK): Don't accept R31 for DFmode.
14001
14002 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
14003
14004 * combine.c (make_field_assignment): Remove unnecessary AND
14005 when storing into zero_extract.
14006
14007 2003-03-21 Zack Weinberg <zack@codesourcery.com>
14008
14009 * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
14010 * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
14011 * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
14012 in comment.
14013
14014 2003-03-21 DJ Delorie <dj@redhat.com>
14015
14016 * optabs.c (init_integral_libfuncs): Make sure we init at least up
14017 to "long long" size words.
14018
14019 2003-03-21 Ulrich Weigand <uweigand@de.ibm.com>
14020
14021 * config/s390/s390.h: Do not include fixdfdi.h on s390x.
14022 (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
14023 (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
14024
14025 2003-03-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
14026
14027 PR doc-bug/9813
14028 * doc/extend.texi: Move misplaced paragraph about underscores in
14029 variables in macros.
14030
14031 2003-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
14032 Richard Henderson <rth@redhat.com>
14033
14034 PR optimization/8366
14035 * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
14036 (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
14037 PIC+SYMBOLIC_CONST in other modes than Pmode.
14038 (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
14039 the form PIC+SYMBOLIC_CONST as mode dependent.
14040
14041 2003-03-21 DJ Delorie <dj@redhat.com>
14042
14043 * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
14044 sure we always emit at least one insn.
14045
14046 2003-03-21 Christopher Faylor <cgf@redhat.com>
14047
14048 * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
14049 stub t-cygming. Use common target header cygming.h. Add extra
14050 c_target_obj and cxx_target_obj file. Default cygwin to posix
14051 threading. Enforce i386 as float format.
14052 (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
14053 Remove cygwin.h as target header. Use common target header
14054 cygming.h Enforce i386 as float format. Correct typo.
14055 * config/i386/cygming.h: New file, containing definitions
14056 common to mingw32 and cygwin.
14057 * config/i386/cygwin.h: Remove definitions common to cygwin and
14058 mingw. Simplify special spec logic. Define "wrappers" around
14059 certain include path defines to accommodate -mno-cygwin.
14060 Remove some #if 0'ed code.
14061 (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
14062 (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
14063 (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
14064 * config/i386/mingw32.h: Remove definitions common to cygwin and
14065 mingw.
14066 (EXTRA_OS_CPP_BUILTINS): Adjust.
14067 (TARGET_VERSION): Define.
14068 * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
14069 mingw32.h definitions.
14070 (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
14071 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
14072 Add compilation rules for cygwin1.o cygwin2.o.
14073 * config/i386/cygwin1.c: New file.
14074 * config/i386/cygwin2.c: New file.
14075 * config/i386/t-cygming: New makefile stub.
14076
14077 2003-03-20 Richard Henderson <rth@redhat.com>
14078
14079 * fold-const.c (extract_muldiv_1): Revert changing order of
14080 operands in case MULT_EXPR of 2003-02-16 patch.
14081
14082 2003-03-20 Daniel Berlin <dberlin@dberlin.org>
14083 Merge changes from new-regalloc-branch
14084
14085 From Michael Matz <matz@suse.de>
14086 * df.c (df_ref_record_1): Move init of loc to safe point.
14087 Only recurse on interesting things in parallels.
14088 Handle CLASS_CANNOT_CHANGE_MODE smarter.
14089 (df_uses_record): Ditto.
14090
14091 * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
14092 it's already okay to use memory operands in (IE doesn't require
14093 adding another insn or anything).
14094
14095 2003-03-20 Richard Henderson <rth@redhat.com>
14096
14097 PR middle-end/6348
14098 * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
14099 different from word_mode.
14100
14101 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
14102
14103 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
14104 source operand to those that can be extracted with bld.
14105
14106 2003-03-20 Richard Earnshaw <rearnsha@arm.com>
14107
14108 PR 10066
14109 * arm.md (UNSPEC_PIC_BASE): New constant.
14110 (pic_add_dot_plus_four): Wrap with unspec.
14111 (pic_add_dot_plus_eight): Likewise.
14112
14113 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
14114
14115 * config/h8300/h8300.md (*insv_si_1_n): New.
14116 (*insv_si_1_n_lshiftrt): Likewise.
14117
14118 2003-03-20 Roger Sayle <roger@eyesopen.com>
14119
14120 * fold-const.c (fold_mathfn_compare): New function to simplify
14121 comparisons against built-in math functions. Fold comparisons
14122 of sqrt against constants.
14123 (fold): Call fold_mathfn_compare when appropriate.
14124
14125 2003-03-20 Richard Earnshaw <rearnsha@arm.com>
14126
14127 * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
14128 information.
14129
14130 2003-03-20 Per Bothner <pbothner@apple.com>
14131
14132 Various cleanups to help compile server.
14133
14134 * cppinit.c (cpp_create_reader): Take extra hash_table* argument,
14135 and pass that to _cpp_init_hashtable.
14136 (cpp_read_main_file): Drop hash_table* argument; don't call
14137 _cpp_init_hashtable.
14138 * cpplib.h: Update declarations to match.
14139 * c-opts.c (c_common_init_options): Pass ident_hash to
14140 cpp_create_reader.
14141 (c_common_post_options): Don't pass ident_hash to cpp_read_main_file.
14142 * fix-header.c (read_scan_file): Likewise pass NULL table to
14143 cpp_create_reader rather than cpp_read_main_file.
14144
14145 * cppfiles.c (cpp_rename_file): Generalized and renamed
14146 to cpp_change_file.
14147 * cpplib.h: Update declaration to match.
14148 * c-opts.c (push_command_line_line, finish_options): Change
14149 cpp_rename_file calls to cpp_change_file.
14150
14151 * line-map.c (add_line_map): Allow leaving the outermost file.
14152 Allowing entering an outermost-file after the initial time.
14153
14154 * toplev.c (pop_srcloc): Allow popping from initial file.
14155
14156 2003-03-20 Kazu Hirata <kazu at cs dot umass dot edu>
14157
14158 * fold-const.c (fold): Fold A - (A & B) into ~B & A.
14159
14160 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
14161
14162 * config/h8300/h8300.md (a peephole2): New.
14163
14164 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
14165
14166 * config/h8300/h8300.md (*addsi3_and_r_1): New.
14167 (*addsi3_and_not_r_1): Likewise.
14168
14169 2003-03-19 Loren James Rittle <ljrittle@acm.org>
14170
14171 * Makefile.in (STRICT2_WARN): Add @WERROR@.
14172 (GCC_WARN_CFLAGS): Remove $(WERROR).
14173 (fixinc.sh-warn): New.
14174 * ada/Make-lang.in (ada-warn): Add $(WERROR).
14175 * cp/Make-lang.in (cp-warn): Add $(WERROR).
14176 * f/Make-lang.in (f-warn): Add $(WERROR).
14177 * java/Make-lang.in (java-warn): Add $(WERROR).
14178 * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
14179
14180 2003-03-19 Nathanael Nerode <neroden@gcc.gnu.org>
14181
14182 * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
14183 langhooks-def.h (lhd_tree_dump_dump_tree),
14184 langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
14185 Change return type from 'int' to 'bool'. Replace 0 and 1 with
14186 true and false in return statements.
14187
14188 2003-03-19 Kevin Buettner <kevinb@redhat.com>
14189
14190 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
14191 (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
14192 DWARF_INITIAL_LENGTH_SIZE.
14193 (output_compilation_unit_header, output_pubnames, output_aranges)
14194 (output_line_info): Output 0xffffffff escape value for 64-bit
14195 DWARF extension.
14196 * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
14197
14198 2003-03-19 Ulrich Weigand <uweigand@de.ibm.com>
14199
14200 * config/s390/s390.c (s390_preferred_reload_class): Do not
14201 force constants to the pool unless necessary.
14202 (s390_decompose_address): Prefer to use pointer as base,
14203 not index register.
14204 * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
14205 Q alternative.
14206 ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
14207 "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
14208 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
14209 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
14210 "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
14211
14212 2003-03-19 Jan Hubicka <jh@suse.cz>
14213
14214 * i386.h (machine_function): New fields use_fast_prologue_epilogue.
14215 * i386.c (use_fast_prologue_epilogue): Remove.
14216 (ix86_frame): New field save_regs-using_mov;
14217 (ix86_compute_frame_layout): Decide on fast prologues;
14218 allocate saved registers in red zone.
14219 (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
14220
14221 2003-03-19 Nick Clifton <nickc@redhat.com>
14222
14223 * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
14224
14225 2003-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14226
14227 PR 10062
14228 * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
14229 * pa-protos.h (output_lbranch): New prototype.
14230 * pa.c (compute_frame_size): Change size of the frame marker on the
14231 64-bit ports to 48 bytes.
14232 (pa_output_function_prologue): Document why SAVE_SP is set.
14233 (hppa_expand_prologue): Save previous stack pointer into frame marker
14234 on targets which use the hpux unwind library.
14235 (output_cbranch): Use output_lbranch.
14236 (output_lbranch): New function to output long unconditional branches.
14237 * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
14238 (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
14239 64-bit ports.
14240 * pa.md (jump): Use output_lbranch.
14241 (allocate_stack): New expander for dynamic stack allocation.
14242
14243 2003-03-19 Alan Modra <amodra@bigpond.net.au>
14244
14245 * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
14246 when debugging on XCOFF targets. Delete "abi" temp.
14247
14248 PR target/10073
14249 * combine.c (force_to_mode <NOT>): Use gen_int_mode.
14250
14251 2003-03-18 Jakub Jelinek <jakub@redhat.com>
14252
14253 * config/s390/s390.c (s390_output_dwarf_dtprel): New.
14254 * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
14255 * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
14256
14257 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
14258 * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
14259 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
14260
14261 2003-03-18 Geoffrey Keating <geoffk@apple.com>
14262
14263 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
14264 the result of machopic_function_base_name.
14265 * config/darwin.c (machopic_function_base_name): Use a gc-allocated
14266 string rather than a static array.
14267
14268 * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
14269
14270 * gengtype.c: Include rtl.h.
14271 (enum rtx_code): Don't define.
14272 (rtx_format): Make declaration match rtl.h.
14273 (rtx_next_new): Rename from rtx_next to avoid conflict. Change all
14274 users.
14275 (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
14276 * Makefile.in (gengtype.o): Update dependencies.
14277
14278 2003-03-18 Andreas Schwab <schwab@suse.de>
14279
14280 * config/m68k/m68k.md (iordi3): Fix setting low half to -1. From
14281 martin@blom.org.
14282
14283 2003-03-18 Geoffrey Keating <geoffk@apple.com>
14284
14285 * function.c (next_block_index): Mark with GTY.
14286
14287 * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
14288
14289 2003-03-18 Richard Henderson <rth@redhat.com>
14290
14291 * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
14292 (builtin_setjmp_receiver): Delay call to ia64_reload_gp
14293 until after reload.
14294
14295 2003-03-18 Richard Henderson <rth@redhat.com>
14296
14297 * builtins.c (expand_builtin_unop): New target_mode operand;
14298 use it to convert the result to the correct mode.
14299 (expand_builtin): Update all callers.
14300
14301 2003-03-18 Ulrich Weigand <uweigand@de.ibm.com>
14302
14303 * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
14304
14305 2003-03-18 Jan Hubicka <jh@suse.cz>
14306
14307 * i386.md: Fix previous commit that mistakely applied the patch
14308 twice.
14309
14310 * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
14311 canonicalized.
14312 (memrefs_conflict_p): Likewise.
14313 (addr_side_effect_eval): Canonicalize the constructed address.
14314
14315 2003-03-18 Jan Hubicka <jh@suse.cz>
14316
14317 * i386.md (cvtts?2si peep2): New.
14318
14319 2003-03-18 Kazu Hirata <kazu@cs.umass.edu>
14320
14321 * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
14322
14323 2003-03-18 Andreas Schwab <schwab@suse.de>
14324
14325 * dwarf2out.c (output_file_names): Cast size_t to unsigned long
14326 for format.
14327
14328 2003-03-17 Jason Merrill <jason@redhat.com>
14329
14330 PR c++/10091
14331 * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
14332 an unaligned member of TREE_ADDRESSABLE type.
14333
14334 2003-03-18 Alan Modra <amodra@bigpond.net.au>
14335
14336 * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
14337 (TARGET_PROFILE_KERNEL): Define.
14338 (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
14339 (PROFILE_BEFORE_PROLOGUE): Don't define.
14340 (PROFILE_KERNEL): Remove hacks.
14341 * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
14342 (rs6000_stack_info): No need to save lr if just for profiling when
14343 TARGET_PROFILE_KERNEL.
14344 (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
14345 (output_function_profiler): Localize label generation. Emit code
14346 for kernel profiling.
14347
14348 2003-03-17 Kazu Hirata <kazu@cs.umass.edu>
14349
14350 * config/h8300/h8300-protos.h: Add a prototype for
14351 byte_accesses_mergeable_p.
14352 * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
14353 * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
14354 (a splitter): Likewise.
14355 (*iorsi3_ashift_16_ashift_24): Likewise.
14356 (*iorsi3_ashift_16_ashift_24_mem): Likewise.
14357
14358 2003-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14359
14360 * dwarf2asm.h: Delete obsolete comment.
14361 (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
14362 dw2_asm_output_pcrel, dw2_asm_output_addr,
14363 dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
14364 dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
14365 dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
14366 dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
14367
14368 2003-03-17 Zack Weinberg <zack@codesourcery.com>
14369
14370 * c-tree.h (struct lang_identifier): Remove error_locus field.
14371 (IDENTIFIER_ERROR_LOCUS): Kill.
14372 (record_function_scope_shadow): New prototype.
14373 * c-typeck.c (build_external_ref): Don't complain if
14374 decl is error_mark_node. When not at file scope, bind the
14375 decl's local value to error_mark_node to suppress further
14376 warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
14377
14378 * c-decl.c (get_function_binding_level): New static function.
14379 (record_function_scope_shadow): New exported function.
14380 (c_make_fname_decl): Use get_function_binding_level.
14381
14382 2003-03-17 Steve Ellcey <sje@cup.hp.com>
14383
14384 * stmt.c (tail_recursion_args): Call promote_mode to set
14385 unsignedp flag correctly before calling convert_move.
14386
14387 2003-03-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14388
14389 * loop-unroll.c (decide_peel_completely,
14390 decide_unroll_constant_iterations, decide_unroll_stupid,
14391 decide_unroll_runtime_iterations, decide_peel_simple): Set
14392 loop->has_desc.
14393
14394 2003-03-17 Jan Hubicka <jh@suse.cz>
14395
14396 * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
14397
14398 2003-03-17 Olivier Hainque <hainque@act-europe.fr>
14399
14400 * function.c (assign_parms): For a struct value address passed as
14401 first argument, delay the function's result RTL setup code until
14402 after the emission of parameter conversions.
14403
14404 2003-03-17 Dave Love <fx@gnu.org>
14405 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14406
14407 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
14408 __arch64__ to match Compaq cc.
14409
14410 2003-03-17 Neil Booth <neil@daikokuya.co.uk>
14411
14412 * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
14413 (c_common_init): Set EBCDIC in cpp options.
14414 * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
14415 not conditional compilation.
14416 * cpplib.h (struct cpp_options): New entry EBCDIC.
14417
14418 2003-03-17 Neil Booth <neil@daikokuya.co.uk>
14419
14420 * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
14421
14422 2003-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14423
14424 * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
14425 argument to 0 for redirect_jump.
14426
14427 2003-03-16 Mark Mitchell <mark@codesourcery.com>
14428
14429 PR c++/8805
14430 * except.c (eh_region_u_cleanup): Add prev_try.
14431 (expand_eh_region_end_cleanup): Set it.
14432 (reachable_handlers): Use it to skip over cleanup blocks.
14433
14434 2003-03-17 Andreas Jaeger <aj@suse.de>
14435
14436 * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
14437
14438 2003-03-17 Alan Modra <amodra@bigpond.net.au>
14439
14440 * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
14441 (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
14442 (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
14443 (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
14444
14445 2003-03-16 Richard Henderson <rth@redhat.com>
14446
14447 * simplify-rtx (simplify_binary_operation): Don't abort for
14448 SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
14449
14450 2003-03-16 Richard Henderson <rth@redhat.com>
14451
14452 * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
14453 optimize_size as well.
14454
14455 2003-03-16 Stephane Carrez <stcarrez@nerim.fr>
14456
14457 * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
14458 for D register to specify the low part of it, aka B.
14459 (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
14460 the register if we are loading 1 or -1 to it; avoid using temp
14461 register when moving X/Y to Y/X.
14462 (m68hc11_gen_movqi): Likewise.
14463 (m68hc11_check_z_replacement): Fix last insn setting for compare case.
14464
14465 2003-03-14 Mark Mitchell <mark@codesourcery.com>
14466
14467 PR optimization/9016
14468 * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
14469 into the constant pool.
14470
14471 2003-03-16 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
14472
14473 PR target/9164
14474 * tree.c (get_narrower): For extensions with unchanged bit number,
14475 return the unsignedness of the outer mode.
14476
14477 2003-03-16 Roger Sayle <roger@eyesopen.com>
14478
14479 * c-typeck.c (build_component_ref): Turn "for" into "do .. while"
14480 to avoid "may be used uninitialized" warning on ia64-hpux.
14481 * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
14482
14483 2003-03-16 Andreas Jaeger <aj@suse.de>
14484
14485 * configure.in: Improve check for memcheck.h.
14486 * configure: Regenerated.
14487
14488 2003-03-16 Neil Booth <neil@daikokuya.co.uk>
14489
14490 * doc/cppopts.texi: Remove documentation of -A-.
14491
14492 2003-03-15 Zack Weinberg <zack@codesourcery.com>
14493
14494 * doc/libgcc.texi: Remove @tie.
14495
14496 2003-03-15 Josef Zlomek <zlomekj@suse.cz>
14497
14498 * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
14499 (rtx_pair): Added new element update_label_nuses, renamed to
14500 replace_label_data.
14501 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
14502 replace_label_data instead of rtx_pair.
14503 * loop.c (load_mems): Likewise.
14504 * rtlanal.c (replace_label): Replace label in pool constants and in
14505 INSN_LIST (in REG_LABEL note).
14506 (subrtx_p): Renamed to rtx_referenced_p.
14507 (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
14508 LABEL_REF with CODE_LABEL, traverse constants from pool.
14509
14510 2003-03-15 Aldy Hernandez <aldyh@redhat.com>
14511 Zack Weinberg <zack@codesourcery.com>
14512
14513 * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
14514 * doc/libgcc.texi: New file.
14515 * doc/interface.texi: Delete paragraph about libgcc interface.
14516 * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
14517
14518 2003-03-15 Jason Merrill <jason@redhat.com>
14519
14520 PR debug/9039
14521 * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
14522
14523 PR debug/6387
14524 * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
14525 function DIEs at toplevel.
14526 (decls_for_scope): At -g1, don't descend into subblocks.
14527
14528 2003-03-15 Ulrich Weigand <uweigand@de.ibm.com>
14529
14530 * varasm.c (struct rtx_const): Change type of un.addr member
14531 to struct holding an additional 'symbol' member.
14532 (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
14533 with equal string addresses as equal.
14534 (simplify_subtraction): Adapt to struct rtx_const change.
14535
14536 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
14537
14538 * fix-header.c (read_scan_file): Read main file before handling -D.
14539
14540 2003-03-15 Roger Sayle <roger@eyesopen.com>
14541
14542 * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
14543 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
14544 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
14545 (find_sub_basic_blocks): Likewise.
14546 * cgraphunit.c (cgraph_expand_functions): Likewise.
14547 * dwarf2out.c (prune_unused_types): Likewise.
14548 * expr.c (store_field): Likewise.
14549 * genextract.c (print_path): Likewise.
14550 * haifa-sched.c (schedule_insn): Likewise.
14551 * lcm.c (compute_antinout_edge): Likewise.
14552 * loop-unroll.c (decide_peel_once_rolling): Likewise.
14553 * ra-colorize.c (ra_colorize_free_all): Likewise.
14554 * ra-debug.c (dump_igraph): Likewise.
14555 (debug_hard_reg_set): Likewise.
14556 * reg-stack.c (reg_to_stack): Likewise.
14557 * rtlanal.c (refers_to_regno_p): Likewise.
14558 * tracer.c (layout_superblocks): Likewise.
14559
14560 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
14561
14562 * fix-header.c (read_scan_file): Fix thinko.
14563
14564 2003-03-15 Glen Nakamura <glen@imodulo.com>
14565
14566 * reload1.c (choose_reload_regs): Use && instead of ||
14567 with REG_CANNOT_CHANGE_MODE_P condition.
14568
14569 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
14570
14571 * Makefile.in: Update.
14572 * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
14573 * c-lex.c (init_c_lex): Register builtins hook is dead.
14574 * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
14575 (c_common_decode_option): Don't call cpp_handle_option.
14576 Handle -A, -D and -U.
14577 (handle_deferred_opts): Simplify.
14578 (finish_options): Define builtins and command line macros.
14579 * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
14580 * cppinit.c: Don't include intl.h.
14581 (init_builtins): Rename cpp_init_builtins. No hook to call.
14582 (init_library): Don't need to sort options.
14583 (cpp_create_reader): Don't set pending.
14584 (cpp_destroy): Don't free pending.
14585 (struct pending_option, cl_directive_handler, struct cpp_pending,
14586 APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
14587 cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
14588 cl_options, cpp_handle_option): Remove.
14589 * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
14590 cpp_finish_options): Remove.
14591 (cpp_init_builtins): New.
14592 * fix-header.c (read_scan_file): Update to handle -D. Fix
14593 handling of -I. Replace call to cpp_finish_options.
14594
14595 2003-03-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14596
14597 PR optimization/9387
14598 * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
14599 for conditional returns.
14600
14601 2003-03-14 Jason Merrill <jason@redhat.com>
14602
14603 PR optimization/6871
14604 * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
14605
14606 2003-03-14 Neil Booth <neil@daikokuya.co.uk>
14607
14608 * c-opts.c (finish_options): New.
14609 (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
14610 (missing_arg): Handle OPT_include and OPT_imacros.
14611 (c_common_init, c_common_parse_file): Use finish_options.
14612 (handle_deferred_opts): Update.
14613 * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
14614 (cpp_finish_options): Don't handle -imacros here.
14615 (no_fil): Remove.
14616 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
14617
14618 2003-03-14 Jakub Jelinek <jakub@redhat.com>
14619
14620 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
14621 rs6000_maybe_dead if !fromprolog.
14622
14623 2003-03-14 Neil Booth <neil@daikokuya.co.uk>
14624
14625 * Makefile.in: Update.
14626 * c-common.h (fe_file_change, pp_file_change): New.
14627 * c-lex.c (init_c_lex): Don't set cb_file_change.
14628 (c_common_parse_file): Move to c-opts.c.
14629 (cb_file_change): Rename fe_file_change.
14630 * c-opts.c: Include debug.h.
14631 (warn_unused_macros, include_cursor): New.
14632 (push_command_line_include, cb_file_change): New.
14633 (COMMAND_LINE_OPTIONS): Handle -include.
14634 (c_common_decode_option): Use local warn_unused_macros.
14635 Handle OPT_include.
14636 (c_common_post_options): Set file change callback.
14637 (handle_deferred_opts): Skip -include. Don't free the array.
14638 (c_common_init): Call cpp_finish_options here, and push an
14639 initial -include file.
14640 * c-ppoutput.c (cb_file_change): Rename pp_file_change.
14641 (preprocess_file): Don't call cpp_finish_options.
14642 (init_pp_output): Don't set the file change callback.
14643 (pp_file_change): Return if no line commands or no output.
14644 * cpphash.h (next_include_file, first_unused_line): Remove.
14645 * cppinit.c (include_head, include_tail): Remove.
14646 (cpp_destroy): Don't free -include chain.
14647 (cpp_finish_options): Don't handle -include, or worry about
14648 -Wunused-macros.
14649 (_cpp_maybe_push_include_file): Remove.
14650 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
14651 * cpplib.c (_cpp_pop_buffer): Don't handle -include.
14652 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
14653 Used flag is set based upon the state of the warn_unused_macros
14654 flag, and so use of first_unused_line is unnecessary.
14655
14656 2003-03-13 Jan Hubicka <jh@suse.cz>
14657
14658 * cselib.c (clear_table): Do not take argument; always clear just
14659 used slots.
14660 (cselib_process_insn): Update call of clear_table
14661 (cselib_init): Do not call clear_table.
14662 (cselib_finish): Clear table.
14663
14664 * cse.c (count_reg_usage): Do not check side_effects_p.
14665 * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
14666 like noop.
14667 (find_reg_equal_equiv_note): Do not use find_reg_note.
14668
14669 2003-03-14 Richard Henderson <rth@redhat.com>
14670
14671 PR target/9700
14672 * config/alpha/alpha.c (alpha_va_start): Account for
14673 current_function_pretend_args_size in the AP offset.
14674
14675 * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
14676 (INITIAL_ELIMINATION_OFFSET): Move out of line.
14677 * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
14678 (alpha_initial_elimination_offset) New.
14679 * config/alpha/alpha-protos.h: Update.
14680
14681 2003-03-14 Jakub Jelinek <jakub@redhat.com>
14682
14683 * stmt.c (expand_start_case): Call emit_queue ().
14684
14685 2003-03-14 Chris Demetriou <cgd@broadcom.com>
14686 Alexandre Oliva <aoliva@redhat.com>
14687
14688 * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
14689 words in new abis.
14690
14691 2003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr>
14692
14693 PR optimization/8396
14694 * tree-inline.c (initialize_inlined_parameters): Make sure the value
14695 of read-only constant arguments is passed with the right type.
14696
14697 2003-03-14 Steven Bosscher <steven@gcc.gnu.org>
14698
14699 * doc/extend.texi (Function Names): Make the example compilable.
14700
14701 2003-03-13 David Edelsohn <edelsohn@gnu.org>
14702
14703 * config/rs6000/rs6000.c (processor_target_table): Really allow
14704 GP optional instructions on Power4.
14705
14706 2003-03-13 Roger Sayle <roger@eyesopen.com>
14707
14708 * calls.c (flags_from_decl_or_type): Factor and remove redundant
14709 conditional tests.
14710
14711 2003-03-13 Mike Stump <mrs@apple.com>
14712
14713 * ggc-page.c (struct page_entry): Remove varray.h header.
14714 Add index_by_depth field.
14715 Remove save_in_use_p field.
14716 (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
14717 by_depth_max, by_depth, and save_in_use fields.
14718 (INITIAL_PTE_COUNT): Add.
14719 (save_in_use_p_i): Add.
14720 (save_in_use_p): Add.
14721 (adjust_depth): Add.
14722 (move_ptes_to_front): Add.
14723 (push_depth): Add.
14724 (push_by_depth): Add.
14725 (prefetch): Add.
14726 (free_page): Add support for and use faster data structures.
14727 (ggc_alloc): Likewise.
14728 (init_ggc): Likewise.
14729 (ggc_recalculate_in_use_p): Likewise.
14730 (ggc_pop_context): Likewise.
14731 (clear_marks): Likewise.
14732 (ggc_pch_read): Likewise.
14733 * Makefile.in (ggc-page.o): Remove varray.h.
14734
14735 2003-03-13 Nathanael Nerode <neroden@gcc.gnu.org>
14736
14737 * ChangeLog: Rotated last year's entries to...
14738 * ChangeLog.8: New.
14739
14740 * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
14741 config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
14742 config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
14743 config/ia64/ia64-protos.h, config/ia64/ia64.c,
14744 config/ia64/ia64.h, config/ia64/ia64.md,
14745 config/ia64/itanium1.md, config/ia64/itanium2.md,
14746 config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
14747 config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
14748
14749 2003-03-13 Aldy Hernandez <aldyh@redhat.com>
14750
14751 * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
14752 Differentiate endianness.
14753 (s6000_override_options): Use cpu type instead of TARGET_SPE.
14754
14755 2003-03-13 Nick Clifton <nickc@redhat.com>
14756
14757 * config/arm/arm.c (print_multi_reg): Do not generate a type 2
14758 LDM instructions with writeback enabled.
14759 (output_return_instruction): Likewise.
14760
14761 * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
14762 (CALL_USED_REGISTERS): Remove definition.
14763 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
14764
14765 2003-03-13 Alan Modra <amodra@bigpond.net.au>
14766
14767 * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
14768 (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
14769 (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
14770 (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
14771 (rs6000_legitimize_address): Formatting.
14772 (rs6000_emit_move): Likewise.
14773 (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
14774 (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
14775 (rs6000_elf_select_section): Comment reason for shlib being
14776 set for ABI_AIX.
14777 (rs6000_elf_unique_section): Likewise.
14778 (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
14779 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
14780 as well as flag_pic.
14781 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
14782 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14783 * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
14784
14785 2003-03-13 Richard Henderson <rth@redhat.com>
14786
14787 * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
14788
14789 * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
14790 (ia64_gp_save_reg): Remove.
14791 (struct ia64_frame_info): Move to the beginning of the file;
14792 add reg_save_gp.
14793 (ia64_expand_call): Rearrange for new call patterns.
14794 (ia64_reload_gp): New.
14795 (ia64_split_call): New.
14796 (ia64_compute_frame_size): Allocate reg_save_gp.
14797 (ia64_expand_prologue): Save reg_save_gp.
14798 (ia64_expand_epilogue): Don't restore gp.
14799 (ia64_hard_regno_rename_ok): Remove R4 hack.
14800 (ia64_function_ok_for_sibcall): New.
14801 (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
14802 call try_split on sibcall pattern.
14803 * config/ia64/ia64-protos.h: Update.
14804 * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
14805 Rename from nopic versions. Confiscate 2nd argument to call as
14806 a marker.
14807 (call_pic, call_value_pic, sibcall_pic): Remove.
14808 (call_gp, call_value_gp, sibcall_gp): New.
14809 (builtin_setjmp_setup): Remove.
14810 (builtin_setjmp_receiver): Call ia64_reload_gp.
14811
14812 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
14813
14814 * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
14815 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
14816 "GNU CC" with "GCC".
14817
14818 * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
14819 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
14820 config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
14821 GCC, not GNU CC.
14822
14823 * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
14824 langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
14825
14826 * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
14827 langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
14828 unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
14829 "GNU CC" with "GCC".
14830
14831 * config/v850/lib1funcs.asm, config/v850/rtems.h,
14832 config/v850/v850-c.c, config/v850/v850-protos.h,
14833 config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
14834 GCC, not GNU CC.
14835
14836 * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
14837 config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
14838 config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
14839 config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
14840 GNU CC.
14841
14842 2003-03-12 Benjamin Kosnik <bkoz@redhat.com>
14843
14844 * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
14845
14846 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
14847
14848 * fixinc/fixinc.interix: Remove dead code (most of it).
14849 * fixinc/fixinc.dgux: Remove.
14850
14851 * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
14852 ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
14853
14854 2003-03-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14855
14856 * pa.c (pa_init_builtins): Fix warning.
14857
14858 2003-03-12 Steve Ellcey <sje@cup.hp.com>
14859
14860 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
14861 (ASM_OUTPUT_XDATA_SHORT): Remove.
14862 (ASM_OUTPUT_XDATA_INT): Remove.
14863 (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
14864 (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
14865 (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
14866 (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
14867
14868 2003-03-12 Andrew Lewycky <andrew@mxc.ca>
14869
14870 PR c++/7050
14871 * expr.c (store_expr): Don't attempt to store void-typed trees,
14872 just evaluate them for side effects.
14873
14874 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
14875
14876 * cppfiles.c (cpp_rename_file, cpp_push_include): New.
14877 * cppinit.c (push_include): Move with changes to cppfiles.c.
14878 (cpp_read_main_file): Mark named operators here...
14879 (cpp_finish_options): ...not here. Update.
14880 (_cpp_maybe_push_include_file): Update.
14881 * cpplib.h (cpp_push_include, cpp_rename_file): New.
14882
14883 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
14884
14885 * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
14886 _gcc_COMPUTE_GAS_VERSION.
14887 * configure.in: Use them.
14888 * configure: Regenerate.
14889
14890 2003-03-12 Bob Wilson <bob.wilson@acm.org>
14891
14892 * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
14893 to detect carry.
14894 (subdi3): Reorder emitted instructions.
14895
14896 2003-03-12 Andreas Jaeger <aj@suse.de>
14897
14898 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
14899 NETBSD_OS_CPP_BUILTINS_LP64.
14900
14901 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
14902
14903 * Makefile.in: Eliminate all.indirect. Update and clean up comments.
14904 Rearrange. Reorganize.
14905 * configure.in: Rearrange.
14906 * configure: Regenerate.
14907
14908 2003-03-12 Andreas Jaeger <aj@suse.de>
14909
14910 * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
14911 LP64 targets.
14912
14913 * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
14914 _LP64.
14915
14916 * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
14917 _LP64 macros here.
14918 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
14919
14920 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
14921 NETBSD_OS_CPP_BUILTINS_LP64.
14922 * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
14923 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
14924
14925 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
14926
14927 2003-03-12 Jan Hubicka <jh@suse.cz>
14928
14929 * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
14930
14931 2003-03-12 Daniel Jacobowitz <drow@mvista.com>
14932
14933 Fix PR target/9797 and PR c/9853.
14934 * stmt.c (expand_decl_init): Call push_temp_slots () and
14935 pop_temp_slots ().
14936
14937 2003-03-12 J"orn Rennecke <joern.rennecke@superh.com>
14938
14939 * sh.c: Include basic-block.h.
14940 (sh_output_mi_thunk, emit_load_ptr): New functions.
14941 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
14942
14943 2003-03-12 Nick Clifton <nickc@redhat.com>
14944
14945 * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
14946 (CALL_USED_REGISTERS): Likewise.
14947 * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
14948 describing how this value is calculated.
14949
14950 2003-03-12 Hans-Peter Nilsson <hp@bitrange.com>
14951
14952 * configure.in (rlim_t): Define to long if no valid definition
14953 found in sys/resource.h.
14954 * config.in, configure: Regenerate.
14955
14956 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
14957
14958 * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
14959 TARGET_OS_CPP_BUILTINS.
14960 * config/mcore/mcore-pe.h: Similarly.
14961 * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
14962 CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
14963
14964 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
14965
14966 PR c/9928
14967 * c-decl.c (duplicate_decls): Discard the initializer of the new decl
14968 only if it is a VAR_DECL.
14969
14970 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
14971
14972 PR optimization/9888
14973 * config/i386/i386.md (jcc_1): Fix range.
14974 (jcc_2): Likewise.
14975 (jump): LIkewise.
14976 (doloop_end_internal): Likewise.
14977
14978 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
14979
14980 * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
14981 Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
14982 (DLL_EXPORT_PREFIX): New define. Use throughout instead of
14983 DLL_IMPORT_EXPORT_PREFIX and "i."
14984 (i386_pe_dllexport_name_p): Here.
14985 (i386_pe_dllimport_name_p): Here.
14986 (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
14987 not 9 chars when getting identifier name.
14988 (i386_pe_mark_dllimport): Here.
14989 (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
14990 not 9 chars when getting identifier name. Correct comment.
14991 (i386_pe_strip_name_encoding): Here. Add comments for different
14992 cases.
14993 (gen_fastcall_suffix): Break down xmalloc() argument to
14994 components.
14995 (gen_stdcall_suffix): Likewise.
14996 Update copyright year.
14997
14998 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
14999
15000 PR optimization/9888
15001 * config/i386/i386.md (movsi_1): Remove special alternatives
15002 for %eax register.
15003 (movsi_1_nointernunit): Likewise.
15004 (movhi_1): Likewise.
15005 * config/i386/i386.c (memory_address_length): Do not use
15006 short displacement when there is no base.
15007 (ix86_attr_length_address_default): Handle LEA instructions.
15008
15009 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
15010
15011 * c-cppbuiltin.c (builtin_define_std): Make non-static.
15012
15013 2003-03-11 Loren James Rittle <ljrittle@acm.org>
15014
15015 * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
15016 (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
15017 (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
15018 * config/freebsd.h (CPP_PREDEFINES): Remove.
15019 (TARGET_OS_CPP_BUILTINS): New.
15020 * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
15021 instead of TARGET_OS_CPP_BUILTINS.
15022 * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
15023
15024 2003-03-11 Geoffrey Keating <geoffk@apple.com>
15025
15026 * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
15027
15028 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
15029
15030 * config/rs6000/rs6000.c (rs6000_stack_info): Remove
15031 insn_chain_scanned. Use insn_chain_scanned_p in machine_function.
15032
15033 * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
15034
15035 2003-03-11 Alexandre Oliva <aoliva@redhat.com>
15036
15037 * toplev.c (independent_decode_option): Return success for --help,
15038 --target-help and --version.
15039
15040 2003-03-11 Alexandre Oliva <aoliva@redhat.com>
15041
15042 * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
15043 Default to -mips3 on -mabi=64. Don't add -mips* flag if -march is
15044 specified.
15045 (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
15046 DRIVER_SELF_SPECS.
15047 (LINK_SPEC): Let endian options affect the linker emulation name.
15048
15049 2003-03-11 J"orn Rennecke <joern.rennecke@superh.com>
15050
15051 * sh.md (reload_inqi): Fix mode for source in second set.
15052
15053 2003-03-11 Jan Hubicka <jh@suse.cz>
15054
15055 * cselib.c (cselib_invalidate_mem_1): Move too ...
15056 (cselib_invalidate_mem): ... here; use new list
15057 (dummy_val, first_containing_mem): New static variables.
15058 (clear_table): Initialize first_containing_mem.
15059 (discard_useless_values): Compact the containing_mem list.
15060 (add_mem_for_addr): Add to the list.
15061 * cselib.h (cselib_val): Add next_containing_mem.
15062
15063 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
15064
15065 * config/rs6000/rs6000.c (rs6000_override_options): Disable string
15066 instructions for e500.
15067
15068 2003-03-11 Neil Booth <neil@daikokuya.co.uk>
15069
15070 * Makefile.in: Update.
15071 * c-cppbuiltin.c: Include tm_p.h.
15072
15073 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
15074
15075 * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
15076
15077 * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
15078 (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
15079 (_Unwind_SetGR): Same.
15080 (_Unwind_GetGRPtr): New.
15081 (_Unwind_SetGRPtr): New.
15082 (uw_update_context_1): Use accesor functions instead of accessing
15083 context->reg[] directly.
15084 (uw_install_context_1): Same.
15085 (execute_cfa_program): Same.
15086 (__frame_state_for): Same.
15087
15088 * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
15089 the synthetic register offset.
15090
15091 * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
15092
15093 2003-03-11 Hans-Peter Nilsson <hp@axis.com>
15094
15095 * config/cris/cris.md: Remove lingering EGCS reference.
15096 ("*extopqihi_side_biap"): For HI operation, match
15097 cris_additive_operand_extend_operator, not
15098 cris_operand_extend_operator. Adjust condition.
15099 ("*extopqihi_side", "*extopqihi"): Ditto.
15100 ("*extopqisi_side_biap"): Correct operand numbers in condition.
15101 ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
15102 ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
15103 ("*extophisi_swap"): Ditto.
15104 ("*extopqihi_swap_side_biap"): For HI operation, match a simple
15105 PLUS, not cris_operand_extend_operator. Adjust condition and
15106 output template.
15107 ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
15108 * config/cris/cris.h (PREDICATE_CODES): Add
15109 cris_additive_operand_extend_operator.
15110 * config/cris/cris.c (cris_additive_operand_extend_operator):
15111 New predicate.
15112
15113 2003-03-11 Hartmut Penner <hpenner@de.ibm.com>
15114
15115 * df.c (read_modify_subreg_p): Change from static to global.
15116 * df.h (read_modify_subreg_p): Add prototype.
15117 * sched-deps.c (sched_analyze_1): Generate true dependency for
15118 strict_low_part, certain subregs and zero/sign_extract.
15119
15120 2003-03-11 Neil Booth <neil@daikokuya.co.uk>
15121
15122 * Makefile.in: Update.
15123 * c-common.c: Don't include real.h or except.h.
15124 (REGISTER_PREFIX): Remove.
15125 (builtin_define_std, builtin_define_with_value,
15126 builtin_define_with_int_value, builtin_define_with_hex_fp_value,
15127 builtin_define_type_max, builtin_define_type_precision,
15128 builtin_define_float_constants): Move to c-cppbuiltin.c.
15129 (c_stddef_cpp_builtins): New.
15130 * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
15131 * c-cppbuiltin.c: New, extracted from c-common.c.
15132 (define__GNUC__): New.
15133 * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
15134 * gcc.c: Remove support of %v1, %v2 and %v3 specs.
15135 (cpp_unique_options): Don't support no-gcc.
15136 (do_spec_1): Remove support of version specs.
15137 * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
15138 * doc/passes.texi: Update.
15139 * doc/tm.texi: Update.
15140
15141 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
15142
15143 * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
15144
15145 2003-03-10 Andrew Pinski <apinski@apple.com>
15146
15147 * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
15148 is on should not get here.
15149 (machopic_indirect_data_reference): If dynamic-no-pic is on just
15150 generate high/low parts of the address.
15151 (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
15152 MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
15153 symbol and labels with a new reg. Dynamic-no-pic does not have a
15154 pic_offset_table_rtx.
15155 (machopic_select_section): Change references of flag_pic to
15156 MACHOPIC_INDIRECT.
15157 (machopic_asm_out_destructor): Likewise.
15158 * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
15159 reference of flag_pic to MACHOPIC_INDIRECT.
15160 (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
15161 (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
15162 (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
15163 (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
15164 * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
15165 0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
15166 * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
15167 (TARGET_DYNAMIC_NO_PIC): Define.
15168 (SUBTARGET_SWITCHES): Define, have sub-target switches for
15169 dynamic-no-pic.
15170 (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
15171 rs6000_override_options to here. Dynamic-no-pic overrides
15172 pic.
15173 (CC1_SPEC): Change from not static then pic to not static and not
15174 dynamic-no-pic then pic.
15175 * config/rs6000/rs6000.c (rs6000_override_options): Move the
15176 check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
15177 (rs6000_legitimize_reload_address): Add case for loading floating in
15178 dynamic-no-pic.
15179 (rs6000_emit_move): Add case for dynamic-no-pic. Change reference
15180 of flag_pic to MACHOPIC_INDIRECT.
15181 (secondary_reload_class): Conditional change the reference of
15182 flag_pic to MACHOPIC_INDIRECT.
15183 (rs6000_output_mi_thunk): Change reference of flag_pic to
15184 MACHOPIC_INDIRECT.
15185 (output_profile_hook): Likewise.
15186 (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
15187 * config/rs6000/rs6000.md (movdf_low): Add the case for
15188 MACHO_DYNAMIC_NO_PIC_P.
15189 (call): Change references for flag_pic in TARGET_MACHO to
15190 MACHOPIC_INDIRECT.
15191 (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
15192 -mdynamic-no-pic is on. Also move case for -fpic from rs6000.c.
15193 * doc/invoke.texi (-mdynamic-no-pic): Document.
15194
15195 2003-03-10 Devang Patel <dpatel@apple.com>
15196
15197 PR c++/9394
15198 * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
15199 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
15200 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
15201 (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
15202 * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
15203 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
15204
15205 2003-03-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
15206
15207 PR optimization/7189
15208 * toplev.c (rest_of_compilation): Move
15209 check_function_return_warnings up to just after
15210 delete_unreachable_blocks.
15211
15212 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
15213
15214 * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
15215 * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
15216 Declare.
15217 * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
15218 for reg rename optimization to avoid using Z and Y registers.
15219
15220 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
15221
15222 * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
15223 when adding to X and Y since leax/leay are fast.
15224 ("*addhi3"): Accept 'I' constraint when adding to address register.
15225 ("rotlhi3"): Operand 1 must be a register_operand.
15226 (peephole2): New peephole to optimize some adds.
15227 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
15228 to represent -2 .. 2 small integer range.
15229
15230 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
15231
15232 * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
15233 each 16-bit rotation.
15234
15235 2003-03-10 Zack Weinberg <zack@codesourcery.com>
15236
15237 * c-opts.c (add_prefixed_path): Don't use concat. When
15238 prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
15239 cpp_GCC_INCLUDE_DIR_len characters.
15240
15241 2003-03-10 Segher Boessenkool <segher@koffie.nl>
15242
15243 * testsuite/gcc.dg/altivec-9.c: New file.
15244
15245 * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
15246 (rs6000_emit_prologue): Use rs6000_frame_related instead.
15247
15248 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
15249
15250 * config/rs6000/spe.h: Define __ev64_*64__ to use single element
15251 vectors.
15252 (__ev_convert_u64): Remove macro. Define as inline.
15253 (__ev_convert_s64): Same.
15254
15255 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
15256
15257 * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
15258 (rs6000_stack_t): Add spe_64bit_regs_used.
15259
15260 * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
15261 spe_64bit_regs_used, and use it to determine the size of the
15262 frame.
15263 (spe_func_has_64bit_regs_p): New.
15264 (spe_synthesize_frame_save): New.
15265 (rs6000_frame_related): Handle SPE synthetic registers.
15266 (rs6000_emit_prologue): Only save in 64-bits if the function used
15267 any registers in 64-bit mode.
15268 (rs6000_emit_epilogue): Same, but for restore.
15269
15270 2003-03-10 Richard Earnshaw <rearnsha@arm.com>
15271
15272 * arm.h (enum floating_point_type): Delete. Replace with...
15273 (enum fputype): ... new.
15274 (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT. Values reworked.
15275 * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
15276 * arm.md (attr fpu): Reworked for new underlying enum values.
15277 * arm.c (arm_fpu_arch): Now enum fputype.
15278 (arm_fpu_tune): Renamed from arm_fpu. Now enum fputype.
15279 (arm_override_options, arm_output_epilogue, arm_expand_prologue):
15280 Update uses of arm_fpu_arch and arm_fpu_tune.
15281
15282 2003-03-10 Josef Zlomek <zlomekj@suse.cz>
15283
15284 * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
15285 (try_crossjump_to_edge): Replace refereces to one jump table by
15286 references to identical jump table.
15287 * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
15288 (replace_label): Moved to rtlanal.c.
15289 (struct rtx_pair): Moved to rtl.h.
15290 * rtl.h (struct rtx_pair): Moved from loop.c.
15291 (replace_label): New extern function.
15292 (subrtx_p): New extern function.
15293 (tablejump_p): New extern function.
15294 * rtlanal.c (replace_label): Moved from loop.c.
15295 (subrtx_p_1): New static function.
15296 (subrtx_p): New function.
15297 (tablejump_p): New function.
15298
15299 2003-03-10 Jan Hubicka <jh@suse.cz>
15300
15301 * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
15302
15303 * cfgcleanup.c (merge_blocks): Return where to iterate next.
15304 (try_optimize_cfg): Use return value of merge_blocks
15305
15306 2003-03-10 Michael Matz <matz@suse.de>
15307
15308 * cfg.c (unchecked_make_edge): New.
15309 (cached_make_edge): Use it.
15310 * basic-block.h (unchecked_make_edge): Declare.
15311 * cfglayout.c (cfg_layout_duplicate_bb): Use it.
15312
15313 2003-03-10 Richard Earnshaw <rearnsha@arm.com>
15314
15315 * fpa.md: New file. Move all patterns relating to FPA co-processor
15316 to here...
15317 * arm.md: ... from here.
15318 (cirrus.md, fpa.md): Include at end of description.
15319 (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
15320 (pic_load_addr_based): Remove register constraint from expander.
15321 (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
15322 (sordered, sungt, sunle, sunge, sunlt): Likewise.
15323 (eh_epilogue, tablejump): Likewise.
15324
15325 2003-03-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15326
15327 * tree.c (substitute_in_expr, case 'e'): Only make recursive call
15328 on operands if it has a PLACEHOLDER_EXPR.
15329
15330 2003-03-09 David Edelsohn <edelsohn@gnu.org>
15331 Mostafa Hagog
15332
15333 * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
15334 condition.
15335
15336 2003-03-09 Neil Booth <neil@daikokuya.co.uk>
15337
15338 * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
15339 * config/ip2k/ip2k.h: Similarly.
15340 * config/m32r/m32r.h: Similarly.
15341 * config/m68hc11/m68hc11.h: Similarly.
15342 * config/mn10200/mn10200.h: Similarly.
15343 * config/mn10300/mn10300.h: Similarly.
15344 * config/pdp11/pdp11.h: Similarly.
15345 * config/v850/v850.h: Similarly.
15346 * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
15347 * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
15348 * config/mips/iris3.h: Remove #if 0 block.
15349
15350 2003-03-09 Roger Sayle <roger@eyesopen.com>
15351 Joern Rennecke <joern.rennecke@superh.com>
15352
15353 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
15354 pending argument upon return from handle_braces here.
15355 (do_spec_2): Instead handle it upon return from do_spec_1 here.
15356
15357 2003-03-09 Roger Sayle <roger@eyesopen.com>
15358 Joern Rennecke <joern.rennecke@superh.com>
15359
15360 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
15361 pending argument upon return from handle_braces here.
15362 (do_spec_2): Instead handle it upon return from do_spec_1 here.
15363
15364 2003-03-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15365
15366 * varasm.c (make_decl_one_only): Use declare_weak().
15367
15368 2003-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15369
15370 PR middle-end/9986
15371 * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
15372 after the common builtins.
15373 * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
15374 * pa.c (TARGET_INIT_BUILTINS): Define.
15375 (pa_init_builtins): New function.
15376
15377 * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
15378 space has been allocated for the outgoing arguments, set the arg
15379 pointer for a call emitted after virtuals have been instantiated
15380 using the stack pointer offset, otherwise abort.
15381
15382 2003-03-09 DJ Delorie <dj@redhat.com>
15383
15384 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
15385
15386 2003-03-09 Richard Earnshaw <rearnsha@arm.com>
15387
15388 * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
15389 (arm_fix_truncdfsi2): Add missing fix in floating point mode before
15390 conversion to integer.
15391 * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
15392
15393 2003-03-09 Roger Sayle <roger@eyesopen.com>
15394
15395 * builtins.def: Fix typo and improve grammar.
15396 * loop-unroll.c (decide_peel_completely): Tidy log message.
15397
15398 2003-03-09 Kazu Hirata <kazu@cs.umass.edu>
15399
15400 * config/h8300/h8300.md (*tstsi_upper_bit): New.
15401 (*iorsi3_e2f): Likewise.
15402
15403 2003-03-08 Kazu Hirata <kazu@cs.umass.edu>
15404
15405 * config/h8300/h8300.c (h8300_and_costs): Return the number of
15406 assembly instructions needed.
15407 (h8300_shift_costs): Likewise.
15408
15409 2003-03-09 Hans-Peter Nilsson <hp@bitrange.com>
15410
15411 * config/cris/aout.h (ENDFILE_SPEC): Undef.
15412
15413 * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
15414 moves from here ...
15415 * expr.c (emit_move_insn_1): ... to here.
15416
15417 * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
15418 (TARGET_OS_CPP_BUILTINS): New macro.
15419 * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
15420 (TARGET_OS_CPP_BUILTINS): New macro.
15421 (CPP_PREDEFINES): Don't define. Move old definitions and...
15422 (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
15423 (TARGET_CPU_CPP_BUILTINS): New macro.
15424 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
15425 definitions and the optional __PIC__, __pic__ and
15426 __NO_UNDERSCORES__ definitions to...
15427 (TARGET_OS_CPP_BUILTINS): New macro.
15428
15429 * flags.h (flag_leading_underscore): Declare.
15430
15431 * c-opts.c (c_common_post_options): On fopen failure, return
15432 false, not NULL.
15433
15434 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
15435
15436 * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
15437 config.h.
15438 * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
15439 * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
15440
15441 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
15442
15443 * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
15444 CPP_PREDEFINES.
15445 * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
15446 CPP_PREDEFINES.
15447
15448 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
15449
15450 * c-common.h (c_common_init, c_common_post_options): Update.
15451 * c-objc-common.c (c_objc_common_init): Update for new prototype.
15452 * c-opts.c (saved_lineno): New.
15453 (c_common_post_options, c_common_init): Update prototypes,
15454 move call to cpp_read_main_file from latter to former.
15455 * c-tree.h (c_ojbc_common_init): Update.
15456 * langhooks-def.h (lhd_post_options): New.
15457 (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
15458 * langhooks.c (lhd_post_options): New.
15459 * langhooks.h (struct lang_hooks): Update post_options and init hooks.
15460 * toplev.c (no_backend): New.
15461 (process_options): Call post_options hook and set main_input_filename
15462 and input_filename here.
15463 (lang_dependent_init, do_compile): post_options hook moved to
15464 process_options.
15465 * objc/objc-act.c (objc_init): Update prototype.
15466 * objc/objc-act.h (objc_init): Update prototype.
15467
15468 2003-03-08 Roger Sayle <roger@eyesopen.com>
15469
15470 * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
15471 a complex or vector type, using a load in the original mode.
15472
15473 2003-03-08 Jan Hubicka <jh@suse.cz>
15474
15475 * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
15476 * gt-cgraph.h: New GC file.
15477 * cgraph.c (known_fns): New static variable.
15478 (cgraph_node): Add the decl into varray.
15479
15480 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
15481
15482 * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
15483
15484 2003-03-08 Richard Earnshaw <rearnsha@arm.com>
15485
15486 * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
15487 (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
15488 (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
15489 (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
15490 All callers changed.
15491 * arm.md, arm.h, arm-protos.h: Updated.
15492
15493 * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
15494 (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
15495 * arm.c (arm_regno_class, f_register_operand): Updated.
15496
15497 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
15498
15499 * config/cris/cris.h: Remove EGCS references.
15500 (CPP_SPEC): Remove "-$".
15501 (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
15502
15503 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
15504
15505 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
15506 preference to CPP_PREDEFINES.
15507
15508 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
15509
15510 * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
15511
15512 2003-03-08 Kazu Hirata <kazu@cs.umass.edu>
15513
15514 * config/h8300/h8300.md (*extzv_16_8): New.
15515
15516 2003-03-08 Jan Hubicka <jh@suse.cz>
15517
15518 * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
15519 * cgraph.h: (cgraph_local_info): Add can_inline_once
15520 (cgraph_global_info): Add inline_once.
15521 (cgraph_node): Add previous.
15522 (cgraph_remove_node): New.
15523 * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
15524 function.
15525 (cgraph_optimize): Call it.
15526 (cgraph_finalize_function): Set inlinable flags.
15527 (cgraph_finalize_compilation_unit): Actually remove the reclaimed nodes.
15528 (cgraph_mark_functions_to_output): Use new inlining heuristics flags.
15529 (cgraph_expand_function): Likewise.
15530 * cgraph.c
15531 (cgraph_node): Put nodes into doubly linked chain.
15532 (cgraph_remove_node): New function.
15533 * flags.h (flag_inline_functions_called_once): Declare.
15534 * tree-inline.c: Include cgraph.h
15535 (inlinable_functions_p): Add extra argument to bypass limits.
15536 (expand_call_inline): Obey cgraph flag.
15537 * tree-inline.h (tree_inlinable_function_p): Update prototype.
15538
15539 2003-03-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15540
15541 * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
15542 irreducible loops.
15543
15544 * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
15545 loops info correctly.
15546
15547 2003-03-08 Eric Botcazou <ebotcazou@libertysurf.fr>
15548
15549 PR middle-end/7796
15550 * unroll.c (calculate_giv_inc): Handle constants being
15551 loaded with LSHIFTRT.
15552
15553 2003-03-07 David Edelsohn <edelsohn@gnu.org>
15554
15555 * config/rs6000/rs6000.c (processor_target_table): Do not disable
15556 GP optional instructions on Power3, Power4, 620, and 630.
15557
15558 2003-03-07 Kazu Hirata <kazu@cs.umass.edu>
15559
15560 * calls.c: Fix comment formatting.
15561 * cfgloopanal.c: Likewise.
15562 * cfgloopmanip.c: Likewise.
15563 * combine.c: Likewise.
15564 * dwarf2out.c: Likewise.
15565 * ggc-common.c: Likewise.
15566 * langhooks.c: Likewise.
15567 * loop-unroll.c: Likewise.
15568 * loop.c: Likewise.
15569 * ra-build.c: Likewise.
15570 * sbitmap.c: Likewise.
15571 * toplev.c: Likewise.
15572
15573 2003-03-07 James E Wilson <wilson@tuliptree.org>
15574
15575 * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
15576
15577 2003-03-07 Geoffrey Keating <geoffk@apple.com>
15578
15579 * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
15580 support -no-integrated-cpp.
15581
15582 * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
15583 than langhooks.name.
15584
15585 2003-03-07 Michael Matz <matz@suse.de>
15586
15587 * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
15588 (DF_FOR_REGALLOC): New.
15589 * df.c (df_ref_record): Set DF_REF_STRIPPED.
15590 (read_modify_subreg_p): Simplify.
15591 (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
15592 Use DF_FOR_REGALLOC.
15593 * ra.h (struct web): New member subreg_stripped.
15594 (invalid_mode_change_regs): Declare.
15595 * ra.c (invalid_mode_change_regs): New.
15596 (init_ra): Initialize it.
15597 * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
15598 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
15599 (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
15600 * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
15601 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
15602
15603 2003-03-07 Richard Earnshaw <rearnsha@arm.com>
15604
15605 * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
15606 (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
15607 (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
15608 machine description file from ...
15609 * cirrus.md: ... here.
15610
15611 2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
15612
15613 * config/h8300/h8300.md (a peephole2): Don't use
15614 reg_overlap_mentioned_p.
15615
15616 2003-03-06 Geoffrey Keating <geoffk@apple.com>
15617
15618 * c-pch.c: Include langhooks.h.
15619 (IDENT_LENGTH): New.
15620 (get_ident): New.
15621 (pch_ident): Delete.
15622 (pch_init): Use get_ident, IDENT_LENGTH.
15623 (c_common_valid_pch): Likewise. Also, use actual language
15624 in warning message.
15625 * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
15626
15627 * objc/config-lang.in (gtfiles): Add objc-act.c. Remove duplicate
15628 c-parse.in.
15629 * objc/Make-lang.in (objc/objc-act.o): Add dependency on
15630 gt-objc-objc-act.h.
15631 (gt-objc-objc-act.h): New rule.
15632 * objc/lang-specs.h: Support PCH.
15633 * objc/objc-act.c: Include gt-objc-objc-act.h.
15634 (objc_add_static_instance): Move num_static_inst out, mark for PCH.
15635 (build_selector_reference_decl): Move idx out, mark for PCH.
15636 (build_class_reference_decl): Likewise.
15637 (build_objc_string_decl): Move *_idx out, mark for PCH.
15638 (build_tmp_function_decl): Move xxx out, mark for PCH.
15639
15640 2003-03-06 Dale Johannesen <dalej@apple.com>
15641
15642 * config/rs6000/rs6000.c (rs6000_binds_local_p): Consider
15643 global functions for inlining on Darwin.
15644
15645 2003-03-06 Vladimir Makarov <vmakarov@redhat.com>
15646
15647 * haifa-sched.c (schedule_block): Don't call reorder when sorting
15648 is prohibited.
15649
15650 2003-03-06 Neil Booth <neil@daikokuya.co.uk>
15651
15652 * Makefile.in (c-ppoutput.o): Update.
15653 * c-common.h (init_pp_output): New.
15654 (preprocess_file): Update.
15655 * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
15656 Register builtins.
15657 * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
15658 Make call to cpp_read_main_file common to whether preprocessing
15659 or not. Don't register builtins.
15660 * c-ppoutput.c: Include c-pragma.h.
15661 (setup_callbacks): Rename init_pp_output.
15662 (preprocess_file): No longer setup callbacks or call
15663 cpp_read_main_file.
15664 * cpphash.h (_cpp_init_mbchar): New.
15665 * cppinit.c (init_library): Call _cpp_init_mbchar.
15666 * cpplex.c (_cpp_init_mbchar): New.
15667
15668 2003-03-06 Roger Sayle <roger@eyesopen.com>
15669
15670 * emit-rtl.c (gen_lowpart): When requesting the low-part of a
15671 MEM, try loading the MEM into a register and taking the low-part
15672 of that, to help CSE see the use of the MEM in its true mode.
15673
15674 2003-03-05 Tom Tromey <tromey@redhat.com>
15675
15676 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
15677 Define.
15678
15679 2003-03-05 Nick Clifton <nickc@cambridge.redhat.com>
15680
15681 * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
15682 operand 2.
15683 ("*ineqbranchsi"): Likewise.
15684
15685 2003-03-05 Andrew Haley <aph@cambridge.redhat.com>
15686
15687 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
15688 mem_fake_push_rtx. Instead construct a SEQUENCE to show the
15689 register store followed by a stack increment.
15690
15691 2003-03-05 Chris Moller <cmoller@redhat.com>
15692
15693 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
15694 to inhibit saving CARRY_REGS.
15695
15696 * config/stormy16/stormy16.c (xs_hi_general_operand):
15697 added predicate to detect and error-out on out-of-range
15698 const_ints for movhi.
15699 * config/stormy16/stormy16.md (movhi): use
15700 xs_hi_general_operand.
15701
15702 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
15703 added a check for local vbl size overflow.
15704 * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
15705 added predicate to detect and error-out on out-of-range
15706 const_ints for addhi and subhi.
15707 * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
15708 subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
15709
15710 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15711 add a term to accept PRE_MODIFY addresses.
15712 * config/stormy16/stormy16.c (xstormy16_expand_move):
15713 add code to expand PRE_MODIFY addresses to an add followed
15714 by a move.
15715
15716 2003-03-06 Jason Merrill <jason@redhat.com>
15717
15718 * tree-inline.c (inlinable_function_p): Revert earlier change
15719 pending investigation.
15720
15721 2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
15722
15723 * config/h8300/h8300.md (a new peephole2): New.
15724
15725 2003-03-06 Jan Hubicka <jh@suse.cz>
15726
15727 * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
15728
15729 2003-03-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15730
15731 * dwarf2out.c (size_of_die): Compute size of external reference to
15732 die correctly.
15733
15734 2003-03-06 Hans-Peter Nilsson <hp@bitrange.com>
15735
15736 * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
15737 ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
15738 expanders.
15739
15740 2003-03-05 Roger Sayle <roger@eyesopen.com>
15741
15742 * expr.h (lang_expand_expr): Delete obsolete prototype.
15743
15744 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
15745
15746 * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
15747
15748 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
15749
15750 * config/h8300/h8300.md (a peephole2): Generalize to
15751 accept a memory operand.
15752
15753 2003-03-05 Olivier Hainque <hainque@act-europe.fr>
15754
15755 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
15756 * config/alpha/alpha.c (print_operand, case '+'): New.
15757 * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
15758 (call_value_osf_1_noreturn): Likewise.
15759
15760 2003-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15761
15762 * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
15763 (expand_end_bindings): Likewise.
15764
15765 2003-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15766
15767 * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
15768 (epilogue): Don't generate return_external_pic when emitting PA 2.0
15769 code.
15770
15771 2003-03-05 Aldy Hernandez <aldyh@redhat.com>
15772
15773 * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
15774
15775 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
15776
15777 * hooks.c (hook_rtx_rtx_null): New.
15778
15779 * hooks.h (hook_rtx_rtx_null): Protoize.
15780
15781 * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
15782 (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
15783
15784 * target.h (struct gcc_target): Add dwarf_register_span.
15785
15786 * dwarf2out.c (multiple_reg_loc_descriptor): New.
15787 (one_reg_loc_descriptor): New.
15788 (reg_loc_descriptor): Add support for values that span more than
15789 one register.
15790
15791 2003-03-05 Jan Hubicka <jh@suse.cz>
15792
15793 * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
15794 * alias.c: Include cgraph.h
15795 (mark_constant_function): Use cgraph_rtl_info.
15796 * calls.c: Include cgraph.h
15797 (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
15798 calls.
15799 (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
15800 * cgraph.c (cgraph_rtl_info): New function.
15801 * cgraph.h (cgraph_rtl_info): Declare
15802 (cgraph_rtl_info): Likewise.
15803 * function.h (struct function): Add recursive_call_emit.
15804 * toplev.c: Include cgraph.h.
15805 (rest_of_compilation): Set preferred_incoming_stack_boundary.
15806
15807 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
15808
15809 * config/h8300/h8300.c (output_simode_bld): Clear the
15810 destination first if possible.
15811 * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
15812 alternative.
15813 (extzv_1_r_inv_h8300hs): Likewise.
15814
15815 2003-03-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15816
15817 * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
15818 * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
15819 * cfgloop.c (flow_loop_free): Made global.
15820 (establish_preds): New static function.
15821 (flow_loop_tree_node_add): Handle subloops of added loop correctly.
15822 (get_loop_exit_edges): New.
15823 (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
15824 * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
15825 * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
15826 loops.
15827 * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
15828 removability of an edge.
15829 (fix_irreducible_loops): New static function.
15830 (find_path, remove_path): Add ability to remove enclosing loops.
15831 (unloop): New.
15832 (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
15833 flags.
15834 * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
15835 * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
15836 not neccessary.
15837 (decide_peel_completely, peel_loops_completely): Allow complete peeling
15838 of non-duplicable once rolling loops.
15839 * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
15840
15841 2003-03-05 J"orn Rennecke <joern.rennecke@superh.com>
15842
15843 * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
15844 for align_jumps is 4.
15845
15846 (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
15847 use GENERAL_REGS.
15848
15849 2003-03-05 Stephane Carrez <stcarrez@nerim.fr>
15850
15851 * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
15852 according to va_arg type.
15853 (EXPAND_BUILTIN_VA_ARG): Remove.
15854 * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
15855 * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
15856
15857 2003-03-05 David Edelsohn <edelsohn@gnu.org>
15858
15859 * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
15860 else clauses.
15861
15862 2003-03-05 Michael Matz <matz@suse.de>
15863
15864 * i386/i386.c (ix86_save_reg): Also test
15865 current_function_uses_const_pool.
15866
15867 2003-03-05 Michael Matz <matz@suse.de>
15868
15869 * unwind.h: Add the GPL exception.
15870 * Makefile.in (USER_H): Add unwind.h.
15871
15872 2003-03-05 Eric Botcazou <ebotcazou@libertysurf.fr>
15873
15874 PR c/9799
15875 * c-typeck.c (push_init_level): Add sanity check.
15876
15877 2003-03-05 Jan Hubicka <jh@suse.cz>
15878
15879 * toplev.c (rest_of_compilation): Deffer RTL compilation only when
15880 RTL inlining is done.
15881
15882 * cgraphunit.c (cgraph_mark_local_functions): New local function.
15883 (cgraph_optimize): Mark local functions.
15884 * i386-protos.h (init_cumulative_args): Update prototype.
15885 * i386.c (init_cumulative_args): Use register passing convention for
15886 local functions.
15887
15888 * cgraph.c (cgraph_global_info_ready): New global variable
15889 (cgraph_local_info, cgraph_global_info): New functions.
15890 * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
15891 structures.
15892 (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
15893 Declare.
15894 * cgraphunit.c (cgraph_finalize_function): Set inline_many.
15895 (cgraph_mark_functions_to_output): Use inline_many.
15896 (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
15897 (cgraph_expand_functions): Expand inline functions last.
15898 (cgraph_optimize): Do not emit uneeded functions.
15899
15900 2003-03-04 Steve Ellcey <sje@cup.hp.com>
15901
15902 * expr.c (convert_modes): Check for legal hard register.
15903
15904 2003-03-04 Tom Tromey <tromey@redhat.com>
15905
15906 * doc/sourcebuild.texi (Front End Directory): Document tags.
15907 * configure: Rebuilt.
15908 * configure.in (target_list): Added tags.
15909 * Makefile.in (TAGS): Depend on lang.clean. Include subdirectory
15910 TAGS files by reference.
15911 * objc/Make-lang.in (objc.tags): New target.
15912
15913 2003-03-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15914
15915 * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
15916 gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
15917 gcov_write_string, gcov_read_unsigned, gcov_read_counter,
15918 gcov_read_string, gcov_write_length): Modified to enable reading/
15919 writing of whole .da file just once.
15920 (da_file_open, da_file_close, da_file_eof, da_file_error,
15921 da_file_position, da_file_seek, da_file_write, da_file_read): New
15922 functions.
15923 (actual_da_file, actual_da_file_position, actual_da_file_length,
15924 actual_da_file_buffer, actual_da_file_buffer_size): New static
15925 functions.
15926 * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
15927 just once.
15928
15929
15930 2003-03-04 Andreas Schwab <schwab@suse.de>
15931
15932 * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
15933 offset without frame pointer.
15934
15935 2003-03-04 Steve Ellcey <sje@cup.hp.com>
15936
15937 * expr.c (expand_expr): Call promote_mode to set unsignedp.
15938
15939 2003-03-04 Daniel Jacobowitz <drow@mvista.com>
15940
15941 * configure.in: Don't always define TARGET_SYSTEM_ROOT.
15942 * configure: Regenerated.
15943 * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
15944
15945 2003-03-04 Andreas Jaeger <aj@suse.de>
15946
15947 * configure.in: Check for <memcheck.h>.
15948 * configure: Regenerated.
15949
15950 * config.in: Define HAVE_MEMCHECK_H.
15951
15952 * ggc-common.c: Use <memcheck.h> if available instead of
15953 <valgrind.h>.
15954 * ggc-page.c: Likewise.
15955 * cppfiles.c: Likewise.
15956
15957 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
15958
15959 * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
15960
15961 2003-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
15962
15963 PR c/9262
15964 * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
15965 (c_finish_case): Rechain the next statements to the SWITCH_STMT.
15966
15967 2003-03-04 Jan Hubicka <jh@suse.cz>
15968
15969 * doc/invoke.texi: Document that unit-at-a-time is enabled for -O3
15970 * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
15971 for -O3.
15972
15973 2003-03-04 Nathanael Nerode <neroden@gcc.gnu.org>
15974
15975 * configure.in: Delete three unused variables. Move a variable
15976 definition closer to its use. Simplify use_collect2 logic. Start to
15977 organize. Simplify tests for in-tree gas and ld.
15978 * configure: Regenerate.
15979
15980 2003-03-04 Neil Booth <neil@daikokuya.co.uk>
15981
15982 * Makefile.in: Update.
15983 * c-common.c (flag_no_line_commands, flag_no_output,
15984 flag_dump_macros, flag_dump_includes): New.
15985 * c-common.h (flag_no_line_commands, flag_no_output,
15986 flag_dump_macros, flag_dump_includes, preprocess_file): New.
15987 (init_c_lex): Update prototype.
15988 * c-lex.c (init_c_lex): Update prototype; move some code to
15989 c_common_init.
15990 * c-opts.c (preprocess_file): Subsume into c_common_init.
15991 (c_common_decode_option): Update flags.
15992 (c_common_init): Move code from preprocess_file and init_c_lex.
15993 (sanitize_cpp_opts): Update.
15994 * c-ppoutput.c: New, cppmain.c almost verbatim.
15995 * cpphash.h (struct printer): Remove.
15996 (struct cpp_reader): Remove print.
15997 * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
15998 cpp_preprocess_file): Remove.
15999 (struct cpp_options): Remove no_output, no_line_commands, dump_macros
16000 and dump_includes.
16001 * cppmain.c: Remove.
16002 * doc/passes.texi: Update.
16003
16004 2003-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16005
16006 * function.c (STACK_ALIGNMENT_NEEDED): New macro. Default to 1.
16007 (assign_stack_local_1): Perform overall stack alignment only when
16008 STACK_ALIGNMENT_NEEDED is nonzero.
16009 * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
16010
16011 * pa.c (compute_frame_size): Rename fsize to size. Account for
16012 alignment to a word boundary before general register save block. Only
16013 account for double-word alignment before floating point register save
16014 block if one or more are saved. Don't allocate space for %r3 when
16015 frame pointer is needed.
16016 (hppa_expand_prologue): Include alignment to word boundary in local
16017 frame size.
16018 * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
16019 (STACK_ALIGNMENT_NEEDED): Define.
16020
16021 2003-03-04 Kevin Buettner <kevinb@redhat.com>
16022
16023 * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
16024 global register variables.
16025
16026 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
16027
16028 * reload.c (reload_adjust_reg_for_mode): New function.
16029 (subst_reloads): Call it.
16030 (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
16031 * reload.h (reload_adjust_reg_for_mode): Declare.
16032 * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
16033 Call it.
16034
16035 2003-03-03 James E Wilson <wilson@tuliptree.org>
16036
16037 * optabs.c (add_equal_note): Delete SUBREG_REG use.
16038 Fixes PR c/7872.
16039
16040 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
16041
16042 * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
16043 (*ixorsi3_lshiftrt_16): New.
16044 (*iorsi3_ashift_16): Remove.
16045
16046 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
16047
16048 * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
16049 pattern.
16050
16051 2003-03-03 Geoffrey Keating <geoffk@apple.com>
16052
16053 * doc/install.texi (Specific): Update entry for powerpc-darwin.
16054
16055 2003-03-03 Richard Henderson <rth@redhat.com>
16056
16057 * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
16058
16059 2003-03-03 David Edelsohn <edelsohn@gnu.org>
16060
16061 * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
16062 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
16063 (rs6000_variable_issue): Do not return negative value.
16064 (rs6000_issue_rate): Uniformly set issue rate to 1 for first
16065 scheduling pass.
16066
16067 2003-03-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16068
16069 * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
16070 prune_unused_types calls.
16071
16072 2003-03-03 Jason Merrill <jason@redhat.com>
16073
16074 * tree-inline.c (find_builtin_longjmp_call): Save and restore
16075 lineno and input_filename.
16076 (find_alloca_call): Likewise.
16077 (inlinable_function_p): Run the langhook earlier.
16078
16079 * calls.c (compute_argument_addresses): Give the new MEMs a
16080 minimum alignment of PARM_BOUNDARY.
16081
16082 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
16083
16084 * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
16085 subtarget_asm_isa_spec.
16086 (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
16087 (ASM_SPEC): Define as SH_ASM_SPEC.
16088 (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
16089 Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
16090 * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
16091 (SUBTARGET_ASM_ISA_SPEC): Undef / define.
16092
16093 * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
16094 and align_jumps if not set.
16095 Force align_jumps to be at least 2.
16096 When relaxing, force align_functions to be at least the maximum of
16097 align_loops, align_jumps and 4.
16098 * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
16099 (sh_loop_align): Honour align_loops_log.
16100
16101 * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
16102 to check for indirect_jump_scratch.
16103 (indirect_jump_scratch): Add second set.
16104 * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
16105 when looking for indirect_jump_scratch.
16106 Extract scratch register taking new structure of indirect_jump_scratch
16107 into account.
16108 (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
16109
16110 2003-03-03 Jan Hubicka <jh@suse.cz>
16111
16112 * calls.c (rtx_for_function_call): Take the address as an argument
16113 (expand_call): Do not modify the expression.
16114
16115 * toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not
16116 optimizing.
16117
16118 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
16119
16120 * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
16121 TARGET_H8300H and TARGET_H8300S.
16122
16123 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
16124
16125 * config/h8300/h8300.md (a peephole2): New.
16126
16127 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
16128
16129 * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
16130 operands[0] and operands[1] are different.
16131
16132 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
16133
16134 * reload1.c (reload_cse_move2add): Remove variable success.
16135
16136 2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16137
16138 * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
16139 warnings.
16140
16141 2003-03-02 Richard Henderson <rth@redhat.com>
16142
16143 * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
16144 * config.in, configure: Rebuild.
16145 * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
16146 * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
16147 paired ldtoffx and ldxmov annotations.
16148 (load_symptr_internal1): Remove.
16149 (load_symptr_high, load_symptr_low): New.
16150
16151 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
16152
16153 * c-incpath.c (add_path): Fix sysp assignment.
16154
16155 2003-03-02 Kurt Garloff <garloff@suse.de>
16156
16157 * params.def: Introduce parameter max-inline-insns-rtl for
16158 a separate limit for the RTL inliner.
16159 * params.h: Likewise.
16160 * integrate.c (function_cannot_inline_p): Use it.
16161 * toplev.c (decode_f_option): Set multiple parameters
16162 controlling inlining with -finline-limit.
16163 * params.def: Fix orthographic and typographic errors.
16164 * doc/invoke.texi: Document parameters controlling inlining
16165 and the way -finline-limit sets multiple of them.
16166
16167 * tree.h (struct tree_decl): Introduce inlined_function_flag,
16168 recording whether the function became eligible for inlining
16169 by a compiler flag rather than the declaration.
16170 Provide DID_INLINE_FUNC macro to access it.
16171 * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
16172 * cp/decl.c (grokfndecl): Likewise.
16173 * toplev.c (rest_of_compilation): Likewise.
16174 * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
16175 * print-tree.c (print_node): Report it.
16176 * params.def: Introduce new max-inline-insns-auto limit.
16177 * params.h: Likewise.
16178 * tree-inline.c (inlinable_function_p): Apply it to functions
16179 with DID_INLINE_FUNC set.
16180 * toplev.c (decode_f_option): Initialize it from -finline-limit
16181 value.
16182 * doc/invoke.texi: Document new parameter.
16183
16184 2003-03-02 Geoffrey Keating <geoffk@apple.com>
16185
16186 * fix-header.c (read_scan_file): Don't reference simplify_path.
16187
16188 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
16189
16190 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
16191 min/max instructions by default as may result in reload errors.
16192
16193 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
16194
16195 * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
16196 avoid reload problems; define split for it.
16197
16198 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
16199
16200 * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
16201 * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
16202 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
16203 * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
16204 rotatert and rotate.
16205 ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
16206 ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
16207 ("*rotrhi3_addr"): New split for shift insns on address register.
16208 ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
16209 * config/m68hc11/larith.asm (___rotlhi3): New asm function.
16210 (___rotrhi3): Likewise.
16211 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
16212
16213 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
16214
16215 * toplev.c (aux_base_name): Moved from toplev.h.
16216 (filename): Constify.
16217 (lang_dependent_init): Don't duplicate name.
16218 (process_options): Set aux_base_name here, not...
16219 (do_compile): ...here. Change protoype.
16220 (toplev_main): Move some code from do_compile.
16221 * toplev.h: Remove aux_base_name.
16222
16223 2003-03-02 Kazu Hirata <kazu@cs.umass.edu>
16224
16225 * config/h8300/h8300-protos.h: Add a prototype for
16226 iorxor_operator.
16227 * config/h8300/h8300.c (print_operand): Handle 'c'.
16228 (iorxor_operator): New.
16229 * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
16230 * config/h8300/h8300.md (*iorhi3_zext): Remove.
16231 (*iorsi3_zexthi): Likewise.
16232 (*iorsi3_zextsi): Likewise.
16233 (*xorhi3_zextqi): Likewise.
16234 (*xorsi3_zexthi): Likewise.
16235 (*xorsi3_zextsi): Likewise.
16236 (*ixorhi3_zext): New.
16237 (*ixorsi3_zext_qi): Likewise.
16238 (*ixorsi3_zext_hi): Likewise.
16239
16240 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
16241
16242 * c-incpath.c (remove_component_p, simplify_path): Move back to
16243 cppfiles.c.
16244 (remove_duplicates): Use cpp_simplify_path.
16245 * c-incpath.h (simplify_path): Remove.
16246 * c-lex.c: Don't include c-incpath.h.
16247 (init_c_lex): Remove simplify_path.
16248 * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
16249 (find_or_create_entry, validate_pch): Revert.
16250
16251 2003-03-02 Ashif Harji <asharji@uwaterloo.ca>
16252
16253 * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
16254 an external cpp during compilation.
16255 (option_map): Likewise.
16256 * objc/lang-specs.h (default_compilers): Similarly.
16257 * doc/invoke.texi: Document -no-integrated-cpp flag.
16258
16259 2003-03-02 Kazu Hirata <kazu@cs.umass.edu>
16260
16261 * config/h8300/h8300.md (zero_extendqisi2): Change to an
16262 expander.
16263 (*zero_extendqisi2_h8300): New.
16264 (*zero_extendqisi2_h8300hs): New.
16265 (two splitters): New.
16266
16267 2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16268
16269 * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
16270
16271 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
16272
16273 * config/h8300/h8300.md (a peephole2): Remove dead code.
16274
16275 2003-03-01 Roger Sayle <roger@eyesopen.com>
16276
16277 PR c++/9367
16278 * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
16279 (BT_FN_INT_CONST_STRING_VALIST_ARG,
16280 BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
16281 BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
16282 BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
16283 BT_FN_INT_STRING_CONST_STRING_VAR,
16284 BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
16285 BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
16286 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
16287 ATTR_NONNULL_3): Also include the nothrow attribute.
16288 (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
16289 vsnprintf, vscanf, vsscanf): Don't define attributes here.
16290 * builtins.def (putchar, puts): Make full C89 built-ins.
16291 (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
16292 vsscanf, vsnprintf, vsprintf): New built-ins.
16293 * c-common.c (c_common_nodes_and_builtins): Handle new macro
16294 DEF_FUNCTION_TYPE_VAR_3.
16295
16296 * doc/extend.texi: Document these new built-in functions.
16297
16298 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
16299
16300 * config/h8300/h8300.md (a peephole2): New.
16301
16302 2003-03-01 Richard Earnshaw <rearnsha@arm.com>
16303
16304 * predict.c (estimate_bb_frequencies): Correctly set
16305 real_values_initialized after initialization.
16306
16307 2003-03-01 Neil Booth <neil@daikokuya.co.uk>
16308
16309 * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
16310 cppinit.o, cppdefault.o, fix-header): Update.
16311 * c-incpath.c: New file.
16312 * c-incpath.h: New file.
16313 * c-lex.c: Include c-incpath.h.
16314 (init_c_lex): Register path simplifier.
16315 * c-opts.c: Include cppdefault.h and c-incpath.h.
16316 (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
16317 std_cxx_inc, quote_chain_split, add_prefixed_path): New.
16318 (COMMAND_LINE_OPTIONS): Add more options from cpplib.
16319 (missing_arg, c_common_decode_option): Handle them.
16320 (c_common_post_options): Register include chains.
16321 (print_help): Update.
16322 * cppdefault.h (struct default include): Update.
16323 Move some macros to ...
16324 * cppdefault.c: ... here.
16325 (cpp_include_defaults): Add extra field add_sysroot.
16326 * cppfiles.c (include_file, search_from, find_or_create_entry,
16327 cpp_included, find_include_file, remap_filename): Update for
16328 renaming of search_path to cpp_path, and of the chain headers.
16329 (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
16330 * cpphash.h (struct search_path): Move to cpplib.h.
16331 (struct cpp_buffer, struct cpp_reader): Update.
16332 (_cpp_simplify_pathname): Remove.
16333 * cppinit.c: Don't include prefix.h and cppdefault.h.
16334 (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
16335 remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
16336 init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
16337 no_pth, cpp_handle_options): Remove.
16338 (struct pending_option): Remove chain members.
16339 (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
16340 cpp_handle_option): Update.
16341 * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
16342 (struct cpp_options): Remove quote_include, bracket_include,
16343 include_prefix, include_prefix_len, verbose, ignore_srcdir,
16344 no_standard_includes, no_standard_cplusplus_includes.
16345 (struct cpp_callbacks): Add simplify_path.
16346 (cpp_handle_options): Remove.
16347 * fix-header.c: Include c-incpath.h.
16348 (read_scan_file): Update to use c-incpath functionality.
16349 * doc/passes.texi: Update.
16350
16351 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
16352
16353 * config/h8300/h8300.c (bit_operand): Accept MEM only if it
16354 satisfies EXTRA_CONSTRAINT 'U'.
16355
16356 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
16357
16358 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
16359 register.
16360 (*tst_extzv_memqi_1_n): Change to a splitter.
16361 (a peephole2): Update.
16362
16363 2003-03-01 Richard Earnshaw <rearnsha@arm.com>
16364
16365 * predict.c (estimate_bb_frequencies): Initialize the sreal
16366 constants once per compilation.
16367
16368 2003-02-28 Richard Henderson <rth@redhat.com>
16369
16370 * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
16371
16372 2003-02-28 scott snyder <snyder@fnal.gov>
16373
16374 * flags.h: Add flag_eliminate_unused_debug_types.
16375 * toplev.c: Add flag_eliminate_unused_debug_types.
16376 (f_options): Add -feliminate-unused-debug-types.
16377 * dwarf2out.c (struct file_table): Add emitted member.
16378 (splice_child_die): Fix the parent pointer for the child being
16379 spliced.
16380 (lookup_filename): Maintain file_table.emitted array. Don't
16381 output .file directive here.
16382 (maybe_emit_file): (new)
16383 (init_file_table): Set up file_table.emitted.
16384 (dwarf2out_source_line): Use maybe_emit_file.
16385 (dwarf2out_start_source_file): Use maybe_emit_file.
16386 (dwarf2out_init): Use maybe_emit_file.
16387 (prune_unused_types_walk_attribs): (new)
16388 (prune_unused_types_mark): (new)
16389 (prune_unused_types_walk): (new)
16390 (prune_unused_types_prune): (new)
16391 (prune_unused_types): (new)
16392 (dwarf2out_finish): Call prune_unused_types if
16393 flag_eliminate_unused_debug_types is set.
16394 * doc/invoke.texi (Option Summary): Add
16395 -feliminate-unused-debug-types.
16396 (Debugging Options): Likewise.
16397
16398 2003-02-28 Geoffrey Keating <geoffk@apple.com>
16399
16400 * doc/invoke.texi: Change .pch to .gch.
16401 * cppfiles.c (open_file_pch): Likewise.
16402 * gcc.c (default_compilers): Likewise.
16403
16404 2003-02-28 Aldy Hernandez <aldyh@redhat.com>
16405
16406 * floatlib.c: Remove.
16407
16408 2003-02-28 Jason Merrill <jason@redhat.com>
16409
16410 * stor-layout.c (variable_size): Leave a "minus 1" outside the
16411 SAVE_EXPR.
16412
16413 2003-02-28 David Edelsohn <edelsohn@gnu.org>
16414
16415 * config/rs6000/power4.md: Add compare bypass.
16416
16417 2003-02-28 Jason Thorpe <thorpej@wasabisystems.com>
16418
16419 * config/netbsd.h: Update copyright years.
16420 (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
16421 -pthread is specified on the command line.
16422
16423 2003-02-28 Dale Johannesen <dalej@apple.com>
16424
16425 * loop.c (struct movable): Add insert_temp, shrink savemode.
16426 (scan_loop): Accept invariants that require copying; mark as
16427 insert_temp.
16428 (combine_movables): Don't combine insert_temp movables.
16429 (move_movables): Insert copies for insert_temp movables.
16430 Don't record the info based on regno for insert_temp's.
16431
16432 2003-02-28 Joel Sherrill <joel@OARcorp.com>
16433
16434 PR 9638/other
16435 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
16436 this constant defaults to 1.
16437
16438 2003-02-28 Bob Wilson <bob.wilson@acm.org>
16439
16440 * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
16441
16442 2003-02-28 Richard Earnshaw <rearnsha@arm.com>
16443
16444 * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
16445 ARMv5e processor, not just for XScale. Instructions are predicable.
16446 (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
16447
16448 2003-02-28 Nick Clifton <nickc@redhat.com>
16449
16450 * config/arm/arm.c (note_invalid_constants): Change parameter type
16451 from bool to int.
16452
16453 2003-02-28 Kazu Hirata <kazu@cs.umass.edu>
16454
16455 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
16456 test of bit 7.
16457 (*tst_extzv_memqi_1_n): Likewise.
16458 (a peephole2): New.
16459
16460 2003-02-28 Richard Sandiford <rsandifo@redhat.com>
16461
16462 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
16463 #ifndef __mips16.
16464
16465 2003-02-28 Jan Hubicka <jh@suse.cz>
16466
16467 * combine.c (gen_lowpart_for_combine): Update handling of
16468 subregs_of_mode
16469 * flow.c (life_analysis, mark_used_regs): Likewise.
16470 * regclass.c (subregs_of_mode): Turn into single bitmap.
16471 (cannot_change-mode_set_regs, invalid_mode_change_p): Update
16472 dealing with subregs_of_mode
16473 * regs.h (subregs_of_mode): Update prototype.
16474
16475 2003-02-28 Josef Zlomek <zlomekj@suse.cz>
16476
16477 * emit-rtl.c (set_reg_attrs_for_parm): New function.
16478 * rtl.h (set_reg_attrs_for_parm): New exported function.
16479 * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
16480 set_reg_attrs_from_mem.
16481
16482 2003-02-27 Roger Sayle <roger@eyesopen.com>
16483 Zack Weinberg <zack@codesourcery.com>
16484
16485 * gcc.c (do_spec_1): Treat %U like %u for unique associations.
16486
16487 2003-02-27 Kazu Hirata <kazu@cs.umass.edu>
16488
16489 * reload1.c (sext_for_mode): Remove.
16490 (reload_cse_move2add): Use trunc_int_for_mode instead of
16491 sext_for_mode.
16492 (move2add_note_store): Likewise.
16493 Reset register information if we see a set in non-integer
16494 mode.
16495
16496 2003-02-27 David Edelsohn <edelsohn@gnu.org>
16497
16498 * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
16499 option.
16500 (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
16501 * config/rs6000/aix51.h: Same.
16502 * config/rs6000/aix52.h: Same.
16503 * config/rs6000/power4.md: Additional VMX bypasses.
16504
16505 2003-02-27 Geert Bosch <bosch@gnat.com>
16506
16507 * toplev.c (print_version): Add indentation for GGC heuristics and
16508 output after printing version information.
16509
16510 2003-02-27 James E Wilson <wilson@tuliptree.org>
16511
16512 * combine.c (simplify_comparison): Require integral mode when
16513 permuting SUBREG with AND.
16514
16515 2003-02-27 Steve Ellcey <sje@cup.hp.com>
16516
16517 * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
16518
16519 2003-02-27 Nick Clifton <nickc@redhat.com>
16520
16521 * config/arm/arm.md (extendsfdf2): Add pattern accidentally
16522 deleted when cirrus instructions were added.
16523
16524 2003-02-27 Jason Thorpe <thorpej@wasabisystems.com>
16525
16526 * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
16527 POSIX thread support by default.
16528
16529 2003-02-27 Roger Sayle <roger@eyesopen.com>
16530
16531 * config/i386/cygwin.h: Don't include any other files directly.
16532 * config/i386/mingw32.h: Don't include cygwin.h directly.
16533 * config.gcc (cygwin, mingw32, uwin): Instead make these files
16534 explicit in the tm_files variable.
16535
16536 2003-02-27 Alan Modra <amodra@bigpond.net.au>
16537
16538 * config/rs6000/rs6000.md: Add TI constant splitter.
16539
16540 2003-02-26 Alexandre Oliva <aoliva@redhat.com>
16541
16542 * builtins.c (purge_builtin_constant_p): Handle subreg of
16543 constant_p_rtx too.
16544
16545 * function.c (assign_stack_local_1): Truncate constant added to
16546 frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
16547
16548 2003-02-26 David Edelsohn <edelsohn@gnu.org>
16549
16550 * config.gcc: Add power4 to PowerPC with_cpu list.
16551
16552 2003-02-26 Jan Hubicka <jh@suse.cz>
16553
16554 * objc-act.c: (mark_referenced_methods): Fix compilation problem.
16555
16556 2003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16557
16558 * gcov-dump.c (print_prefix): Fix signedness warning.
16559 * gcov-io.h (struct counter_section, struct counter_section_data): New.
16560 (struct function_info): n_arc_counts field removed, n_counter_sections,
16561 counter_sections fields added.
16562 (struct gcov_info): arc_counts, n_arc_counts fields removed,
16563 n_counter_sections, counter_sections fields added.
16564 * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
16565 profile sections.
16566 * profile.h (MAX_COUNTER_SECTIONS): New.
16567 (struct section_info): New.
16568 (struct profile_info): count_instrumented_edges,
16569 count_edges_instrumented_now fields removed, n_sections, section_info
16570 fields added.
16571 (find_counters_section): Declare.
16572 * profile.c (struct function_list): count_edges field removed,
16573 n_counter_sections, counter_sections fields added.
16574 (set_purpose, label_for_tag, build_counter_section_fields,
16575 build_counter_section_value, build_counter_section_data_fields,
16576 build_counter_section_data_value, build_function_info_fields,
16577 build_function_info_value, build_gcov_info_fields,
16578 build_gcov_info_value): New static functions.
16579 (find_counters_section): New function.
16580 (instrument_edges, get_exec_counts, compute_branch_probabilities,
16581 branch_prob, create_profiler): Modified to support multiple profile
16582 sections.
16583
16584 2003-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16585
16586 * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
16587 is 8 * STACK_BOUNDARY.
16588 * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
16589
16590 2003-02-26 Michael Matz <matz@suse.de>
16591
16592 * ra-colorize.c (merge_moves): Fix list handling.
16593
16594 2003-02-26 Nick Clifton <nickc@redhat.com>
16595
16596 * config/arm/arm.c (is_load_address): Rename to...
16597 (arm_memory_load_p) ... this and make it check for SUBREGs and
16598 constant loads that will be converted into loads from the
16599 minipool.
16600 (is_cirrus_insn): Rename to ...
16601 (arm_cirrus_insn_p): ... this, for consistency. Replace test
16602 of CIRRUS_NO with CIRRUS_NOT.
16603 (cirrus_reorg): Use renamed functions.
16604 (note_invalid_constants): Change from a void function to bool.
16605 Add an extra parameter, saying whether the fixups should be
16606 pushed. Return true if fixups are needed.
16607 (arm_reorg): Use renamed functions. Use INSN_P. Replace test
16608 of CIRRUS_NO with CIRRUS_NOT.
16609 * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
16610 other floating point co-processors can also affect this.
16611 * config/arm/arm.md ("type" attribute): Add mav_farith and
16612 mav_dmult. Replace references to "cirrus_type" attribute with
16613 "type".
16614 * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
16615 ("cirrus_type" attribute): Delete - use "type" instead.
16616 ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
16617 'normal'.
16618
16619 2003-02-25 Jan Hubicka <jh@suse.cz>
16620
16621 * objc-act.c: Include cgraph.h
16622 (mark_referenced_methods): New function.
16623 (objc_init): Call it.
16624 * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
16625
16626 * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
16627 mode.
16628
16629 * optabs.c (expand_fix): Do not widen the input operand.
16630
16631 * expr.c (emit_group_store): Fix crash when converting single
16632 register into complex register.
16633
16634 * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
16635 * alias.c: Include timevar.h
16636 (init_alias_analysis): Set timevar
16637 * jump.c: Include timevar.h
16638 (rebuild_jump_labels): Set timevar
16639 * regcalss.c: Include timevar.h
16640 (reg_scan): Set timevar
16641 * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
16642
16643 2003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16644
16645 * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
16646
16647 * Makefile.in (loop-unroll.o): New.
16648 * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
16649 (unroll_and_peel_loops): Declare.
16650 * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
16651 flag_old_unroll_loops.
16652 * loop.c (loop_invariant_p): Ditto.
16653 * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
16654 flag_old_unroll_all_loops.
16655 * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
16656 (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
16657 * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
16658 (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
16659 PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
16660 PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
16661 PARAM_MAX_ONCE_PEELED_INSNS): New.
16662 * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
16663 (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
16664 instead of old one.
16665 (flag_peel_loops): New.
16666 (lang_independent_options): The new flags added.
16667 (rest_of_compilation): Call new unroller.
16668 (process_options): Setup flags for coexistence of old and new unroller.
16669 * doc/invoke.texi: Document new options.
16670 * doc/passes.texi: Document new unroller pass.
16671
16672 2003-02-26 David Billinghurst <David.Billinghurst@riotinto.com>
16673
16674 * fixinc/fixincl.x: Regenerate
16675
16676 2003-02-26 Josef Zlomek <zlomekj@suse.cz>
16677
16678 * function.c (assign_parms): Set reg_attrs for parameters passed in
16679 registers.
16680
16681 2003-02-26 Alan Modra <amodra@bigpond.net.au>
16682
16683 PR target/9681
16684 * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
16685
16686 2003-02-25 David Edelsohn <edelsohn@gnu.org>
16687
16688 * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
16689 pseudo-op.
16690
16691 2003-02-25 Roger Sayle <roger@eyesopen.com>
16692
16693 * combine.c (combine_simplify_rtx, simplfy_comparison): Use CC0_P.
16694 * cse.c (invalidate_skipped_set): Likewise.
16695 * integrate.c (subst_constants): Likewise.
16696 * jump.c (reversed_comparison_code_parts): Likewise.
16697 * loop.c (canonicalize_condition): Likewise.
16698 * simplify-rtx.c (simplify_relational_operation): Likewise.
16699
16700 2003-02-25 Roger Sayle <roger@eyesopen.com>
16701
16702 * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
16703 (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit): Use
16704 the appropriate macro to define built-in function.
16705 (fmod,fmodf,fmodl): New built-in functions.
16706
16707 * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
16708
16709 2003-02-25 Richard Henderson <rth@redhat.com>
16710
16711 * config/i386/i386.c (function_arg): Pass variable sized
16712 structures correctly on the stack.
16713
16714 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
16715
16716 * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
16717 does not reduce the cost of SET.
16718
16719 2003-02-25 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16720
16721 PR target/9732
16722 * config/rs6000/rs6000.c (first_reg_to_save): Handle
16723 PIC_OFFSET_TABLE_REGNUM for -fPIC too.
16724 (rs6000_emit_prologue): Likewise.
16725 (rs6000_emit_epilogue): Likewise.
16726 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
16727 PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
16728
16729 2003-02-25 Richard Henderson <rth@redhat.com>
16730
16731 * real.c (real_to_integer2): Force overflow result only for
16732 unsigned overflow.
16733
16734 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
16735
16736 * gcse.c (cprop_jump): Revert the 2003-02-23 change.
16737
16738 2003-02-25 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
16739 Richard Henderson <rth@redhat.com>
16740
16741 * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
16742 there is no similar load.
16743
16744 2003-02-25 Vladimir Makarov <vmakarov@redhat.com>
16745 Richard Henderson <rth@redhat.com>
16746
16747 * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
16748 sched-rgn.c.
16749 (add_forward_dependence): New function prototype.
16750
16751 * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
16752 sched-init.h.
16753 (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
16754 them to haifa-sched.c.
16755
16756 * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
16757 haifa_classify_insn): Move them from sched-rgn.c.
16758
16759 * sched-deps.c (add_dependence): Return flag of creating a new
16760 entry.
16761 (add_forward_dependence): New function.
16762 (compute_forward_dependences): Use the function.
16763
16764 * sched-ebb.c (earliest_block_with_similiar_load): New function.
16765 (add_deps_for_risky_insns): New function.
16766 (schedule_ebb): Call the function.
16767
16768 2003-02-20 Aldy Hernandez <aldyh@redhat.com>
16769
16770 * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
16771 TARGET_VECTOR_OPAQUE_P. Document accordingly.
16772
16773 * testsuite/gcc.dg/20030218-1.c: Check that initialization of
16774 opaque types fail.
16775
16776 * c-typeck.c (comptypes): Change call to vector_types_compatible
16777 to vector_opaque_p.
16778 (convert_for_assignment): Call vector_opaque_p instead of
16779 vector_types_compatible.
16780 (really_start_incremental_init): Disallow initialization of opaque
16781 types.
16782
16783 * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
16784 Define TARGET_VECTOR_OPAQUE_P.
16785 (TARGET_INITIALIZER): Same.
16786
16787 * target.h (struct gcc_target): Remove vector_types_compatible.
16788 Add vector_opaque_p.
16789
16790 * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
16791 Remove.
16792 (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
16793 a vector type. Change return type to bool.
16794 (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
16795 (TARGET_VECTOR_OPAQUE_P): Define.
16796
16797 * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
16798 target hook.
16799 Include target.h.
16800 (cp_parser_init_declarator): Fix typo in function comments.
16801
16802 2003-02-25 Jan Hubicka <jh@suse.cz>
16803
16804 * Makefile.in (lcm.o): Add dependency on function.h
16805 * lcm.c (function.h): Include.
16806 * i386.c (machine_function, ix86_stack_locals,
16807 * ix86_save_varrargs_registers) : Move to
16808 ...
16809 * i386.h (machine_function, ix86_stack_locals,
16810 ix86_save_varrargs_registers): ... here; add optimize_mode_switching
16811 (ix86_optimize_mode_switching): New.
16812 * i386.md (fix patterns): Set ix86_optimize_mode_switching
16813
16814 2003-02-25 Nick Clifton <nickc@redhat.com>
16815
16816 * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo. Name
16817 of fourth arg is 'fndecl' not 'indirect'. Update comment
16818 describing the function's parameters.
16819
16820 2003-02-24 Jan Hubicka <jh@suse.cz>
16821
16822 * combine.c (simplify_shift_const): Fix previous patch.
16823
16824 2003-02-24 Jeff Law <law@redhat.com>
16825
16826 * i386.md (testdi_1_rex64): Discourage reload from using the %eax
16827 alternative.
16828 (testsi_1, testhi_1, testqi_1): Likewise.
16829
16830 2003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16831
16832 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
16833 __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
16834 * doc/extend.texi (Tru64 Pragmas): Reflect this.
16835
16836 * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
16837 extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
16838 * fixinc/fixincl.x: Regenerate.
16839 * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
16840 testcase.
16841 Fixes PR c/5059, c/6126, other/9671.
16842
16843 2003-02-24 Roger Sayle <roger@eyesopen.com>
16844
16845 * gcc.c (do_spec_1) ['{']: Handle pending argument upon return
16846 from handle_braces in "%{...}".
16847
16848 2003-02-24 Kaz Kojima <kkojima@gcc.gnu.org>
16849
16850 * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
16851 (prepare_move_operands): Handle TLS operands.
16852 (tls_symbolic_operand): New.
16853 (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
16854 (legitimize_pic_address): Do nothing for the TLS symbol.
16855 (sh_encode_section_info): Handle TLS case.
16856 (sh_strip_name_encoding): Drop TLS encoding.
16857 * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
16858 * config/sh/sh.h (SH_TLS_ENCODING): Define.
16859 (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
16860 (ASM_OUTPUT_LABELREF): Drop TLS encoding.
16861 (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
16862 * config/sh/sh.md: Define TLS UNSPEC constants.
16863 (type): Add tls_load.
16864 ("tls_global_dynamic", "tls_local_dynamic"): New insns.
16865 ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
16866 ("tls_initial_exec"): New insn.
16867 ("sym2TPOFF", "symTPOFF2reg"): New expanders.
16868 ("load_gbr"): New insn.
16869
16870 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
16871 * configure: Regenerate.
16872
16873 2003-02-24 Alan Modra <amodra@bigpond.net.au>
16874
16875 PR 9297, PR 9722
16876 * calls.c (store_one_arg): Revert 1999-02-16 change. Revert
16877 2000-12-17 change. Pass EXPAND_STACK_PARM to expand_expr.
16878 * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
16879 (enum block_op_methods): Reorder for better store_expr optimization.
16880 * expr.c (store_expr): Test bit 1 of "want_value" for call param
16881 stores, test bit 0 for original want_value meaning. Pass
16882 BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set. Adjust
16883 recursive calls, and calls to expand_param.
16884 (expand_expr): Handle EXPAND_STACK_PARM modifier. When cse
16885 expected, set target to 0 rather than to subtarget. Formatting.
16886
16887 2003-02-23 Kazu Hirata <kazu@cs.umass.edu>
16888
16889 * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
16890
16891 2003-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16892
16893 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
16894 new default behavior.
16895 * ggc-common.c: Include sys/resource.h.
16896 (ggc_rlimit_bound): New function.
16897 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
16898 defaults to account for rlimits.
16899
16900 2003-02-22 Richard Henderson <rth@redhat.com>
16901
16902 * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
16903
16904 2003-02-22 Kelley Cook <kelley@dwhoops.info>
16905
16906 * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
16907 (ix86_tune_string): Rename from ix86_cpu_string.
16908
16909 2003-02-22 Kelley Cook <kelleycook@comcast.net>
16910
16911 * config/i386/i386.c: Replace "mcpu" with "mtune".
16912 * config/i386/i386.h (TARGET_OPTIONS): Likewise.
16913 (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
16914 * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
16915 with "mtune". Note that "mcpu" is a deprecated synonym for "mtune".
16916
16917 2003-02-23 Andreas Schwab <schwab@suse.de>
16918
16919 * config.gcc: Delete references to m68k/t-linux and
16920 m68k/t-linux-aout.
16921 * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
16922
16923 2003-02-22 Jan Hubicka <jh@suse.cz>
16924
16925 * toplev.c (rest_of_compilation): Apply fotgotten hunk
16926 of track scheduling patch.
16927
16928 2003-02-22 Jan Hubicka <jh@suse.cz>
16929
16930 * config/linux.h (TARGET_HAS_F_SETLKW): Define.
16931 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
16932
16933 2003-02-22 Jan Hubicka <jh@suse.cz>
16934
16935 * c-decl.c (c_expand_body_1): Fix.
16936
16937 2003-02-22 Jan Hubicka <jh@suse.cz>
16938
16939 * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
16940
16941 * cfgcleanup.c (try_forward_edges): Don't check loop structures
16942 when not optimizing.
16943 (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
16944 when not expensive.
16945 * toplev.c (rest_of_compilation): Duplicate loop headers only when
16946 optimizing; Delete trivially dead insns early; fix optimize check.
16947
16948 * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
16949 dependency on cgraph.h
16950 * c-decl.c: Include cgraph.h
16951 (finish_function): Update call of tree_inlinable_function_p.
16952 * c-objc-common.c: Include cgraph.h
16953 * cgraph.h: New file.
16954 * cgraphunit.c: New file.
16955 * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
16956 (cgraph_nodes, cgraph_n_nodes): Globalize.
16957 (cgraph_finalize_function, cgraph_finalize_compilation_unit
16958 cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
16959 Move into cgraphunit.c
16960 * tree-inline.c: Include cgraph.h
16961 * tree-inline.c: Include cgraph.h
16962
16963 2003-02-22 Josef Zlomek <zlomekj@suse.cz>
16964
16965 * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
16966 for copying a register.
16967
16968 2003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
16969
16970 PR other/3782
16971 * toplev.c (process_options): If flag_detailed_statistics is set,
16972 then set time_report as well.
16973
16974 PR c/8828
16975 * jump.c (never_reached_warning): Don't fall through BARRRIER
16976 insns. Update comments to reflect what the function really does.
16977
16978 2003-02-21 Roger Sayle <roger@eyesopen.com>
16979
16980 * fold-const.c (omit_one_operand): No longer static.
16981 * tree.h (omit_one_operand): Prototype here.
16982 (div_and_round_double): Keep fold-const.c prototypes together.
16983 * builtins.c (builtin_mathfn_code): Handle binary built-in
16984 funtions, such as "pow" and "atan2".
16985 (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
16986 Simplify optimizations using "type" the builtin's return type.
16987
16988 2003-02-22 Hans-Peter Nilsson <hp@axis.com>
16989
16990 * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
16991 Fix functionalization typo.
16992
16993 * regmove.c (optimize_reg_copy_1): Do not replace a hard register
16994 in an asm.
16995
16996 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16997
16998 * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
16999 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
17000 documentation.
17001 * ggc-common.c: Include params.h
17002 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
17003 init_ggc_heuristics): New functions.
17004 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
17005 init_ggc_heuristics): Prototype.
17006 * toplev.c (print_version): Output GGC heuristics.
17007 (parse_options_and_default_flags): Call init_ggc_heuristics.
17008
17009 2003-02-22 Jan Hubicka <jh@suse.cz>
17010
17011 * i386.c (def_builtin): Special case 64bit builtins.
17012 (MASK_SSE164, MASK_SSE264): New constants.
17013 (builtin_description): Add 64bit builtins.
17014 (ix86_init_mmx_sse_builtins): Likewise.
17015 * i386.h (enum ix86_builtins): Likewise.
17016 * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
17017 sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
17018 (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
17019 * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
17020 * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
17021 _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
17022 _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
17023
17024 2003-02-22 Jan Hubicka <jh@suse.cz>
17025
17026 * i386.c (builtin_description): Add __builtin_ia32_paddq and
17027 __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
17028 and __builtin_ia32_psubq128.
17029 * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
17030 * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
17031 (mmx_adddi3, mmx_subdi3): New.
17032 * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
17033 * xmmintrin.h (_mm_movepi64_pi64): New.
17034 (_mm_add_epi64, _mm_sub_epi64): fix.
17035 (_mm_mul_pu16): Rename to...
17036 (_mm_mul_su32): ... this one.
17037
17038 * builtins.c (expand_builtin_expect): Do not predict
17039 flag_guess_branch_prob is not set.
17040 * c-semantics.c (expand_stmt): Likewise.
17041 * predict.c (predict_insn): Likewise.
17042 * stmt.c (expand_continue_loop): Likewise.
17043 * toplev.c (rest_of_compilation): Do not call
17044 note_prediction_to_br_prob and note_prediction_to_br_prob
17045 when not optimizing.
17046
17047 2003-02-21 Jan Hubicka <jh@suse.cz>
17048
17049 * cfgrtl.c (commit_edge_insertions): Call
17050 find_many_sub_basic_block only when some code has been emitted.
17051 (commit_edge_insertions_watch_calls): Bring into sync with
17052 commit_edge_insertions
17053
17054 2003-02-21 J"orn Rennecke <joern.rennecke@superh.com>
17055
17056 * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
17057
17058 * sh.md (binary_sf_op): Use extra constant operand instead of
17059 negating constant operand 4.
17060 * sh.c (sh_expand_binop_v2sf): Supply it.
17061
17062 2003-02-21 Zack Weinberg <zack@codesourcery.com>
17063
17064 * cpphash.h (struct lexer_state): Add directive_wants_padding.
17065 * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
17066 for directives of type INCL.
17067 (glue_header_name, parse_include): Use get_token_no_padding.
17068 * cppmacro.c (replace_args): If directive_wants_padding,
17069 provide padding tokens.
17070
17071 2003-02-21 Kazu Hirata <kazu@cs.umass.edu>
17072
17073 * config/h8300/h8300.md (a peephole2): New.
17074
17075 2003-02-21 Jan Hubicka <jh@suse.cz>
17076
17077 * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
17078 (commit_edge_insertions): Call find_many_sub_basic_blocks
17079
17080 * reg-stack.c (convert_regs): Cleax aux for blocks.
17081
17082 2003-02-21 Jan Hubicka <jh@suse.cz>
17083
17084 * toplev.c (parse_options_and_default_flags): Undo accidental commit.
17085
17086 2003-02-21 Glen Nakamura <glen@imodulo.com>
17087
17088 PR optimization/8613
17089 * builtins.c (expand_builtin): Emit postincrements before expanding
17090 builtin functions.
17091
17092 2003-02-21 Ben Elliston <bje@redhat.com>
17093
17094 PR other/5634
17095 * doc/install.texi (Configuration): Explain using $HOME instead of
17096 the ~ metacharacter when referring to home directories.
17097
17098 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
17099
17100 * configure.in (TARGET_SYSTEM_ROOT): Set default to
17101 ${exec_prefix}/${target_alias}/sys-root. Match explicit
17102 '${exec_prefix}' (in addition to the expansion thereof) as
17103 relocatable.
17104 * configure: Rebuilt.
17105
17106 2003-02-20 Kazu Hirata <kazu@cs.umass.edu>
17107
17108 * config/h8300/h8300.md (addhi3_incdec): Change the name to
17109 *addhi3_incdec.
17110 (addsi3_incdec): Change the name to *addsi3_incdec.
17111
17112 2003-02-20 Roger Sayle <roger@eyesopen.com>
17113
17114 * explow.c (force_reg): Avoid useless REG_EQUAL notes.
17115
17116 2003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
17117
17118 PR fortran/9038
17119 * c-opts.c (sanitize_cpp_opts): Add Fortran front end
17120 options to be ignored.
17121 (c_common_decode_option): Ignore them when preprocessing.
17122
17123 2003-02-20 Jan Hubicka <jh@suse.cz>
17124
17125 * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
17126 global variables.
17127 (lang_independent_options): Add -fsched2-use-superblocks
17128 -fsced2-use-traces.
17129 (rest_of_compilation): Deal with it.
17130 * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare.
17131 * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
17132 Declare.
17133 * rtl.h (reg_to_stack): Update prototype.
17134 * reg-stack.c (reg_to_stack): Return when something has changed;
17135 update liveness when executing after superblock scheduling.
17136
17137 * combine.c (simplify_shift_const): Simplify few special cases
17138 into constants.
17139
17140 2003-02-20 David Edelsohn <edelsohn@gnu.org>
17141
17142 * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
17143 (add.,subf.,neg.): Change attribute to fast_compare.
17144 All DFA descriptions updated.
17145
17146 2003-02-20 Nathan Sidwell <nathan@codesourcery.com>
17147
17148 Change base class access representation.
17149 * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
17150 TREE_VIA_PRIVATE): Remove.
17151 (BINFO_BASEACCESSES): New binfo elt.
17152 (BINFO_BASEACCESS): New accessor.
17153 (BINFO_ELTS): Increase.
17154 (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
17155 (access_public_node, access_protected_node,
17156 access_private_node): New global nodes.
17157 * tree.c (build_common_tree_nodes_2): Initialize access nodes.
17158 * dbxout.c (dbxout_type): Adjust.
17159 * dwarf2out.c (gen_inheritance_die): Add access parameter.
17160 (gen_member_die): Adjust.
17161 * dwarfout.c (output_inheritance_die): ARG is array of two trees.
17162 (output_type): Adjust.
17163 * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
17164
17165 Change base class access representation. Share virtual base
17166 binfos.
17167 * cp/call.c (build_special_member_call): Remove binfo_for_vbase
17168 call.
17169 * cp/class.c (build_base_path): Likewise.
17170 (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
17171 (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
17172 (make_new_vtable): Adjust.
17173 (force_canonical_binfo_r): Delete.
17174 (force_canonical_binfo): Delete.
17175 (mark_primary_virtual_base): Delete.
17176 (dfs_unshared_virtual_bases): Delete.
17177 (mark_primary_bases): Adjust.
17178 (maybe_warn_about_overly_private_class): Adjust.
17179 (dfs_base_derived_from): Delete.
17180 (base_derived_from): Follow the inheritance chain.
17181 (struct find_final_overrider_data): Add vpath member.
17182 (dfs_find_final_overrider): Adjust.
17183 (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
17184 (find_final_overrider): Adjust.
17185 (update_vtable_entry_for_fn): Adjust.
17186 (modify_all_vtables): Adjust.
17187 (walk_subobject_offsets): Adjust.
17188 (layout_nonempty_base_or_field): Adjust.
17189 (layout_empty_base): Remove last parameter. Adjust.
17190 (build_base_field): Adjust.
17191 (build_base_fields): Adjust.
17192 (propagate_binfo_offsets): Remove last parameter. Adjust.
17193 (dfs_set_offset_for_unshared_vbases): Delete.
17194 (layout_virtual_bases): Adjust.
17195 (finish_struct_1): Adjust.
17196 (init_class_processing): Don't init access nodes.
17197 (dfs_get_primary_binfo): Delete.
17198 (get_primary_binfo): Adjust.
17199 (dump_class_hierarchy_r): Remove most derived arg, add IGO
17200 parameter. Adjust.
17201 (dump_class_hierarchy): Adjust.
17202 (finish_vtbls): Adjust.
17203 (get_original_base): Delete.
17204 (build_vtt_inits): Adjust.
17205 (dfs_build_secondary_vptr_vtt_inits): Adjust.
17206 (dfs_ctor_vtable_bases_queue_p): Adjust.
17207 (build_ctor_vtbl_group): Adjust.
17208 (dfs_accumulate_vtbl_inits): Adjust.
17209 (build_vtbl_initializer): Adjust.
17210 (build_vbase_offset_vtbl_entries): Adjust.
17211 (add_vcall_offset_vtbl_entries_1): Adjust.
17212 * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
17213 (access_*_node): Remove.
17214 (CANONICAL_BINFO): Delete.
17215 (BINFO_UNSHARED_MARKED): Remove.
17216 (BINFO_MARKED): Set LANG_FLAG_0 directly.
17217 (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
17218 (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
17219 (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
17220 Delete.
17221 (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
17222 (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
17223 (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
17224 Delete.
17225 (BINFO_DEPENDENT_BASE_P): New.
17226 (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
17227 index.
17228 (markedp, unmarkedp): Adjust.
17229 (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
17230 dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
17231 find_vbase_instance, binfo_for_vbase): Delete.
17232 (copied_binfo, original_binfo): Declare.
17233 (finish_base_specifier): Add virtual_p arg.
17234 (unshare_base_binfos): Delete.
17235 (copy_base_binfos): Declare.
17236 (reverse_path): Delete.
17237 * cp/decl.c (xref_basetypes): Access and virtuality passed
17238 differently. Don't copy direct base binfos here. Call
17239 copy_base_binfos.
17240 * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
17241 (initialize_vtbl_ptrs): Adjust.
17242 (expand_member_init): Adjust.
17243 * cp/parser.c (cp_parser_base_specifier): Adjust.
17244 * cp/pt.c (instantiate_class_template): Adjust.
17245 (get_template_base_recursive): Adjust.
17246 * cp/rtti.c (get_pseudo_ti_init): Adjust.
17247 (get_pseudo_ti_desc): Adjust.
17248 * cp/tree.c (unshare_base_binfos): Rename to ...
17249 (copy_base_binfos): ... here, reimplement.
17250 (make_binfo): Set BINFO_DEPENDENT_BASE_P.
17251 (reverse_path): Remove.
17252 * cp/typeck.c (get_delta_difference): Adjust error messages.
17253 * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
17254 * cp/search.c (lookup_base_r): Adjust.
17255 (dynamic_cast_base_recurse): Adjust.
17256 (canonical_binfo): Remove.
17257 (dfs_canonical_queue): Remove.
17258 (dfs_assert_unmarked_p): Remove.
17259 (assert_canonical_unmarked): Remove.
17260 (shared_marked_p, shared_unmarked_p): Remove.
17261 (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
17262 (dfs_access_in_type): Adjust.
17263 (access_in_type): Adjust.
17264 (dfs_accessible_queue_p): Adjust.
17265 (dfs_accessible_p): Adjust.
17266 (is_subobject_of_p_1, is_subobject_of_p): Remove.
17267 (struct lookup_field_info): Remove from_dep_base_p field.
17268 (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
17269 (lookup_field_r): Remove dependent base code.
17270 (lookup_member): Likewise.
17271 (dfs_walk, dfs_walk_real): Add access arg to queue fn.
17272 (dfs_unmarked_real_bases_queue_p): Remove.
17273 (dfs_marked_real_bases_queue_p): Remove.
17274 (dfs_skip_vbases): Remove.
17275 (dfs_get_pure_virtuals): Adjust.
17276 (markedp, unmarkedp): Adjust.
17277 (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
17278 (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
17279 (dfs_unmark): Adjust.
17280 (dfs_get_vbase_types):Remove.
17281 (dfs_build_inheritance_graph_order): Remove.
17282 (get_vbase_types): Remove
17283 (dfs_find_vbase_instance): Remove.
17284 (find_vbase_instance): Remove.
17285 (dfs_debug_unmarkedp): Adjust.
17286 (dependent_base_p): Remove.
17287 (dfs_push_type_decls): Adjust.
17288 (dfs_push_decls): Adjust.
17289 (dfs_no_overlap_yet): Adjust.
17290 (copied_binfo): New function.
17291 (original_binfo): New function.
17292 (binfo_for_vbase): Remove.
17293
17294 Change base class access representation.
17295 * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
17296 (add_interface_do): Likewise.
17297
17298 2003-02-20 David Edelsohn <edelsohn@gnu.org>
17299
17300 * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
17301 * config/rs6000/power4.md (power4-store,power4-vecstore): New
17302 insn reservations.
17303 (power4-fpstore): Compact.
17304
17305 2003-02-20 Kazu Hirata <kazu@cs.umass.edu>
17306
17307 * config/h8300/h8300.md (*iorsi3_w): New.
17308
17309 2003-02-20 Josef Zlomek <zlomekj@suse.cz>
17310
17311 * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
17312 * rtl.c (reg_note_name): Likewise.
17313 * rtl.h (enum reg_note): Likewise.
17314 * doc/invoke.texi: Likewise.
17315 * doc/rtl.texi: Likewise.
17316
17317 2003-02-20 Josef Zlomek <zlomekj@suse.cz>
17318
17319 * bb-reorder.c (find_traces_1_round): Fix comment typo.
17320
17321 2003-02-19 Roger Sayle <roger@eyesopen.com>
17322
17323 * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
17324 addition in the presence of signaling NaNs.
17325
17326 2003-02-19 Krister Walfridsson <cato@df.lth.se>
17327
17328 * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
17329
17330 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
17331
17332 * config/h8300/h8300.c (output_logical_op): Optimize or.l when
17333 ORing with 0xffff??00 with the highest bit of the ?? part set.
17334 (compute_logical_op_length): Update.
17335 (compute_logical_op_cc): Likewise.
17336
17337 2003-02-19 Josef Zlomek <zlomekj@suse.cz>
17338
17339 * bb-reorder.c (find_traces_1_round): Fixed condition for small
17340 destination block with multiple predecessors.
17341 (connect_traces): Check whether the block is a start of trace.
17342
17343 2003-02-19 Jan Hubicka <jh@suse.cz>
17344
17345 * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
17346 * function.c (assign_params): Likewise.
17347 * arm-protos.h (arm_init_cumulative_args): Update prototype.
17348 * arm.c (arm_init_cumulative_args): Update function.
17349 * arm.h (INIT_CUMULATIVE_ARGS): Update.
17350 * avr-protos.h (init_cumulative_args): Update prototype.
17351 * avr.c (init_cumulative_args): Update function.
17352 * avr.h (INIT_CUMULATIVE_ARGS): Update.
17353 * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
17354 * d30v.c (d30v_init_cumulative_args): Update function.
17355 * d30v.h (INIT_CUMULATIVE_ARGS): Update.
17356 * frv-protos.h (frv_init_cumulative_args): Update prototype.
17357 * frv.c (frv_init_cumulative_args): Update function.
17358 * frv.h (INIT_CUMULATIVE_ARGS): Update.
17359 * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
17360 * pa.h (INIT_CUMULATIVE_ARGS): Update.
17361 * sparc-protos.h (init_cumulative_args): Update prototype.
17362 * sparc.c (init_cumulative_args): Update function.
17363 * sparc.h (INIT_CUMULATIVE_ARGS): Update.
17364 * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
17365
17366 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
17367
17368 * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
17369 (*ashiftsi_sextqi_7): Likewise.
17370
17371 2003-02-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17372
17373 * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
17374 ISO C99 and C++.
17375
17376 * fixinc/inclhack.def (irix___restrict): Don't change __restrict
17377 for C++ on IRIX 6.5.1[89].
17378 * fixinc/tests/base/internal/sgimacros.h: New file.
17379
17380 * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
17381 * fixinc/tests/base/internal/wchar_core.h: New file.
17382
17383 * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
17384 socklen_t definition.
17385 * fixinc/fixincl.x: Regenerate.
17386 * fixinc/tests/base/sys/socket.h: New file.
17387 Fixes PR libgcj/9652.
17388
17389 2003-02-19 Jan Hubicka <jh@suse.cz>
17390
17391 * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
17392
17393 2003-02-19 David Edelsohn <edelsohn@gnu.org>
17394
17395 * config/rs6000/rs6000.c (rs6000_override_options): Initialize
17396 align_jumps_max_skip and align_loops_max_skip.
17397
17398 2003-02-19 Thierry Moreau <thierry.moreau@connotech.com>
17399
17400 * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
17401 test size if named section.
17402
17403 2003-02-19 Daniel Jacobowitz <drow@mvista.com>
17404
17405 * expr.c (expand_expr): Use gen_int_mode for the argument
17406 to gen_rtx_MULT.
17407
17408 2003-02-19 Jan Hubicka <jh@suse.cz>
17409
17410 * i386.md (cosxf2): Fix conditional.
17411
17412 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
17413
17414 * config/h8300/h8300.md (extendqisi2): Change to an expander.
17415 (*extendqisi2_h8300): New.
17416 (*extendqisi2_h8300hs): Likewise.
17417
17418 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
17419
17420 * config/h8300/h8300-protos.h: Update the prototype for
17421 split_adds_subs. Remove the prototypes for
17422 const_int_le_2_operand and const_int_le_6_operand.
17423 * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
17424 (const_int_le_2_operand): Remove.
17425 (const_int_le_6_operand): Likewise.
17426 * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
17427 for const_int_le_2_operand and const_int_le_6_operand.
17428 * config/h8300/h8300.md: Update all uses of split_adds_subs.
17429 (a peephole2): New.
17430
17431 2003-02-18 Jan Hubicka <jh@suse.cz>
17432
17433 * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
17434 (cgraph_expand_function): Rewrite.
17435
17436 2003-02-18 Matt Austern <austern@apple.com>
17437
17438 * toplev.c, langhooks.c, langhooks-def.h: Move
17439 write_global_declarations from toplev.c to langhooks.c.
17440
17441 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
17442
17443 * config/h8300/h8300.c (general_operand_src): Always check
17444 MODE.
17445 (general_operand_dst): Likewise.
17446
17447 2003-02-18 Roger Sayle <roger@eyesopen.com>
17448
17449 * convert.c (convert_to_real): Also optimize (float)log(x) into
17450 logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
17451
17452 2003-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
17453
17454 * config/sh/sh.c (unspec_caller_rtx_p): New.
17455 (sh_cannot_copy_insn_p): New.
17456 (TARGET_CANNOT_COPY_INSN_P): New.
17457
17458 2003-02-18 Richard Henderson <rth@redhat.com>
17459
17460 * c-common.c (handle_used_attribute): Accept static data too.
17461
17462 2003-02-18 Nick Clifton <nickc@redhat.com>
17463 Aldy Hernandez <aldyh@redhat.com>
17464
17465 * testsuite/gcc.dg/20030218-1.c: New.
17466
17467 * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
17468
17469 * target-def.h (TARGET_INITIALIZER): Add
17470 TARGET_VECTOR_TYPES_COMPATIBLE.
17471 (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
17472
17473 * target.h (struct gcc_target): Add field vector_types_compatible.
17474
17475 * c-typeck.c (comptypes): Take into account
17476 TARGET_VECTOR_TYPES_COMPATIBLE.
17477 (convert_for_assignment): Same.
17478
17479 * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
17480 (rs6000_spe_vector_types_compatible): New.
17481 (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
17482
17483 2003-02-19 Andreas Schwab <schwab@suse.de>
17484
17485 * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
17486 * toplev.c: Include langhooks-def.h.
17487
17488 2003-02-18 Chris Demetriou <cgd@broadcom.com>
17489
17490 * config/mips/mips.h (enum processor_type): Sort entries
17491 alphabetically.
17492 * config/mips/mips.md (define_attr cpu): Sync with processor_type
17493 enum values, including adding entries that were missing.
17494
17495 2003-02-18 J"orn Rennecke <joern.rennecke@superh.com>
17496
17497 * sh.c (calc_live_regs): Also check GET_CODE when checking if
17498 initial value for PR_REG is still the PR_REG register.
17499
17500 2003-02-18 Jim Wilson <wilson@redhat.com>
17501
17502 * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
17503 instruction in output template.
17504 (bsp_value): Change output template from string to C code, add %,
17505 before actual instruction.
17506 (flushrs): Mark as not predicable.
17507
17508 2003-02-18 Krister Walfridsson <cato@df.lth.se>
17509
17510 * inclhack.def (netbsd_bogus_semicolon): New fix.
17511 * fixincl.x: Rebuilt.
17512 * tests/base/ctype.h: Update.
17513
17514 2003-02-18 Roger Sayle <roger@eyesopen.com>
17515
17516 * fold-const.c (negate_expr_p): New function to determine whether
17517 an expression can be negated cheaply.
17518 (fold) [MINUS_EXPR]: Use it to determine whether to transform
17519 -A - B into -B - A for floating point types.
17520
17521 2003-02-18 Roger Sayle <roger@eyesopen.com>
17522
17523 * sbitmap.c (sbitmap_resize): New function.
17524 * sbitmap.h (sbitmap_resize): Prototype here.
17525 * recog.c (split_all_insns): Use sbitmap_resize.
17526
17527 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
17528
17529 * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
17530 insn length.
17531 (extendqisi2): Likewise.
17532 (*extendhisi2_h8300): Likewise.
17533
17534 2003-02-18 Matt Austern <austern@apple.com>
17535
17536 * langhooks.h, langhooks-def.h: introduce new langhook,
17537 final_write_globals, with write_global_declarations as default.
17538 * toplev.c: Move invocation of wrapup_global_declarations from
17539 compile_file to new function, write_global_declarations. Change
17540 compile_file to use final_write_globals hook. Change
17541 wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
17542 conditional.
17543
17544 2003-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17545
17546 * pa.md: Correct and enhance comment.
17547
17548 2003-02-18 Geoffrey Keating <geoffk@apple.com>
17549
17550 * gcc.c (validate_switches): Don't scan past closing '}'.
17551
17552 2003-02-18 Ben Elliston <bje@redhat.com>
17553
17554 PR c++/1607
17555 * doc/extend.texi (Function Attributes): Document the effect of
17556 the C++ "this" parameter on the counting of arguments for the
17557 "format" and "format_arg" attributes.
17558
17559 2003-02-17 Aldy Hernandez <aldyh@redhat.com>
17560
17561 * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
17562 (__ev_stdw): Same.
17563 (__ev_stdh): Same.
17564
17565 2003-02-17 Jan Hubicka <jh@suse.cz>
17566
17567 * recog.c (split_all_insns): Fix memory overflow.
17568
17569 2003-02-17 Kazu Hirata <kazu@cs.umass.edu>
17570
17571 * config/h8300/h8300.md (cmpqi): Remove mode from compare.
17572 (cmphi): Likewise.
17573 (*cmphi_h8300): Likewise.
17574 (*cmphi_h8300hs): Likewise.
17575 (cmpsi): Likewise.
17576 (7 peephole2): Likewise.
17577
17578 2003-02-16 Jan Hubicka <jh@suse.cz>
17579
17580 * c-typeck.c (build_c_cast): Fold constant variables into
17581 initial values.
17582
17583 2003-02-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17584
17585 * doc/install.texi (Specific): Fix link for m68k-att-sysv.
17586 (Binaries): Ditto for Sinix/Reliant Unix.
17587
17588 2003-02-16 Richard Earnshaw <rearnsha@arm.com>
17589
17590 * arm.c (arm_reload_in_hi): Ensure that the scratch register does
17591 not overlap the final result register.
17592
17593 2003-02-16 Arend Bayer <arend.bayer@web.de>
17594 Richard Henderson <rth@redhat.com>
17595
17596 PR c/8068
17597 * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
17598 rearrange mult arguments for less recursion.
17599 (extract_muldiv): New. Prevent runaway recursion.
17600
17601 2003-02-16 Danny Smith <dannysmith@users.sourceforge.net>
17602
17603 * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
17604 MASK_ALIGN_DOUBLE.
17605
17606 2003-02-15 Roger Sayle <roger@eyesopen.com>
17607
17608 * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
17609 to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
17610 (ext_80387_constants_table): Global table of 80387 special constants
17611 guarded by ext_80387_constants_init flag when not initialized.
17612 (init_ext_80387_constants): New function to initialize this table.
17613 (standard_80387_constant_p): Extend to recognize extra 80387
17614 constants, in XFmode, on processors where this is a win.
17615 (standard_80387_constant_opcode): New function to return the
17616 opcode associated with standard_80387_constant_p.
17617 (standard_80387_constant_rtx): New function to return the XFmode
17618 CONST_DOUBLE associated with standard_80387_constant_p.
17619 (ix86_rtx_costs): Give the new constants the same cost as 1.0.
17620
17621 * config/i386/i386-protos.h (standard_80387_constant_opcode):
17622 Prototype here.
17623 (standard_80387_constant_rtx): Likewise.
17624
17625 * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
17626 *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
17627 *movtf_integer): Simplify using new standard_80387_constant_opcode.
17628
17629 2003-02-15 Geoffrey Keating <geoffk@apple.com>
17630
17631 * doc/invoke.texi (Optimize Options): Correct @option syntax.
17632
17633 2003-02-15 Richard Henderson <rth@redhat.com>
17634
17635 * Makefile.in (cfglayout.o): Depend on TARGET_H.
17636 * cfglayout.c: Include target.h.
17637 (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
17638 * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
17639 * target.h (struct gcc_target): Add cannot_copy_insn_p.
17640
17641 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
17642 (TARGET_CANNOT_COPY_INSN_P): New.
17643 (override_options): Revert 2003-02-08 hack.
17644
17645 2003-02-15 Richard Henderson <rth@redhat.com>
17646
17647 * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
17648 (bypass_conditional_jumps): Accept computed_jump_p insns as well.
17649
17650 2003-02-15 David Edelsohn <edelsohn@gnu.org>
17651
17652 * config/rs6000/rs6000.h (processor_type): Add PPC440.
17653 * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
17654 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
17655 TARGET_SCHED_VARIABLE_ISSUE): Define.
17656 (rs6000_use_dfa_pipeline_interface): New function.
17657 (rs6000_multipass_dfa_lookahead): New Function.
17658 (rs6000_variable_issue): New function.
17659 (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
17660 (rs6000_issue_rate): Add PPC440.
17661 * config/rs6000/rs6000.md (unspec list): Correct typo.
17662 (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
17663 store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
17664 cmp, delayed_cr, mfcr, mtcr.
17665 (automata_option): Set "ndfa".
17666 (extendMMNN2): Update attributes.
17667 (movcc_internal1): Discourage move to non-cr0. Update
17668 attributes.
17669 (movMM_update): Update attributes.
17670 (cmpMM_internal): Update attributes.
17671 (sCC CR materialization): Update attributes.
17672 (branch patterns): Do not discourage non-cr0.
17673 (cr logical patterns): Prefer destructive register allocation.
17674 Update attributes.
17675 (movesi_from_cr): Update attribute.
17676 (mtcrf_operation): Update attribute.
17677 (mtcrfsi): Update attribute.
17678 * config/rs6000/40x.md: New file.
17679 * config/rs6000/603.md: New file.
17680 * config/rs6000/6xx.md: New file.
17681 * config/rs6000/7450.md: New file.
17682 * config/rs6000/7xx.md: New file.
17683 * config/rs6000/mpc.md: New file.
17684 * config/rs6000/power4.md: New file.
17685 * config/rs6000/rios1.md: New file.
17686 * config/rs6000/rios2.md: New file.
17687 * config/rs6000/rs64.md: New file.
17688 [Some DFA descriptions based on work by Michael Hayes]
17689
17690 2003-02-15 Richard Henderson <rth@redhat.com>
17691
17692 * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
17693 successors with multiple predecessors.
17694 (connect_traces): Try harder to copy traces of length 1.
17695
17696 * function.h (struct function): Add computed_goto_common_label,
17697 computed_goto_common_reg.
17698 * function.c (free_after_compilation): Zap them.
17699 * stmt.c (expand_computed_goto): Use them to produce one
17700 indirect branch per function.
17701
17702 2003-02-15 Richard Henderson <rth@redhat.com>
17703
17704 * cfgcleanup.c: Include params.h.
17705 (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES. Fix test for
17706 too many outgoing edges from a block.
17707 * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
17708 * params.def (max-crossjump-edges): New.
17709 * doc/invoke.texi: Document it.
17710
17711 2003-02-15 Richard Henderson <rth@redhat.com>
17712
17713 * recog.c (split_all_insns): Include new blocks in life update;
17714 do a global life update.
17715
17716 2003-02-15 Danny Smith <dannysmith@users.sourceforge.net>
17717
17718 * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
17719 Update copyright.
17720 * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
17721 -mno-cygwin case.
17722
17723 2003-02-14 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
17724
17725 PR optimization/7702
17726 * reload1.c (reload_cse_simplify_set): Honor
17727 CANNOT_CHANGE_MODE_CLASS.
17728
17729 2003-02-14 Alexandre Oliva <aoliva@redhat.com>
17730
17731 * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
17732 function.
17733 * config/mn10300/mn10300-protos.h: Declare it.
17734 * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
17735 attribute cc of instructions that may use clr.
17736
17737 2003-02-14 Kazu Hirata <kazu@cs.umass.edu>
17738
17739 * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
17740 (x - (x & y)) is found.
17741
17742 2003-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17743
17744 * configure.in: Fix typo.
17745 * configure: Regenerate.
17746
17747 2003-02-14 Kazu Hirata <kazu@cs.umass.edu>
17748
17749 * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
17750
17751 2003-02-13 Adam Nemet <anemet@lnxw.com>
17752
17753 PR opt/2391
17754 * combine.c: Fix spelling in comment.
17755 (cached_nonzero_bits): New function.
17756 (cached_num_sign_bit_copies): New function.
17757 (nonzero_bits_with_known): New macro.
17758 (num_sign_bit_copies_with_known): New macro.
17759 (nonzero_bits1): Rename from nonzero_bits. Add three new
17760 arguments. Change calls from nonzero_bits to
17761 nonzero_bits_with_known.
17762 (num_sign_bit_copies1): Rename from num_sign_bit_copies. Add
17763 three new arguments. Change calls from num_sign_bit_copies to
17764 num_sign_bit_copies_with_known.
17765 (nonzero_bits): New macro.
17766 (num_sign_bit_copies): New macro.
17767 (update_table_tick): Don't traverse identical subexpression more
17768 than once.
17769 (get_last_value_validate): Likewise.
17770
17771 2003-02-13 Zack Weinberg <zack@codesourcery.com>
17772
17773 * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
17774 * function.h (struct emit_status): Length of regno_pointer_align
17775 and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
17776 not regno_pointer_align_length (i.e. length actually used, not
17777 length as allocated)
17778
17779 * config/i386/i386.c (struct stack_local_entry): New.
17780 (struct machine_function): Replace huge array with alist.
17781 (assign_386_stack_local): Change to match.
17782
17783 2003-02-13 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
17784
17785 * inclhack.def (hpux_long_double): Tighten select and add bypass
17786 regexp.
17787 * fixincl.x: Rebuilt.
17788
17789 2003-02-13 Josef Zlomek <zlomekj@suse.cz>
17790
17791 * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
17792 edge and block ends with a jump insn it must be simple jump.
17793
17794 2003-02-13 Daniel Jacobowitz <drow@mvista.com>
17795
17796 * Makefile.in (PREPROCESSOR_DEFINES): Add
17797 @TARGET_SYSTEM_ROOT_DEFINE@.
17798 * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
17799 is specified or if building a cross compiler.
17800 (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
17801 if the sysroot is under $exec_prefix.
17802 * configure: Regenerated.
17803 * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
17804 defined.
17805 (struct default_include): Add add_sysroot field.
17806 (cpp_SYSROOT): Declare.
17807 * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
17808 field.
17809 (cpp_SYSROOT): New variable.
17810 * cppinit.c (cpp_create_reader): Initialize
17811 CPP_OPTION (pfile, sysroot).
17812 (init_standard_includes): Handle add_sysroot. Do not
17813 add unrelocated copies of relocated directories.
17814 (COMMAND_LINE_OPTIONS): Add -isysroot.
17815 (cpp_handle_option): Handle -isysroot.
17816 * cpplib.h (struct cpp_options): Add sysroot member.
17817 * gcc.c (The Specs Language): Update description of %I.
17818 (target_system_root_changed): New variable.
17819 (process_command): Conditionalize make_relative_prefix call
17820 on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE. Set
17821 target_system_root_changed.
17822 (do_spec_1): Add -isysroot to %I.
17823 * doc/invoke.texi (Spec Files): Update description of %I.
17824 * doc/install.texi (--with-sysroot): Update comment about
17825 relocation.
17826
17827 2003-02-13 Kazu Hirata <kazu@cs.umass.edu>
17828
17829 * config/h8300/h8300.md (a peephole2): New.
17830
17831 2003-02-13 Robert Lipe <robertlipe@usa.net>
17832 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17833
17834 * doc/install.texi (Specific): Update three SCO-related URLs.
17835
17836 2003-02-13 Andreas Schwab <schwab@suse.de>
17837
17838 * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
17839 Parenthesize properly.
17840 (NPREDECESORS): Parenthesize properly.
17841
17842 2003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
17843
17844 * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
17845
17846 2003-02-12 Roger Sayle <roger@eyesopen.com>
17847
17848 * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
17849 (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
17850
17851 * reg-stack.c (subst_stack_regs_pat): Add support for binary
17852 UNSPEC instructions (e.g. "fpatan").
17853
17854 2003-02-12 Mike Stump <mrs@apple.com>
17855
17856 * varray.c (element_size): Remove.
17857 (uses_ggc): Remove.
17858 (element): Add.
17859 (varray_init): Use new interface.
17860 (varray_grow): Use new interface.
17861 (varray_clear): Use new interface.
17862
17863 2003-02-12 Aldy Hernandez <aldyh@redhat.com>
17864
17865 * config/rs6000/spe.h: Add casts to the arguments of the following
17866 macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
17867 evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
17868 evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
17869 __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
17870 __ev_get_u16, __ev_get_s16.
17871
17872 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
17873
17874 * config/h8300/h8300.md (a peephole2): New.
17875
17876 2003-02-12 Jan Hubicka <jh@suse.cz>
17877
17878 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
17879 (OBJS): Add callgraph.o
17880 (callgraph.o): New.
17881 * c-decl.c (expand_body_1): Break out from ...
17882 (expand_body): This one; change calling convention
17883 (finish_function): Move some of expand_body logic here.
17884 (c_expand_deferred_function): Update call of expand_body
17885 (c_expand_stmt): Use c_expand_body_1.
17886 * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
17887 * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
17888 * c-tree.h (c_expand_body): Declare.
17889 * callgraph.c: New file.
17890 * flags.h (flag_unit_at_a_time): Declare.
17891 * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
17892 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
17893 LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
17894 * langhooks.h (struct lang_hooks_for_callgraph): New.
17895 (struct lang_hooks): Add callgraph field.
17896 * toplev.c (flag_unit_at_a_time): New.
17897 (lang_independent_options): Add flag_unit_at_a_time.
17898 (process_options): Disable unit-at-a-time mode for frontends not
17899 supporting callgraph.
17900 * tree-inline.c (typedef struct inline_data): Add "decl"
17901 (expand_call_inline): Update callgraph.
17902 (optimize_inline_calls): Set id.decl.
17903 * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
17904 cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
17905 cgraph_calls_p): Declare.
17906 * invoke.texi (-funit-at-a-time): Document
17907
17908 2003-02-12 Aldy Hernandez <aldyh@redhat.com>
17909
17910 * config/rs6000/spe.h: Fix misc formatting.
17911 (__ev_create_ufix32_fs): Cast ev argument.
17912 (__ev_create_sfix32_fs): Same.
17913 (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
17914 (__ev_get_ufix32_fs_internal): Same.
17915
17916 2003-02-12 Ranjit Mathew <rmathew@hotmail.com>
17917
17918 * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
17919 * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
17920
17921 2003-02-12 Zack Weinberg <zack@codesourcery.com>
17922
17923 * cpplib.c (do_include_common): Move warnings for
17924 #include_next and #import out to callers. Use early-return
17925 instead of nested ifs. Don't do check_eol here.
17926 (parse_include): Do check_eol here with the rest of the
17927 parsing stuff.
17928 (do_include_next, do_import): Now handle warnings.
17929
17930 2003-02-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17931
17932 * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
17933
17934 2003-02-12 Jan Hubicka <jh@suse.cz>
17935
17936 * predict.c (estimate_probability): Fix roundoff error.
17937
17938 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
17939
17940 * config/h8300/h8300.md (a peephole2): Don't handle 65535.
17941 (two peephole2): New.
17942
17943 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
17944
17945 * config/h8300/h8300.md (several peephole2): Replace
17946 find_regno_note with peep2_reg_dead_p.
17947
17948 2003-02-11 Richard Henderson <rth@redhat.com>
17949
17950 * gcse.c (lookup_set): Remove unused argument PAT. Update
17951 both callers.
17952
17953 2003-02-11 Geoffrey Keating <geoffk@apple.com>
17954
17955 * diagnostic.c (real_abort): New.
17956 (diagnostic_report_diagnostic): Call real_abort on error.
17957 * diagnostic.h (diagnostic_abort_on_error): New.
17958 (struct diagnostic_context): Add abort_on_error field.
17959 * toplev.c (setup_core_dumping): New.
17960 (decode_d_option): Handle 'H' case.
17961 * doc/invoke.texi (Debugging Options): Document -dH.
17962
17963 2003-02-11 Nathanael Nerode <neroden@gcc.gnu.org>
17964
17965 * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
17966 which refers to obsolete directories.
17967
17968 2003-02-11 Richard Henderson <rth@redhat.com>
17969
17970 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
17971
17972 2002-10-21 Jan Hubicka <jh@suse.cz>
17973
17974 * i386.c (contains_128bit_aligned_vector_p): New function.
17975 (ix86_function_arg_boundary): Properly align vector modes.
17976
17977 2003-02-11 Bob Wilson <bob.wilson@acm.org>
17978
17979 * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
17980 * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
17981 as a SET pattern.
17982
17983 2003-02-11 Roger Sayle <roger@eyesopen.com>
17984
17985 * builtins.c: Fix failure caused by commiting wrong patch.
17986
17987 2003-02-11 Dale Johannesen <dalej@apple.com>
17988 * ra-build.c (compare_and_free_webs): Relax checking.
17989 * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME): Define.
17990 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
17991
17992 2003-02-11 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
17993
17994 PR optimization/9651
17995 * rtlanal.c (may_trap_p): Handle FIX.
17996
17997 2003-02-11 Dave Jones <davej@codemonkey.org.uk>
17998
17999 * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
18000 * doc/invoke.texi: Extra alias.
18001
18002 2003-02-11 Geoffrey Keating <geoffk@apple.com>
18003
18004 * config/rs6000/host-darwin.c: Fix comment.
18005
18006 2003-02-11 David Edelsohn <edelsohn@gnu.org>
18007
18008 * config/rs6000/rs6000.md (divmodsi4): Use register_operand
18009 predicate for mod result.
18010
18011 2003-02-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18012
18013 * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
18014 hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
18015 * fixincl.x: Rebuilt.
18016 * tests/base/stdlib.h: Update.
18017 * tests/base/ctype.h: New file.
18018
18019 2003-02-11 Jan Hubicka <jh@suse.cz>
18020
18021 * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
18022
18023 2003-02-11 Richard Henderson <rth@redhat.com>
18024
18025 * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
18026 appropriated as globals.
18027 (ix86_expand_clrstr): Similarly.
18028 * config/i386/i386.md (cmpstrsi): Similarly.
18029
18030 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
18031
18032 * config/h8300/h8300.md (a peephole2): Add a case of 255.
18033
18034 2003-02-11 Roger Sayle <roger@eyesopen.com>
18035
18036 * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
18037 (pow_optab, atan2_optab): Define corresponding macros.
18038 * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
18039 * genopinit.c (optabs): Implement pow_optab and atan2_optab
18040 using pow?f3 and atan2?f3 patterns.
18041 * builtins.c (expand_errno_check): New function to update errno
18042 if necessary, split out from expand_builtin_mathfn.
18043 (expand_builtin_mathfn): Use expand_errno_check.
18044 (expand_builtin_mathfn_2): New function to handle expanding binary
18045 math functions, reusing the code in expand_errno_check.
18046 (expand_builtin): Handle the pow and atan2 math built-ins,
18047 BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
18048 expand_builtin_mathfn_2.
18049
18050 * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
18051
18052 2003-02-11 Jan Hubicka <jh@suse.cz>
18053
18054 * combine.c (combine_simplify_rtx): Fix folding of
18055 nested float_truncates.
18056
18057 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
18058
18059 * config/h8300/h8300.md (a peephole2): Fix a typo.
18060
18061 2003-02-11 Richard Earnshaw <rearnsha@arm.com>
18062
18063 * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
18064 register number.
18065
18066 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
18067
18068 * config/h8300/h8300-protos.h: Add a prototype for
18069 gtuleu_operator.
18070 * config/h8300/h8300.c (gtuleu_operator): New.
18071 * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
18072 * config/h8300/h8300.md (a peephole2): New.
18073
18074 2003-02-11 Jan Hubicka <jh@suse.cz>
18075
18076 * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
18077
18078 2003-02-11 Jan Hubicka <jh@suse.cz>
18079
18080 * predict.c (choose_function_section): Choose sections correctly.
18081
18082 2003-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18083
18084 * reload1.c (first_label_num): New.
18085 (reload): Index offsets_known_at and offsets_at using difference of
18086 label number and first label number. Don't use offset pointers.
18087 (set_label_offsets, set_initial_label_offsets): Likewise.
18088
18089 2003-02-10 Roger Sayle <roger@eyesopen.com>
18090
18091 * mips-tfile.c (init_file): Add missing initializers in the
18092 "#ifdef __alpha" case.
18093 (file_offset, max_file_offset): Declare as unsigned long.
18094 (write_varray): Cast to "unsigned long" in comparisons against
18095 either file_offset or max_file_offset.
18096 (write_object): Likewise.
18097 (read_seek): Likewise.
18098 (copy_object): Likewise. Declare "ifd" as int to match its use
18099 in add_ext_symbol, and avoid signed/unsigned conditional warning.
18100
18101 2003-02-10 Nick Clifton <nickc@redhat.com>
18102 Aldy Hernandez <aldyh@redhat.com>
18103
18104 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
18105 override options which have been specified on the command line.
18106
18107 2003-02-10 Kazu Hirata <kazu@cs.umass.edu>
18108
18109 * config/h8300/h8300.md (abssf2): New.
18110 (*abssf2_h8300): Likewise.
18111 (*abssf2_h8300hs): Likewise.
18112
18113 2003-02-10 Phil Edwards <pme@gcc.gnu.org>
18114
18115 * tree.c (build_tree_list): Fix parameter names in comment.
18116
18117 2003-02-10 Janis Johnson <janis187@us.ibm.com>
18118
18119 * config/rs6000/ppc64-fp.c: New file.
18120 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
18121
18122 2003-02-10 Josef Zlomek <zlomekj@suse.cz>
18123
18124 * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
18125 * bb-reorder.c (make_reorder_chain): Deleted.
18126 (make_reorder_chain_1): Deleted.
18127 (find_traces): New function.
18128 (rotate_loop): New function.
18129 (mark_bb_visited): New function.
18130 (find_traces_1_round): New function.
18131 (copy_bb): New function.
18132 (bb_to_key): New function.
18133 (better_edge_p): New function.
18134 (connect_traces): New function.
18135 (copy_bb_p): New function.
18136 (get_uncond_jump_length): New function.
18137 (reorder_basic_blocks): Use new functions (Software Trace Cache).
18138 * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
18139 boundaries.
18140
18141 2003-02-10 Aldy Hernandez <aldyh@redhat.com>
18142
18143 * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
18144
18145 2003-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18146
18147 * tree.h (struct tree_decl): Remove unused live_range_rtl field.
18148 (DECL_LIVE_RANGE_RTL): Remove.
18149
18150 2003-02-10 Nick Clifton <nickc@redhat.com>
18151
18152 * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
18153 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
18154 config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
18155 config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
18156 config/arm/freebsd.h, config/arm/linux-elf.h,
18157 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
18158 config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
18159 config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
18160 config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
18161 config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
18162 config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
18163 config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
18164 and reformat as appropriate.
18165
18166 2003-02-10 Kazu Hirata <kazu@cs.umass.edu>
18167
18168 * config/h8300/clzsi2.c: Remove.
18169 * config/h8300/ctzsi2.c: Likewise.
18170 * config/h8300/paritysi2.c: Likewise.
18171 * config/h8300/popcountsi2.c: Likewise.
18172 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
18173 ctzsi2, paritysi2, and popcountsi2.
18174
18175 2003-02-10 Eric Botcazou <ebotcazou@libertysurf.fr>
18176 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
18177
18178 PR c/7741
18179 * c-decl.c (duplicate_decls): Discard the initializer of the
18180 new decl when the types are conflicting.
18181
18182 2003-02-10 Josef Zlomek <zlomekj@suse.cz>
18183
18184 * Makefile.in (sreal.o): Added.
18185 (predict.o): Depends on sreal.h instead of real.h.
18186 * sreal.c: New file.
18187 * sreal.h: New file.
18188 * predict.c: Use sreal.c instead of real.c.
18189
18190 2003-02-10 Nick Clifton <nickc@redhat.com>
18191
18192 * Contributed support for the Cirrus EP9312 "Maverick"
18193 floating point co-processor. Written by Aldy Hernandez
18194 <aldyh@redhat.com>.
18195 (config/arm/arm.c): Add Cirrus support.
18196 (config/arm/arm.h): Likewise.
18197 (config/arm/aout.h): Likewise.
18198 (config/arm/arm.md): Likewise.
18199 (config/arm/arm-protos.h): Likewise.
18200 (config.gcc): Likewise.
18201 (doc/invoke.texi): Describe new -mcpu value and new
18202 -mcirrus-fix-invalid-insns switch,
18203 (cirrus.md): New file.
18204
18205 2003-02-10 Jan Hubicka <jh@suse.cz>
18206
18207 * combine.c (combine_simplify_rtx): Simplify using
18208 (float_truncate (float x)) is (float x)
18209 (float_extend (float_extend x)) is (float_extend x).
18210
18211 2003-02-10 Alan Modra <amodra@bigpond.net.au>
18212
18213 * calls.c (try_to_integrate): Tidy stack_usage_map access.
18214 (emit_library_call_value_1): Likewise. Formatting.
18215 (store_one_arg): Likewise.
18216
18217 2003-02-09 Nick Clifton <nickc@redhat.com>
18218 Aldy Hernandez <aldyh@redhat.com>
18219
18220 * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
18221 spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
18222 spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
18223 spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
18224 spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
18225 docs. Add range test for immediate value.
18226
18227 2003-02-09 Aldy Hernandez <aldyh@redhat.com>
18228
18229 Rename spe_evxor to xorv2si3.
18230 (xorv4hi3): New.
18231 (xorv1di3): New.
18232
18233 2003-02-10 Glen Nakamura <glen@imodulo.com>
18234
18235 * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
18236 tag.
18237
18238 2003-02-10 Jan Hubicka <jh@suse.cz>
18239
18240 * i386.c (vector_move_operand): New predicate.
18241 (ix86_expand_vector_move): Be happy about 0.
18242 * i386.h (PREDICATE_CODES): Add sse-move_operand.
18243 * i386.md (mov*_internal): Add 'C' alternative.
18244
18245 2003-02-09 Jan Hubicka <jh@suse.cz>
18246
18247 * i386.md (floathi*): Deal with SSE.
18248
18249 2003-02-09 Jan Hubicka <jh@suse.cz>
18250
18251 * simplify-rtx.c (simplify_unary_operation,
18252 simplify_binary_operation): Deal with vector modes
18253 (simplify_ternary_operation): Deal with no-op VEC_MERGE.
18254
18255 2003-02-09 Richard Sandiford <rsandifo@redhat.com>
18256
18257 * toplev.c (rest_of_compilation): Recompute register usage after
18258 split_all_insns.
18259
18260 2003-02-09 Richard Henderson <rth@redhat.com>
18261
18262 * libgcc-std.ver (__clztf2): New.
18263 (__ctztf2, __popcounttf2, __paritytf2): New.
18264 * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
18265 __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
18266 adjust code to match the different type sizes.
18267 * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
18268 __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
18269
18270 * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
18271 TImode; select word_mode and twice that.
18272 (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
18273 select the modes from float, double, and long double.
18274 (init_optabs): Remove duplicate initializations.
18275
18276 2003-02-09 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
18277
18278 * doc/install.texi: Squeeze and streamline section on
18279 testing and regression checking.
18280
18281 2003-02-09 Jan Hubicka <jh@suse.cz>
18282
18283 * i386.md (ahi?v*3): Set third operand type to TImode.
18284 * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
18285
18286 * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
18287 integer mode.
18288
18289 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
18290 Change code so they are arithmetic expressions now.
18291 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
18292 simplify_ternary_operation): Deal with VEC_* expressions.
18293
18294 * i386.md (vmaskcmp, pinsrw, movd patterns): Fix RTL representation.
18295
18296 2003-02-08 Jan Hubicka <jh@suse.cz>
18297
18298 * cfgrtl.c (verify_flow_info): Use control_flow_insn_p.
18299 * reload1.c (fixup_abnormal_edges): Split basic blocks when EH edges
18300 possibly got duplicated.
18301
18302 2003-02-08 Richard Henderson <rth@redhat.com>
18303
18304 * config/alpha/alpha.c (override_options): Turn off explicit
18305 relocs until post-peep2 code duplication resolved.
18306
18307 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
18308
18309 * optabs.c (expand_unop): Widen clz properly when clz is done
18310 via libcall.
18311
18312 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
18313
18314 * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
18315 * config/h8300/crti.asm: Likewise.
18316 * config/h8300/crtn.asm: Likewise.
18317 * config/h8300/ctzsi2.c: Likewise.
18318 * config/h8300/fixunssfsi.c: Likewise.
18319 * config/h8300/h8300-protos.h: Likewise.
18320 * config/h8300/h8300.c: Likewise.
18321 * config/h8300/h8300.h: Likewise.
18322 * config/h8300/h8300.md: Likewise.
18323 * config/h8300/paritysi2.c: Likewise.
18324 * config/h8300/popcountsi2.c: Likewise.
18325 * config/h8300/rtems.h: Likewise.
18326
18327 2003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18328
18329 * doc/invoke.texi: Documentation for my previous commit.
18330 * doc/passes.texi: Ditto.
18331
18332 2003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18333
18334 * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
18335 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
18336 Declare.
18337 (DLTHE_FLAG_UPDATE_FREQ): New.
18338 * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
18339 loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
18340 rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
18341 fix_bb_placement, fix_bb_placements, place_new_loop,
18342 scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
18343 New static functions.
18344 (fix_loop_placement, can_duplicate_loop_p,
18345 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
18346 New functions.
18347
18348 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
18349 unswitch_loops): Declare.
18350 * loop-init.c: New file.
18351 * loop-unswitch.c: New file.
18352 * Makefile.in (loop-init.o, loop-unswitch.o): New.
18353 * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
18354 * toplev.c (DFI_loop2): New dump.
18355 (flag_unswitch_loops): New.
18356 (lang_independent_options): Add it.
18357 (rest_of_compilation): Call new loop optimizer.
18358 (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
18359
18360 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
18361
18362 * config/h8300/clzsi2.c: New.
18363 * config/h8300/ctzsi2.c: Likewise.
18364 * config/h8300/paritysi2.c: Likewise.
18365 * config/h8300/popcountsi2.c: Likewise.
18366 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
18367
18368 2003-02-07 David Edelsohn <edelsohn@gnu.org>
18369
18370 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
18371 * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
18372 (ctzsi2): New pattern.
18373 (ffssi2): Use clz instead of unspec.
18374 (clzdi2): Rename from cntlzd2.
18375 (ctzdi2): New pattern.
18376 (ffsdi2): Use clz instead of unspec.
18377
18378 2003-02-07 Loren James Rittle <ljrittle@acm.org>
18379
18380 * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
18381 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
18382 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
18383 * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
18384
18385 2003-02-07 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
18386
18387 * doc/trouble.texi: Document pitfalls of two-stage name lookup.
18388
18389 2003-02-07 Richard Henderson <rth@redhat.com>
18390
18391 PR 9226
18392 * gcse.c (local_cprop_find_used_regs): New.
18393 (local_cprop_pass): Use it.
18394
18395 2003-02-07 Fred Fish <fnf@intrinsity.com>
18396
18397 * mips-tfile.c (parse_def): Parenthesize assignments to fix
18398 precedence bugs.
18399
18400 2003-02-07 Segher Boessenkool <segher@koffie.nl>
18401
18402 * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
18403
18404 2003-02-07 Roger Sayle <roger@eyesopen.com>
18405
18406 * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
18407 (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
18408 (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
18409 * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
18410 builtin functions (and their __builtin_* variants).
18411 * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
18412 (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
18413 when not optimizing.
18414
18415 * doc/extend.texi: Document new pow and atan2 builtins, and
18416 their float and long double variants. Realphabetize builtins.
18417
18418 2003-02-07 Jan Hubicka <jh@suse.cz>
18419
18420 * i386.md (sse2_nandv2di3): Fix.
18421
18422 2003-03-07 Danny Smith <dannysmith@users.sourceforge.net>
18423
18424 * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
18425 * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
18426 definition.
18427 * config/i386/i386.h (ix86_return_in_memory): Return aggregate
18428 types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
18429
18430 2003-02-07 Jan Hubicka <jh@suse.cz>
18431
18432 * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
18433
18434 2003-02-07 Daniel Berlin <dberlin@dberlin.org>
18435
18436 * cfg.c (dump_flow_info): Add back accidently deleted line.
18437
18438 2003-02-07 Andrey Petrov <petrov@netbsd.org>
18439
18440 * optabs.c (expand_float): Search wider integer modes first.
18441
18442 2003-02-07 Bob Wilson <bob.wilson@acm.org>
18443
18444 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
18445 based on preprocessor flag.
18446
18447 2003-02-07 Roger Sayle <roger@eyesopen.com>
18448 Richard Henderson <rth@redhat.com>
18449
18450 * gcse.c (implicit_sets): New.
18451 (compute_hash_table_work): Include them in hash table.
18452 (find_implicit_sets, fis_get_condition): New.
18453 (one_cprop_pass): Allocate and free implicit_sets; call
18454 find_implicit_sets before building hash table.
18455
18456 2003-02-07 Jason Thorpe <thorpej@wasabisystems.com>
18457
18458 * config/t-netbsd (USER_H): Revert previous change.
18459
18460 2003-02-07 Gabor Greif <ggreif@lucent.com>
18461
18462 * doc/c-tree.texi (Namespaces): Fix typo.
18463
18464 2003-02-07 Jan Hubicka <jh@suse.cz>
18465
18466 * regrename.c (do_replace, find_oldest_value_reg,
18467 copyprop_hardreg_forward_1): Update register attributes.
18468
18469 2003-02-06 Vladimir Makarov <vmakarov@redhat.com>
18470
18471 * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
18472 VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
18473 variables starting with underscore.
18474 (struct unit_usage): New structure.
18475 (unit_usages, cycle_alt_unit_usages): New global variables.
18476 (check_unit_distribution_in_reserv): Remove it.
18477 (store_alt_unit_usage): New function.
18478 (check_regexp_units_distribution): Rewrite it.
18479
18480 2003-02-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18481
18482 * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
18483 target_cpu_default.
18484 * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
18485 if not MASK_NO_SPACE_REGS.
18486 (output_call): Adjust return pointer, don't load new space register
18487 into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
18488 (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
18489 TARGET_NO_SPACE_REGS is true.
18490 * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
18491 conditions.
18492 (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
18493 (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
18494 true. Use bve when TARGET_64BIT is true.
18495
18496 2003-02-06 Richard Henderson <rth@redhat.com>
18497
18498 * combine.c (nonzero_bits): Fix double break.
18499
18500 2003-02-06 Eric Botcazou <ebotcazou@libertysurf.fr>
18501 Richard Henderson <rth@redhat.com>
18502
18503 PR c/9530
18504 * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
18505 from functions that return a float to functions that don't.
18506
18507 2003-02-06 Jan Hubicka <jh@suse.cz>
18508
18509 * i386.c (x86_inter_unit_moves): New variable.
18510 (ix86_secondary_memory_needed): Fix 64bit case, honor
18511 TARGET_INTER_UNIT_MOVES
18512 * i386.h (x86_inter_unit_moves): Declare.
18513 (TARGET_INTER_UNIT_MOVES): New macro.
18514 * i386.md (movsi_1): Cleanup constraints; disable
18515 when not doing inter-unit moves.
18516 (movsi_1_nointernunit): New.
18517 (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
18518 (movdi_1_rex64_nointerunit): New.
18519 (mivsf_1): disable when not doing inter-unit moves.
18520 (movsf_1_nointerunit): New.
18521
18522 * basic-block.h (inside_basic_block_p): Declare.
18523 * cfgbuild.c (inside_basic_block_p): Make global.
18524 * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
18525 * scheudle-ebb.c (schedule_ebb): Return last basic block of trace;
18526 update CFG.
18527 (fix_basic_block_boundaries, add_missing_bbs): New.
18528 (rank): Use profile.
18529 (scheudle_ebbs): Rely on CFG; update coments.
18530
18531 2003-02-05 Geoffrey Keating <geoffk@apple.com>
18532
18533 * Makefile.in (host_hook_obj): New.
18534 (OBJS): Add $(host_hook_obj).
18535 (host_default.o): New rule.
18536 * config.gcc (host_hook_obj): New, default to host-default.o.
18537 (powerpc-*-darwin*): Use host-darwin.o.
18538 (out_host_hook_obj): New.
18539 * configure: Regenerate.
18540 * configure.in: Print information about out_host_hook_obj, substitute
18541 into output files.
18542 * host-default.c: New file.
18543 * hosthooks.h: New file.
18544 * toplev.c (general_init): Call host_hooks.extra_signals.
18545 * config/rs6000/host-darwin.c: New file.
18546 * config/rs6000/x-darwin: New file.
18547 * doc/hostconfig.texi: Add documentation for new host hook.
18548 Rearrange existing documentation.
18549
18550 2003-02-05 Roger Sayle <roger@eyesopen.com>
18551
18552 * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
18553 with *targetm.delegitimize_address.
18554 (rtl_for_decl_location): Likewise.
18555 * dwarfout.c (output_mem_loc_descriptor): Likewise. Include target.h.
18556 * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
18557
18558 * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
18559 * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
18560 prototype.
18561 * config/i386/i386.c (ix86_delegitimize_address): Renamed from
18562 i386_simplify_dwarf_addr. Made static. Prototyped.
18563 (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
18564 i386_simplify_dwarf_addr to ix86_delegitimize_address.
18565 (ix86_find_base_term): Likewise.
18566 (maybe_get_pool_constant): Likewise.
18567
18568 * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
18569 * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
18570 prototype.
18571 * config/s390/s390.c (s390_delegitimize_address): Renamed from
18572 s390_simplify_dwarf_addr. Made static. Prototyped.
18573 (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
18574
18575 2003-02-05 Richard Henderson <rth@redhat.com>
18576
18577 PR c/8602
18578 * integrate.c (output_inline_function): Reset input_filename
18579 and lineno from the decl before rest_of_compilation.
18580
18581 2003-02-05 Richard Henderson <rth@redhat.com>
18582
18583 * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18584 (CTZ_DEFINED_VALUE_AT_ZERO): New.
18585 * doc/rtl.texi, doc/tm.texi: Document them.
18586
18587 * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
18588 of the value at zero properly.
18589 * fold-const.c (tree_expr_nonnegative_p): Likewise.
18590 * simplify-rtx.c (simplify_unary_operation): Likewise.
18591
18592 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18593 (CTZ_DEFINED_VALUE_AT_ZERO): New.
18594
18595 * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
18596 (TARGET_EXPAND_BUILTIN): Remove.
18597 (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
18598 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18599 (enum arm_builtins): Remove.
18600 * config/arm/arm.md (UNSPEC_CLZ): Remove.
18601 (clzsi2): Rename from clz; use clz instead of unspec.
18602 (ctzsi2): New.
18603 * config/arm/arm-protos.h: Update.
18604
18605 2003-02-05 Jan Hubicka <jh@suse.cz>
18606
18607 * i386-protos.h (x86_emit_floatuns): Declare.
18608 * i386.c (x86_emit_floatuns): New global function.
18609 * i386.md (floatunssisf2, floatunsdisf2,
18610 floatunsdidf2): New patterns.
18611
18612 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18613
18614 * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
18615
18616 2003-02-05 Hans Boehm <Hans.Boehm@hp.com>
18617
18618 * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
18619 config/ia64/linux.h
18620
18621 2003-02-05 Roger Sayle <roger@eyesopen.com>
18622
18623 * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
18624
18625 2003-02-05 Jakub Jelinek <jakub@redhat.com>
18626
18627 PR optimization/8555
18628 * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
18629 instead of aborting.
18630
18631 2003-02-04 Richard Henderson <rth@redhat.com>
18632
18633 * config/i386/i386.md (UNSPEC_BSF): Remove.
18634 (ffssi2): Split into cmove and no_cmove insns and splitters;
18635 lose pentium float trick for now.
18636 (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
18637 (ctzsi2, clzsi2, bsr): New.
18638
18639 2003-02-04 Richard Henderson <rth@redhat.com>
18640
18641 * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
18642 UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
18643 * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
18644 (ffsdi2): Use popcount instead of unspec.
18645 (popcountdi2): Rename from *popcnt.
18646 (ctzdi2, clzdi2, getf_exp_tf): New.
18647
18648 2003-02-04 Kazu Hirata <kazu@cs.umass.edu>
18649
18650 * genconfig.c (main): Generate CC0_P.
18651 * rtl.h (CC0_P): Remove.
18652
18653 2003-02-04 Richard Henderson <rth@redhat.com>
18654
18655 * libgcc2.h, libgcc2.c (__ffsSI2): New.
18656 (__ffsDI2): Rename from __ffsdi2.
18657 * mklibgcc.in (lib2funcs): Add _ffssi2.
18658
18659 2003-02-04 Richard Henderson <rth@redhat.com>
18660
18661 * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
18662 rounds with a "bit table" lookup.
18663
18664 2003-02-04 Ulrich Weigand <uweigand@de.ibm.com>
18665
18666 * reload.c (find_reloads): Do not use the mode specified in the insn
18667 pattern as reload mode for address operands. Do not generate optional
18668 reloads for operands where a mandatory reload was already pushed.
18669
18670 2003-02-04 Richard Henderson <rth@redhat.com>
18671
18672 * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
18673 builtins instead of inline assembly.
18674
18675 2003-02-04 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
18676
18677 PR c/9376
18678 * libgcc2.c (__subvdi3): Fix typo.
18679
18680 2003-02-04 Jan Hubicka <jh@suse.cz>
18681
18682 * i386.md (movti_rex64): Fix constraint.
18683
18684 2003-02-04 Jan Hubicka <jh@suse.cz>
18685
18686 * i386.md (vector push splitters): Fix typo in resolving conflict.
18687
18688 2003-02-04 Rodney Brown <rbrown64@csc.com.au>
18689
18690 * config/i386/i386.c (x86_function_profiler): Fix typo in format.
18691
18692 2003-02-04 Phil Edwards <pme@gcc.gnu.org>
18693
18694 * doc/install.texi (*-*-linux-gnu): Mention glibc requirements
18695 for recent libstdc++. Remove formatting cruft.
18696
18697 2003-02-04 Jakub Jelinek <jakub@redhat.com>
18698
18699 * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
18700 attribute even if input file name is absolute, but one of the
18701 includes is relative.
18702
18703 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
18704
18705 * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
18706 doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
18707 * doc/install.texi: Update copyright dates. Update to GFDL 1.2.
18708
18709 2003-02-03 Richard Henderson <rth@redhat.com>
18710
18711 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18712 __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
18713 return type to "int". Shuffle declarations and undef int trap.
18714 * libgcc2.h: Remove their declarations.
18715 * optabs.c (expand_unop): Force outmode to int for bitops.
18716
18717 2003-02-03 Bob Wilson <bob.wilson@acm.org>
18718
18719 * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
18720 coprocessor registers before floating-point registers.
18721 * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
18722 to account for a previously removed register.
18723 (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
18724 Delete unused macros.
18725
18726 2003-02-03 Jan Hubicka <jh@suse.cz>
18727
18728 * i386.c (ix86_expand_store_builtin): Always force op1 to register.
18729 (mov*_internal): Fix predicates; require one of operands to not be
18730 memory.
18731 (SSE?MMX move expanders): Fix predicates; force one of operands to
18732 register.
18733 (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
18734 (movups/movupd/movdqu patterns): Force one of operands to not be
18735 memory.
18736
18737 2003-02-03 Roger Sayle <roger@eyesopen.com>
18738
18739 * hooks.c (hook_rtx_rtx_identity): Generic hook function that
18740 takes a single rtx and returns it unmodified.
18741 * hooks.h (hook_rtx_rtx_identity): Prototype here.
18742 * target.h (struct gcc_target): Add "delegitimize_address"
18743 field to target structure.
18744 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Provide default
18745 for delegitimize_address target using hook_rtx_rtx_identity.
18746 (TARGET_INITIALIZER): Initialize delegitimize_address field
18747 using TARGET_DELEGITIMIZE_ADDRESS macro.
18748 * simplify-rtx.c (avoid_constant_pool_reference): Handle float
18749 extensions of constant pool references. Use delegitimize_address
18750 to undo the obfuscation of "-fpic".
18751 * Makefile.in (simplify-rtx.o): Add dependency on target.h.
18752
18753 * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
18754 i386_simplify_dwarf_addr.
18755 (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
18756 (maybe_get_pool_constant): Likewise.
18757
18758 2003-02-03 Jan Hubicka <jh@suse.cz>
18759
18760 * i386.c (ix86_expand_int_movcc): Fix setcc sign bit case.
18761
18762 2003-02-03 Jan Hubicka <jh@suse.cz>
18763
18764 * regclass.c (cannot_change_mode_set_regs): Correct argument order.
18765
18766 2003-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18767
18768 * mips/_tilib.c: Don't include tsystem.h or defaults.h. Don't
18769 define LIBGCC2_WORDS_BIG_ENDIAN. Include coretypes.h and tm.h.
18770
18771 2003-02-02 Andreas Schwab <schwab@suse.de>
18772
18773 * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
18774
18775 2003-02-02 Richard Earnshaw <rearnsha@arm.com>
18776
18777 * arm.md (sibcall_epilogue): Set the "conds" to "clob".
18778 (epilogue_insns): Likewise.
18779
18780 2003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18781
18782 * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
18783
18784 2003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18785
18786 * pa-protos.h (attr_length_millicode_call): Remove second argument.
18787 (attr_length_indirect_call, attr_length_indirect_call,
18788 attr_length_save_restore_dltp): New prototypes.
18789 * pa.c (attr_length_millicode_call): Remove second argument. Check
18790 INSN_ADDRESSES_SET_P in distance calculation.
18791 (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
18792 INSN_ADDRESSES.
18793 (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
18794 (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
18795 Call attr_length_call directly.
18796 (attr_length_indirect_call, output_indirect_call,
18797 attr_length_save_restore_dltp): New functions.
18798 * pa.md (attr_length_millicode_call): Drop second argument from all
18799 patterns.
18800 (return_internal_pic): Delete.
18801 (return_external_pic): Remove use of PIC register and pic operand and
18802 flag checks.
18803 (epilogue): Use return_internal for both normal and pic code.
18804 (call, call_value): Emit new 32-bit pic patterns for symref and
18805 indirect calls. Remove uses for arg pointer and pic register.
18806 (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
18807 call_reg_pic_post_reload, call_val_symref_pic,
18808 call_val_symref_pic_post_reload, call_val_reg_pic,
18809 call_val_reg_pic_post_reload): New pre and post reload insn patterns.
18810 Implement define_split and define_peephole2 patterns for pre reload
18811 patterns.
18812 (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
18813 call_value_internal_reg_64bit): Shorten names.
18814 (all call patterns): Explicitly indicate registers used and clobbered.
18815 Use attr_length_indirect_call and attr_length_save_restore_dltp for
18816 attribute length calculation. Move code generation for indirect calls
18817 to output_indirect_call.
18818 (sibcall, sibcall_value): Don't restore PIC register.
18819 (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
18820 register retore.
18821
18822 2003-02-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18823
18824 * doc/install.texi (Testing): Simplify and compress instructions
18825 concerning Dejagnu.
18826
18827 2003-02-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18828
18829 * collect2.c (pexecute_pid): Rename to pid.
18830 (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
18831 pid.
18832
18833 2003-02-01 Geoffrey Keating <geoffk@apple.com>
18834
18835 * doc/extend.texi (Function Attributes): Remove documentation
18836 for PowerPC Windows NT function attributes..
18837
18838 2003-02-01 Daniel Jacobowitz <drow@mvista.com>
18839
18840 * dwarf2out.c (gen_type_die): Check for typedefs before calling
18841 for TYPE_MAIN_VARIANT.
18842
18843 2003-02-01 Richard Henderson <rth@redhat.com>
18844
18845 * libgcc2.c: Include auto-host.h.
18846 (ATTRIBUTE_HIDDEN): New.
18847 (__clz_tab): Don't declare here for clz and ctz.
18848 (__clzsi2, __clzdi2): Use count_leading_zeros.
18849 (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
18850 (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
18851 (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
18852 * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
18853
18854 2003-02-01 Richard Henderson <rth@redhat.com>
18855
18856 * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
18857 to the conditional.
18858 (ashlsi3_1_zext splitter): Likewise.
18859
18860 2003-02-01 Richard Henderson <rth@redhat.com>
18861
18862 * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
18863 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18864 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
18865 return type to Wtype.
18866
18867 * libgcc-std.ver (GCC_3.4): Fix inheritance.
18868
18869 * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
18870 expander input constraint.
18871
18872 2003-02-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
18873
18874 * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
18875 OTI_parity.
18876 (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
18877 * optabs.c (widen_clz, expand_parity): New.
18878 (expand_unop): Handle clz and parity. Hardcode SImode as outmode
18879 for libcalls to clz, ctz, popcount, and parity.
18880 (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
18881 parity_optab, and set up libfunc handlers.
18882 * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18883 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
18884 __popcount_tab): New.
18885 * libgcc2.h: Declare them.
18886 * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
18887 * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
18888 and parity_optab.
18889 * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
18890 * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
18891 BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
18892 BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
18893 BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
18894 BUILT_IN_PARITYLL): New.
18895 * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
18896 and add optab argument.
18897 (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
18898 * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
18899 * expr.c (expand_expr): Handle them.
18900 * fold-const.c (tree_expr_nonnegative_p): Likewise.
18901 * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
18902 * reload1.c (eliminate_regs): Handle them.
18903 (elimination_effects): Likewise.
18904 * function.c (instantiate_virtual_regs_1): Likewise
18905 * genattrtab.c (check_attr_value): Likewise.
18906 * simplify-rtx.c (simplify_unary_operation): Likewise.
18907 * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
18908 * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
18909 (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
18910 * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
18911 * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
18912 __builtin_arm_clz.
18913 * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
18914 * mklibgcc.in (lib2funcs): ...here and merge. Add new members.
18915 * doc/extend.texi (Other Builtins): Add new builtins.
18916 * doc/md.texi (Standard Names): Add new patterns.
18917
18918 2003-02-01 Ulrich Weigand <uweigand@de.ibm.com>
18919
18920 * reload.c: Revert 2003-01-31 change.
18921
18922 2003-02-01 Jan Hubicka <jh@suse.cz>
18923
18924 * combine.c (combine_simplify_rtx): Use reversed_comparison_code_parts.
18925
18926 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
18927
18928 * flags.h (flag_volatile): Remove declaration.
18929 (flag_volatile_global, flag_volatile_static): Likewise.
18930 * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
18931 * toplev.c (flag_volatile): Remove definition.
18932 (flag_volatile_global, flag_volatile_static): Likewise.
18933 (f_options): Remove corresponding entries here.
18934 * varasm.c (make_decl_rtl): Don't check flag_volatile_global
18935 or flag_volatile_static.
18936 * doc/invoke.texi: Remove documentation of -fvolatile,
18937 -fvolatile-global and -fvolatile-static.
18938
18939 2003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18940
18941 * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
18942 updating of total_code_bytes from prologue to epilogue.
18943
18944 2003-01-31 Ulrich Weigand <uweigand@de.ibm.com>
18945
18946 * reload.c (find_reloads): Do not use the mode specified in the insn
18947 pattern as reload mode for address operands. Do not generate optional
18948 reloads for operands where a mandatory reload was already pushed.
18949 Generate optional reloads only in the final pass though find_reloads.
18950 (have_replacement_p): New function.
18951
18952 2003-01-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18953
18954 * doc/install.texi (Testing): Remove a reference to our obsolete
18955 /testresults web pages and strip redundant information concerning
18956 test results.
18957 (Binaries): Refer to Microsoft Windows instead of listing all
18958 possible variants.
18959
18960 2003-02-01 Jan Hubicka <jh@suse.cz>
18961
18962 * loop.c (emit_prefetch_instructions): Do conversion at right place in
18963 RTL chain.
18964
18965 * combine.c (simplify_set): Reverse order of ragumetns to
18966 REG_CANNOT_CHANGE_MODE_P
18967 * df.c (df_def_record_1): Likewise.
18968 * recog.c (register_operand): Likewise.
18969 * simplify-rtx.c (simplify_subreg): Likewise.
18970 * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
18971 CANNOT_CHANGE_MODE_CLASS.
18972 * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
18973 Likewise.
18974 * reload.c (push_reload): Likewise.
18975 * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18976 * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18977 * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18978 * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
18979 * mips.c (mips_cannot_change_mode_class): Update.
18980 * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18981 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18982 * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18983 * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18984 * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
18985 * sh.c (sh_cannot_change_mode_class): Update.
18986 * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
18987 * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
18988
18989 2003-01-31 Geoffrey Keating <geoffk@apple.com>
18990
18991 * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
18992 change to LINK_COMMAND_SPEC in gcc.c.
18993
18994 2003-01-31 Jan Hubicka <jh@suse.cz>
18995
18996 PR c/9506
18997 * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
18998
18999 2003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19000
19001 * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
19002 duplicated code.
19003
19004 2003-01-31 Nathan Sidwell <nathan@codesourcery.com>
19005
19006 * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
19007 (BINFO_ELTS): New #define.
19008 * stor-layout.c (finalize_record_size): Don't set them.
19009 * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
19010 BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
19011 (BINFO_LANG_ELTS): New #define.
19012 * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
19013 * java/class.c (make_class): Use BINFO_ELTS.
19014 (set_super_info): Likewse.
19015 (add_interface_do): Likewise.
19016 * objc/objc-act.c (start_class): Use BINFO_ELTS.
19017
19018 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
19019
19020 * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
19021 (times): Don't ever declare if not HAVE_TIMES.
19022 (clock): Don't ever declare if not HAVE_CLOCK.
19023
19024 2003-01-30 Richard Henderson <rth@redhat.com>
19025
19026 * flow.c (update_life_info): Zap life info after cleanup_cfg.
19027 (regno_uninitialized): Use correct live at function entry set.
19028 (regno_clobbered_at_setjmp): Likewise.
19029
19030 * expr.c (store_expr): Promote all MEM intermediates to regs.
19031
19032 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
19033
19034 * config/arm/arm.c: Fix comment typos.
19035 * config/arm/arm.h: Likewise.
19036 * config/arm/netbsd-elf.h: Likewise.
19037 * config/arm/netbsd.h: Likewise.
19038
19039 2003-01-30 Geoffrey Keating <geoffk@apple.com>
19040
19041 * gengtype.c (struct walk_type_data): Add needs_cast_p.
19042 (walk_type): Set needs_cast_p in walk_type_data.
19043 (write_types_process_field): Supply casts when required to suppress
19044 warnings.
19045 (write_root): Cast gt_pch_n_S to suppress warning.
19046 * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
19047 * config/rs6000/rs6000.c (print_operand): Mask off high bits only
19048 when they might exist.
19049 * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
19050 insn-conditions.o, and rs6000.o.
19051
19052 2003-01-30 Richard Henderson <rth@redhat.com>
19053
19054 * ggc-page.c (G.context_depth_allocations): New.
19055 (G.context_depth_collections): New.
19056 (alloc_page): Set G.context_depth_allocations.
19057 (ggc_collect): Set G.context_depth_collections.
19058 (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
19059 (ggc_pop_context): Early exit for no allocations or collections.
19060
19061 2003-01-30 Richard Henderson <rth@redhat.com>
19062
19063 * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
19064
19065 2003-01-30 Richard Earnshaw <rearnsha@arm.com>
19066
19067 * arm.c (arm_compute_initial_elimination_offset): If optimizing for
19068 size, the link register is always saved if any other register is
19069 saved.
19070
19071 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
19072
19073 * config/h8300/h8300-protos.h: Update the prototype for
19074 compute_plussi_cc.
19075 (cpp_reader): Declare before it is used.
19076 * config/h8300/h8300.c (compute_plussi_cc): Change the return
19077 type to int.
19078 * config/h8300/h8300.md (monitor_prologue): Call abort() if we
19079 see an unknown H8 variant.
19080
19081 2003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
19082
19083 PR target/9316
19084 * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
19085 * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
19086 * config/rs6000/t-rtems: New file. multilib variants to match OS.
19087 * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
19088 rs6000/t-ppcgas so we get the desired multilibs.
19089
19090 2003-01-30 Nick Clifton <nickc@redhat.com>
19091
19092 * config/arm/arm.c (arm_output_epilogue): Update stack pointer
19093 when popping saved IP register off the stack.
19094
19095 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
19096
19097 * config/rs6000/aix43.h: Fix comment typos.
19098 * config/rs6000/aix51.h: Likewise.
19099 * config/rs6000/aix52.h: Likewise.
19100 * config/rs6000/altivec.h: Likewise.
19101 * config/rs6000/rs6000.c: Likewise.
19102 * config/rs6000/rs6000.h: Likewise.
19103 * config/rs6000/rs6000.md: Likewise.
19104 * config/rs6000/spe.md: Likewise.
19105
19106 2003-01-29 Mark Mitchell <mark@codesourcery.com>
19107
19108 * c-common.c (builtin_define_float_constants): Define
19109 __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
19110
19111 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
19112
19113 * config/sh/lib1funcs.asm: Fix comment typos.
19114 * config/sh/linux.h: Likewise.
19115 * config/sh/sh.c: Likewise.
19116 * config/sh/sh.md: Likewise.
19117
19118 2003-01-30 Loren James Rittle <ljrittle@acm.org>
19119
19120 * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
19121
19122 2003-01-30 Alexandre Oliva <aoliva@redhat.com>
19123
19124 * config/fp-bit.h (__make_dp): Declare if TMODES.
19125
19126 2003-01-29 Kazu Hirata <kazu@cs.umass.edu>
19127
19128 * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
19129 general_operand_src and general_operand_dst.
19130
19131 2003-01-29 David Edelsohn <edelsohn@gnu.org>
19132
19133 * config/rs6000/rs6000.c (function_arg_pass_by_reference):
19134 Return true for variable sized types.
19135 (rs6000_va_arg): Handle variable sized types passed by reference
19136 on non-SVR4 ABI.
19137
19138 2003-01-29 Richard Earnshaw <rearnsha@arm.com>
19139
19140 * arm.c (arm_legtimize_address): New function.
19141 * arm-protos.h (arm_legtimize_address): Add prototype.
19142 * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
19143 (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
19144 do ... while (0)
19145
19146 2003-01-29 Joel Sherrill <joel@OARcorp.com>
19147
19148 PR bootstrap/9296
19149 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
19150 depended on it being defined until now.
19151
19152 2003-01-29 Joel Sherrill <joel@OARcorp.com>
19153
19154 PR target/9295
19155 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
19156 RTEMS code knows which C++ initialization style the toolset
19157 configuration is using.
19158
19159 2003-01-29 Joel Sherrill <joel@OARcorp.com>
19160
19161 PR bootstrap/9293
19162 * config/m68k/t-crtstuff: Replace spaces with tabs, add
19163 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
19164
19165 2003-01-29 Joel Sherrill <joel@OARcorp.com>
19166
19167 PR bootstrap/9292
19168 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
19169 RTEMS threads.
19170 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
19171
19172 2003-01-29 Nick Clifton <nickc@redhat.com>
19173
19174 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
19175 not $(srcdir).
19176
19177 2003-01-29 Andrew Haley <aph@redhat.com>
19178
19179 * tree-inline.c (walk_tree): Add CHAR_TYPE.
19180
19181 2003-01-29 Jan Hubicka <jh@suse.cz>
19182
19183 * i386.md (subdi3_carry_rex64): Fix typo.
19184
19185 2003-01-28 Stan Shebs <shebs@apple.com>
19186
19187 * coretypes.h (cpp_reader): Forward declare struct.
19188 * c-pragma.h (cpp_reader): Remove forward declaration.
19189 * hashtable.h (cpp_reader): Likewise.
19190 * scan.h (cpp_reader): Likewise.
19191 * tree.h (cpp_reader): Likewise.
19192 * config/darwin-protos.h (cpp_reader): Likewise.
19193 * config/arm/arm-protos.h (cpp_reader): Likewise.
19194 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
19195 struct cpp_reader in prototypes.
19196
19197 2003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
19198
19199 * doc/install.texi: Add documentation for installation into
19200 tooldirs and with DESTDIR.
19201
19202 2003-01-28 Richard Henderson <rth@redhat.com>
19203
19204 * config.gcc (ia64*-*-aix*): Remove.
19205 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
19206 * config/ia64/unwind-aix.c: Remove file.
19207
19208 2003-01-28 Andreas Schwab <schwab@suse.de>
19209
19210 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
19211 register.
19212 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
19213 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
19214 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
19215 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
19216 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
19217 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
19218 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
19219
19220 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
19221
19222 * combine.c (nonzero_bits): Fix check for negative divide operands.
19223
19224 2003-01-28 Richard Henderson <rth@redhat.com>
19225
19226 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
19227 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
19228
19229 2003-01-28 Richard Henderson <rth@redhat.com>
19230
19231 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
19232
19233 * config/cris/cris.c (cris_address_cost): Make static.
19234 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
19235 * config/cris/cris.h (ADDRESS_COST): Remove.
19236 * config/cris/cris-protos.h: Update.
19237
19238 2003-01-23 Mike Stump <mrs@apple.com>
19239
19240 * regclass.c (init_reg_autoinc): New function.
19241 (regclass): Move initialization of forbidden_inc_dec_class from
19242 here...
19243 (init_regs): to here. Avoids reinitialization for each function,
19244 saving compilation time.
19245
19246 2003-01-28 Jason Merrill <jason@redhat.com>
19247
19248 * cpplib.h (struct cpp_options): Add warn_deprecated field.
19249 * cppinit.c (cpp_create_reader): Turn it on by default.
19250 * c-opts.c (c_common_decode_option): Set it.
19251 * cpplib.c (do_pragma_once): Only complain about #pragma once
19252 if warn_deprecated is set.
19253
19254 2003-01-28 Dale Johannesen <dalej@apple.com>
19255
19256 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
19257 * loop.c (scan_loop): Move movables on -Os rich-register targets.
19258 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
19259
19260 2003-01-28 Richard Henderson <rth@redhat.com>
19261
19262 * target.h (targetm.address_cost): New.
19263 * target-def.h (TARGET_ADDRESS_COST): New.
19264 (TARGET_RTX_COSTS): Uncomment. Oops.
19265 * cse.c (address_cost): Use new target hook.
19266 (default_address_cost): New.
19267 * output.h (default_address_cost): Declare.
19268 * hooks.c (hook_int_rtx_0): New.
19269 * hooks.h (hook_int_rtx_0): Declare.
19270 * loop.c (combine_givs_p): Remove if 0 code.
19271 * system.h (ADDRESS_COST): Poison.
19272
19273 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
19274 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
19275 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
19276 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
19277 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
19278 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
19279 config/xtensa/xtensa.c, config/xtensa/xtensa.h
19280 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
19281 (ADDRESS_COST): Remove.
19282
19283 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
19284 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
19285 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
19286 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
19287 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
19288 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
19289 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
19290 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
19291 config/mips/mips.c, config/mips/mips.h,
19292 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
19293 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
19294 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
19295 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
19296 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
19297 config/vax/vax.c, config/vax/vax.h
19298 (foo_address_cost): Make static.
19299 (TARGET_ADDRESS_COST): New.
19300 (ADDRESS_COST): Remove.
19301
19302 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
19303 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
19304 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
19305 config/stormy16/stormy16.h
19306 (ADDRESS_COST): Move code ...
19307 (foo_address_cost): ... here.
19308 (TARGET_ADDRESS_COST): New.
19309
19310 * config/m32r/m32r.c (m32r_address_cost): Remove.
19311 * config/m32r/m32r-protos.h: Update.
19312
19313 * config/mmix/mmix.c (mmix_address_cost): Remove.
19314 * config/mmix/mmix-protos.h: Update.
19315
19316 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
19317 mn10300_address_cost; move unsig allocation ...
19318 (mn10300_address_cost): ... here.
19319 (TARGET_ADDRESS_COST): New.
19320 * config/mn10300/mn10300-protos.h: Update.
19321 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
19322
19323 * doc/tm.texi: Update.
19324
19325 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
19326
19327 * haifa-sched.c (schedule_insn): Return necessary cycle advance
19328 after issuing the insn.
19329 (rank_for_schedule): Make a insn with /S the highest priority
19330 insn.
19331 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
19332 (choose_ready): Check SCHED_GROUP_P.
19333 (schedule_block): Advance cycle after issuing insn if it is
19334 necessary. Don't reorder insns if there is an insn with /S.
19335 (set_priorities): Ignore schedule groups.
19336
19337 * sched-deps.c (remove_dependence, group_leader): Remove the
19338 functions.
19339 (add_dependence): Ignore schedule groups.
19340 (set_sched_group_p): Don't make copy of dependencies from previous
19341 insn of the schedule group. Add anti-dependency to the previous
19342 insn of the schedule group.
19343 (compute_forward_dependences): Ignore schedule groups.
19344
19345 * sched-ebb.c (init_ready_list): Ignore schedule groups.
19346
19347 * sched-rgn.c (init_ready_list): Ditto.
19348 (can_schedule_ready_p): Ditto.
19349
19350 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
19351
19352 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
19353 register to another one.
19354
19355 2003-01-28 Richard Henderson <rth@redhat.com>
19356
19357 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
19358
19359 2003-01-28 Roger Sayle <roger@eyesopen.com>
19360
19361 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
19362
19363 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
19364
19365 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
19366 class contains a floating-point register, return the size of the
19367 mode in half words.
19368
19369 2003-01-28 Jan Hubicka <jh@suse.cz>
19370
19371 * i386.c (ix86_carry_flag_operator): New predicate.
19372 (fcmov_operator): Fix whitespace.
19373 (ix86_expand_carry_flag_compare): Deal with floating point.
19374 (ix86_expand_int_movcc): Deal with fp; update insn expansion
19375 (ix86_expand_int_addcc): Likewise.
19376 (ix86_expand_strlensi_unroll_1): likewsie.
19377 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
19378 * i386.md (add?i_carry_rex64): Use new predicate.
19379 (sub?i3_carry_rex64): Likewise.
19380 (x86_mov?icc_0_m1*): Likewise.
19381
19382 2003-01-28 Andreas Schwab <schwab@suse.de>
19383
19384 * cfgloopmanip.c (create_preheader): Initialize src to avoid
19385 warning.
19386
19387 * expmed.c (emit_store_flag): Fix cast to avoid sign
19388 comparison warning.
19389
19390 * combine.c (force_to_mode): Add cast to fix warning when
19391 STORE_FLAG_VALUE is negative.
19392
19393 2003-01-27 Richard Henderson <rth@redhat.com>
19394
19395 * Makefile.in (cse.o): Depend on TARGET_H.
19396 * cse.c (rtx_cost): Use targetm.rtx_costs.
19397 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
19398 * doc/tm.texi: Update.
19399
19400 * target.h (targetm.rtx_costs): New.
19401 * target-def.h (TARGET_RTX_COSTS): New.
19402 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
19403 * hooks.h: Update.
19404
19405 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
19406 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
19407 * config/alpha/alpha.h (PROCESSOR_MAX): New.
19408 (CONST_COSTS, RTX_COSTS): Remove.
19409
19410 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
19411 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
19412 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
19413 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
19414 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
19415 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
19416 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
19417 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
19418 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
19419 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
19420 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
19421 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
19422 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
19423 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
19424 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
19425 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
19426 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
19427 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
19428 config/v850/v850.c, config/v850/v850.h,
19429 config/xtensa/xtensa.c, config/xtensa/xtensa.h
19430 (CONST_COSTS, RTX_COSTS): Move code ...
19431 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
19432
19433 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
19434 (arm_rtx_costs, TARGET_RTX_COSTS): New.
19435 * config/arm/arm-protos.h: Update.
19436 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
19437
19438 * config/avr/avr.h (CONST_COSTS): Move code ...
19439 * config/avr/avr.c (avr_rtx_costs): ... here.
19440 (default_rtx_costs): Make static.
19441 * config/avr/avr-protos.h: Update.
19442
19443 * config/h8300/h8300.c (const_costs): Make static.
19444 (h8300_and_costs, h8300_shift_costs): Likewise.
19445 * config/h8300/h8300-protos.h: Update.
19446
19447 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
19448 (CONST_COSTS): Move code ...
19449 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
19450 default_rtx_costs; update for signature change.
19451 * config/ip2k/ip2k-protos.h: Update.
19452
19453 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
19454 (CONST_COSTS): Move code ...
19455 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
19456 (TARGET_RTX_COSTS): New.
19457 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
19458 * config/m68hc11/m68hc11-protos.h: Update.
19459
19460 * config/m68k/m68k.c (const_int_cost): Make static.
19461 * config/m68k/m68k-protos.h: Update.
19462
19463 * config/mcore/mcore.c (mcore_const_costs): Make static.
19464 (mcore_and_cost, mcore_ior_cost): Likewise.
19465 * config/mcore/mcore-protos.h: Update.
19466
19467 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
19468 (mmix_rtx_cost_recalculated): Remove.
19469 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
19470 * config/mmix/mmix-protos.h: Update.
19471
19472 * config/sh/sh.c (shiftcosts): Make static.
19473 (addsubcosts, andcosts, multcosts): Likewise.
19474 * config/sh/sh-protos.h: Update.
19475
19476 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
19477 (sparc_rtx_costs): Make static; update for change in signature.
19478 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
19479 * config/sparc/sparc-protos.h: Update.
19480
19481 * config/v850/v850.c (const_costs): Make static.
19482 * config/v850/v850-protos.h: Update.
19483
19484 * config/vax/vax.h (RTX_COSTS): Remove.
19485 (CONST_COSTS): Move code ...
19486 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
19487 from vax_rtx_cost.
19488 (vax_rtx_costs, TARGET_RTX_COSTS): New.
19489
19490 2003-01-27 Richard Henderson <rth@redhat.com>
19491
19492 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
19493 * config/vax/vax-protos.h: Update. Really.
19494
19495 2003-01-28 Alexandre Oliva <aoliva@redhat.com>
19496
19497 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
19498 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
19499 zero if no hardware floating point.
19500 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
19501 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
19502 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
19503 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
19504 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
19505 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
19506 even FP registers on N32 and N64.
19507 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
19508 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
19509 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
19510 even-register-like alignment to 128-bit arguments.
19511 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
19512 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
19513 on N32 or N64.
19514 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
19515 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
19516 (TPBIT): Set to tp-bit.c.
19517 (tp-bit.c): Create out of fp-bit.c.
19518
19519 2003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
19520
19521 * c-parse.in: Remove '%expect 32' directive in objc mode.
19522
19523 2003-01-27 Nathan Sidwell <nathan@codesourcery.com>
19524
19525 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
19526 (LIBGCOV): New variable.
19527 (libgcc.mk): Add LIBGCOV.
19528 (LIBGCC_DEPS): Add libgcov.c.
19529 (libgcov.a): New target.
19530 (clean): Remove libgcov.a.
19531 (install-libgcc): Do libgcov too.
19532 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
19533 with libgcov.a.
19534 * libgcc2.c (L_gcov): Move into ...
19535 * libgcov.c: ... here. New file.
19536 * mklibgcc.in: Add libgcov rules.
19537 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
19538
19539 * doc/invoke.texi (profile-arcs, test-coverage): Update and
19540 clarify.
19541
19542 * profile.c (index_counts_file): Remove duplicate check for open file.
19543
19544 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
19545
19546 * gcc/doc/invoke.texi (Optimization Options): Group together
19547 optional and experimental flags. Move trapv and bounds-check
19548 out of this section. Group floating point flags together.
19549 (Code Gen Options): Move trapv and bounds-check to here.
19550
19551 2003-01-27 Josef Zlomek <zlomekj@suse.cz>
19552
19553 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
19554
19555 2003-01-27 Richard Earnshaw <rearnsha@arm.com>
19556
19557 PR optimization/9090
19558 * function.c (purge_addressof_1): After pushing an addressed register
19559 onto the stack, simplify the result.
19560
19561 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19562
19563 * doc/extend.texi: Fix typo.
19564
19565 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19566
19567 * doc/cppopts.texi: Fix typo.
19568 * doc/objc.texi: Likewise.
19569 * doc/passes.texi: Likewise.
19570
19571 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
19572
19573 * real.c (ibm_extended_format): Add 53 to minimum exponent.
19574 (encode_ibm_extended): Adjust.
19575
19576 2003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
19577
19578 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
19579 timevar_id enumerations.
19580
19581 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19582
19583 * combine.c: Fix formatting.
19584
19585 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19586
19587 * doc/gccint.texi: Update the copyright.
19588
19589 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19590
19591 * doc/cpp.texi: Fix typos.
19592 * doc/extend.texi: Likewise.
19593 * doc/gty.texi: Likewise.
19594 * doc/install.texi: Likewise.
19595 * doc/passes.texi: Likewise.
19596 * doc/rtl.texi: Likewise.
19597 * doc/tm.texi: Likewise.
19598
19599 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19600
19601 * config/ia64/fde-glibc.c: Fix comment typos.
19602 * config/ia64/hpux.h: Likewise.
19603 * config/ia64/ia64.c: Likewise.
19604 * config/ia64/ia64.h: Likewise.
19605 * config/ia64/unwind-ia64.c: Likewise.
19606
19607 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19608
19609 * config/i386/i386-modes.def: Fix comment typos.
19610 * config/i386/i386.c: Likewise.
19611 * config/i386/i386.md: Likewise.
19612
19613 2003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
19614
19615 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
19616 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
19617 ASM_FINISH_DECLARE_OBJECT before defining it.
19618 * toplev.c (rest_of_decl_compilation): Don't define
19619 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
19620 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
19621 parameters for DWARF2 targets because they _are_ used.
19622
19623 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
19624
19625 * fp-bit.h: Define macros for TFmode floating-point constants
19626 in IBM-extended TFmode types.
19627 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
19628 widths.
19629 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
19630 TFmode type.
19631
19632 * config/fp-bit.h: Define macros for TFmode floating-point
19633 constants in IEEE quad TFmode type. Declare functions according
19634 to L_ macros.
19635 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
19636 (TFtype, TItype, UTItype): Define if TMODES is defined.
19637 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
19638 (F_T_BITOFF, D_T_BITOFF): Define.
19639 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
19640 guaranteed to be wide enough.
19641 * config/fp-bit.c: Check for L_ macros for tf functions.
19642 (__thenan_tf): New.
19643 (nan): Adjust.
19644 (pack_d, unpack_d): Support IEEE 854 quad type.
19645 (_fpmul_parts): Support TFmode. Compute exponent adjustment
19646 from FRAC_NBITS, FRAC_BITS and NGARDS.
19647 (usi_to_float): Cast constants to be shifted to fractype
19648 instead of assuming long long is wide enough.
19649 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
19650
19651 2003-01-26 Andreas Jaeger <aj@suse.de>
19652
19653 * df.c: Remove prototype of unused function df_regno_rtl_debug.
19654
19655 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
19656
19657 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
19658 (DBBIT_FUNCS): Added _df_to_tf.
19659 (TPBIT_FUNCS): New.
19660 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
19661 (LIBGCC_DEPS): Added TPBIT.
19662 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
19663
19664 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
19665 been able to move the result to target.
19666
19667 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
19668 for the appropriate mode.
19669
19670 * calls.c (emit_library_call_value_1): Handle return values
19671 in a PARALLEL.
19672
19673 * rtl.c (get_mode_alignment): Moved to...
19674 * stor-layout.c: ... here.
19675
19676 * print-rtl.c (print_rtx): Don't print MEM details in
19677 GENERATOR_FILEs.
19678
19679 2003-01-26 Michael Hayes <mph@paradise.net.nz>
19680
19681 * df.h: Update comments, tidy formatting.
19682 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
19683 REVERSE, UNION, INTERSECTION. All uses updated.
19684 (OLD_DF_INTERFACE): Remove.
19685 (struct insn_info): Remove commented out insn field.
19686 * df.c: Update comments, tidy formatting.
19687 (df_def_table_realloc): Remove.
19688
19689
19690 2003-01-26 Alan Modra <amodra@bigpond.net.au>
19691
19692 * calls.c (save_fixed_argument_area): Tidy.
19693 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
19694 (expand_call): Comment typo fixes. Don't init low_to_save. Start
19695 call chain loop at 1 if !try_tail_call. Formatting.
19696 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
19697 Use save_fixed_argument_area and restore_fixed_argument_area.
19698
19699 2003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19700
19701 * df.c (df_uses_record): Handle CC0.
19702
19703 2003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
19704
19705 * reload.c (maybe_memory_address_p): New function.
19706 (find_reloads_address): Use it instead of memory_address_p.
19707
19708 2003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
19709
19710 * final.c (shorten_branches): Align the address of code label
19711 when computing initial lengths and addresses.
19712
19713 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
19714
19715 * config/m68hc11/m68hc11.md: Fix a comment typo.
19716
19717 2003-01-25 Andreas Jaeger <aj@suse.de>
19718
19719 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
19720 TARGET_MACHO.
19721
19722 2003-01-25 Roger Sayle <roger@eyesopen.com>
19723
19724 * gcse.c (bypass_last_basic_block): New global variable.
19725 (bypass_block): Use redirect_edge_and_branch_force to redirect
19726 fall-through edges. Use bypass_last_basic_block to determine
19727 which blocks have valid PRE information.
19728 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
19729
19730 2003-01-25 Jan Hubicka <jh@suse.cz>
19731
19732 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
19733
19734 2003-01-25 Jan Hubicka <jh@suse.cz>
19735 Eric Botcazou <ebotcazou@libertysurf.fr>
19736 PR opt/8492
19737 * gcse.c (one_cprop_pass): Delete unreachable blocks.
19738
19739 2003-01-25 Richard Henderson <rth@redhat.com>
19740
19741 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
19742 from ia64_aix_select_rtx_section.
19743 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
19744 instead of saving and restoring flag_pic.
19745 (ia64_rwreloc_unique_section): Similarly.
19746 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
19747 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
19748 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
19749 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
19750
19751 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
19752
19753 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
19754 comment.
19755
19756 2003-01-25 Richard Henderson <rth@redhat.com>
19757
19758 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
19759
19760 2003-01-25 Kelley Cook <kelleycook@comcast.net>
19761
19762 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
19763
19764 2003-01-25 Segher Boessenkool <segher@koffie.nl>
19765
19766 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
19767 type for bitmaps. Use unsigned long.
19768 (nBITMAP_WORD_BITS): New macro.
19769 (BITMAP_WORD_BITS): New macro.
19770 (rest of file): Use it.
19771 * bitmap.c: Use it.
19772
19773 2003-01-25 Richard Henderson <rth@redhat.com>
19774
19775 2002-02-19 Robert Lipe <robertlipe@usa.net>
19776 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
19777
19778 2003-01-25 Roger Sayle <roger@eyesopen.com>
19779
19780 * builtins.c (purge_builtin_constant_p): Scan insn stream
19781 sequentially rather than by basic block.
19782 * function.c (purge_addressof): Simplify test with INSN_P.
19783
19784 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
19785
19786 * combine.c (simplify_comparison, case AND): Remove a redundant test.
19787
19788 2003-01-25 Roger Sayle <roger@eyesopen.com>
19789
19790 * function.h (struct function): New field calls_constant_p.
19791 (current_function_calls_constant_p): New macro for above.
19792 * function.c (prepare_function_start): Initialize calls_eh_return
19793 and calls_constant_p.
19794 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
19795 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
19796 when the current_function_calls_constant_p.
19797 * integrate.c (expand_inline_function): Set calls_constant_p if
19798 the function being inlined has calls_constant_p set.
19799
19800 2003-01-25 Roger Sayle <roger@eyesopen.com>
19801
19802 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
19803 optimizing, even if flag_gcse is true.
19804 * toplev.c (rest_of_compilation): purge_builtin_constant_p
19805 only needs to be called when "optimize > 0 && flag_gcse".
19806
19807 2003-01-25 Roger Sayle <roger@eyesopen.com>
19808
19809 * stmt.c (emit_case_bit_tests): New routine to implement suitable
19810 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
19811 (case_bit_test_cmp): New comparison function for "qsort" to order
19812 case_bit_tests by decreasing number of destination nodes.
19813 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
19814 (expand_end_case_type): Use emit_case_bit_tests to implement
19815 suitable switch statments.
19816 (CASE_USE_BIT_TESTS): New target macro to disable the above.
19817 * Makefile.in (stmt.o): Add dependency on optab.h.
19818 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
19819
19820 2003-01-23 Andreas Schwab <schwab@suse.de>
19821
19822 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
19823 __do_global_ctors_aux hidden global and don't put it in
19824 .init_array.
19825 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
19826 instead so that it comes first.
19827
19828 2003-01-25 Jan Hubicka <jh@suse.cz>
19829
19830 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
19831 subreg is read/modify.
19832
19833 2003-01-25 Jan Hubicka <jh@suse.cz>
19834
19835 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
19836 do libcall for large blocks.
19837 * i386.md (comi patterns): Set type to ssecomi.
19838 (sse2_unpck?pd): Fix mode of vec_select.
19839
19840 * cse.c: Include except.h
19841 (cse_set_around_loop): Do not create new basic blocks.
19842 * Makefile.in (cse.o): Add dependnecy on except.h
19843
19844 2003-01-25 Jan Hubicka <jh@suse.cz>
19845
19846 * builtins.c (fold_trunc_transparent_mathfn): New function.
19847 (fold_builtin): Use it.
19848 * convert.c (convert_to_real): Re-enable code to convert
19849 math functions; add support for floor familly functions.
19850
19851 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19852
19853 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
19854 dependencies on coretypes.h and $(TM_H).
19855
19856 2003-01-25 Jan Hubicka <jh@suse.cz>
19857
19858 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
19859
19860 2003-01-24 Stuart Hastings <stuart@apple.com>
19861
19862 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
19863
19864 2003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19865
19866 * config/c4x/c4x.md (UNSPEC_BU): New constants.
19867 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
19868 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
19869 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
19870 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
19871 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
19872 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
19873 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
19874
19875 2003-01-24 Jan Hubicka <jh@suse.cz>
19876
19877 * emit-rtl.c (reg_attrs_htab): New static variable.
19878 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
19879 functions.
19880 (reg_rtx): Do not maintain regno_decl.
19881 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
19882 set_mem_attrs_from_reg): New global function.
19883 (init_emit): Do not initialize regno_decl.
19884 (init_emit_once): initialize reg_attrs_htab.
19885 * final.c (alter_subreg): Do not replace REG by SUBREG.
19886 (gen_mem_expr_from_op): Improve output.
19887 (output_asm_operands): Likewise.
19888 * function.c (assign_params): Do not set REGNO_DECL.
19889 * function.h (struct function): Kill regno_decl.
19890 (REGNO_DECL): Kill.
19891 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
19892 * print_rtl.c (print_rtx): Output REG information.
19893 * regclass.c (reg_scan_mark_refs): Update attrs.
19894 * reload1.c (alter_reg): Likewise.
19895 * simplify_rtx.c (simplify_subreg): Likewise.
19896 * stmt.c (expand_decl): Likewise.
19897 * rtl.def (REG): Add new field.
19898 * rtl.h (struct reg_attrs): New.
19899 (rtunion_def): At rtreg.
19900 (X0MEMATTR): Add checking.
19901 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
19902 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
19903 Declare.
19904 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
19905
19906 2003-01-24 Bob Wilson <bob.wilson@acm.org>
19907
19908 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
19909 (xtensa_emit_call, print_operand): Fix printf format strings
19910 to avoid compile warnings.
19911 (xtensa_function_prologue, xtensa_function_epilogue): Change type
19912 of "size" argument to HOST_WIDE_INT to fix compile warnings.
19913 * config/xtensa/xtensa-protos.h
19914 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
19915
19916 2003-01-24 Jan Hubicka <jh@suse.cz>
19917
19918 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
19919 (implicit_built_in_decls): New global array.
19920 (mathfn_built_in): New global function.
19921 (fold_trunc_transparent_mathfn): New static function
19922 (expand_builtin_strstr, expand_bultin_strchr,
19923 expand_builtin_strpbrk, expand_builtin_strcpy,
19924 expand_builtin_strncpy, expand_bultin_strcmp,
19925 expand_bultin_strncat, expand_builtin_fputs): Use
19926 implicint_built_in_decls.
19927 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
19928 * builtins.def: Fix comments.
19929 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
19930 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
19931 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
19932 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
19933 (DEF_C99_C90RES_BULTIN): New.
19934 (*f, *l builtins): Update.
19935 * c-common.c (DEF_BUILTIN): Initialize implicit array.
19936 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
19937 * convert.c (strip_float_extensions): New global function.
19938 * tree.h (DEF_BUILTIN): Accept 10 arguments.
19939 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
19940 Declare.
19941 * java/builtins.c (define_builtin): Handle implicit.
19942 (DEF_BUILTIN): Update.
19943 * tm.texi (TARGET_C99_FUNCTIONS): Document.
19944 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
19945 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
19946 when using glibc2.
19947
19948 2003-01-24 Bob Wilson <bob.wilson@acm.org>
19949
19950 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
19951 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
19952 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
19953 * config/xtensa/crti.asm: New file.
19954 * config/xtensa/crtn.asm: New file.
19955 * config/xtensa/t-elf: New file.
19956 * config/xtensa/t-linux: New file.
19957 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
19958 Move various CFLAGS settings to new t-elf file.
19959
19960 2003-01-24 Richard Henderson <rth@redhat.com>
19961
19962 PR optimization/4382
19963 * tree-inline.c (find_builtin_longjmp_call_1): New.
19964 (find_builtin_longjmp_call): New.
19965 (inlinable_function_p): Use it.
19966
19967 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19968
19969 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
19970 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
19971 * config/i386/i386.c (function_arg_pass_by_reference): New.
19972 (ix86_va_arg): Support arguments passed by reference.
19973
19974 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19975
19976 * cfgloopanal.c: New file.
19977 * cfgloopmanip.c: New file.
19978 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
19979 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
19980 cfglayout.o): Add dependency on cfgloop.h.
19981 (cfgloop.o): Add flags.h dependency.
19982 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
19983 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
19984 (struct loop, struct loops, flow_loops_find, flow_loops_update,
19985 flow_loops_free, flow_loops_dump, flow_loop_dump,
19986 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
19987 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
19988 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
19989 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
19990 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
19991 find_common_loop, verify_loop_structure): Declarations moved to ...
19992 * cfgloop.h: New file.
19993 * bb-reorder.c (reorder_basic_blocks): Modified.
19994 * cfglayout.c: Include cfgloop.h.
19995 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
19996 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
19997 (break_superblocks): New static function.
19998 (cfg_layout_finalize): Use it.
19999 (cfg_layout_split_block): New function.
20000 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
20001 fields.
20002 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
20003 changed.
20004 (cfg_layout_split_block): Declare.
20005 * cfgloop.c: Include cfgloop.h and flags.h.
20006 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
20007 get_loop_body): Avoid signed versus unsigned comparison warnings.
20008 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
20009 loop_latch_edge): Modified.
20010 (verify_loop_structure): Modified to use flags stored in loop structure;
20011 check irreducible loops.
20012 (cancel_loop, cancel_loop_tree): New functions.
20013 (estimate_probability): Use loop analysis code for predictions.
20014 (estimate_loops_at_level): Avoid signed versus unsigned comparison
20015 warnings.
20016 * doloop.c: Include cfgloop.h.
20017 * loop.c: Include cfgloop.h.
20018 * predict.c: Include cfgloop.h.
20019 * toplev.c: Include cfgloop.h.
20020 * unroll.c: Include cfgloop.h.
20021 * tracer.c (tracer): Modified.
20022
20023 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
20024
20025 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
20026
20027 2003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
20028
20029 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
20030 * configure: Regenerate.
20031
20032 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
20033 (tls_symbolic_reference_mentioned_p): Add prototype.
20034 (s390_tls_get_offset): Add prototype.
20035 (emit_pic_move): Remove prototype, replace by ...
20036 (emit_symbolic_move): .. this new prototype.
20037
20038 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
20039 (tls_model_chars): New global variable.
20040 (s390_encode_section_info): Encode TLS model.
20041 Use targetm.binds_local_p to check for local symbols.
20042 (s390_strip_name_encoding): New function.
20043 (TARGET_STRIP_NAME_ENCODING): Define.
20044
20045 (get_thread_pointer): New function.
20046 (legitimize_tls_address): New function.
20047 (legitimize_address): Call it.
20048 (emit_pic_move): Remove, replace by ...
20049 (emit_symbolic_move): ... this new function.
20050
20051 (larl_operand): Handle TLS operands.
20052 (legitimate_constant_p): Likewise.
20053 (s390_decompose_address): Likewise.
20054 (s390_cannot_force_const_mem): New function.
20055 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
20056
20057 (s390_output_symbolic_const): Handle TLS unspecs.
20058 (print_operand): New code 'J'.
20059 (machine_function): Add struct member 'some_ld_name'.
20060 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
20061
20062 (enum s390_builtin): New type.
20063 (code_for_builtin_64, code_for_builtin_31): New global variables.
20064 (s390_init_builtins, s390_expand_builtin): New functions.
20065 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
20066
20067 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
20068 (ASM_OUTPUT_LABELREF): Define.
20069 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
20070
20071 * config/s390/s390.md: Define TLS UNSPEC constants.
20072 ("movdi", "movsi"): Handle TLS operands.
20073 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
20074 ("*tls_load_64", "*tls_load_31"): New insns.
20075 ("call_value_tls", "call_value_tls_exp"): New expanders.
20076 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
20077 "bas_tls_64", "bas_tls_31"): New insns.
20078
20079 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
20080
20081 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
20082 spe ABI is configured, if requested.
20083
20084 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
20085
20086 * doc/passes.texi: Fix typo.
20087
20088 2003-01-24 Andreas Schwab <schwab@suse.de>
20089
20090 * stor-layout.c (excess_unit_span): Only define if used.
20091
20092 2003-01-24 Jerry Quinn <jlquinn@optonline.net>
20093
20094 * gcc/doc/invoke.texi (Optimization Options): List -O levels
20095 for each optimization flag.
20096
20097 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
20098
20099 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
20100
20101 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
20102
20103 * doc/bugreport.texi: Use @command instead of @code for commands.
20104 * doc/collect2.texi: Likewise.
20105 * doc/headerdirs.texi: Likewise.
20106 * doc/invoke.texi: Likewise.
20107 * doc/standards.texi: Likewise.
20108 * doc/tm.texi: Likewise.
20109 * doc/trouble.texi: Likewise.
20110
20111 2003-01-24 Nick Clifton <nickc@redhat.com>
20112
20113 * config/arm/arm.c (use_return_insn): Do not use a single return
20114 instruction for interrupt handelrs which have to create a stack
20115 frame.
20116 (arm_expand_prologue): Do not pre-bias the return address of
20117 interrupt handlers which create a stack frame.
20118
20119 2003-01-24 Nick Clifton <nickc@redhat.com>
20120
20121 * Add sh2e support:
20122
20123 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
20124
20125 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
20126 med_cbranches. Fix logic in short_cbranches.
20127
20128 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
20129
20130 * config/sh/sh.md (delay for cbranch): Don't annul delay
20131 slots on SH2e.
20132 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
20133 cbranch with unfilled delay slot on SH2e.
20134 (output_branch): Fill with a nop the delay slot of a
20135 branch that required a delay slot but didn't get one.
20136
20137 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
20138
20139 * doc/invoke.texi (SH options): Document -m2e.
20140 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
20141 * config/sh/lib1funcs.asm: Likewise.
20142 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
20143 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
20144 not __sh1__.
20145 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
20146 SH2E up.
20147 (SH3E_BIT): Renamed to...
20148 (SH_E_BIT): ... this. Replace all uses.
20149 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
20150 Replace all uses of TARGET_SH3E with TARGET_SH2E.
20151 (TARGET_SWITCHES): Added 2e.
20152 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
20153 (processor_type): Added PROCESSOR_SH2E.
20154 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
20155 TARGET_SH2E, except in sqrtsf2_i.
20156 (attribute cpu): Added sh2e.
20157 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
20158 (MULTILIB_MATCHES): Use m2e multilib for m3e.
20159 * config.gcc: Add sh2e target support.
20160
20161 2003-01-24 Phil Edwards <pme@gcc.gnu.org>
20162
20163 Rename -W to -Wextra.
20164 * c-decl.c: Update comments.
20165 * c-typeck.c: Likewise.
20166 * flags.h: Likewise.
20167 * function.c: Likewise.
20168 * stmt.c: Likewise.
20169 * toplev.c: Update comments.
20170 (W_options): Add 'extra'.
20171 (display_help): Remove '-W'.
20172 (decode_W_option): Special warn_uninitialized treatment in the case
20173 of -Wextra.
20174 * doc/invoke.texi: Update with new entries.
20175
20176 2003-01-23 Richard Henderson <rth@redhat.com>
20177
20178 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
20179 in no-else-block case. Add commentary.
20180
20181 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20182
20183 * configure.in: Revert last change.
20184
20185 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20186
20187 * configure.in: Don't include ansidecl.h in tconfig.h.
20188 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
20189 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
20190 ATTRIBUTE_UNUSED.
20191
20192 * configure: Regenerate.
20193
20194 2003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
20195
20196 PR java/6748
20197 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
20198 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
20199 kernels.
20200
20201 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20202
20203 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
20204
20205 2003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
20206
20207 * genattrtab.c (write_attr_get): Mark 'insn' paramter
20208 as ATTRIBUTE_UNUSED.
20209
20210 2003-01-23 Richard Earnshaw <rearnsha@arm.com>
20211
20212 * arm.c (thumb_base_register_rtx_p): New function.
20213 (thumb_index_register_rtx_p): New function.
20214 (thumb_legitimate_address_p): New function.
20215 (thumb_legitimate_offset_p): New function.
20216 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
20217 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
20218 definitions.
20219 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
20220 (THUMB_LEGITIMATE_OFFSET): Delte.
20221 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
20222 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
20223 (thumb_legitimate_offset_p): Likewise.
20224
20225 2003-01-23 Andreas Schwab <schwab@suse.de>
20226
20227 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
20228
20229 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20230
20231 * fixinc/Makefile.in (FL_LIST): Revert last change.
20232
20233 2003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
20234
20235 PR other/7341
20236 * invoke.texi (ftest-coverage): Fix broken cross-reference.
20237 Change @code to @command for gcov command.
20238
20239 * gcc.texi: Adjust title of gcov section.
20240 Adjust copyright.
20241 * gcov.texi: Likewise.
20242
20243 2003-01-22 Roger Sayle <roger@eyesopen.com>
20244
20245 PR optimization/8423
20246 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
20247 its argument is constant, or 0 if !flag_gcse.
20248 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
20249 if it's argument is constant.
20250 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
20251 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
20252 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
20253 * builtins.c (purge_builtin_constant_p): New function to force
20254 instantiation of any remaining CONSTANT_P_RTX nodes.
20255 * rtl.h (purge_builtin_constant_p): Prototype here.
20256 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
20257 pass after GCSE and before loop.
20258 (flag_gcse): No longer static.
20259 * flags.h (flag_gcse): Prototype here.
20260
20261 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
20262
20263 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
20264 introduced by last change.
20265
20266 2003-01-22 Andreas Schwab <schwab@suse.de>
20267
20268 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
20269
20270 2003-01-22 Kazu Hirata <kazu@cs.umass.edu>
20271
20272 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
20273 request a scratch reg on H8S when the shift count is 8.
20274
20275 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
20276
20277 * config/s390/s390-protos.h (preferred_la_operand_p):
20278 Remove second parameter.
20279 * config/s390/s390.c (preferred_la_operand_p): Likewise.
20280 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
20281 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
20282 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
20283 Add peepholes to transform ADD to LOAD ADDRESS.
20284
20285 2003-01-22 Richard Earnshaw <rearnsha@arm.com>
20286
20287 * arm.c (arm_address_register_rtx_p): New function.
20288 (arm_legitimate_address_p): New function.
20289 (arm_legitimate_index_p): New function.
20290 (legitimize_pic_address): Use arm_legitimate_index_p.
20291 * arm-protos.h (arm_legtimate_address_p): Add prototype.
20292 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
20293 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
20294
20295 2003-01-22 Hartmut Penner <hpenner@de.ibm.com>
20296
20297 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
20298 * config/s390/2064.md (define_bypass): Correct 'Load' and
20299 'Load-address' bypass values.
20300
20301 2003-01-22 Andreas Schwab <schwab@suse.de>
20302
20303 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
20304
20305 2003-01-21 Zack Weinberg <zack@codesourcery.com>
20306
20307 * genautomata.c (output_internal_insn_latency_func,
20308 output_print_reservation_func): Short circuit when there is no
20309 automaton to generate code for.
20310
20311 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20312
20313 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
20314 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
20315
20316 2003-01-21 Geoffrey Keating <geoffk@apple.com>
20317
20318 * config/rs6000/rs6000.md: Remove warning.
20319 (builtin_setjmp_receiver): Likewise.
20320 * config/darwin.c (update_stubs): Slightly improve terrible hack
20321 with identifiers. Add comment pointing out problems with it.
20322 (update_non_lazy_ptrs): Likewise.
20323
20324 2003-01-21 Richard Henderson <rth@redhat.com>
20325
20326 * dwarf2out.c (lookup_filename): Fix printf format warning.
20327 * system.h (fread_unlocked, fwrite_unlocked): Undef.
20328
20329 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
20330 (fixincl.o-warn, gnu-regex.o-warn): New.
20331 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
20332 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
20333 * fixinc/fixincl.c (process): Fix printf format warning.
20334
20335 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
20336
20337 * dwarf2out (output_file_names): Don't crash if called
20338 with empty file_table.
20339
20340 2003-01-21 Zack Weinberg <zack@codesourcery.com>
20341
20342 * genautomata.c (output_internal_insn_latency_func): Add
20343 missing break statement to generated code.
20344
20345 2003-01-21 Roger Sayle <roger@eyesopen.com>
20346
20347 * stmt.c (same_case_target_p): New function to determine whether
20348 two case labels branch to the same target. Split out from...
20349 (group_case_nodes): ... here. Use same_case_target_p instead.
20350 (strip_default_case_nodes): Remove explicit case nodes
20351 that branch to the default destination.
20352 (expand_end_case_type): Call strip_default_case_nodes after
20353 group_case_nodes, to simplify the case-list before we count it.
20354 Only generate table_label RTX when actually needed. Try to share
20355 thiscase->exit_label and thiscase->data.case_stmt.default_label
20356 when a switch has no explicit default case. Simplify test for
20357 constant index.
20358
20359 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
20360
20361 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
20362 \t.
20363 (*negsf2_h8300hs): Likewise.
20364 (*addsi3_lshiftrt_16_zexthi): Likewise.
20365 (*iorhi3_lshiftrt_8): Likewise.
20366
20367 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
20368
20369 * dwarf2out.c (fde_table_in_use): Mark GTY.
20370 (dwarf2out_cfi_label_num): New variable, marked GTY.
20371 (dwarf2out_cfi_label): Use it instead of static label_num.
20372 * emit-rtl.c (label_num): Mark GTY.
20373
20374 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
20375
20376 * config/h8300/h8300.c (output_plussi): Support H8/300.
20377 (compute_plussi_length): Likewise.
20378 (compute_plussi_cc): Likewise.
20379 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
20380 output assembly instructions.
20381
20382 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20383
20384 * calls.c (fix_unsafe_tree): Prototype.
20385
20386 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
20387 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
20388 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
20389 c-parse.o-warn): Add -Wno-error.
20390 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
20391
20392 * configure.in (--enable-werror): Add new flag.
20393 * doc/install.texi (--enable-werror): Document.
20394 * configure: Regenerate.
20395
20396 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
20397
20398 2003-01-21 Andreas Schwab <schwab@suse.de>
20399
20400 * genautomata.c (output_internal_insn_latency_func): Fix missing
20401 close paren in output.
20402
20403 2003-01-21 Zack Weinberg <zack@codesourcery.com>
20404
20405 * genautomata.c: Space savings in generated code:
20406 (output_dfa_insn_code_func): Split out the table-enlargement
20407 path to an out-of-line static function, dfa_insn_code_enlarge.
20408 (output_internal_insn_latency_func): Use a lookup table for the
20409 default latencies.
20410 (output_print_reservation_func): Use a lookup table for the
20411 strings.
20412
20413 2003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
20414
20415 PR opt/7507
20416 * calls.c (fix_unsafe_tree): Split out from ...
20417 (expand_call): ... here. Use it on the function address too.
20418
20419 2003-01-20 Richard Henderson <rth@redhat.com>
20420
20421 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
20422
20423 2003-01-20 Richard Henderson <rth@redhat.com>
20424
20425 PR opt/7154
20426 * stmt.c (expand_asm_operands): Validize memory operands.
20427
20428 2003-01-20 Richard Henderson <rth@redhat.com>
20429
20430 PR opt/8848
20431 * ifcvt.c (noce_process_if_block): Correct arguments to
20432 modified_between_p for no-else-block case.
20433
20434 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
20435
20436 * config/h8300/h8300.c (const_costs): Remove a warning.
20437 (output_plussi): Likewise.
20438 (compute_plussi_length): Likewise.
20439 (compute_plussi_cc): Likewise.
20440
20441 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
20442
20443 * config/h8300/h8300.md (addsi_h8300): Remove the last
20444 alternative.
20445
20446 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
20447
20448 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
20449
20450 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20451
20452 * system.h (__NO_STRING_INLINES): Define.
20453
20454 2003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20455
20456 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
20457 is not a scalar int mode.
20458
20459 2003-01-20 Roger Sayle <roger@eyesopen.com>
20460
20461 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
20462 insn's notes following a substitution inside a libcall.
20463
20464 2003-01-20 Zack Weinberg <zack@codesourcery.com>
20465
20466 * configure.in: Check for system-provided 'uchar' type.
20467 * configure, config.in: Regenerate.
20468 * cpphash.h: Only typedef 'uchar' if the system doesn't.
20469
20470 2003-01-20 Richard Henderson <rth@redhat.com>
20471
20472 * expr.h (MUST_PASS_IN_STACK): Move implementation...
20473 * calls.c (default_must_pass_in_stack): ... here.
20474
20475 2003-01-20 Vladimir Makarov <vmakarov@redhat.com>
20476
20477 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
20478
20479 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
20480
20481 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
20482 Wrap up definition of `insn_alts'.
20483
20484 * genattrtab.c (main): Wrap up `insn_alts'.
20485
20486 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20487
20488 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
20489 prototyping.
20490 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
20491
20492 * config.in, configure: Regenerate.
20493
20494 2003-01-20 Nick Clifton <nickc@redhat.com>
20495
20496 * config/arm/arm.md (sibcall_epilogue): Add an
20497 UNSPEC_PROLOGUE_USE to prevent the link register from being
20498 considered dead.
20499
20500 2003-01-20 Jan Hubicka <jh@suse.cz>
20501
20502 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
20503
20504 2003-01-20 Andreas Schwab <schwab@suse.de>
20505
20506 * system.h: Don't declare strsignal if the decl test hasn't been
20507 run yet.
20508
20509 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
20510
20511 * config/h8300/h8300.c (notice_update_cc): Don't assume that
20512 recog_data.operands[0] is always associated with cc0.
20513
20514 2003-01-19 David Edelsohn <edelsohn@gnu.org>
20515
20516 * collect2.c (ldgetname): Expand declaration to prototype.
20517 * read-rtl.c (atoll): Add prototype.
20518 * system.h (strsignal): Also declare if no declaration found.
20519
20520 2003-01-19 Alexandre Oliva <aoliva@redhat.com>
20521
20522 * config.gcc (mips64*-*-linux*): Added.
20523 * config/mips/linux64.h, config/mips/t-linux64: New file.
20524 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
20525 * config/mips/mips.c (override_options): Use it.
20526 * config/mips/mips.h (TARGET_SWITCHES): Added...
20527 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
20528 * Makefile.in (SPECS): New.
20529 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
20530 * gcc.c (process_command): Move self-spec processing past spec
20531 file loading.
20532 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
20533 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
20534 CRTSTUFF_T_CFLAGS.
20535 (SPECS): Document.
20536 * doc/invoke.texi (-mabi-fake-default): Document.
20537
20538 2003-01-19 Stephane Carrez <stcarrez@nerim.fr>
20539
20540 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
20541 z_reg, z_reg_qi): Declare static and GTY().
20542 (da_reg): Remove.
20543 (create_regs_rtx): Don't create da_reg.
20544 ("gt-m68hc11.h"): Include for GTY roots.
20545 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
20546 and GTY() here.
20547 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
20548 (m68hc11_soft_tmp_reg): Likewise.
20549 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
20550
20551 2003-01-18 Kazu Hirata <kazu@cs.umass.edu>
20552
20553 * basic-block.h: Fix comment formatting.
20554 * calls.c: Likewise.
20555 * combine.c: Likewise.
20556 * convert.c: Likewise.
20557 * gcov.c: Likewise.
20558 * haifa-sched.c: Likewise.
20559 * libgcc2.c: Likewise.
20560 * loop.c: Likewise.
20561 * profile.c: Likewise.
20562 * system.h: Likewise.
20563
20564 2003-01-18 Roger Sayle <roger@eyesopen.com>
20565
20566 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
20567
20568 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20569
20570 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
20571
20572 2003-01-17 Dale Johannesen <dalej@apple.com>
20573
20574 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
20575 (*floatunssidf2_internal): Ditto.
20576
20577 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
20578
20579 * alias.c: Fix comment typos.
20580 * basic-block.h: Likewise.
20581 * c-common.c: Likewise.
20582 * c-common.h: Likewise.
20583 * c-decl.c: Likewise.
20584 * c-opts.c: Likewise.
20585 * c-pragma.c: Likewise.
20586 * c-pretty-print.h: Likewise.
20587 * cfg.c: Likewise.
20588 * cfganal.c: Likewise.
20589 * cfgbuild.c: Likewise.
20590 * cfgcleanup.c: Likewise.
20591 * cfglayout.c: Likewise.
20592 * cfgrtl.c: Likewise.
20593 * convert.c: Likewise.
20594 * cpphash.h: Likewise.
20595 * cpplex.c: Likewise.
20596 * cpplib.h: Likewise.
20597 * df.h: Likewise.
20598 * diagnostic.c: Likewise.
20599 * diagnostic.h: Likewise.
20600 * dwarf2.h: Likewise.
20601
20602 2003-01-17 Stan Shebs <shebs@apple.com>
20603
20604 * config/darwin-protos.h: Forward-declare struct cpp_reader.
20605
20606 2003-01-17 Douglas B Rupp <rupp@gnat.com>
20607
20608 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
20609 mistake in last checkin.
20610
20611 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
20612
20613 * et-forest.c: Fix comment typos.
20614 * et-forest.h: Likewise.
20615 * except.c: Likewise.
20616 * expr.c: Likewise.
20617 * flags.h: Likewise.
20618 * flow.c: Likewise.
20619 * gcc.c: Likewise.
20620 * gcse.c: Likewise.
20621 * genattrtab.c: Likewise.
20622 * genautomata.c: Likewise.
20623 * gengtype.c: Likewise.
20624 * genrecog.c: Likewise.
20625 * global.c: Likewise.
20626 * gthr-rtems.h: Likewise.
20627
20628 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20629
20630 * i386.c (x86_function_profiler): Fix format specifier.
20631
20632 2003-01-17 Richard Henderson <rth@redhat.com>
20633
20634 * gengtype.c (walk_type): Allow paramN_is.
20635
20636 2003-01-17 Nick Clifton <nickc@redhat.com>
20637
20638 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
20639
20640 2003-01-16 Richard Henderson <rth@redhat.com>
20641
20642 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
20643
20644 2003-01-16 Richard Henderson <rth@redhat.com>
20645
20646 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
20647 (alpha_next_sequence_number): Likewise.
20648 (alpha_this_literal_sequence_number): Likewise.
20649 (alpha_this_gpdisp_sequence_number): Likewise.
20650 (struct alpha_funcs, alpha_funcs_num): Likewise.
20651 (struct alpha_links): Fix branch merge error.
20652 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
20653
20654 2003-01-17 Alexandre Oliva <aoliva@redhat.com>
20655
20656 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
20657 R. Ghazi.
20658
20659 2003-01-16 Kazu Hirata <kazu@cs.umass.edu>
20660
20661 * ifcvt.c: Fix comment typos.
20662 * lcm.c: Likewise.
20663 * libgcc2.c: Likewise.
20664 * local-alloc.c: Likewise.
20665 * loop.c: Likewise.
20666 * predict.c: Likewise.
20667 * ra-build.c: Likewise.
20668 * ra.c: Likewise.
20669 * ra-colorize.c: Likewise.
20670 * ra.h: Likewise.
20671 * ra-rewrite.c: Likewise.
20672 * regmove.c: Likewise.
20673 * reload.h: Likewise.
20674 * rtlanal.c: Likewise.
20675 * toplev.c: Likewise.
20676 * tree.h: Likewise.
20677 * unwind-dw2-fde-glibc.c: Likewise.
20678 * vmsdbgout.c: Likewise.
20679
20680 2003-01-16 Richard Henderson <rth@redhat.com>
20681
20682 * dwarf2out.c (struct file_table): Remove.
20683 (FILE_TABLE_INCREMENT): Remove.
20684 (file_table): Make a varray; mark for GC. Update all users.
20685 (file_table_last_lookup_index): Extract from struct file_table.
20686 (output_file_names): Fix unsigned compare warnings.
20687 (add_name_attribute): Remove inline marker.
20688 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
20689 (lookup_filename): Don't manage size of file_table.
20690 (init_file_table): Allocate file_table with GC.
20691 (dwarf2out_init): Don't record main_input_filename here.
20692 (dwarf2out_finish): Do it here instead.
20693
20694 2003-01-16 Bruce Korb <bkorb@gnu.org>
20695
20696 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
20697
20698 2003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
20699
20700 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
20701 instead of rotldi3_mextr.
20702
20703 2003-01-16 Vladimir Makarov <vmakarov@redhat.com>
20704
20705 * haifa-sched.c (move_insn): Restore moving all schedule group.
20706 (set_priorities): Restore taking SCHED_GROUP_P into account.
20707
20708 * sched-deps.c (add_dependence): Restore processing the last group
20709 insn.
20710 (remove_dependence, group_leader): Restore the functions.
20711 (set_sched_group_p): Restore adding dependencies from previous insn
20712 in the group.
20713 (compute_forward_dependences): Restore usage of group_leader.
20714
20715 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
20716 account.
20717
20718 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
20719 account.
20720 (can_schedule_ready_p): Ditto.
20721 (add_branch_dependences): Restore skipping over the group insns.
20722
20723 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
20724
20725 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
20726 68HC12 pre/post inc/dec side effects.
20727
20728 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
20729
20730 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
20731
20732 2003-01-16 J"orn Rennecke <amylaar@onetel.net.uk>
20733
20734 * sh.md (mshflo_w_x): Fix description of operation.
20735
20736 2003-01-16 Zack Weinberg <zack@codesourcery.com>
20737
20738 * config/rs6000/rs6000.h: Mention Altivec registers in
20739 commentary. Fix typo.
20740
20741 2003-01-16 David Edelsohn <edelsohn@gnu.org>
20742
20743 * config/rs6000/rs6000.md (movti_string): Remove clobber.
20744 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
20745 generate PARALLEL with clobber for TARGET_POWER.
20746
20747 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20748
20749 * ra-colorize.c (colorize_one_web): Initialize variable.
20750 * regmove.c (fixup_match_1): Likewise.
20751 * reload1.c (reload_as_needed): Likewise.
20752 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
20753
20754 2003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20755
20756 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
20757
20758 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20759
20760 * dbxout.c (lastfile, cwd): Fix `unused' warning.
20761 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
20762 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
20763 is_main_source, file_table, decl_die_table_in_use,
20764 abbrev_die_table_in_use, line_info_table_in_use,
20765 separate_line_info_table_in_use, pubname_table_in_use,
20766 arange_table_in_use, ranges_table_in_use,
20767 current_function_has_inlines): Likewise.
20768 * flow.c (life_analysis): Likewise.
20769 * genemit.c (gen_insn): Likewise.
20770 * protoize.c (cplus_suffix): Likewise.
20771
20772 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
20773 * arm.h (ROUND_UP_WORD): Likewise.
20774
20775 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
20776 warning.
20777 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
20778 init_emit_once): Likewise.
20779 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
20780 Likewise.
20781 * function.c (assign_stack_temp_for_type): Likewise.
20782 * loop.c (loop_invariant_p): Likewise.
20783 * recog.c (push_operand): Likewise.
20784 * regclass.c (init_reg_sets_1): Likewise.
20785 * reload.c (update_auto_inc_notes): Likewise.
20786 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
20787 * stmt.c (expand_asm_operands): Likewise.
20788 * stor-layout.c (start_record_layout): Likewise.
20789
20790 2003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
20791
20792 * config/c4x/c4x.md (epilogue): Correct last patch.
20793
20794 2003-01-15 Richard Henderson <rth@redhat.com>
20795
20796 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
20797 also check that GP is being used.
20798 (alpha_find_lo_sum_using_gp): New.
20799 (alpha_does_function_need_gp): Use get_attr_usegp.
20800 * config/alpha/alpha-protos.h: Update.
20801 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
20802 as needed.
20803
20804 2003-01-15 Roger Sayle <roger@eyesopen.com>
20805
20806 * gcse.c (one_cprop_pass): Change function arguments to take both
20807 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
20808 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
20809 (bypass_jumps): New function to perform separate jump bypassing pass.
20810 * rtl.h (bypass_jumps): Add function prototype.
20811 * timevar.def (TV_BYPASS): New timing variable.
20812 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
20813 (dump_file): New entry for the bypass RTL dump file.
20814 (rest_of_compilation): Insert new jump bypassing optimization
20815 pass after loop.
20816 * doc/passes.texi: Document new pass.
20817
20818 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
20819
20820 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
20821 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
20822 * pa.h (TARGET_SOM_SDEF): Define.
20823 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
20824
20825 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
20826
20827 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
20828 allocate 4-bytes of locals on 68HC11.
20829 (expand_epilogue): Likewise.
20830 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
20831
20832 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
20833
20834 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
20835 and -mshort-double to the assembler to specify the ABI.
20836 (LINK_SPEC): Likewise.
20837 (CPP_SPEC): Pass HCS12 specific define.
20838 (MASK_M68S12): New define.
20839 (TARGET_M68S12): Likewise.
20840 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
20841 (TARGET_VERSION): Update.
20842 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
20843 (LINK_SPEC): Update.
20844 (ASM_SPEC): Update.
20845 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
20846 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
20847
20848 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
20849
20850 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
20851 the return code.
20852
20853 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
20854
20855 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
20856 flag before setting it.
20857
20858 2003-01-15 Roger Sayle <roger@eyesopen.com>
20859
20860 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
20861 when loop condition is known true, i.e. "while (1) { ... }".
20862 (genrtl_for_stmt): Similarly for "for" statements.
20863
20864 2003-01-15 Roger Sayle <roger@eyesopen.com>
20865
20866 * real.c (real_sqrt): Return a bool result indicating whether
20867 a floating point exception or trap should be raised.
20868 * real.h (real_sqrt): Update function prototype.
20869 * builtins.c (fold_builtin): Only fold non-trapping square
20870 roots unless we're ignoring errno and trapping math.
20871
20872 2003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
20873
20874 * expr.h (emit_conditional_add): Add PARAMS to declaration.
20875 * gengtype-lex.l (malloc, realloc): Move defines after include of
20876 system.h. Remove duplicate include of system.h.
20877
20878 2003-01-15 Roger Sayle <roger@eyesopen.com>
20879
20880 PR middle-end/9009
20881 * optabs.c (expand_unop): When manipulating the FP sign bit
20882 using integer operations, account for targets with different
20883 integer and FP word orders.
20884 (expand_abs): Likewise.
20885
20886 2003-01-15 David Edelsohn <edelsohn@gnu.org>
20887
20888 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
20889 file extension in section name.
20890
20891 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
20892
20893 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
20894 constant offset.
20895
20896 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
20897
20898 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
20899 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
20900 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
20901 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
20902
20903 2003-01-15 Jan Hubicka <jh@suse.cz>
20904
20905 PR f/9258
20906 * global.c (struct allocno): Add no_stack_reg.
20907 (global_conflicts): Set no_stack_reg.
20908 (find_reg): Use it.
20909
20910 * convert.c (convert_to_real): Fold - and abs only when profitable.
20911 * fold-const.c (fold): Fold truncates in - and abs.
20912
20913 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
20914
20915 Segher Boessenkool <segher@koffie.nl>
20916
20917 * predict.c (real_inv_br_prob_base): New variable.
20918 (propagate_freq): Use multiply by reciprocal instead of
20919 division. Don't divide by 1.0 at all.
20920 (estimate_bb_frequencies): Similar.
20921
20922 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
20923
20924 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
20925 * configure: Rebuilt.
20926
20927 2003-01-15 Hartmut Penner <hpenner@de.ibm.com>
20928
20929 * config/s390/s390.c (s390_safe_attr_type): New function.
20930 (s390_use_dfa_pipeline_interface): New function, return true for z900.
20931 (s390_issue_rate): New function.
20932 (s390_agen_dep_p): New function.
20933 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
20934 (s390_adjust_cost): Return 'cost' if new DFA is used.
20935 (s390_adjust_priority): Delete function.
20936 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
20937 * config/s390/s390.md (atype attribute): Attribute 'atype' default
20938 determined by 'op_type'.
20939 (type attribute): Added more type attributes.
20940 * config/s390/2064.md: New DFA description for z900 pipeline.
20941
20942 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
20943
20944 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
20945 forced to memory. Fixes PR bootstrap/9036.
20946
20947 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
20948 to set $gp before the call.
20949
20950 2003-01-14 Richard Henderson <rth@redhat.com>
20951
20952 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
20953 for force_const_mem.
20954
20955 2003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20956
20957 * genattr.c (main): Rearrange output to avoid prototype warning.
20958 * genautomata.c (transform_3): Fix ambiguous-else warning.
20959 * local-alloc.c (requires_inout): Add parentheses around
20960 assignment used as truth-value.
20961 * timevar.c: Move system includes above local includes. Include
20962 toplev.h
20963 * Makefile.in (timevar.o): Depend on toplev.h.
20964
20965 2003-01-14 Denis Chertykov <denisc@overta.ru>
20966
20967 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
20968 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
20969
20970 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
20971 attributes.
20972 (TARGET_ATTRIBUTE_TABLE): New macro.
20973 (valid_machine_type_attribute): Remove.
20974 (valid_machine_decl_attribute): Remove.
20975 (ip2k_handle_progmem_attribute): New function.
20976 (ip2k_handle_fndecl_attribute): New function.
20977
20978 2003-01-10 Andrew Haley <aph@redhat.com>
20979
20980 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
20981 registers to be in correct order. Add rip.
20982
20983 2003-01-14 Kazu Hirata <kazu@cs.umass.edu>
20984
20985 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
20986 (*iorsi3_and_lshiftrt_9_sb): Likewise.
20987
20988 2003-01-14 Jan Hubicka <jh@suse.cz>
20989
20990 * convert.c (strip_float_extensions): Look for narrowest type handling
20991 FP constants.
20992
20993 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
20994 float1 CMP float2.
20995 * convert.c (strip_float_extensions): Make global.
20996 * tree.h (strip_float_extensions): Declare.
20997
20998 2003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
20999
21000 * timevar.def: define TV_NAME_LOOKUP.
21001 * timevar.c (timevar_pop): Be verbose when aborting.
21002
21003 2003-01-13 Andreas Schwab <schwab@suse.de>
21004
21005 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
21006 $(parsedir), just move the temporary file at the end.
21007 ($(parsedir)/gengtype-yacc.c): Likewise.
21008
21009 2003-01-13 Alexandre Oliva <aoliva@redhat.com>
21010
21011 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
21012 ${ac_tool_prefix} to ADAC or CC. Protect them from word
21013 splitting.
21014 * configure: Rebuilt.
21015
21016 2003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21017
21018 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
21019 internal_mcount): Don't use PARAMS.
21020 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
21021 ISO C style.
21022 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
21023
21024 2003-01-13 Andreas Schwab <schwab@suse.de>
21025
21026 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
21027 directive.
21028
21029 2003-01-13 Kazu Hirata <kazu@cs.umass.edu>
21030
21031 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
21032 (*iorsi3_and_lshiftrt_n_sb): Likewise.
21033
21034 2003-01-12 Mark Mitchell <mark@codesourcery.com>
21035
21036 PR c++/9264
21037 * c-lex.c (c_lex): Set the token value to error_mark_node for
21038 invalid numeric constants.
21039
21040 2003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21041
21042 * c-pch.c (asm_file_startpos): Change to `long'.
21043 (pch_init): Use ftell, not ftello.
21044 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
21045 Use `long' instead of `off_t'.
21046 (c_common_read_pch): Likewise.
21047 * ggc-common.c (gt_pch_save): Use long/ftell instead of
21048 off_t/ftello.
21049
21050 2003-01-12 Alan Modra <amodra@bigpond.net.au>
21051
21052 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
21053
21054 2003-01-11 Richard Earnshaw (rearnsha@arm.com)
21055
21056 * arm-protos.h (struct cpp_reader): Add declaration.
21057
21058 2003-01-11 Jan Hubicka <jh@suse.cz>
21059
21060 PR target/9068
21061 * i386.c (output_fp_compare): Fix typo.
21062
21063 2003-01-10 David Edelsohn <edelsohn@gnu.org>
21064
21065 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
21066
21067 2003-01-10 Geoffrey Keating <geoffk@apple.com>
21068
21069 * Makefile.in (parsedir): New variable.
21070 (docobjdir): New variable.
21071 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
21072 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
21073 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
21074 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
21075 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
21076 Use docobjdir.
21077 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
21078 objc.maintainer-clean): Use parsedir.
21079
21080 * varasm.c (struct constant_descriptor_rtx): Remove unused
21081 `label' field.
21082
21083 * toplev.c (documented_lang_options): Document -Winvalid-pch.
21084
21085 2003-01-10 Richard Henderson <rth@redhat.com>
21086
21087 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
21088 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
21089
21090 2003-01-10 Richard Henderson <rth@redhat.com>
21091
21092 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
21093 not INTEGRAL_MODE_P when widening extensions.
21094
21095 2003-01-10 Richard Henderson <rth@redhat.com>
21096
21097 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
21098
21099 2003-01-10 Geoffrey Keating <geoffk@apple.com>
21100
21101 * ggc-page.c (ggc_collect): Avoid overflow computing
21102 min_expand.
21103
21104 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
21105 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
21106 Remove calls.
21107 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
21108
21109 2003-01-10 Jan Hubicka <jh@suse.cz>
21110
21111 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
21112 with weird operands.
21113
21114 2003-01-10 Dale Johannesen <dalej@apple.com>
21115
21116 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
21117 parameters. Call check_sibcall_argument_overlap if indicated.
21118 (check_sibcall_argument_overlap): Add mark_stored_args_map
21119 parameter. Don't mark parameter area as clobbered if not set.
21120 (expand_call): Adjust calls to above.
21121
21122 2003-01-10 Kelley Cook <kelleycook@comcast.net>
21123
21124 * configure.in (linker read-only and read-write section mixing):
21125 Squelch some assembler warnings.
21126 * configure: Likewise.
21127
21128 2003-01-10 Hartmut Penner <hpenner@de.ibm.com>
21129
21130 * doc/invoke.texi: Document -mtune, delete -mcpu
21131 option for S/390 and zSeries.
21132 * config/s390/s390.c (s390_tune_string) New variable.
21133 (s390_cpu_string) Delete variable.
21134 (override_options): Use s390_tune_string instead of
21135 s390_cpu_string.
21136 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
21137
21138 2003-01-10 Kazu Hirata <kazu@cs.umass.edu>
21139
21140 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
21141
21142 2003-01-10 Josef Zlomek <zlomekj@suse.cz>
21143
21144 * jump.c (next_nonnote_insn_in_loop): New function.
21145 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
21146 next_nonnote_insn.
21147 (duplicate_loop_exit_test). Likewise.
21148
21149 2003-01-09 Geoffrey Keating <geoffk@apple.com>
21150
21151 Merge from pch-branch:
21152
21153 2003-01-06 Geoffrey Keating <geoffk@apple.com>
21154
21155 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
21156 load.
21157
21158 2002-12-24 Geoffrey Keating <geoffk@apple.com>
21159
21160 * cpplib.c (count_registered_pragmas): New function.
21161 (save_registered_pragmas): New function.
21162 (_cpp_save_pragma_names): New function.
21163 (restore_registered_pragmas): New function.
21164 (_cpp_restore_pragma_names): New function.
21165 * cpphash.h (_cpp_save_pragma_names): Prototype.
21166 (_cpp_restore_pragma_names): Likewise.
21167 * cpppch.c (struct save_macro_item): Split from save_macro_data.
21168 (struct save_macro_data): New field 'saved_pragmas'.
21169 (save_macros): Update for changes to struct save_macro_data.
21170 (cpp_prepare_state): Call _cpp_save_pragma_names, update
21171 for changes to struct save_macro_data.
21172 (cpp_read_state): Call _cpp_restore_pragma_names, update
21173 for changes to struct save_macro_data.
21174
21175 * cpppch.c (cpp_read_state): Restore the hashtable references
21176 in the cpp_reader.
21177
21178 * tree.h (built_in_decls): Mark for PCH.
21179
21180 * dbxout.c (lastfile): Don't mark for PCH.
21181
21182 * ggc.h: Document PCH calls into memory managers.
21183
21184 2002-12-18 Geoffrey Keating <geoffk@apple.com>
21185
21186 * doc/invoke.texi (Precompiled Headers): Document the
21187 directory form of PCH.
21188 * cppfiles.c (validate_pch): New function.
21189 (open_file_pch): Search suitably-named directories for PCH files.
21190
21191 2002-12-14 Geoffrey Keating <geoffk@apple.com>
21192
21193 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
21194 reorder options.
21195 (Type Information): Mention that the information is also
21196 used to implement PCH.
21197 * doc/passes.texi (Passes): Improve documentation of
21198 language-specific files.
21199
21200 2002-12-11 Geoffrey Keating <geoffk@apple.com>
21201
21202 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
21203 (struct walk_type_data): Add reorder_fn field.
21204 (walk_type): Process 'reorder' option.
21205 (write_types_process_field): Reorder parameters to gt_pch_note_object,
21206 call reorder_note_routine.
21207 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
21208 (ggc_wtd): Update for change to struct write_types_data.
21209 (pch_wtd): Likewise.
21210 * ggc.h (gt_pch_note_object): Reorder parameters.
21211 (gt_handle_reorder): New definition.
21212 (gt_pch_note_reorder): New prototype.
21213 * ggc-common.c (struct ptr_data): Add reorder_fn.
21214 (gt_pch_note_object): Reorder parameters.
21215 (gt_pch_note_reorder): New.
21216 (gt_pch_save): Call reorder_fn.
21217 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
21218
21219 * dbxout.c (cwd): Don't mark for PCH.
21220
21221 2002-12-09 Geoffrey Keating <geoffk@apple.com>
21222
21223 * gengtype.c (finish_root_table): Fix some warnings.
21224 (write_root): Handle TYPE_STRING.
21225 * ggc.h (gt_ggc_m_S): Add prototype.
21226 * stringpool.c (gt_ggc_m_S): New function.
21227
21228 2002-11-30 Geoffrey Keating <geoffk@apple.com>
21229
21230 * dwarf2out.c (dw2_string_counter): New.
21231 (AT_string_form): Use it.
21232 (same_dw_val_p): Update for removal of hashtable.h hash tables.
21233
21234 2002-11-22 Geoffrey Keating <geoffk@apple.com>
21235
21236 * dbxout.c: Include gt-dbxout.h.
21237 (lastfile): Mark for PCH/GGC.
21238 (cwd): Likewise.
21239 (struct typeinfo): Likewise.
21240 (typevec): Likewise.
21241 (typevec_len): Likewise.
21242 (next_type_number): Likewise.
21243 (struct dbx_file): Likewise.
21244 (current_file): Likewise.
21245 (next_file_number): Likewise.
21246 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
21247 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
21248 (dbxout_end_source_file): Don't free struct dbx_file.
21249 (dbxout_type): Use GGC to allocate typevec.
21250 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
21251 (GTFILES): Add dbxout.c.
21252 (gt-dbxout.h): New rule.
21253
21254 * Makefile.in (c-pch.o): Add debug.h as dependency.
21255 * c-pch.c: Include debug.h.
21256 (pch_init): Call start_source_file to keep nesting right.
21257 (c_common_read_pch): Add orig_name parameter. Call
21258 start_source_file debug hook. Call end_source_file debug hook.
21259 * c-common.h (c_common_read_pch): Update prototype.
21260 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
21261 callback.
21262 * cppfiles.c (struct include_file): Add new field `header_name'.
21263 (find_or_create_entry): Default it to `name'.
21264 (open_file_pch): Set it to the original header file searched for.
21265 (stack_include_file): Don't stack an empty buffer, just handle
21266 PCH files immediately. Pass header_name field to read_pch callback.
21267
21268 2002-11-19 Geoffrey Keating <geoffk@apple.com>
21269
21270 * function.c (funcdef_no): Mark to be saved in a PCH.
21271
21272 2002-11-15 Geoffrey Keating <geoffk@apple.com>
21273
21274 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
21275
21276 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
21277
21278 2002-11-14 Geoffrey Keating <geoffk@apple.com>
21279
21280 * optabs.h (code_to_optab): Add GTY marker.
21281
21282 2002-11-13 Geoffrey Keating <geoffk@apple.com>
21283
21284 * Makefile.in (GTFILES): Add cpplib.h.
21285 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
21286 * c-decl.c (build_compound_literal): Don't use var_labelno.
21287 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
21288 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
21289 * varasm.c (const_labelno): Use gengtype to mark.
21290 (var_labelno): Likewise.
21291 (in_section): Likewise.
21292 (in_named_name): Likewise.
21293 (struct in_named_entry): Likewise.
21294 (in_named_htab): Likewise.
21295 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
21296 (init_varasm_once): Use GGC to allocate in_named_htab.
21297 * config/darwin.c (current_pic_label_num): Mark for PCH.
21298
21299 2002-11-11 Geoffrey Keating <geoffk@apple.com>
21300
21301 * ggc-simple.c (init_ggc_pch): New stub procedure.
21302 (ggc_pch_count_object): Likewise.
21303 (ggc_pch_total_size): Likewise.
21304 (ggc_pch_this_base): Likewise.
21305 (ggc_pch_alloc_object): Likewise.
21306 (ggc_pch_prepare_write): Likewise.
21307 (ggc_pch_write_object): Likewise
21308 (ggc_pch_finish): Likewise.
21309 (ggc_pch_read): Likewise.
21310
21311 2002-11-08 Geoffrey Keating <geoffk@apple.com>
21312
21313 * c-pch.c (c_common_write_pch): Write the macro definitions after
21314 the GCed data.
21315 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
21316 definitions after the GCed data.
21317 * cpplib.c (save_macros): New.
21318 (reset_ht): New.
21319 (cpp_write_pch_deps): Split out of cpp_write_pch.
21320 (cpp_write_pch_state): Split out of cpp_write_pch.
21321 (cpp_write_pch): Delete.
21322 (struct save_macro_data): Delete.
21323 (cpp_prepare_state): New.
21324 (cpp_read_state): Erase and restore initial macro definitions.
21325 * cpplib.h (struct save_macro_data): Forward-declare.
21326 (cpp_write_pch_deps): Prototype.
21327 (cpp_write_pch_state): Prototype.
21328 (cpp_write_pch): Delete prototype.
21329 (cpp_prepare_state): Prototype.
21330 (cpp_read_state): Add fourth argument.
21331
21332 2002-11-04 Geoffrey Keating <geoffk@apple.com>
21333
21334 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
21335 (write_array): Remove warning.
21336
21337 * gengtype.c (contains_scalar_p): New.
21338 (finish_root_table): Add the table to all languages, even if it's
21339 empty.
21340 (write_roots): Output gt_pch_scalar_rtab.
21341 * ggc-common.c (gt_pch_save): Write out scalars.
21342 (gt_pch_restore): Read scalars back.
21343
21344 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
21345 (struct page_entry): Delete pch_page field.
21346 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
21347 (clear_marks): Likewise.
21348 (sweep_pages): Likewise.
21349 (poison_pages): Likewise.
21350 (ggc_print_statistics): Likewise.
21351 (ggc_pch_read): Don't free objects read from a PCH.
21352 Properly set up in_use_p and page_tails.
21353
21354 2002-10-25 Geoffrey Keating <geoffk@apple.com>
21355
21356 * gengtype.c (struct write_types_data): New.
21357 (struct walk_type_data): Make `cookie' const; add extra
21358 prev_val item; add `orig_s' field.
21359 (walk_type): Update prev_val[3].
21360 (write_types_process_field): New.
21361 (write_func_for_structure): Take write_types_data structure.
21362 (write_types): New.
21363 (ggc_wtd): New.
21364 (pch_wtd): New.
21365 (write_types_local_process_field): New.
21366 (gc_mark_process_field): Delete.
21367 (write_local_func_for_structure): New.
21368 (gc_mark_func_name): Delete.
21369 (write_gc_types): Delete.
21370 (write_local): New.
21371 (finish_root_table): Don't include 'ggc_' in PFX.
21372 (write_root): Rename from write_root. Fill pchw field of structures.
21373 (write_array): New.
21374 (write_roots): Rename from write_gc_roots. Split out to write_array.
21375 Update to changes to other routines. Write gt_pch_cache_rtab table.
21376 (main): Write PCH walking routines.
21377 * ggc-common.c: Include toplev.h, sys/mman.h.
21378 (ggc_mark_roots): For cache hashtables, also mark the hash table
21379 and the array of entries.
21380 (saving_htab): New.
21381 (struct ptr_data): New.
21382 (POINTER_HASH): New.
21383 (gt_pch_note_object): New.
21384 (saving_htab_hash): New.
21385 (saving_htab_eq): New.
21386 (struct traversal_state): New.
21387 (call_count): New.
21388 (call_alloc): New.
21389 (compare_ptr_data): New.
21390 (relocate_ptrs): New.
21391 (write_pch_globals): New.
21392 (struct mmap_info): New.
21393 (gt_pch_save): New.
21394 (gt_pch_restore): New.
21395 * ggc-page.c (ROUND_UP_VALUE): New.
21396 (ROUND_UP): New.
21397 (struct page_entry): Add field `pch_page'.
21398 (init_ggc): Use ROUND_UP.
21399 (struct ggc_pch_data): Declare.
21400 (init_ggc_pch): New.
21401 (ggc_pch_count_object): New.
21402 (ggc_pch_total_size): New.
21403 (ggc_pch_this_base): New.
21404 (ggc_pch_alloc_object): New.
21405 (ggc_pch_prepare_write): New.
21406 (ggc_pch_write_object): New.
21407 (ggc_pch_finish): New.
21408 (ggc_pch_read): New.
21409 * ggc.h (gt_pointer_operator): New.
21410 (gt_note_pointers): New.
21411 (gt_pch_note_object): New prototype.
21412 (gt_pointer_walker): New.
21413 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
21414 (LAST_GGC_ROOT_TAB): Update.
21415 (gt_pch_cache_rtab): Declare.
21416 (gt_pch_scalar_rtab): Declare.
21417 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
21418 (LAST_GGC_CACHE_TAB): Update.
21419 (gt_pch_save_stringpool): Declare.
21420 (gt_pch_restore_stringpool): Declare.
21421 (gt_pch_p_S): Declare.
21422 (gt_pch_n_S): Declare.
21423 (struct ggc_pch_data): Forward-declare.
21424 (init_ggc_pch): Declare.
21425 (ggc_pch_count_object): Declare.
21426 (ggc_pch_total_size): Declare.
21427 (ggc_pch_this_base): Declare.
21428 (ggc_pch_alloc_object): Declare.
21429 (ggc_pch_prepare_write): Declare.
21430 (ggc_pch_write_object): Declare.
21431 (ggc_pch_finish): Declare.
21432 (ggc_pch_read): Declare.
21433 (gt_pch_save): Declare.
21434 (gt_pch_restore): Declare.
21435 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
21436 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
21437 const_double_htab, mem_attrs_htab using GGC.
21438 * c-pch.c: Include ggc.h.
21439 (pch_init): Allow reading PCH file back.
21440 (c_common_write_pch): Call gt_pch_save.
21441 (c_common_read_pch): Call gt_pch_restore.
21442 * c-parse.in (init_reswords): Delete now-untrue comment.
21443 Allocate ridpointers using GGC.
21444 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
21445 calling expand_deferred_fns.
21446 * c-common.h (ridpointers): Mark for GTY machinery.
21447 * Makefile.in (stringpool.o): Update dependencies.
21448 (c-pch.o): Update dependencies.
21449 (ggc-common.o): Update dependencies.
21450 * stringpool.c: Include gt-stringpool.h.
21451 (gt_pch_p_S): New.
21452 (gt_pch_n_S): New.
21453 (struct string_pool_data): New.
21454 (spd): New.
21455 (gt_pch_save_stringpool): New.
21456 (gt_pch_restore_stringpool): New.
21457 * tree.c (init_ttree): Make type_hash_table allocated using GC.
21458
21459 2002-10-04 Geoffrey Keating <geoffk@apple.com>
21460
21461 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
21462 (output_mangled_typename): Don't pass size_t to printf.
21463
21464 * tree.h (union tree_type_symtab): Add tag to `address' field.
21465 (union tree_decl_u2): Add tag to 'i' field.
21466 * varasm.c (union rtx_const_un): Add tags to all fields.
21467 * gengtype.c (struct walk_type_data): New.
21468 (output_escaped_param): Take struct walk_type_data parameter.
21469 (write_gc_structure_fields): Delete.
21470 (walk_type): New.
21471 (write_gc_marker_routine_for_structure): Delete.
21472 (write_func_for_structure): New.
21473 (gc_mark_process_field): New.
21474 (gc_mark_func_name): New.
21475 (gc_counter): Delete.
21476 (write_gc_types): Use write_func_for_structure.
21477 (write_gc_roots): Use walk_type.
21478
21479 2002-10-02 Geoffrey Keating <geoffk@apple.com>
21480
21481 * ggc-common.c (ggc_mark_roots): Delete 'x'.
21482 (ggc_splay_dont_free): Fix warning about unused 'x'.
21483 (ggc_print_common_statistics): Remove warnings.
21484
21485 2002-10-01 Mike Stump <mrs@apple.com>
21486
21487 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
21488 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
21489
21490 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
21491 Catherine Moore <clm@redhat.com>
21492
21493 * Makefile (c-pch.o): Update dependencies.
21494 (LIBCPP_OBJS): Add cpppch.o.
21495 (cpppch.o): New.
21496 * c-common.c (c_common_init): Don't call pch_init here.
21497 * c-common.h (c_common_read_pch): Update prototype.
21498 * c-lex.c (c_common_parse_file): Call pch_init here.
21499 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
21500 (c_common_decode_option): Handle them.
21501 * c-pch.c: Include c-pragma.h.
21502 (save_asm_offset): Delete.
21503 (pch_init): Move contents of save_asm_offset into here, call
21504 cpp_save_state.
21505 (c_common_write_pch): Call cpp_write_pch.
21506 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
21507 cpp_valid_state.
21508 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
21509 * cppfiles.c (stack_include_file): Update for change to
21510 parameters of cb.read_pch.
21511 * cpphash.h (struct cpp_reader): Add `savedstate' field.
21512 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
21513 `restore_pch_deps' fields.
21514 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
21515 (cpp_save_state): Prototype.
21516 (cpp_write_pch): Prototype.
21517 (cpp_valid_state): Prototype.
21518 (cpp_read_state): Prototype.
21519 * cpppch.c: New file.
21520 * flags.h (version_flag): Remove prototype.
21521 * mkdeps.c (deps_save): New.
21522 (deps_restore): New.
21523 * mkdeps.h (deps_save): Prototype.
21524 (deps_restore): Prototype.
21525 * toplev.c (late_init_hook): Delete.
21526 (version_flag): Make static again.
21527 (compile_file): Don't call late_init_hook.
21528 * toplev.h (late_init_hook): Delete.
21529 * doc/cppopts.texi: Document -fpch-deps.
21530 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
21531
21532 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
21533
21534 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
21535 callers.
21536 (c_common_valid_pch): Rename from c_valid_pch, change callers.
21537 (c_common_read_pch): Rename from c_read_pch, change callers.
21538
21539 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
21540 a space between it and its argument.
21541
21542 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
21543
21544 * c-pch.c: New file.
21545 * toplev.h (late_init_hook): Declare.
21546 * toplev.c (late_init_hook): Define.
21547 (version_flag): Make globally visible.
21548 (compile_file): Call late_init_hook.
21549 (init_asm_output): Make output file seekable.
21550 * gcc.c (default_compilers): Update c-header rule.
21551 * flags.h (version_flag): Declare.
21552 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
21553 fields.
21554 * cppfiles.c (struct include_file): Add 'pch' field.
21555 (INCLUDE_PCH_P): New.
21556 (open_file_pch): New.
21557 (stack_include_file): Handle PCH files specially.
21558 (find_include_file): Call open_file_pch instead of open_file.
21559 (_cpp_read_file): Explain why open_file is used instead of
21560 open_file_pch.
21561 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
21562 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
21563 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
21564 in cpplib callbacks.
21565 * c-common.c (pch_file): Correct comment.
21566 (allow_pch): Define.
21567 (c_common_init): Call pch_init.
21568 * c-common.h (allow_pch): Declare.
21569 (pch_init): Declare.
21570 (c_valid_pch): Declare.
21571 (c_read_pch): Declare.
21572 (c_write_pch): Declare.
21573 * Makefile.in (c-pch.o): New.
21574 (C_AND_OBJC_OBJS): Add c-pch.o.
21575 * doc/invoke.texi (Precompiled Headers): Add index entries,
21576 complete truncated paragraph.
21577
21578 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
21579
21580 * c-common.c: (pch_file): Define.
21581 * c-common.h (pch_file): Declare.
21582 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
21583 (missing_arg): Require --output-pch= to have an argument.
21584 (c_common_decode_option): Handle --output-pch=.
21585 * gcc.c: Document new %V.
21586 (default_compilers): Handle compiling C header files.
21587 (do_spec_1): Implement %V.
21588 (main): Handle "gcc foo.h" without trying to run linker.
21589 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
21590 (Overall Options): Document what the driver does with header files,
21591 document new -x option possibilities.
21592 (Invoking G++): More documentation for PCH.
21593 (Precompiled Headers): New.
21594
21595 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
21596
21597 * ggc.h: Don't include varray.h. Rearrange functions to be more
21598 organized.
21599 (ggc_add_root): Delete.
21600 (ggc_mark_rtx): Delete.
21601 (ggc_mark_tree): Delete.
21602 (struct ggc_statistics): Remove contents.
21603 * ggc-common.c: Remove unneeded includes.
21604 (struct ggc_root): Delete.
21605 (roots): Delete.
21606 (ggc_add_root): Delete.
21607 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
21608 (ggc_print_common_statistics): Remove most of the contents.
21609 * Makefile.in (GGC_H): No longer uses varray.h.
21610 (ggc-common.o): Update dependencies.
21611 (c-parse.o): Add varray.h to dependencies.
21612 (c-common.o): Add varray.h.
21613 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
21614 (mark_ident_hash): Rename to ggc_mark_stringpool.
21615 (init_stringpool): Don't use ggc_add_root.
21616 * c-parse.in: Include varray.h.
21617 * c-common.c: Include varray.h.
21618 * objc/Make-lang.in (objc-act.o): Add varray.h.
21619 * objc/objc-act.c: Include varray.h.
21620
21621 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
21622
21623 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
21624 (dw_cfi_oprnd1_desc): Likewise.
21625
21626 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
21627
21628 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
21629 move out of ifdef.
21630 (alpha_links): Use gengtype to mark; move out of ifdef.
21631 (mark_alpha_links_node): Delete.
21632 (mark_alpha_links): Delete.
21633 (alpha_need_linkage): Use GGC to allocate splay tree, struct
21634 alpha_links, strings. Don't use ggc_add_root.
21635 * ggc-common.c (ggc_splay_alloc): New.
21636 (ggc_splay_dont_free): New.
21637 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
21638 (ggc_mark_tree): Likewise.
21639 (splay_tree_new_ggc): New.
21640 (ggc_splay_alloc): Declare.
21641 (ggc_splay_dont_free): Declare.
21642 * dwarf2asm.c: Include gt-dwarf2asm.h.
21643 (mark_indirect_pool_entry): Delete.
21644 (mark_indirect_pool): Delete.
21645 (indirect_pool): Use gengtype to mark.
21646 (dw2_force_const_mem): Don't use ggc_add_root.
21647 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
21648 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
21649 (gt-dwarf2asm.h): Depend on s-gtype.
21650
21651 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
21652
21653 * tree.h (union tree_type_symtab): Mark `die' field.
21654 * Makefile.in (dwarf2out.o): Update dependencies.
21655 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
21656 hash tables.
21657 (dw_cfi_oprnd1_desc): New function.
21658 (dw_cfi_oprnd2_desc): New function.
21659 (indirect_string_alloc): Delete.
21660 (debug_str_do_hash): New function.
21661 (debug_str_eq): New function.
21662 (mark_limbo_die_list): Delete.
21663 (dwarf2out_init): Don't call ggc_add_root.
21664
21665 2003-01-09 Vladimir Makarov <vmakarov@redhat.com>
21666
21667 The following changes are merged from itanium-sched-branch:
21668
21669 2003-01-08 David Edelsohn <edelsohn@gnu.org>
21670
21671 * doc/md.texi: Clarify assignment of units to automata description.
21672
21673 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
21674
21675 * genautomata.c (unit_decl): Remove members
21676 `the_same_automaton_unit' and
21677 `the_same_automaton_message_reported_p'.
21678 (process_unit_to_form_the_same_automaton_unit_lists,
21679 form_the_same_automaton_unit_lists_from_regexp,
21680 form_the_same_automaton_unit_lists, the_same_automaton_lists):
21681 Remove them.
21682 (annotation_message_reported_p): New global variable.
21683 (check_unit_distribution_in_reserv,
21684 check_regexp_units_distribution): New functions.
21685 (check_unit_distributions_to_automata): Rewrite it.
21686
21687 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
21688
21689 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
21690 Use continue instead of break if cycle is too big.
21691
21692 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
21693
21694 * genautomata.c (check_unit_distributions_to_automata): Output at
21695 most one message for a unit.
21696 (process_unit_to_form_the_same_automaton_unit_lists): Check
21697 automaton of units instead of units themself.
21698
21699 * doc/md.texi: Describe the constraint about assigning unit to
21700 automata.
21701
21702 2002-12-20 Jan Hubicka <jH@suse.cz>
21703 Vladimir Makarov <vmakarov@redhat.com>
21704
21705 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
21706 and `in_set_p'.
21707 (gen_cpu_unit): Initialize the new members.
21708 (process_regexp_cycles): Calculate minimal finish cycle too. Set
21709 up `min_occ_cycle_num'.
21710 (evaluate_max_reserv_cycles): Change the function call.
21711 (CLEAR_BIT): New macro.
21712 (states_union, state_shift): Use the mask.
21713 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
21714 (form_reservs_matter): New function.
21715 (make_automaton): Call the function and use the mask.
21716 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
21717 account.
21718
21719 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
21720
21721 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
21722
21723 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
21724
21725 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
21726 for Itanium.
21727
21728 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
21729
21730 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
21731 default cpu.
21732
21733 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
21734 2002-10-31 Dale Johannesen <dalej@apple.com>
21735
21736 * haifa-sched.c (find_set_reg_weight): New function.
21737 (find_insn_reg_weight): Use the new function.
21738 (schedule_block): Do sorting ready queue always
21739 after insn issue.
21740
21741 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
21742
21743 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
21744
21745 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
21746
21747 * haifa-sched.c (choice_entry): New structure.
21748 (choice_stack, cycle_issued_insns): New variables.
21749 (max_issue): Rewrite it.
21750 (choose_ready): Set up ready_try for unknown insns too.
21751 (schedule_block): Allocate and free choice_stack. Set up
21752 and modify cycle_issued_insns.
21753
21754 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
21755 with and without filling the bundle.
21756 (bundling): Combine calls of issue_nops_and_insn.
21757
21758 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
21759
21760 * config/ia64/itanium1.md: New file.
21761
21762 * config/ia64/itanium2.md: New file.
21763
21764 * config/ia64/ia64.md: Move DFA descriptions into the new files.
21765 Remove the old pipeline description.
21766
21767 * config/ia64/ia64.c (ia64_override_options): Add aliases of
21768 itanium processor names.
21769
21770 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
21771
21772 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
21773 (ia64_reorg): Set up queried unit codes for Itanium2 too.
21774
21775 * config/ia64/ia64.md: Add descriptions for Itanium2.
21776
21777 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
21778
21779 * config/ia64/ia64.h (processor_type): New enumeration.
21780 (ia64_tune, ia64_tune_string): New external declarations.
21781 (TARGET_OPTIONS): Add option `tune='.
21782
21783 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
21784 variables.
21785 (ia64_override_options): Set up `ia64_tune'.
21786 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
21787 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
21788 (bundling): Add nops for MM-insns only for Itanium.
21789 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
21790 Itanium.
21791
21792 * config/ia64/ia64.md (cpu): New attribute.
21793 (DFA description): Enable it only for Itanium.
21794
21795 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
21796 Richard Henderson <rth@redhat.com>
21797
21798 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
21799 MASK_EARLY_STOP_BITS.
21800 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
21801 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
21802 `early-stop-bits'.
21803
21804 * config/ia64/ia64.c (ia64_dfa_new_cycle,
21805 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
21806 instead of TARGET_TUNE_STOP_BITS.
21807
21808 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
21809 `-mearly-stop-bits'.
21810
21811 * config/ia64/ia64.c (automata_option "v"): Comment it.
21812
21813 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
21814
21815 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
21816 New macros.
21817 (TARGET_SWITCHES): Add entries for the new option.
21818
21819 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
21820 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
21821 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
21822 global variables.
21823 (ia64_sched_reorder2): Set up `clocks'.
21824 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
21825 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
21826 queue when TARGET_TUNE_STOP_BITS.
21827 (bundling): Insert additional nops for MM-insns.
21828 (final_emit_insn_group_barriers): Add insertion of stop bits
21829 according `stops_p'.
21830 (ia64_reorg): Initiate the new varibales.
21831
21832 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
21833
21834 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
21835
21836 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
21837 insns at the end of block insn scheduling.
21838
21839 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
21840
21841 * sched-deps.c (remove_dependence, group_leader): Remove it.
21842 (add_dependence): Add dependence to group leader to.
21843 (set_sched_group_p): Add dependence to the first insn of the
21844 schedule group too.
21845 (sched_analyze_insn): Make dependence to jump as anti-dependence.
21846 Change true dependence by anti-dependence when
21847 `reg_pending_barrier'.
21848
21849 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
21850 add_branch_dependences): Ignore schedule groups.
21851
21852 * sched-ebb.c (init_ready_list): Ditto.
21853
21854 * (move_insn, set_priorities): Ditto.
21855
21856 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
21857 flag is clear after reload.
21858 (adjust_cost): Change cost only for output dependencies.
21859
21860 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
21861
21862 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
21863
21864 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
21865
21866 * target.h (gcc_target): Add member
21867 `dependencies_evaluation_hook'.
21868
21869 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
21870 macro.
21871 (TARGET_SCHED): Add initiatialization of the new member.
21872
21873 * sched-ebb.c: Include `target.h'.
21874 (schedule_ebb): Call `dependencies_evaluation_hook'.
21875
21876 * sched-rgn.c (schedule_region): Call
21877 `dependencies_evaluation_hook'.
21878
21879 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
21880 New macro.
21881 (ia64_dependencies_evaluation_hook): New function.
21882
21883 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
21884 Describe the new hook.
21885
21886 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
21887
21888 * target.h (gcc_target): Add members
21889 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
21890
21891 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
21892 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
21893 macros.
21894 (TARGET_SCHED): Add initiatialization of the new members.
21895
21896 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
21897 insn scheduling too.
21898 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
21899 initialize `ready_try'.
21900 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
21901 `dfa_new_cycle' says not to do it.
21902
21903 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
21904 bundling.
21905
21906 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
21907
21908 * config/ia64/ia64.c: Include `hashtab.h'.
21909 (ia64_first_cycle_multipass_dfa_lookahead_guard,
21910 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
21911 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
21912 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
21913 bundle_state_eq_p, insert_bundle_state,
21914 initiate_bundle_state_table, finish_bundle_state_table,
21915 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
21916 get_template, get_next_important_insn, bundling): New functions.
21917 (ia64_internal_sched_reorder): Remove it.
21918 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
21919 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
21920 (ia64_safe_itanium_requires_unit0): Remove it.
21921 (group_barrier_needed_p): Place group barrier right before a real
21922 insn.
21923 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
21924 Remove them.
21925 (bundle_name): New variable.
21926 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
21927 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
21928 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
21929 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
21930 temp_dfa_state, prev_cycle_state): New global variables.
21931 (insn_matches_slot, maybe_rotate, finish_last_head,
21932 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
21933 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
21934 find_best_packet, itanium_reorder, dump_current_packet,
21935 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
21936 (sched_data, sched_ready, sched_types): Remove them.
21937 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
21938 `init_insn_group_barriers'.
21939 (ia64_sched_reorder, ia64_sched_reorder2): Call
21940 ia64_dfa_sched_reorder.
21941 (ia64_variable_issue): Rewrite it.
21942 (bundle_state): New structure.
21943 (index_to_bundle_states, bundle_states_num,
21944 allocated_bundle_states_chain, free_bundle_state_chain): New
21945 global variables.
21946 (ia64_sched_finish): Add stop bits and call `bundling' after the
21947 2nd insn scheduling.
21948 (ia64_use_dfa_pipeline_interface): Return zero always.
21949 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
21950 insn scheduling.
21951 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
21952 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
21953 (ia64_reorg): Add bundling insns.
21954
21955 * doc/tm.texi
21956 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
21957 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
21958
21959 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
21960
21961 * config/ia64/ia64.md: Add Itanium1 DFA description.
21962 (itanium_class): Add `nop' and `pre_cycle'. Add
21963 define_function_unit for `nop'.
21964 (nop): Change attribute `itanium_class'.
21965 (pre_cycle): New define_insn.
21966
21967 * config/ia64/ia64-protos.h (bundling_p): New external variable.
21968 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
21969 ia64_produce_address_p): New function prototypes.
21970
21971 * config/ia64/ia64.c (bundling_p): New global variable.
21972 (ia64_use_dfa_pipeline_interface,
21973 ia64_first_cycle_multipass_dfa_lookahead,
21974 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
21975 functions.
21976 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
21977 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
21978 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
21979 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
21980 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
21981 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
21982 (dfa_pre_cycle_insn): New variable.
21983
21984 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
21985
21986 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
21987 constructions.
21988
21989 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
21990 New function prototypes.
21991
21992 * genattrtab.c (main): Process the new constructions.
21993
21994 * genautomata.c (gen_presence_absence_set,
21995 process_presence_absence_names, process_presence_absence_patterns,
21996 add_presence_absence, check_absence_pattern_sets): Add parameter
21997 `final_p'.
21998 (unit_decl): Add new members `final_presence_list' and
21999 `final_absence_list'.
22000 (unit_pattern_rel_decl): Add new member `final_p'.
22001 (gen_final_presence_set, gen_final_absence_set): New functions.
22002 (process_decls): Use member `final_p'.
22003 (temp_reserv): New global variable.
22004 (reserv_sets_are_intersected): Add processing `final_presence_set'
22005 and `final_absence_set'.
22006 (initiate_states): Allocate `temp_reserv'.
22007 (unit_final_presence_set_table, unit_final_absence_set_table): New
22008 gloabal variables.
22009 (initiate_presence_absence_pattern_sets): Initiate them.
22010 (NDFA_to_DFA): Fix typo.
22011 (output_description): Output `final_presence_set' and
22012 `final_absence_set'.
22013
22014 * doc/md.texi (final_presence_set, final_absence_set): Describe
22015 them.
22016
22017 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
22018
22019 * genautomata.c (transform_3): Process a missing case (nothing on
22020 unit place).
22021
22022 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
22023
22024 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
22025 comments about queried units and the minimization.
22026
22027 * doc/md.texi: Ditto.
22028
22029 * genautomata.c (create_composed_state): Return nonzero if the new
22030 state has been created.
22031 (first_cycle_unit_presence): New function.
22032 (state_is_differed): Add new parameter. Use the new function.
22033 Take queried units into account.
22034 (partition_equiv_class): Pass additional parameter to
22035 `state_is_differed'.
22036 (merge_states): Process composed states too.
22037 (build_automaton, create_automata, output_min_issue_delay_table,
22038 output_tables, output_statistics): Output more information.
22039 (output_reserved_units_table): Use function
22040 `first_cycle_unit_presence'.
22041 (output_tables): Output table of queried units even if the
22042 minimization is switched on.
22043 (write_automata): Output code for querying units even if the
22044 minimization is switched on.
22045
22046 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
22047
22048 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
22049 syntax of the constructions.
22050
22051 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
22052 extended syntax of the constructions.
22053
22054 * genautomata.c (unit_rel_decl): Rename it to
22055 `unit_pattern_rel_decl'.
22056 (pattern_set_el, pattern_reserv): New structures.
22057 (pattern_set_el_t, pattern_reserv_t): New types.
22058 (gen_presence_absence_set): New function.
22059 (process_presence_absence): Remove it.
22060 (process_presence_absence_names,
22061 process_presence_absence_patterns): New functions.
22062 (get_presence_absence_set): Remove it.
22063 (initiate_presence_absence_sets): Rename it on
22064 `initiate_presence_absence_pattern_sets'. Use new function
22065 `form_reserv_sets_list'.
22066 (form_reserv_sets_list, check_presence_pattern_sets,
22067 check_absence_pattern_sets, output_pattern_set_el_list): New
22068 functions.
22069 (unit_decl): Change types of members `presence_list' and
22070 `absence_list'.
22071 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
22072 (decl): Change types of members `excl', `presence', and `absence'.
22073 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
22074 at the end of the vector.
22075 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
22076 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
22077 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
22078 (gen_presence_set, gen_absence_set): Use new function
22079 `gen_presence_absence_set'.
22080 (add_presence_absence): Process `pattern_list' instead of
22081 `source_list'.
22082 (process_decls): USe new functions
22083 `process_presence_absence_names' and
22084 `process_presence_absence_patterns'.
22085 (reserv_sets_are_intersected): Use new function
22086 `check_presence_pattern_sets'.
22087 (presence_set, absence_set): Remove them.
22088 (unit_presence_set_table, unit_absence_set_table): New global
22089 variables.
22090 (output_description): Use new function
22091 `output_pattern_set_el_list'.
22092 (generate): Use `initiate_presence_absence_pattern_sets'.
22093
22094 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
22095
22096 * genattr.c (main): Add output of prototype of new interface
22097 function `dfa_clean_insn_cache'.
22098
22099 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
22100 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
22101 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
22102 the generated code.
22103 (write_automata): Call the new function.
22104
22105 2003-01-09 Jan Hubicka <jh@suse.cz>
22106
22107 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
22108 correctly.
22109
22110 2003-01-09 Paolo Carlini <pcarlini@unitus.it>
22111
22112 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
22113
22114 2003-01-09 J"orn Rennecke <joern.rennecke@superh.com>
22115
22116 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
22117 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
22118 (CONSTRAINT_LEN): Provide default definition.
22119 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
22120 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
22121 (EXTRA_CONSTRAINT_STR): Likewise.
22122 (REG_CLASS_FROM_CONSTRAINT): Define.
22123 * genoutput.c (check_constraint_len, constraint_len): New functions.
22124 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
22125 constraint / modifier.
22126 (gen_insn): Call check_constraint_len.
22127 * local-alloc.c (block_alloc): Update to use new macros / pass
22128 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
22129 * ra-build.c (handle_asm_insn): Likewise.
22130 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
22131 (constrain_operands, peep2_find_free_register): Likewise.
22132 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
22133 * regmove.c (find_matches): Likewise.
22134 * reload.c (push_secondary_reload, find_reloads): Likewise.
22135 (alternative_allows_memconst): Likewise.
22136 * reload1.c (maybe_fix_stack_asms): Likewise.
22137 (reload_cse_simplify_operands): Likewise.
22138 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
22139 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
22140 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
22141 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
22142 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
22143 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
22144
22145 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
22146
22147 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
22148
22149 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
22150 length.
22151 (*extzv_1_r_h8300hs): Likewise.
22152 (*extzv_1_r_inv_h8300): Likewise.
22153 (*extzv_1_r_inv_h8300hs): Likewise.
22154
22155 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
22156
22157 * config/h8300/h8300.h (PREDICATE_CODES): New.
22158
22159 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
22160
22161 * config/h8300/h8300.md (*addsi3_upper): New.
22162 (*iorsi3_shift): Likewise.
22163 (two splitters): Likewise.
22164 (*addsi3_shift): Likewise.
22165 (two splitters): Likewise.
22166
22167 2003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
22168
22169 * Makefile.in (optabs.o): Add dependency on basic-block.h.
22170 * basic-block.h (control_flow_insn_p): Fuction was exported.
22171 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
22172 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
22173 notes only when the region is contained in a single basic block.
22174
22175 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
22176
22177 PR inline-asm/8832
22178 * tree.h (expand_asm): New prototype.
22179 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
22180 to do so.
22181 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
22182 down to expand_asm.
22183 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
22184 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
22185 (volatile_refs_p) [ASM_INPUT]: Likewise.
22186 (side_effects_p) [ASM_INPUT]: Likewise.
22187
22188 2003-01-09 Jan Hubicka <jh@suse.cz>
22189
22190 * i386.md (*mul*): FIx constraints; remove confused comment; fix
22191 athlon_decode attributes
22192 (imul/k8 optimization peep2s): New.
22193
22194 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
22195 * i386.md (type attribute): Add ssecomi.
22196 (unit, memory, prefix attributes): Handle ssecomi.
22197 (cvt?2? patterns): Fix athlon_decode attribute
22198 (comi patterns): Set attribute to ssecomi.
22199
22200 PR target/8343
22201 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
22202
22203 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
22204
22205 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
22206 that match register_operands.
22207 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
22208 register_operand the default case.
22209
22210 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
22211
22212 PR c/8032
22213 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
22214 an empty element, do not advance the pointer to unfilled
22215 fields if there are pending initializers.
22216
22217 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
22218
22219 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
22220 (install-gcc-tooldir, install-cpp, installdirs,
22221 install-common, install-driver, install-info, install-man,
22222 install-headers, install-include-dir, install-headers-tar,
22223 install-headers-cpio, install-headers-cp, install-mkheaders,
22224 install-collect2, uninstall): Prepend $(DESTDIR) to
22225 destination paths in all (un)installation commands.
22226 (install-driver): Rewrite $(LN) commands to support DESTDIR
22227 with "ln" as well as with "ln -s".
22228 (installdirs): Simply use mkinstalldirs.
22229 (install-libgcc, install-multilib): Also pass DESTDIR.
22230 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
22231 installation destination variable ldir.
22232 * config/alpha/t-osf4, config/arm/t-netbsd,
22233 config/ia64/t-hpux, config/mips/t-iris5-6,
22234 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
22235 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
22236 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
22237 in the definition of SHLIB_INSTALL.
22238 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
22239 $(libsubdir) in the installation commands.
22240
22241 2003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
22242
22243 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
22244 non-optimizing compile.
22245 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
22246 compile.
22247
22248 2003-01-08 Douglas B Rupp <rupp@gnat.com>
22249
22250 * config/i386/i386.c (ix86_attribute_table): Add new attributes
22251 ms_struct and gcc_struct.
22252 (ix86_handle_struct_attribute): New function.
22253 (ix86_ms_bitfield_layout_p): Update to take new attributes
22254 into account.
22255 * doc/extend.texi: Document new attributes.
22256 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
22257
22258 2003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
22259
22260 PR optimization/8750
22261 * config/i386/i386.c (ix86_expand_prologue): Don't allow
22262 scheduling pass to move insns across __alloca call.
22263
22264 2003-01-08 Dale Johannesen <dalej@apple.com>
22265
22266 * config/rs6000/rs6000.md: Replace *store_multiple_string
22267 with *stmsi[3-8].
22268
22269 2003-01-08 Jeff Sturm <jsturm@one-point.com>
22270
22271 PR target/9210
22272 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
22273 Set SYMBOL_REF_FLAG on local data sym_ref.
22274
22275 2003-01-08 Dale Johannesen <dalej@apple.com>
22276
22277 * function.c (assign_parms): Don't set pretend_args_size if
22278 REG_PARM_STACK_SPACE.
22279 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
22280 pretend_args_size.
22281
22282 2003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
22283
22284 * gcc.hlp: Delete.
22285
22286 2003-01-09 Jan Hubicka <jh@suse.cz>
22287
22288 * i386.c (ix86_expand_int_addcc): Fix thinko.
22289
22290 2003-01-08 David Edelsohn <edelsohn@gnu.org>
22291
22292 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
22293 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
22294 as hook_bool_tree_hwi_hwi_tree_true.
22295 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
22296 (rs6000_emit_epilogue): Same.
22297 (rs6000_output_mi_thunk): Re-implement as RTL.
22298 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
22299 xcoffout_declare_function if any debugging enabled.
22300
22301 2003-01-08 Chris Demetriou <cgd@broadcom.com>
22302
22303 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
22304 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
22305 * config/mips/mips.h (enum processor_type): Rename
22306 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
22307 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
22308 Add PROCESSOR_M4K.
22309 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
22310 (ISA_MIPS32R2): New define.
22311 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
22312 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
22313 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
22314 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
22315 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
22316 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
22317 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
22318 compiling MIPS16 code.
22319 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
22320 comment.
22321 (ISA_HAS_SEB_SEH): New define.
22322 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
22323 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
22324 processor_type value renaming. Add support for MIPS32R2.
22325 Clean up comments, and move "sb1" entry with other MIPS64 CPU
22326 entries.
22327 (override_options): Reimplement -mipsN option handling so that
22328 it will work correctly for -mips32r2. Avoid branch-likely
22329 instructions on MIPS32R2.
22330 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
22331 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
22332 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
22333 (extendhisi2_hw, extendqisi2_hw): New.
22334 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
22335 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
22336 MIPS32R2, and MIPS64.
22337 (LINK_SPEC): Pass -mips32r2 to linker.
22338 * config/mips/t-isa3264: Built -mips32r2 multilibs.
22339 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
22340 for mips32r2 in the -march description. Alphabetically sort
22341 CPU names in the -march description. Add long-missed -mips32
22342 and -mips64 to MIPS option summary.
22343
22344 * config.gcc: Update copyright years to include 2003.
22345 * config/mips/mips.c: Likewise.
22346 * config/mips/mips.h: Likewise.
22347 * config/mips/mips.md: Likewise.
22348 * config/mips/netbsd.h: Likewise.
22349 * doc/invoke.texi: Likewise.
22350
22351 2003-01-08 Andreas Schwab <schwab@suse.de>
22352
22353 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
22354 variable.
22355 * configure: Regenerated.
22356
22357 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
22358
22359 * config/h8300/h8300.c (output_logical_op): Replace byte/word
22360 extraction of det with b0, b1, w0, w2, etc.
22361 (compute_logical_op_length): Likewise.
22362 (compute_logical_op_cc): Likewise.
22363
22364 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
22365
22366 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
22367 HIGH on all variants.
22368
22369 2003-01-08 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
22370
22371 * Makefile.in (PARTITION_H): New.
22372 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
22373 * basic-block.h: Include hard-reg-set.h.
22374
22375 2003-01-08 Richard Earnshaw <rearnsha@arm.com>
22376
22377 * arm.h (ENABLE_XF_PATTERNS): Delete.
22378 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
22379 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
22380 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
22381 (cmpxf_trap): Delete.
22382 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
22383
22384 2003-01-08 Jan Hubicka <jh@suse.cz>
22385
22386 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
22387 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
22388 (add??cc): New expanders.
22389 * i386.c (expand_int_addcc): New function.
22390 * i386-protos.h (expand_int_addcc): Declare.
22391
22392 * alias.c (memory_modified_1): New static function.
22393 (memory_modified): New static varaible.
22394 (memory_modified_in_insn_p): New global function.
22395 * rtl.h (memory_modified_in_insn_p): Declare.
22396 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
22397 references.
22398
22399 * expr.h (emit_conditional_add): Declare.
22400
22401 2003-01-07 Janis Johnson <janis187@us.ibm.com>
22402
22403 PR other/8947
22404 * doc/invoke.texi (-malign-double): Explain that the option breaks
22405 binary compatibility.
22406
22407 2003-01-08 Andreas Schwab <schwab@suse.de>
22408
22409 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
22410 should come from the generic *-*-linux* entry.
22411
22412 2003-01-07 Jan Hubicka <jh@suse.cz>
22413
22414 * cselib.c (cselib_current_insn_in_libcall): New static variable.
22415 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
22416 we are inside libcall.
22417 * cselib.h (elt_loc_list): Add in_libcall.
22418 * gcse.c (do_local_cprop): Do not copy propagate using insns
22419 in libcalls.
22420
22421 2003-01-07 David Edelsohn <edelsohn@gnu.org>
22422
22423 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
22424 not normally affect to issue rate.
22425
22426 2003-01-07 Jan Hubicka <jh@suse.cz>
22427
22428 * genopinit.c (optabs): Add addc_optab.
22429 * ifcvt.c (noce_try_store_flag): Rename to ...
22430 (noce_try_addcc): ... this one; handle generic conditional increment.
22431 (noce_process_if_block): Update noce_try_addcc call.
22432 * optabs.c (emit_conditional_add): New.
22433 (init_obtabs): Initialize addc_optab.
22434 * optabs.h (optab_index): Add OTI_addcc.
22435 (addcc_optab): New macro.
22436 * md.texi: Document addMcc
22437
22438 PR target/8322
22439 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
22440 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
22441 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
22442
22443 * reload1.c (delete_output_reload): Avoid repeated attempts
22444 to delete insn.
22445
22446 2003-01-07 Andreas Schwab <schwab@suse.de>
22447
22448 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
22449 Move --enable-initfini-array check ...
22450 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
22451 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
22452 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
22453 * configure: Rebuild.
22454
22455 2003-01-07 Richard Henderson <rth@redhat.com>
22456
22457 * alias.c (find_base_value): Only use new_reg_base_value shortcut
22458 if the register is set once.
22459
22460 2003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
22461
22462 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
22463 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
22464 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
22465
22466 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
22467 Sunil Davasam <sunil.k.davasam@intel.com>
22468
22469 PR libstdc++/9076
22470 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
22471 DW_CFA_same_value, read next and ignore.
22472
22473 2003-01-07 Richard Henderson <rth@redhat.com>
22474
22475 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
22476
22477 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
22478
22479 * cfg.c: Include alloc-pool.h
22480 (edge_pool): New pool.
22481 (bb_pool): New pool.
22482 (first_deleted_edge): Remove.
22483 (first_deleted_block): Remove.
22484 (init_flow): Alloc/free the pools.
22485 (free_edge): Use pools.
22486 (alloc_block): Ditto.
22487 (expunge_block): Ditto.
22488 (cached_make_edge): Ditto.
22489
22490 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
22491
22492 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
22493
22494 * et-forest.c: Include alloc-pool.h.
22495 (struct et_forest): Add node_pool and occur_pool.
22496 (et_forest_create): Create the new pools.
22497 (et_forest_delete): Delete them.
22498 (et_forest_add_node): Allocate and free using pools.
22499 (et_forest_add_edge): Ditto.
22500 (et_forest_remove_node): Ditto.
22501 (et_forest_remove_edge): Ditto.
22502
22503 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
22504
22505 2003-01-07 Kazu Hirata <kazu@cs.umass.edu>
22506
22507 * config/h8300/h8300.c (output_logical_op): Simplify and
22508 optimize the handling of SImode.
22509 * config/h8300/h8300.c (compute_logical_op_length): Update
22510 accordingly.
22511 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
22512
22513 2003-01-07 Richard Sandiford <rsandifo@redhat.com>
22514
22515 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
22516 big-endian correction to indirect arguments too.
22517
22518 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
22519
22520 Segher Boessenkool <segher@koffie.nl>
22521
22522 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
22523 (alt_reg_names): Ditto, fix formatting.
22524 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
22525
22526 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
22527
22528 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
22529 (output_logical_op): Constify intval and det.
22530 (compute_logical_length): Likewise.
22531 (compute_logical_cc): Likewise.
22532 (output_a_shift): Constify mask.
22533 (h8300_encode_label): Constify len.
22534
22535 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
22536
22537 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
22538 (h8300_expand_epilogue): Likewise.
22539
22540 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
22541
22542 Segher Boessenkool <segher@koffie.nl>
22543
22544 * config/rs6000/altivec.md: Remove spaces from assembler
22545 instruction argument lists.
22546
22547 2003-01-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22548
22549 * config/c4x/c4x.c (c4x_naked_function_p): Rename from
22550 c4x_assembler_function_p.
22551 (c4x_null_epilogue_p): Complement return value, all uses updated.
22552 (c4x_insert_attributes): Add naked.
22553 * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
22554 * doc/extend.texi: Update C4x function attributes.
22555
22556 2003-01-06 Richard Henderson <rth@redhat.com>
22557
22558 * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
22559 properly when changing "local-ness".
22560 * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
22561
22562 2003-01-06 Dale Johannesen <dalej@apple.com>
22563
22564 * config/darwin-protos.h: Add prototypes for new section functions.
22565
22566 2003-01-06 Chris Demetriou <cgd@broadcom.com>
22567
22568 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
22569 to EABI.
22570
22571 2003-01-06 Zack Weinberg <zack@codesourcery.com>
22572
22573 * hwint.h: If the current compiler has no 64-bit type at all,
22574 make HOST_WIDEST_INT 32 bits.
22575
22576 2003-01-06 Eric Christopher <echristo@redhat.com>
22577
22578 * config/mips/mips.md (movdf_internal2): Fix constraints.
22579
22580 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
22581
22582 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
22583
22584 2003-01-06 Richard Sandiford <rsandifo@redhat.com>
22585
22586 * config/mips/mips.md (leadi): Use dla rather than la.
22587
22588 2003-01-06 Svein E. Seldal <Svein.Seldal@solidas.com>
22589
22590 * config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
22591 in C33_FLAG. Added proper C33 support in ASM_FILE_START macro.
22592
22593 2003-01-06 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
22594
22595 * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
22596 redefinition.
22597
22598 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
22599
22600 * config/h8300/h8300.md (*extzv_8_23): New.
22601
22602 2003-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
22603
22604 * pa64-hpux.h (JCR_SECTION_NAME): Define.
22605 (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
22606 USE_EH_FRAME_REGISTRY when defining.
22607
22608 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
22609
22610 * config/h8300/h8300.c (output_a_shift): Do not output a
22611 variable shift.
22612 * config/h8300/h8300.md (two splitters): New.
22613
22614 2003-01-05 Richard Sandiford <rsandifo@redhat.com>
22615
22616 * config/mips/mips.md: Disable the movstrsi define_split.
22617
22618 2003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22619
22620 * alloc-pool.c: Don't include "libiberty.h".
22621 * config/sparc/gmon-sol2.c: Include <fcntl.h>.
22622 * convert.c (convert_to_real): Hide unused variable.
22623
22624 2003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22625
22626 * Makefile.in (gtyp-gen.h): Const-ify.
22627 * gcov-dump.c (tag_table): Likewise.
22628
22629 2003-01-04 Bruce Korb <bkorb@gnu.org>
22630
22631 * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
22632 of *both* the file name and the fix name.
22633
22634 2003-01-04 John David Anglin <dave.anglin@nrc.ca>
22635
22636 * config.gcc (hppa*64*-*-hpux11*): Define extra_parts. Don't use
22637 collect2.
22638 * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
22639 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
22640 * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
22641 GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
22642 GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
22643 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
22644 elfos.h.
22645 (EH_FRAME_IN_DATA_SECTION): Delete define.
22646 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
22647 (STARTFILE_SPEC): Use crtbegin.o.
22648 (ENDFILE_SPEC): Use crtend.o.
22649 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
22650 SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
22651 PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
22652 DTOR_LIST_BEGIN): Define.
22653 * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
22654 (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
22655 * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
22656
22657 2002-12-31 Larin Hennessy <larin@science.oregonstate.edu>
22658
22659 * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
22660 * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
22661 m88k-*-sysv3*, Sony NewsOS. Remove references to i860.
22662 Cleanup handling of replacement text.
22663 * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
22664
22665 2003-01-04 Bruce Korb <bkorb@gnu.org>
22666
22667 * fixinc/tests/base/math.h: removed obsolete results
22668 * fixinc/tests/base/stdlib.h: ditto
22669 * fixinc/tests/base/sys/param.h: ditto
22670 * fixinc/tests/base/sys/stat.h: ditto
22671 * fixinc/tests/base/time.h: ditto
22672 * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
22673 * fixinc/tests/base/sys/byteorder.h: ditto
22674 * fixinc/inclhack.def: Remove superfluous backslashes
22675
22676 2003-01-04 Kazu Hirata <kazu@cs.umass.edu>
22677
22678 * config/h8300/h8300-protos.h: Add prototypes for
22679 the new functions defined below.
22680 * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
22681 define.
22682 (dosize): Emit RTL instead of assembly code.
22683 (push): Likewise.
22684 (pop): Likewise.
22685 (h8300_output_function_prologue): Remove.
22686 (h8300_expand_prologue): New.
22687 (h8300_expand_epilogue): New.
22688 (h8300_output_function_epilogue): Do only the reset of
22689 pragma_saveall.
22690 * config/h8300/h8300.md (push_h8300): New.
22691 (push_h8300hs): Likewise.
22692 (pop_h8300): Likewise.
22693 (pop_h8300hs): Likewise.
22694 (*stm_h8300s_2): Change the name to stm_h8300s_2.
22695 (*stm_h8300s_3): Change the name to stm_h8300s_3.
22696 (*stm_h8300s_4): Change the name to stm_h8300s_4.
22697 (*ldm_h8300s_2): New.
22698 (*ldm_h8300s_3): Likewise.
22699 (*ldm_h8300s_4): Likewise.
22700 (return): Likewise.
22701 (*return_1): Likewise.
22702 (prologue): Likewise.
22703 (epilogue): Likewise.
22704 (monitor_prologue): Likewise.
22705
22706 2003-01-03 Dale Johannesen <dalej@apple.com>
22707
22708 * config/darwin.h: (EXTRA_SECTIONS): Add machopic_symbol_stub1,
22709 machopic_picsymbol_stub1.
22710 (EXTRA_SECTION_FUNCTIONS): Ditto.
22711 * rs6000/rs6000.c: Update copyright.
22712 (machopic_output_stub): Use them. Remove an insn from stub code.
22713
22714 2003-01-02 Jason Merrill <jason@redhat.com>
22715
22716 * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
22717
22718 * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
22719 static/external decls.
22720
22721 * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
22722 outermost scope.
22723 * c-decl.c (c_make_fname_decl): Push the decls there, too.
22724
22725 2003-01-03 Kazu Hirata <kazu@cs.umass.edu>
22726
22727 * config/h8300/h8300-protos.h: Add a prototype for
22728 h8300_current_function_interrupt_function_p.
22729 * config/h8300/h8300.c (interrupt_handler): Remove.
22730 (os_task): Likewise.
22731 (monitor): Likewise.
22732 (pragma_interrupt): New.
22733 (WORD_REG_USED): Use
22734 h8300_current_function_interrupt_function_p.
22735 (dosize): Likewise.
22736 (h8300_output_function_prologue): Likewise.
22737 Do not set interrupt_handler, os_task, monitor.
22738 (h8300_output_function_prologue): Use
22739 h8300_current_function_interrupt_function_p.
22740 Do not set interrupt_handler, os_task, monitor.
22741 (h8300_current_function_interrupt_function_p): New.
22742 (h8300_pr_interrupt): Set pragma_interrupt.
22743 (h8300_insert_attributes): Reset pragma_interrupt.
22744
22745 2003-01-03 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
22746
22747 * doc/install.texi (Configuration): Fix markup for reference to
22748 gcc/config.gcc.
22749
22750 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
22751
22752 * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
22753 (*iorhi3_two_qi): Likewise.
22754 (*iorsi3_zexthi): Likewise.
22755 (*xorhi3_zextqi): Likewise.
22756 (*xorsi3_zexthi): Likewise.
22757 (*xorsi3_zextqi): Likewise.
22758
22759 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
22760
22761 * config/h8300/h8300.c (stack_pointer_operand): New.
22762 (const_int_gt_2_operand): Likewise.
22763 (const_int_ge_8_operand): Likewise.
22764 * config/h8300/h8300.md (a splitter): Likewise.
22765 (a peephole2): Likewise.
22766 * config/h8300/h8300-protos.h: Add prototypes for the new
22767 functions above.
22768
22769 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
22770
22771 * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
22772 objc/objc-act.h: Fix copyright years.
22773
22774 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
22775
22776 * doc/passes.texi: Fix documentation for -fssa-ccp
22777
22778 2003-01-02 Neil Booth <neil@daikokuya.co.uk>
22779
22780 * gccbug.in: Update for new categories.
22781
22782 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22783
22784 * config/h8300/h8300.md: Reorder some patterns.
22785
22786 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22787
22788 * config/h8300/h8300.c (output_logical_op): Fix a warning.
22789
22790 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
22791
22792 * config/darwin-protos.h, config/c4x/c4x-protos.h,
22793 config/cris/cris-protos.h, config/i370/i370-protos.h,
22794 config/i960/i960-protos.h, config/ia64/ia64-protos.h,
22795 config/v850/v850-protos.h: Use struct, and don't conditionally
22796 compile on GCC_C_PRAGMA_H.
22797
22798 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22799
22800 * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
22801 * config/h8300/h8300-protos.h: Likewise.
22802 * config/sh/sh-protos.h: Likewise.
22803
22804 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22805
22806 * config/arm/arm-protos.h: Use struct cpp_reader instead of
22807 cpp_reader.
22808 * config/h8300/h8300-protos.h: Likewise.
22809 * config/sh/sh-protos.h: Likewise.
22810
22811 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
22812
22813 * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
22814 arm_pr_long_calls_off): Use struct.
22815 * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
22816 : Similarly.
22817 Don't include cpplib.h.
22818 * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
22819 sh_pr_nosave_low_regs): Similarly.
22820
22821 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22822
22823 * config/h8300/h8300.c: Include cpplib.h.
22824
22825 2003-01-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
22826
22827 * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
22828 objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
22829 objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
22830 "GCC" in the copyright header.
22831
22832 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
22833
22834 * c-pragma.c (c_register_pragma): New.
22835 (init_pragma): Use it.
22836 * c-pragma.h (cpp_register_pragma): Don't declare.
22837 (c_register_pragma): New.
22838 * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
22839 * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
22840 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
22841 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
22842 * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
22843 * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
22844 * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
22845 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
22846 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
22847 * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
22848 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
22849 * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
22850
22851 See ChangeLog.8 for earlier changes.
This page took 1.004097 seconds and 4 git commands to generate.