install.texi (ia64-*-linux): Document minimum libunwind version number.
[gcc.git] / gcc / ChangeLog
1 2003-12-19 James E Wilson <wilson@specifixinc.com>
2
3 * install.texi (ia64-*-linux): Document minimum libunwind version
4 number.
5
6 2003-12-19 Per Bothner <per@bothner.com>
7
8 * langhooks.c (lhd_print_error_function): Fix for PR c/13110.
9 Don't do pp_newline; it causes an extra blank line.
10 * pretty-print.c (pp_base_flush): Clear pp_needs_newline.
11
12 2003-12-19 Jason Merrill <jason@redhat.com>
13
14 * tree.c (get_unwidened): Decide whether to narrow a bitfield
15 reference based on TYPE_SIZE, not TYPE_PRECISION.
16
17 * stmt.c (parse_output_constraint): Warn about in-out constraint
18 that doesn't allow a register.
19 (parse_input_constraint): Warn about matching constraint that
20 doesn't allow a register.
21
22 2003-12-19 James E Wilson <wilson@specifixinc.com>
23
24 * flow.c (mark_set_regs, case PARALLEL): Scan loop forwards.
25 Add case for ASM_OPERANDS.
26 * global.c (global_alloc): Set regs_ever_live for regs_asm_clobbered
27 registers.
28
29 2003-12-19 Kazu Hirata <kazu@cs.umass.edu>
30
31 * expr.c (check_max_integer_computation_mode): Remove.
32 * dojump.c (do_jump): Don't use MAX_INTEGER_COMPUTATION_MODE.
33 * fold-const.c (fold): Likewise.
34 * system.h (MAX_INTEGER_COMPUTATION_MODE): Poison.
35 * doc/tm.texi (MAX_INTEGER_COMPUTATION_MODE): Remove.
36
37 2003-12-19 James E Wilson <wilson@specifixinc.com>
38
39 * configure.in: Delete libunwind_has_eh_support test.
40 * configure: Regenerate.
41 * config.gcc (ia64*-*-linux*): Delete reference to t-libunwind-no-eh
42 and libunwind_has_eh_support check.
43 * config/t-libunwind-no-eh: Delete.
44
45 2003-12-19 Joseph S. Myers <jsm@polyomino.org.uk>
46
47 * c-format.c (print_char_table): Allow 'I' flag on floating point
48 decimal formats.
49
50 2003-12-19 Stuart Hastings <stuart@apple.com>
51
52 * gcc/config/i386/i386.c (ix86_expand_call, x86_output_mi_thunk):
53 Trivial fixes for i386.c on Darwin/x86.
54
55 2003-12-19 Fariborz Jahanian <fjahanian@apple.com>
56
57 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Add code to
58 recognize macho-style lo_sum adrress patterns.
59
60 2003-12-19 Kazu Hirata <kazu@cs.umass.edu>
61
62 * dwarfout.c: Remove uses of "register" specifier in
63 declarations of arguments and local variables.
64 * gensupport.c: Likewise.
65 * local-alloc.c: Likewise.
66 * regclass.c: Likewise.
67
68 2003-12-19 Kelley Cook <kelleycook@wideopenwest.com>
69
70 * config.guess: Remove.
71
72 2003-12-19 Jakub Jelinek <jakub@redhat.com>
73
74 * config/ia64/unwind-ia64.c (ia64_copy_rbs): New function.
75 (unw_access_gr): Only call ia64_rse_rnat_addr if addr is above
76 regstk_top.
77 (uw_frame_state_for): Handle locations inside bundles.
78 (uw_init_context_1): Initialize context->rnat.
79 Set context->regstk_top to lowest rbs address which has nat collection
80 in context->rnat.
81 (uw_install_context): Fix rnat restoring.
82 Restore ar.rsc to previous state.
83 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR,
84 MD_HANDLE_UNWABI): Handle unwinding through SA_ONSTACK frames.
85
86 2003-12-19 Jakub Jelinek <jakub@redhat.com>
87
88 PR c++/13239
89 * builtins.c (expand_builtin_expect_jump): Update
90 TREE_VALUE (arglist) if unsave_expr_now langhook
91 created a new tree.
92
93 2003-12-19 Richard Earnshaw <rearnsha@arm.com>
94
95 * arm.c (thumb_base_register_rtx_p): Use regno in comparison against
96 FIRST_PSEUDO_REGISTER.
97
98 2003-12-18 Hartmut Penner <hpenner@de.ibm.com>
99
100 * gcc/config/rs6000/rs6000.c (USE_ALTIVEC_FOR_ARG_P): Don't check
101 for SVR4 ABI.
102
103 2003-12-18 Geoffrey Keating <geoffk@apple.com>
104
105 * config/rs6000/aix.h (OS_MISSING_POWERPC64): Define.
106 (OS_MISSING_ALTIVEC): Define.
107 * config/rs6000/darwin.h (ASM_SPEC): Be generous about supplying
108 -force_cpusubtype_ALL.
109 * config/rs6000/rs6000.c (rs6000_override_options): Rearrange
110 CPU information table; now always set all CPU-specific values.
111 Also, use Altivec and powerpc64 when chip and OS supports them.
112
113 2003-12-18 Geoffrey Keating <geoffk@apple.com>
114
115 * fixinc/inclhack.def (darwin_macho_dyldh): New.
116 * fixinc/fixincl.x: Regenerate.
117
118 2003-12-18 Dara Hazeghi <dhazeghi@yahoo.com>
119
120 * version.c (version_string): Renumber as 3.4.0
121 * doc/include/gcc-common.texi: Likewise
122
123 2003-12-18 Richard Henderson <rth@redhat.com>
124
125 * genrecog.c (print_host_wide_int): New.
126 (write_switch, write_cond): Use it.
127
128 2003-12-18 Richard Henderson <rth@redhat.com>
129
130 * c-decl.c (check_bitfield_type_and_width): Remove enum special
131 case suppression of pedwarn.
132 * system.h (ENUM_BITFIELD): Use __extension__.
133 (CHAR_BITFIELD): Likewise.
134
135 2003-12-18 Ulrich Weigand <uweigand@de.ibm.com>
136 Mark Dettinger <dettinge@de.ibm.com>
137
138 * config/s390/s390.md (UNSPEC_SRST): New constant.
139 ("strlendi", "strlensi"): New expanders.
140 ("*strlendi", "*strlensi"): New insns.
141
142 2003-12-18 Mark Mitchell <mark@codesourcery.com>
143
144 * config/sol2.h (LINK_ARCH32_SPEC): Define in terms of ...
145 (LINK_ARCH32_SPEC_BASE): ... this new macro.
146 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC): Define in terms of
147 ...
148 (LINK_ARCH64_SPEC_BASE): ... this new macro.
149 * config/sparc/sol2-gld-bi.h (LINK_ARCH32_SPEC): New macro.
150 (LINK_ARCH64_SPEC): Likewise.
151
152 2003-12-18 Jason Merrill <jason@redhat.com>
153
154 PR middle-end/13234
155 * tree-dump.c (dequeue_and_dump): Handle 'r' and 's' code
156 classes.
157
158 2003-12-18 Steven Bosscher <stevenb@suse.de>
159
160 * Makefile.in (tracer.o, bb-reorder.o): Depend on timevar.h
161 * toplev.c (rest_of_handle_reorder_blocks, rest_of_handle_tracer):
162 Don't push and pop TV_REORDER_BLOCKS timevars, do it...
163 * bb-reorder.c (reorder_basic_blocks): ...here, and...
164 * tracer.c (tracer): here.
165
166 2003-12-18 Ulrich Weigand <uweigand@de.ibm.com>
167
168 * loop.c (move_movables): Handle combination of m->consec,
169 m->move_insn_first, and m->insert_temp all nonzero correctly.
170
171 2003-12-18 Kazu Hirata <kazu@cs.umass.edu>
172
173 * calls.c (load_register_parameters): Don't use
174 LOAD_ARGS_REVERSED.
175 * system.h (LOAD_ARGS_REVERSED): Poison.
176 * doc/tm.texi (LOAD_ARGS_REVERSED): Remove.
177
178 2003-12-17 Per Bothner <per@bothner.com>
179
180 * emit-rtl.c (set_new_first_and_last_label_num): Remove function.
181 * rtl.h (set_new_first_and_last_label_num): Remove declaration.
182
183 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
184
185 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
186 scratch insns of the then branch that clobber regs needed by the
187 else branch.
188
189 2003-12-17 Kazu Hirata <kazu@cs.umass.edu>
190
191 * calls.c (expand_call): Update comments.
192 * system.h (PRETEND_OUTGOING_VARARGS_NAMED): Poison.
193 * targhooks.c: Do not refer to PRETEND_OUTGOING_VARARGS_NAMED.
194
195 2003-12-17 James E Wilson <wilson@specifixinc.com>
196 Roger Sayle <roger@eyesopen.com>
197
198 * Makefile.in (gcse.o): Add $(TREE_H) to dependencies.
199 * gcse.c: Include tree.h.
200 (implicit_set_cond_p): New.
201 (find_implicit_sets): Call it.
202
203 2003-12-17 Santiago Vila <sanvila@unex.es>
204
205 * config/kfreebsdgnu.h (TARGET_OS_CPP_BUILTINS): Rename from
206 TARET_OS_CPP_BUILTINS.
207
208 2003-12-16 Kazu Hirata <kazu@cs.umass.edu>
209
210 * emit-rtl.c: Fix signed/unsigned comparison warnings.
211
212 2003-12-17 Joseph S. Myers <jsm@polyomino.org.uk>
213
214 * predict.c (struct block_info_def, struct edge_info_def): Change
215 bit-fields of width 1 to unsigned int.
216
217 2003-12-16 Geoffrey Keating <geoffk@apple.com>
218
219 PR 12480
220 * c-pch.c (pch_init): Improve error message when precompiled
221 header can't be written.
222
223 PR 12606
224 * c-pch.c (pch_init): Make a PCH file appear invalid while it's
225 being written.
226 (c_common_write_pch): Make it valid once it's done.
227
228 2003-12-17 Ulrich Weigand <uweigand@de.ibm.com>
229
230 PR target/11992
231 * config/s390/s390.md ("*cmpmem_long_64"): Use CLCLE instruction
232 instead of CLCL.
233 ("*cmpmem_long_31"): Likewise.
234
235 2003-12-17 Vladimir Makarov <vmakarov@redhat.com>
236
237 * config/ia64/ia64.c: Add more comments about insn bundling.
238
239 2003-12-17 Richard Earnshaw <rearnsha@arm.com>
240
241 PR optimization/10592
242 * caller-save.c (mark_referenced_regs): Don't short-circuit a reg
243 or subreg in SET_DEST if it isn't a hard register.
244
245 2003-12-17 David Edelsohn <edelsohn@gnu.org>
246
247 * collect2.c (main): Add -fno-profile-arcs -fno-test-coverage
248 -fno-branch-probabilities to arguments when compiling ctors and
249 dtors.
250
251 2003-12-17 Eric Botcazou <ebotcazou@libertysurf.fr>
252
253 * config/sparc/sol2.h: Set SUPPORTS_INIT_PRIORITY to 0.
254 * config/sparc/sol2-gld.h: Set SUPPORTS_INIT_PRIORITY to 1.
255
256 2003-12-17 Richard Earnshaw <rearnsha@arm.com>
257
258 * arm.c (thumb_base_register_rtx_p): Don't allow virtual registers
259 as base registers for sub-word operations.
260 (thumb_legitimate_address_p): Simplify REG+REG test.
261
262 2003-12-17 Segher Boessenkool <boessen@de.ibm.com>
263
264 * opts.c (wrap_help): Fix overflow.
265
266 2003-12-17 Fred Fish <fnf@redhat.com>
267
268 * configure.in: Remove code to examine linker scripts and set
269 HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES.
270 * configure, config.in: Regenerate.
271
272 2003-12-16 Mark Mitchell <mark@codesourcery.com>
273
274 PR c++/12218
275 * varasm.c (initializer_constant_valid_p): Allow a conversion from
276 an integral constant to an OFFSET_TYPE.
277
278 2003-12-16 Kazu Hirata <kazu@cs.umass.edu>
279
280 PR target/11012
281 * config/m32r/m32r.c (gen_compare): Call gen_addsi3 instead of
282 gen_cmp_ne_small_const_insn.
283 * config/m32r/m32r.md (cmp_ne_small_const_insn): Remove.
284
285 2003-12-17 Neil Booth <neil@daikokuya.co.uk>
286 Joseph S. Myers <jsm@polyomino.org.uk>
287
288 PR c/3347
289 * c-decl.c (enum_decl_context): Remove BITFIELD.
290 (grokdeclarator): Take bit-field width as an input.
291 Perform bit-field width validation with
292 check_bitfield_type_and_width rather than waiting for
293 finish_struct.
294 (groktypename, groktypename_in_parm_context, start_decl,
295 push_parm_decl, grokfield, start_function): Update calls to
296 grokdeclarator.
297 (check_bitfield_type_and_width): New function.
298 (finish_struct): Move bit-field validation to grokdeclarator
299 and check_bitfield_type_and_width.
300
301 2003-12-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
302
303 PR bootstrap/13386
304 * configure.in (gcc_cv_ld_hidden): Set to yes on hppa64*-*-hpux* when
305 using HP native linker.
306 * configure: Rebuilt.
307
308 2003-12-16 Mark Mitchell <mark@codesourcery.com>
309
310 PR c++/13275
311 * c-common.h (enum rid): Add RID_OFFSETOF.
312 * c-parser.in (rid_to_yy): Ignore RID_OFFSETOF.
313 * ginclude/stddef.h (offsetof): Reimplement for C++, using
314 __offsetof__.
315 * doc/extend.texi: Document __offsetof__.
316
317 2003-12-16 Stan Cox <scox@redhat.com>
318
319 * config/iq2000/iq2000.h: Formatting.
320 (MAX_INT_TYPE_SIZE, MAX_INT_TYPE_SIZE, CONST_COSTS, RTX_COSTS)
321 (ADDRESS_COST, ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL)
322 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR, SLOW_ZERO_EXTEND): Remove
323 * config/iq2000/iq2000.c: Formatting.
324 (iq2000_rtx_costs): New.
325
326 2003-12-16 Richard Earnshaw <rearnsha@arm.com>
327
328 * arm.md (addsi3_carryin_shift): Add missing register constraints.
329
330 2003-12-16 Loren James Rittle <ljrittle@acm.org>
331
332 * testsuite/g++.old-deja/g++.eh/badalloc1.C: Tweak to
333 pass with -pthread on FreeBSD systems.
334
335 2003-12-16 Richard Sandiford <rsandifo@redhat.com>
336
337 * config/mips/mips.c (mips_file_end): Only write symbols that have
338 been referenced at some point.
339
340 2003-12-16 Richard Sandiford <rsandifo@redhat.com>
341
342 * config/mips/mips.c: Include langhooks.h
343 (mips_build_builtin_va_list): Use lang_hooks.types.make_type.
344
345 2003-12-16 Eric Botcazou <ebotcazou@libertysurf.fr>
346
347 PR optimization/13313
348 * combine.c (make_extraction) [REG]: Do not use
349 gen_lowpart_for_combine when POS is non-zero.
350
351 2003-12-16 Hartmut Penner <hpenner@de.ibm.com>
352
353 * altivec.h (vec_cmple, vec_all_numeric): Fix typo.
354 * testsuite/gcc.dg/altivec-10.c: Test for above.
355
356 2003-12-15 David O'Brien <obrien@FreeBSD.org>
357
358 * Makefile.in (CPPFLAGS): Initialize from configure.
359
360 2003-12-15 Roger Sayle <roger@eyesopen.com>
361
362 PR middle-end/13400
363 * ifcvt.c (noce_process_if_block): Disable unconditional write
364 optimizations if we could introduce a store to trapping memory
365 that wasn't present previously.
366
367 2003-12-15 Kazu Hirata <kazu@cs.umass.edu>
368
369 * system.h (DEFAULT_CALLER_SAVES): Poison.
370 * toplev.c (flag_caller_saves): Always initialize with 0.
371 * doc/tm.texi (DEFAULT_CALLER_SAVES): Remove.
372
373 2003-12-15 Kazu Hirata <kazu@cs.umass.edu>
374
375 * flow.c (EXIT_IGNORE_STACK): Move to ...
376 * defaults.h (EXIT_IGNORE_STACK): ... here.
377 * dojump.c (clear_pending_stack_adjust): Don't use #ifdef
378 EXIT_IGNORE_STACK.
379 * function.c (expand_function_end): Likewise.
380 * global.c (global_alloc): Likewise.
381 * ra.c (init_ra): Likewise.
382 * reload1.c (init_elim_table): Likewise.
383 * reorg.c (fill_simple_delay_slots): Likewise.
384 * resource.c (init_resource_info): Likewise.
385 * doc/tm.texi (EXIT_IGNORE_STACK): Document that the default
386 is 0.
387
388 2003-12-15 J"orn Rennecke <joern.rennecke@superh.com>
389
390 * reload.c (reg_overlap_mentioned_for_reload_p):
391 When looking at a PLUS in X, avoid spuriously returning nonzero
392 when IN is a REG or another simple PLUS, or a MEM containing one.
393
394 * loop.c (loop_invariant_p): Amend comment about where new registers
395 might come from.
396
397 2003-12-15 Andreas Jaeger <aj@suse.de>
398
399 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Remove
400 handling of obsolete language CHILL.
401
402 2003-12-15 Waldek Hebisch <hebisch@math.uni.wroc.pl>
403
404 * tree.c (initializer_zerop): Add test for empty set.
405 * integrate.c (function_cannot_inline_p): Forbid inlining
406 functions calling `longjmp'.
407
408 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
409
410 PR c++/11773
411 * doc/gcov.texi (Gcov and Optimization): Document inline function
412 behaviour. Fix some file suffixes.
413
414 2003-12-14 David O'Brien <obrien@FreeBSD.org>
415
416 * config/i386/i386.h (__amd64, __amd64__): Remove duplicates.
417
418 2003-12-14 Mark Mitchell <mark@codesourcery.com>
419
420 * c-common.h (c_parse_error): Declare it.
421 * c-common.c (c_parse_error): New function.
422 * c-parse.y (yyerror): Use it.
423
424 2003-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
425
426 PR target/13054
427 * pa-protos.h (indexed_memory_operand, borx_reg_operand,
428 move_dest_operand, move_src_operand): New protypes.
429 (basereg_operand, move_operand, reg_or_nonsymb_mem_operand): Deleted.
430 * pa.c (copy_reg_pointer, indexed_memory_operand, move_dest_operand,
431 move_src_operand): New functions.
432 (basereg_operand, reg_or_nonsymb_mem_operand, move_operand): Delete.
433 (reg_or_0_or_nonsymb_mem_operand): Return false for unscaled indexed
434 address until cse is not expected on targets with non-equivalent
435 space registers.
436 (hppa_legitimize_address): Canonicalize unscaled indexed addresses
437 on targets non-equivalent space registers.
438 (emit_move_sequence): Break out indexed addresses from destination
439 operand. Similarly, break out unscaled indexed addresses from
440 source operand on targets with non-equivalent space registers. Fix
441 REG_POINTER flag when possible. Mark register pointer when creating
442 new pointers.
443 (print_operand): Handle unscaled index addresses.
444 * pa.h (IS_INDEX_ADDR_P, IS_LO_SUM_DLT_ADDR_P): New macro subroutines
445 for EXTRA_CONSTRAINT.
446 (EXTRA_CONSTRAINT): Rework to make more readable.
447 (MODE_OK_FOR_SCALED_INDEXING_P, MODE_OK_FOR_UNSCALED_INDEXING_P): New
448 subroutines for GO_IF_LEGITIMATE_ADDRESS.
449 (GO_IF_LEGITIMATE_ADDRESS): Rework using new subroutines. Allow scaled
450 and unscaled addresses. Canonicalize unscaled indexed addresses on
451 targets with non-equivalent space registers. Document issues in
452 handling indexed address modes on PA-RISC.
453 (PREDICATE_CODES): Update for new and deleted predicates.
454 * pa.md (move_dest_operand, move_src_operand, indexed_memory_operand):
455 Use new predicates in move patterns.
456 Add peephole2 patterns to optimize floating point stores. Fix
457 constrain preferencing in move patterns. Delete patterns for handling
458 unscaled indexed memory loads. Add missing load and store with
459 base-register modification patterns. Correct SFmode floating point
460 store pattern. Add missing zero extension loads.
461
462 2003-12-13 Steven Bosscher <stevenb@suse.de>
463
464 * ggc-zone.c (struct alloc_zone): Don't pre-declare, it already
465 comes in with ggc.h. Add a new bool field `dead'.
466 (destroy_ggc_zone): Don't destroy a zone at once. Instead, only
467 set the `dead' flag for the dead zone. Wrap a sanity check in
468 ENABLE_CHECKING.
469 (ggc_collect_1): Always mark and sweep if a zone has the `dead'
470 flag set.
471 (ggc_collect): Free dead zones after collecting.
472
473 2003-12-13 Jan Hubicka <jh@suse.cz>
474
475 * coverage.c (get_coverage_counts): Use inform instead of warning
476 about missing profile.
477
478 2003-12-12 Steven Bosscher <stevenb@suse.de>
479
480 * Makefile.in (opts.o, explow.o): Depend on langhooks.h
481
482 2003-12-12 Geoffrey Keating <geoffk@apple.com>
483
484 * config.gcc <i[34567]86-*-darwin*>: Don't use fixproto.
485 <powerpc-*-darwin*>: Likewise.
486
487 2003-12-12 Jakub Jelinek <jakub@redhat.com>
488
489 * config/ia64/linux.h (IA64_GATE_AREA_END): Increase by 64K.
490 (MD_FALLBACK_FRAME_STATE_FOR): Set fpsr_loc, br_loc[6] and
491 br_loc[7]. Update comment.
492 (MD_HANDLE_UNWABI): Define.
493 * config/ia64/unwind-ia64.c (struct unw_state_record): Add
494 unwabi field.
495 (struct _Unwind_Context): Increase br_loc array size to 8 entries.
496 (desc_abi): Set unwabi.
497 (uw_update_reg_address): Allow br up to 7.
498 (uw_update_context): Invoke MD_HANDLE_UNWABI if defined.
499 (uw_install_context): Load b1..b5 from correct locations.
500 Fix insn loading ar.fpsr.
501 * doc/tm.texi: Document MD_HANDLE_UNWABI.
502
503 2003-12-12 Roger Sayle <roger@eyesopen.com>
504
505 PR optimization/13037
506 * loop.c (update_giv_derive): Ignore redundant sets of a biv when
507 calculating how to derive a giv from a biv.
508
509 2003-12-12 Neil Booth <neil@daikokuya.co.uk>
510
511 PR preprocessor/12935 preprocessor/12952 preprocessor/13046
512 * cpplib.c (prepare_directive_trad): Clear skipping only in
513 #if and #elif directives.
514 (do_undef): Call the handler even if the identifier is not a macro.
515 * cpptrad.c (scan_parameters): Emit an error message.
516 (_cpp_create_trad_definition): Remember the params list even on
517 failure.
518
519 2003-12-11 Zack Weinberg <zack@codesourcery.com>
520
521 * arm.c (ARM_ADDRESS_COST, THUMB_ADDRESS_COST): Convert macros
522 to inline functions: arm_arm_address_cost, arm_thumb_address_cost
523 respectively.
524 (arm_address_cost): Use 'em.
525
526 2003-12-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
527
528 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define
529 __STDC_VERSION__ to ISO C94 for C++.
530
531 * fixinc/inclhack.def (alpha_wchar): New fix.
532 * fixinc/fixincl.x: Regenerate.
533 * fixinc/tests/base/wchar.h: New file.
534
535 2003-12-11 David Mosberger <davidm@hpl.hp.com>
536
537 * unwind-libunwind.c (_Unwind_SetGR): Clear the NaT bit as
538 required by C++ ABI for Itanium.
539 * config/t-libunwind (LIB2ADDEH): Remove unwind-libunwind.c.
540 * config/t-libunwind-no-eh: New file.
541 * configure.in: Check libunwind for _Unwind_Resume() and if it's
542 present, set libunwind_has_eh_support to "yes".
543 * configure: Regenerate.
544 * config.gcc (ia64*-*-linux*): If $libunwind_has_eh_support is
545 set to yes, use t-libunwind, otherwise, use t-libunwind-no-eh.
546
547 2003-12-11 Richard Sandiford <rsandifo@redhat.com>
548
549 * config/mips/mips.c (mips_global_pointer): Force functions with
550 a nonlocal goto to set up $gp.
551
552 2003-12-11 James E Wilson <wilson@specifixinc.com>
553
554 PR target/13132
555 * function.c (gen_mem_addressof): When no decl, explicitly clear flag
556 bits.
557
558 2003-12-12 Nick Clifton <nickc@redhat.com>
559
560 * config/m32r/m32r.c: Convert to ISO-C
561
562 2003-12-12 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
563
564 * doc/invoke.texi: Replace Mitsubishi with Renesas.
565 * config/m32r/m32r.h: Ditto.
566 * config/m32r/m32r.c: Ditto.
567 * config/m32r/m32r.md: Ditto.
568
569 2003-12-11 Steven Bosscher <steven@gcc.gnu.org>
570
571 * basic-block.h (BLOCK_HEAD, BLOCK_END): Remove.
572 (BLOCK_HEAD_TREE, BLOCK_END_TREE): Remove.
573 (basic_block_def): Rename `head' to `head_' and `end' to `end_'.
574 (BB_HEAD, BB_END): New accessor macros for the `head_' and `end_'
575 fields of a basic block.
576 * bb-reorder.c, bt-load.c, caller-save.c, cfg.c, cfganal.c,
577 cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgloopanal.c,
578 cfgloopmanip.c, cfgrtl.c, combine.c, conflict.c, df.c, emit-rtl.c,
579 final.c, flow.c, function.c, gcse.c, global.c, graph.c,
580 haifa-sched.c, ifcvt.c, lcm.c, local-alloc.c, loop-unswitch.c,
581 loop.c, postreload.c, predict.c, profile.c, ra-build.c, ra-debug.c,
582 ra-rewrite.c, ra.c, recog.c, reg-stack.c, regclass.c, regmove.c,
583 regrename.c, reload1.c, resource.c, sched-ebb.c, sched-rgn.c,
584 sibcall.c, tracer.c, config/frv/frv.c, config/i386/i386.c,
585 config/ia64/ia64.c: Use the BB_HEAD and BB_END macros instead of
586 accessing the `head' and `end' fields of a basic block directly.
587
588 * gengtype.c: Teach about "void**" pointers and "void *" function
589 types. Fixes earlier commit.
590
591 2003-12-10 Geoffrey Keating <geoffk@apple.com>
592
593 * doc/extend.texi (Vector Extensions): Document that bitwise
594 operations also work on vectors.
595
596 2003-12-10 Richard Earnshaw <rearnsha@arm.com>
597
598 * arm.md: New split patterns for optimizing bitfield accesses.
599
600 2003-12-10 Steven Bosscher <stevenb@suse.de>
601
602 * README.Portability: Remove K+R section.
603
604 * gengtype-lex.l: Teach about "void**" pointers and
605 "void*" function types.
606
607 2003-12-10 Eric Botcazou <ebotcazou@libertysurf.fr>
608
609 PR target/13354
610 * config/sparc/sparc.c (sparc_output_mi_thunk): Load DELTA
611 manually if one can do that with only one instruction.
612
613 2003-12-10 Nick Clifton <nickc@redhat.com>
614
615 * config.gcc (arm-linux): Include linux.h in tm_file so that
616 LINUX_TARGET_OS_CPP_BUILTINS is defined.
617 * config/arm/linux-elf.h (LIB_SPEC): Protect the definition.
618
619 2003-12-09 James E Wilson <wilson@specifixinc.com>
620
621 * rtl.def (CODE_LABEL, NOTE): Correct operand numbers in comments.
622
623 2003-12-09 Matt Austern <austern@apple.com>
624
625 PR c/13134
626 * c-decl.c (duplicate_decls): Copy visibility flag when appropriate.
627
628 2003-12-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
629
630 * config/m32r/m32r.h: Add support for m32r2 processor. Including
631 a new command line option -m32r2 to select it.
632 * config/m32r/m32r.c: Add support for the new processor variant.
633 * config/m32r/m32r.md: Likewise.
634 * config/m32r/t-m32r: Add m32r2 multilibs.
635 * doc/invoke.texi: Document the new command line switch.
636
637 2003-12-08 Kazu Hirata <kazu@cs.umass.edu>
638
639 * defaults.h (LOCAL_REGNO): Give the default definition.
640 * flow.c (LOCAL_REGNO): Remove.
641 * reload1.c (LOCAL_REGNO): Likewise.
642
643 2003-12-08 Geoffrey Keating <geoffk@apple.com>
644
645 PR target/11848
646 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Allow change of mode
647 in floating-point registers between TFmode and DImode.
648 * rs6000.c (rs6000_emit_move): Split moves early.
649 (secondary_reload_class): Random Whitespace Change.
650 (rs6000_split_multireg_move): Support moves involving FP registers.
651 Emit instructions directly.
652 * rs6000-protos.h (rs6000_split_multireg_move): Update prototype.
653 * altivec.md: Update for changes to rs6000_split_multireg_move.
654 * rs6000.md: Update for changes to rs6000_split_multireg_move.
655 (movtf_internal): Support moves to/from GPRs.
656
657 2003-12-08 Stuart Hastings <stuart@apple.com>
658
659 * config/i386/i386.md: Typo in split of fp-valued if_then_else.
660
661 2003-12-08 James E Wilson <wilson@specifixinc.com>
662
663 PR target/13132
664 * expmed.c (extract_bit_field): Only call mode_for_size for scalar
665 integer modes.
666
667 2003-12-08 Nathanael Nerode <neroden@gcc.gnu.org>
668
669 * doc/install.texi: Revert change of Dec 7; gcc is still a 2.13
670 directory.
671
672 2003-12-08 Alexandre Oliva <aoliva@redhat.com>
673
674 * config/frv/frv.md (subdi2): Merge with _internal insn_and_split,
675 by using match_scratch.
676 (negdi2): New.
677
678 2003-12-08 Jason Merrill <jason@redhat.com>
679 Daniel Berlin <dberlin@dberlin.org>
680
681 PR debug/11114
682 Support namespaces in DWARF 2 output.
683 * dwarf2out.c (gen_namespace_die): New function.
684 (force_namespace_die, setup_namespace_context): New fns.
685 (declare_in_namespace): New fn.
686 (gen_decl_die): Call declare_in_namespace. Handle namespaces.
687 (dwarf2out_decl): Handle namespaces.
688 (scope_die_for): Pass through a namespace scope.
689 (class_scope_p): Rename to class_or_namespace_scope_p.
690 (gen_subprogram_die, gen_variable_die): Adjust.
691 (gen_struct_or_union_die): Always emit a declaration
692 if context_die is a namespace.
693
694 2003-12-08 Jan Hubicka <jh@suse.cz>
695
696 * unwind-pe.h (read_uleb128): Fix handling of large values
697 (read_sleb128): Fix handling of large values
698
699 2003-12-08 Andrew Pinski <pinskia@physics.uc.edu>
700
701 PR middle-end/10060
702 * emit-rtl.c (copy_rtx_if_shared): Split out into ...
703 (copy_rtx_if_shared_1): here and optimize the last one
704 in the sequence into tail-recursion.
705 (reset_used_flags): Optimize the last one
706 in the sequence into tail-recursion.
707
708 2003-12-08 Richard Earnshaw <rearnsha@arm.com>
709
710 * arm.md: New split to transform ((X << y) - 1) into ~(~(X-1) << y)
711 for constant X.
712
713 2003-12-08 Richard Sandiford <rsandifo@redhat.com>
714
715 * calls.c (expand_call): Don't try using tail or recursive calls
716 after the function body has been expanded.
717
718 2003-12-08 Jan Hubicka <jh@suse.cz>
719
720 * i386.md (cmpstr expander): Obey TARGET_INLINE_ALL_STRINGOPS
721
722 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
723
724 PR ada/13324, PR ada/12614
725 * doc/install.texi: Update requirements for building Ada.
726
727 2003-12-07 David Edelsohn <edelsohn@gnu.org>
728 Graham Reed <greed@pobox.com>
729
730 * collect2.c (GCC_OK_SYMBOL): Add support for AIX C_WEAKEXT.
731 (GCC_UNDEF_SYMBOL): Same.
732
733 2003-12-07 Kazu Hirata <kazu@cs.umass.edu>
734
735 * final.c (final_scan_insn): Don't use FINAL_PRESCAN_LABEL.
736 * system.h (FINAL_PRESCAN_LABEL): Poison.
737 * doc/tm.texi (FINAL_PRESCAN_LABEL): Remove.
738
739 2003-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
740
741 * Makefile.in (compare): Combine toplevel and $(SUBDIRS) cases.
742
743 2003-12-07 Nathanael Nerode <neroden@gcc.gnu.org>
744
745 * configure.in, aclocal.m4: Revert to pre-2.5x conversion status.
746 * configure: Regenerate with autoconf 2.13.
747
748 * configure.in: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
749 with modern equivalents.
750 * configure: Regenerate.
751
752 * configure.in: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
753 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
754 * configure: Regenerate.
755
756 * configure: Regenerate with (preferred) autoconf 2.57.
757 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
758
759 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
760
761 PR optimization/12965
762 * caller-save.c (save_call_clobbered_regs): Do not save/restore
763 registers around no-return calls.
764
765 2003-12-07 Nathanael Nerode <neroden@gcc.gnu.org>
766
767 * configure.in: Make minimum necessary changes for autoconf 2.5x.
768 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
769 * configure: Regenerate with autoconf 2.58.
770
771 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
772
773 PR optimization/13318
774 * loop.c (express_from): Protect integer division from overflow.
775
776 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
777
778 PR optimization/13060
779 * function.c (fixup_var_refs_1) [SUBREG]: Recognize even if a
780 replacement already exists. Fix again the whole insn if that fails.
781
782 2003-12-06 Andrew Pinski <pinskia@physics.uc.edu>
783
784 * config/rs6000/rs6000.c (macho_branch_islands): Use
785 HOST_WIDE_INT_PRINT_UNSIGNED.
786
787 2003-12-06 Richard Sandiford <rsandifo@redhat.com>
788
789 * varasm.c (incorporeal_function_p): New.
790 (assemble_external): Use it as a filter.
791 * config/mips/mips.c (mips_output_external): Don't check for builtin
792 functions here.
793
794 2003-12-06 Richard Earnshaw <reanrsha@arm.com>
795
796 * arm.md (IOR (COMPARISON) (AND)): New define_splits.
797
798 2003-12-06 Kelley Cook <kcook@gcc.gnu.org>
799
800 * Makefile.in (program_transform_cross_name): Delete.
801 (GCC_CROSS_NAME, CPP_CROSS_NAME): Delete.
802 (PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Delete.
803 (AR_FOR_TARGET, RANLIB_FOR_TARGET, NM_FOR_TARGET): Adjust for above.
804 (install_cpp, install_driver, install-man, uninstall): Likewise.
805
806 2003-12-06 Alan Modra <amodra@bigpond.net.au>
807
808 PR 13169
809 * basic-block.h (PROP_ASM_SCAN): Define.
810 * final.c (regs_asm_clobbered): New array.
811 * regs.h (regs_asm_clobbered): Declare.
812 * flow.c (life_analysis): Init it.
813 (mark_set_regs): Set PROP_ASM_SCAN for asms.
814 (mark_set_1): Set regs_asm_clobbered.
815 * global.c (global_alloc): Don't set eliminable_regset when
816 regs_asm_clobbered.
817
818 2003-12-05 Mark Mitchell <mark@codesourcery.com>
819
820 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Define.
821
822 PR c++/13314
823 * emit-rtl.c (set_mem_attributes_minus_bitpos): Robustify.
824
825 2003-12-05 Andrew Pinski <pinskia@physics.uc.edu>
826
827 PR driver/13211
828 * gcc.c (execute) Increment execution_count when returning
829 early because verbose_only_flag is true.
830
831 2003-12-05 Per Bothner <pbothner@apple.com>
832
833 * cppfiles.c (file_hash_hash): New static function.
834 (hash_string_eq): Renamed static function to file_hash_eq.
835 (_cpp_init_files): Create file_hash table with above callbacks.
836 (cpp_included): Must use htab_find_with_hash insead of htab_find.
837 (_cpp_find_find, make_cpp_dir): Must use htab_find_slot_with_hash.
838
839 2003-12-05 Per Bothner <pbothner@apple.com>
840
841 * line-map.h (source_location): New typedef.
842 (fileline): Redefined as source_location.
843 (struct line_map, linemap_add, linemap_lookup): Replace filefile
844 by source_location.
845 * line-map.c (linemap_add, linemap_lookup): Use source_location.
846
847 2003-12-05 Richard Henderson <rth@redhat.com>
848
849 * config/alpha/alpha.c (alpha_build_builtin_va_list): Add dummy
850 field to suppress -Wpadded warnings.
851
852 2003-12-05 Stuart Hastings <stuart@apple.com>
853
854 * config/rs6000/rs6000.md: Correct macro test of TARGET_MACHO.
855
856 2003-12-05 Stuart Menefy <stuart.menefy@st.com>
857 J"orn Rennecke <joern.rennecke@superh.com>
858
859 PR target/13302
860 * sh.c (sh_build_builtin_va_list): Use (*lang_hooks.types.make_type).
861
862 2003-12-05 Roger Sayle <roger@eyesopen.com>
863
864 * dojump.c (do_jump): If the expression being compared against
865 zero, is the subreg of a promoted variable, perform the comparison
866 in the promoted mode.
867 * simplify-rtx.c (simplify_unary_operation): Optimize sign and
868 zero-extensions of subregs of promoted variables where the
869 extension is identical to that used to promote the variable.
870
871 2003-12-05 Hans-Peter Nilsson <hp@axis.com>
872
873 PR target/13256
874 * resource.h (enum mark_resource_type): Remove member MARK_DEST.
875 The only user changed as follows:
876 * resource.c (mark_set_resources) <case SET>: Always recurse for
877 SET_SRC (x).
878 <case SIGN_EXTRACT, case ZERO_EXTRACT>: Always recurse on
879 operands.
880 <case STRICT_LOW_PART>: Delete, deferring to default code.
881
882 2003-12-05 Waldek Hebisch <hebisch@math.uni.wroc.pl>
883
884 * stmt.c (expand_nl_goto_receiver): Copy hard register clobbers
885 and ASM_INPUT barrier from expand_builtin_setjmp_receiver.
886
887 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
888
889 * config/mips/mips.c (mips_expand_call): Don't allow laziy binding
890 for n32 & n64 abicalls.
891
892 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
893
894 PR bootstrap/13145
895 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Adjust comment.
896 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Add $fcall.
897 (mips_load_got): Always create a constant MEM.
898 (mips_expand_call): Use load_callsi and load_calldi.
899 * config/mips/mips.md (UNSPEC_LOAD_CALL, FAKE_CALL_REGNO): New consts.
900 (load_callsi, load_calldi): New patterns.
901
902 2003-12-05 Peter Gerwinski <peter@gerwinski.de>
903
904 * tree.def (PLACEHOLDER_EXPR): Clarify commentary.
905
906 2003-12-05 Steven Bosscher <stevenb@suse.de>
907
908 * config/d30v/d30v-protos.h , config/d30v/d30v.c,
909 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
910 config/fr30/fr30-protos.h, config/fr30/fr30.c,
911 config/i370/i370-protos.h, config/i370/i370.c,
912 config/i960/i960-protos.h, config/i960/i960.c,
913 config/ip2k/ip2k-protos.h, config/ip2k/ip2k.c,
914 config/m32r/m32r-protos.h, config/m32r/m32r.c,
915 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
916 config/ns32k/ns32k-protos.h, config/ns32k/ns32k.c:
917 Convert to ISO C90 function declarations and definitions.
918
919 2003-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>
920
921 * doc/extend.texi (Constructing Calls): Add warning about
922 the limitations of the functions.
923
924 2003-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>
925
926 PR middle-end/11151
927 * function.h (struct function): New field 'x_naked_return_label'.
928 * function.c (free_after_compilation): Set it to NULL.
929 (expand_function_end): Emit 'naked_return_label' if it exists.
930 * rtl.h (expand_naked_return): Declare.
931 * stmt.c (expand_naked_return): New function to generate a
932 jump to 'naked_return_label'.
933 * builtins.c (expand_builtin_return): Call expand_naked_return
934 instead of expand_null_return.
935 * config/sparc/sparc.md (untyped_return): Likewise.
936
937 2003-12-04 Andrew Pinski <pinskia@physics.uc.edu>
938
939 PR target/11322
940 * config/sh/netbsd-elf.h (NO_PROFILE_COUNTERS): Define.
941
942 PR target/12467
943 * config/rs6000/altivec.md (altivec_vmsummbm): Fix typo.
944
945 2003-12-04 Stuart Hastings <stuart@apple.com>
946
947 * rs6000.c (output_call, macho_branch_islands,
948 add_compiler_branch_island, no_previous_def, get_previous_label)
949 Revisions of xx_stub functions for branch islands,
950 add -fPIC support for Darwin.
951 * rs6000-protos.h (output_call) Prototype.
952 * rs6000.md Use output_call.
953 * invoke.texi Explain Darwin semantics of -longcall.
954 * testsuite/gcc.dg/darwin-abi-1.c Revise testcase for -longcall/jbsr.
955
956 2003-12-04 Richard Henderson <rth@redhat.com>
957
958 * config/i386/i386.md (addqi3_carry): Use q not r constraints.
959 (subqi3_carry): Likewise.
960
961 2003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
962
963 PR optimization/13260
964 * sh-protos.h (sh_expand_t_scc): Declare.
965 * sh.h (PREDICATE_CODES): Add cmpsi_operand.
966 * sh.c (cmpsi_operand, sh_expand_t_scc): New functions.
967 * sh.md (cmpsi): Use cmpsi_operand. If T_REG is compared to
968 something that is not a CONST_INT, copy it into a pseudo register.
969 (subc): Fix description of new T value.
970 (slt, sgt, sge, sgtu): Don't clobber T after rtl generation is over.
971 (sltu, sleu, sgeu): Likewise.
972 (seq, sne): Likewise. Use sh_expand_t_scc.
973
974 2003-12-04 Nathanael Nerode <neroden@gcc.gnu.org>
975
976 * configure.in: Generalize the CONFIG_HEADERS pattern under which
977 we stamp cstamp-h.
978 * configure: Regenerate.
979
980 * configure.in: Pull AC_CHECK_HEADER call out of shell if statement
981 to avoid trouble when updating to autoconf 2.5x.
982 * configure: Regenerate (with autoconf 2.13 still).
983
984 2003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
985
986 * sh.md (truncdiqi2): Use andi opcode for immediate.
987 (reload_outdf+1,reload_outdf+2): Remove constraints.
988 (movv16sf_i): Fxi multiplier for SUBREG_BYTE.
989 (movv8qi_i+2): Zero-extend low byte before adding it to high byte.
990 (fipr, ftrv): Add .s suffix to opcode.
991
992 2003-12-04 Richard Sandiford <rsandifo@redhat.com>
993
994 PR target/13186
995
996 Revert all of the following patch, except the addition of
997 hook_bool_machine_mode_true:
998
999 2003-11-02 Richard Sandiford <rsandifo@redhat.com>
1000
1001 * Makefile.in (targhooks.o, reload.o): Update dependencies.
1002 (GTFILES): Add targhooks.c.
1003 (gt-targhooks.h): New rule; depend on s-gtype.
1004 * target.h (direct_pool_load_p): New hook.
1005 * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
1006 (TARGET_INITIALIZER): Include it.
1007 * targhooks.h (default_direct_pool_load_p): Declare.
1008 (hook_bool_machine_mode_true): Declare.
1009 * targhooks.c: Include insn-config.h, recog.h, ggc.h and
1010 gt-targhooks.h.
1011 (pool_symbol): New variable.
1012 (default_direct_pool_load_p): New function.
1013 (hook_bool_machine_mode_true): New function.
1014 * reload.c: Include target.h.
1015 (find_reloads): If an alternative will force a constant into memory,
1016 count an extra reload if constant pool symbols are not valid
1017 addresses. If an alternative uses memory to move values between
1018 registers, count the move as two reloads rather than one.
1019 * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
1020 * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
1021
1022 2003-12-03 Mark Mitchell <mark@codesourcery.com>
1023
1024 * config/ia64/hpux.h (TARGET_HAVE_TLS): Define it to false.
1025 * config/ia64/ia64.h (TARGET_HAVE_TLS): Define it to true if
1026 HAVE_AS_TLS is true.
1027 * config/ia64/ia64.c (TARGET_HAVE_TLS): Do not define it.
1028
1029 2003-12-03 James E Wilson <wilson@specifixinc.com>
1030
1031 * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name.
1032
1033 * gcc-page.c (extra_order_size_tab): Correct comment.
1034
1035 2003-12-03 Kazu Hirata <kazu@cs.umass.edu>
1036
1037 * config/h8300/h8300.c (push): Call gen_push_h8300hs_advanced
1038 instead of gen_push_h8300hs.
1039 (pop): Call gen_pop_h8300hs_advanced instead of
1040 gen_pop_h8300hs.
1041 * config/h8300/h8300.h (TRAMPOLINE_SIZE): Use Pmode.
1042 * config/h8300/h8300.md (*tablejump_h8300hs_advanced):
1043 Tighten the predicate.
1044 (*tablejump_h8300hs_normal): Tighten the predicate.
1045 (push_h8300hs): Change to
1046 push_h8300hs_advanced.
1047 (pop_h8300hs): Change to pop_h8300hs_advanced.
1048
1049 2003-12-03 Eric Christopher <echristo@redhat.com>
1050
1051 * rtl.c: Fix typo.
1052 * config/mips/mips.h: Ditto. Fix formatting.
1053
1054 2003-12-04 Ben Elliston <bje@wasabisystems.com>
1055
1056 * future.options: Remove. Move to gnu.org web pages.
1057
1058 2003-12-03 Eric Christopher <echristo@redhat.com>
1059
1060 * c-parse.in (c_in_iteration_stmt, c_in_case_stmt): Move
1061 from here...
1062 * c-tree.h: to here.
1063
1064 2003-12-03 Jan Hubicka <jh@suse.cz>
1065
1066 PR optimization/12324
1067 * toplev.c (rest_of_decl_compilation): Do not deffer when compiling
1068 in unit-at-a-time mode.
1069
1070 2003-12-03 Jakub Jelinek <jakub@redhat.com>
1071
1072 * expr.c (store_constructor): Only set RTX_UNCHANGING_P for
1073 read-only field if cleared is 0.
1074
1075 2003-12-03 Nathanael Nerode <neroden@gcc.gnu.org>
1076
1077 * config.gcc: Mark obsolete targets for GCC 3.4.
1078
1079 2003-12-03 Zack Weinberg <zack@codesourcery.com>
1080
1081 * aclocal.m4 (AM_ICONV): Add explicit check for iconv.h.
1082 * config.in, configure.in: Regenerate.
1083 * cpphash.h: Check both HAVE_ICONV and HAVE_ICONV_H before
1084 including iconv.h.
1085
1086 2003-12-03 Alan Modra <amodra@bigpond.net.au>
1087
1088 PR target/11229
1089 * cse.c (cse_insn): Set classp using src_const_elt if
1090 src_eqv_elt is NULL.
1091
1092 2003-12-03 Richard Earnshaw <rearnsha@arm.com>
1093
1094 * gcse.c (reg_clear_last_set): New function.
1095 (reg_set_info): If data is non-null, treat it as an sbitmap of
1096 registers, set the bit for the register being set.
1097 (compute_store_table): Allocate last_set_in with xcalloc. Do not
1098 memset this array on each iteration. Pass reg_set_in_block[bb->index]
1099 to note_stores while computing last_set_in instead of scanning
1100 last_set_in after the first pass through the insns.
1101 Clear last_set_in using reg_clear_last_set instead of explicitly
1102 rescanning after each insn. If checking is enabled, assert that
1103 last_set_in is completely zeroed after each bb has been processed.
1104
1105 2003-12-02 Geoffrey Keating <geoffk@geoffk.org>
1106
1107 * df.c (df_uses_record) <MEM>: The argument of a MEM is read-only,
1108 never read-write.
1109 <REG>: Delete incorrect comment.
1110 <SET>: Remove 'use_flags' variable.
1111
1112 2003-12-03 David Edelsohn <edelsohn@gnu.org>
1113
1114 * function.c (assign_parms): Make sure parm PARALLEL combined
1115 in reg is composed of more than one object and the mode really
1116 produces a reg.
1117
1118 2003-12-03 Jan Hubicka <jh@suse.cz>
1119
1120 * i386.c (classify_argument): Make it 64bit clean.
1121
1122 2003-12-02 Richard Sandiford <rsandifo@redhat.com>
1123
1124 * config/mips/mips.c (mips_output_external): Replace checks for
1125 specific builtin-in functions with a check for DECL_BUILTIN_IN.
1126
1127 2003-12-02 Richard Henderson <rth@redhat.com>
1128
1129 * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
1130 * tree.h (TREE_SET_CODE): Likewise.
1131 * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD.
1132
1133 2003-12-02 Ben Elliston <bje@wasabisystems.com>
1134
1135 * dbxstclass.h: Rename from this ..
1136 * xcoff.h: .. to this.
1137 * xcoffout.c: Include xcoff.h.
1138
1139 2003-12-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1140
1141 * Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.
1142
1143 2003-12-01 James Lemke <jim@wasabisystems.com>
1144
1145 * config/arm/arm.c (arm_rtx_costs): Improve for xscale multiply.
1146
1147 2003-12-01 Roger Sayle <roger@eyesopen.com>
1148
1149 PR optimization/11634
1150 * recog.c (split_insn): Factor test of INSN_P and handling of
1151 set_noop_p out of here into the two callers.
1152 (split_all_insns): Add INSN_P test and set_noop_p handling here.
1153 If deleting a no-op set after reload that has a REG_UNUSED note,
1154 mark the basic block as changed and recalculate life information.
1155 (split_all_insns_noflow): Add INSN_P test and set_noop_p handling
1156 here.
1157
1158 2003-12-01 Roger Sayle <roger@eyesopen.com>
1159
1160 PR optimization/12322
1161 * gcse.c (struct ls_expr): Change type of hash_index from int to
1162 unsigned int.
1163 (hash_expr): Document hash_table_size parameter and wrap long line.
1164 (ldst_entry): Calculate expression's hash_index and record in ptr.
1165 (trim_ld_motion_mems): Use hash_index to search a single bucket
1166 instead of scanning the entire hash_table. Remove the "del" local
1167 variable and use the equivalent "expr == 0" instead. Change last
1168 to be a pointer to the pointer to the current element, to simplify
1169 and speed-up deleting from a linked list.
1170
1171 2003-12-01 James E Wilson <wilson@specifixinc.com>
1172
1173 * doc/contrib.texi: Update David Mosberger.
1174
1175 * doc/c-tree.texi (CONSTRUCTOR): Clarify element order and handling
1176 of missing fields.
1177
1178 PR target/8407
1179 * config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
1180 gen_rtx_REG to create new reg with argument mode.
1181
1182 2003-12-01 Steven Bosscher <stevenb@suse.de>
1183
1184 * ggc.h (struct alloc_zone): Move forward declaration up.
1185 (new_ggc_zone): New function prototype.
1186 (destroy_ggc_zone): Ditto.
1187 * ggc-simple.c (new_ggc_zone): New function, does nothing.
1188 (destroy_ggc_zone): Ditto.
1189 * ggc-page.c (new_ggc_zone): New function, does nothing.
1190 (destroy_ggc_zone): Ditto.
1191 * ggc-zone.c (struct page_entry): Fix comment.
1192 (ggc_alloc_typed): Use a switch statement instead of ifs.
1193 (new_ggc_zone): New function to set up a new GC zone.
1194 (destroy_ggc_zone): New function to remove a GC zone.
1195 init_ggc): Use new_ggc_zone to set up the default zones.
1196 (ggc_collect): Walk a list of zones, instead of just the
1197 default zones. Report statistics using the zone name.
1198
1199 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1200
1201 * unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
1202
1203 2003-12-01 Roger Sayle <roger@eyesopen.com>
1204
1205 PR optimization/12628
1206 * toplev.c (rest_of_handle_jump_bypass): Call reg_scan.
1207 * regclass.c (reg_scan): Include allocate_reg_info time in
1208 TV_REG_SCAN. Minor clean-ups.
1209 (reg_scan_update): Minor clean-ups.
1210
1211 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1212
1213 * config.gcc (s390x-ibm-tpf*): Add extra_parts.
1214
1215 2003-12-01 James E Wilson <wilson@specifixinc.com>
1216
1217 * config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not
1218 GR_ARG_FIRST.
1219
1220 2003-12-01 Zack Weinberg <zack@codesourcery.com>
1221
1222 * common.opt: Remove -fgnu-linker.
1223 * flags.h: Remove flag_gnu_linker.
1224 * opts.c: Don't handle OPT_fgnu_linker.
1225 * toplev.c: Don't initialize flag_gnu_linker.
1226 Remove gnu-linker entry from f_options.
1227 * config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS):
1228 Don't reset flag_gnu_linker.
1229 * config/mips/mips.c (override_options): Likewise.
1230 * doc/invoke.texi: Remove all mention of -fgnu-linker.
1231
1232 2003-12-01 Daniel Berlin <dberlin@dberlin.org>
1233
1234 * ggc-zone.c (ggc_pch_write_object): Calculate object size using
1235 ggc_get_size (which accounts for large objects properly).
1236
1237 2003-12-01 Jeff Sturm <jsturm@one-point.com>
1238
1239 PR optimization/13024
1240 * toplev.c (rest_of_handle_new_regalloc): Remove rebuild_notes
1241 parameter.
1242 (rest_of_handle_old_regalloc): Likewise. Add rebuild_notes
1243 declaration. Rebuild jump labels following local_alloc if necessary.
1244 (rest_of_compilation): Remove rebuild_label_notes_after_reload
1245 declaration. Don't pass rebuild_notes parameter to
1246 rest_of_handle_new_regalloc and rest_of_handle_old_regalloc.
1247 Don't rebuild jump labels.
1248
1249 2003-12-01 Jeff Law <law@redhat.com>
1250
1251 * flow.c (count_or_remove_death_notes_bb): New. Extracted from
1252 count_or_remove_death_notes.
1253 (count_or_remove_death_notes): Use EXECUTE_IF_SET_IN_SBITMAP.
1254
1255 2003-12-01 Andreas Krebbel <krebbel1@de.ibm.com>
1256
1257 * builtins.c (expand_builtin_longjmp): Added two memory clobbers.
1258
1259 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1260
1261 * reload.c (find_reloads_address): Split addresses of type
1262 (plus (plus (reg) (reg)) (const_int)) only if one register
1263 is either a valid base register or else one of the stack
1264 frame related registers (sp/fp/ap).
1265
1266 2003-12-01 Steven Bosscher <stevenb@suse.de>
1267
1268 * function.c (update_epilogue_consts): Don't use PARAMS.
1269 * rtl.h (web_main): Ditto.
1270 * target.h (is_costly_dependence): Ditto
1271
1272 2003-12-01 Eric Botcazou <ebotcazou@libertysurf.fr>
1273
1274 PR middle-end/7847
1275 * expr.c (expand_expr) [normal_inner_ref]: When 'offset' is non-zero,
1276 do not recheck that 'op0' is a MEM. Move comment. When testing for
1277 unaligned objects, take also into account the alignment of 'op0' and
1278 'mode1' if 'op0' is a MEM.
1279
1280 2003-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
1281
1282 * doc/c-tree.texi (Function Bodies): Update HANDLER documentation.
1283
1284 2003-12-01 Kelley Cook <kcook@gcc.gnu.org>
1285
1286 * doc/install.texi: Note that fastjar is built with automake 1.7.x
1287 and autoconf 2.57.
1288
1289 2003-12-01 Alan Modra <amodra@bigpond.net.au>
1290
1291 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
1292 target_flags directly rather than using TARGET_* defines.
1293
1294 2003-11-30 Ben Elliston <bje@wasabisystems.com>
1295
1296 * doschk.c: Remove.
1297
1298 2003-11-30 Richard Sandiford <rsandifo@redhat.com>
1299
1300 PR target/12727
1301 * config/mips/mips.c (mips_save_reg): Fix frame information for sdc1
1302 on 32-bit big-endian targets.
1303
1304 2003-11-30 Kazu Hirata <kazu@cs.umass.edu>
1305
1306 * genemit.c (register_constraints): Remove.
1307
1308 2003-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
1309
1310 * config/s390/s390.md ("tmdi_reg", "tmsi_reg", "*movdi_64", "*movdi_31",
1311 "iordi3"): Insns now use multiple letter constraints.
1312 ("*movdi_lhi", "*movdi_lli", "*movdi_lay"): Insns deleted. They are now
1313 covered by "*movdi_64".
1314 ("*movsi_lhi", "*movsi_lli", "*movsi_lay"): Insns deleted. They are now
1315 covered by "*movsi_zarch" and "*movsi_esa".
1316 ("*movsi_zarch", "*movsi_!zarch"): New insns.
1317 ("*llgt_sisi_split", "*llgt_didi_split"): Insns deleted. Now covered
1318 by "*andsi3_zarch" and "anddi3".
1319 ("*anddi3_ni"): Insn merged with "anddi3".
1320 ("*andsi3_ni"): Insn merged with "*andsi3_zarch".
1321 ("*andsi3_zarch", "*andsi3_esa"): New insns.
1322 ("*iordi3_oi"): Insn merged with "iordi3".
1323 ("*iorsi3_oi"): Insn merged with "*iorsi3_zarch".
1324 ("*iorsi3_zarch", "*iorsi3_esa"): New insns.
1325
1326 * config/s390/s390.c (s390_single_qi, s390_single_hi): Functions
1327 merged to s390_single_part.
1328 (s390_single_part): New function.
1329 NOTE: Semantics have changed a bit. Now the value of the part must
1330 be different from the others to get a non-negative return value.
1331 (s390_extract_qi, s390_extract_hi): Functions merged to
1332 s390_extract_part.
1333 (s390_extract_part, s390_extra_constraint_str,
1334 s390_const_ok_for_constraint_p): New functions. The L constraint got a
1335 new meaning and the N constraint was added as a multiple letter
1336 constraint.
1337 (s390_extra_constraint): Function deleted.
1338 (print_operand): New output modifier 'i' and 'j' added.
1339 All uses of CONST_OK_FOR_LETTER_P were replaced by
1340 CONST_OK_FOR_CONSTRAINT_P.
1341
1342 * config/s390/s390-protos.h: Function prototypes adapted.
1343 * doc/md.texi: Documentation for new constraint letters added.
1344
1345 2003-11-30 Andreas Schwab <schwab@suse.de>
1346
1347 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Fix missing semicolon.
1348
1349 2003-11-29 James E Wilson <wilson@specifixinc.com>
1350
1351 * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
1352 instead of in shared_name.
1353
1354 * final.c (final_start_function): Delete code for NON_SAVING_SETJMP.
1355 * reload1.c (reload): Re-add it here.
1356
1357 2003-11-30 Alan Modra <amodra@bigpond.net.au>
1358
1359 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't
1360 set SECTION_WRITE on TARGET_RELOCATABLE.
1361
1362 2003-11-29 Kazu Hirata <kazu@cs.umass.edu>
1363
1364 * config/h8300/h8300.h (LIBCALL_VALUE): Use R0_REG.
1365
1366 2003-11-28 Gunther Nikl <gni@gecko.de>
1367
1368 * config/m68k/m68k.c (MOTOROLA): Move from here...
1369 * config/m68k/m68k.h (MOTOROLA): ... to here.
1370 (OUTPUT_JUMP): Use do {...} while (0).
1371 * config/m68k/m68k.md: Replace #ifdef MOTOROLA with C statements.
1372
1373 2003-11-28 Gunther Nikl <gni@gecko.de>
1374
1375 * config.gcc (m68020-*-elf*, m68k-*-elf*, m68010-*-netbsdelf*,
1376 m68k*-*-netbsdelf*, m68k-*-rtems*): Add tm_defines containing
1377 MOTOROLA and USE_GAS.
1378 * config/m68k/rtemself.h (MOTOROLA): Delete.
1379 * config/m68k/netbsd-elf.h (MOTOROLA, USE_GAS): Delete.
1380 * config/m68k/m68kelf.h (MOTOROLA, USE_GAS, SGS_CMP_ORDER): Delete.
1381
1382 2003-11-29 Kazu Hirata <kazu@cs.umass.edu>
1383
1384 * config/h8300/h8300.h (WORDS_BIG_ENDIAN): Update the comment.
1385
1386 2003-11-29 Kelley Cook <kcook@gcc.gnu.org>
1387
1388 * Makefile.in (install-info): Install gccinstall.info too.
1389
1390 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1391
1392 * config/s390/s390.md ("cmpint_di"): Fix incorrect instruction lengths.
1393
1394 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1395
1396 * config/s390/s390.md ("movhi"): Do not emit extender pattern
1397 when loading from a (MEM (ADDRESSOF ...)).
1398 ("movqi"): Likewise.
1399
1400 2003-11-29 Joseph S. Myers <jsm@polyomino.org.uk>
1401
1402 PR c/10333
1403 * c-parse.in (typespec_reserved_nonattr): Reject typeof on
1404 bit-fields.
1405
1406 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
1407
1408 * stmt.c (expand_asm_operands): Check whether force_const_mem
1409 succeeded.
1410
1411 2003-11-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1412
1413 * config/gnu.h (HURD_TARGET_OS_CPP_BUILTINS): New.
1414 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): New.
1415
1416 * config/alpha/gnu.h, config/alpha/linux.h,
1417 config/arm/linux-elf.h, config/cris/cris.h, config/cris/linux.h,
1418 config/i370/linux.h, config/i386/gnu.h, config/i386/i386.h,
1419 config/i386/linux-aout.h, config/i386/linux.h,
1420 config/i386/linux64.h, config/ia64/linux.h, config/m68k/linux.h,
1421 config/m68k/uclinux.h, config/mips/linux.h,
1422 config/mn10300/linux.h, config/pa/pa-linux.h,
1423 config/rs6000/sysv4.h, config/s390/linux.h, config/sh/linux.h,
1424 config/sparc/linux.h, config/sparc/linux64.h,
1425 config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Use
1426 HURD_TARGET_OS_CPP_BUILTINS/LINUX_TARGET_OS_CPP_BUILTINS or ensure
1427 all necessary assertions are included.
1428
1429 2003-11-28 Jan Hubicka <jh@suse.cz>
1430
1431 * emit-rtl.c (set_used_flags): New.
1432 (verify_rtx_sharing, verify_rtl_sharing): New.
1433 (unshare_all_rtl_1): Rename to....
1434 (unshare_all_rtl_in_chain): ... this one; make static.
1435 (copy_rtx_if_shared): LABEL_REF chan be shared.
1436 * ifcvt.c (unshare_ifcvt_sequence): New.
1437 (noce_try_move, noce_try_store_flag, noce_try_store_flag_constants,
1438 noce_try_addcc, noce_try_addcc, noce_try_store_flag_mask,
1439 noce_try_cmove, noce_try_store_flag_mask, noce_try_minmax,
1440 noce_try_abs, noce_process_if_block, find_cond_trap
1441 * rtl.h (verify_rtl_sharing, set_used_flags, unshare_all_rtl_in_chain):
1442 Declare.
1443
1444 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
1445
1446 * config/h8300/h8300.md: Fix a comment typo.
1447
1448 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
1449
1450 * config/h8300/h8300.md (*movsf_h8300h): Change to
1451 *movsf_h8300hs.
1452 (addsi_h8300): Change to *addsi_h8300.
1453 (addsi_h8300h): Change to *addsi_h8300hs.
1454 (subsi3_h8300): Change to *subsi3_h8300.
1455 (subsi3_h8300h): Change to *subsi3_h8300hs.
1456 (neghi2_h8300h): Change to *neghi2_h8300hs.
1457 (negsi2_h8300h): Change to *negsi2_h8300hs.
1458
1459 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
1460
1461 * config/h8300/h8300.md (*subhi3_h8300): Remove '&' from the
1462 constraint.
1463 (*subhi3_h8300hs): Likewise.
1464
1465 2003-11-28 David Edelsohn <edelsohn@gnu.org>
1466
1467 * config/rs6000/rs6000.h (MASK_MFCRF): New.
1468 (TARGET_MFCRF): Test target_flags, not processor type.
1469 (TARGET_SWITCHES): Add mfcrf and no-mfcrf.
1470 Change Don't to Do not.
1471 * config/rs6000/rs6000.c (processors_target_table): Add MASK_MFCRF
1472 to power4, 970, G5.
1473
1474 2003-11-27 J"orn Rennecke <joern.rennecke@superh.com>
1475
1476 * cse.c (cse_set_around_loop): When changing a constant load
1477 to a register -register copy, add a REG_EQUAL note.
1478
1479 2003-11-27 Randolph Chung <tausq@debian.org>
1480 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1481
1482 * pa.c (hppa_profile_hook): Split gen_call_profiler into separate
1483 insns. Use the regular call expander for the call to the profiler.
1484 * pa.md (call_profiler): Delete.
1485 (load_offset_label_address): New insn to load the address of the
1486 current function for the profiler.
1487 (lcla1, lcla2): New insns to output a code label and load its address.
1488
1489 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1490
1491 * final.c (final_scan_insn): Remove commented-out code.
1492
1493 2003-11-27 Nathanael Nerode <neroden@gcc.gnu.org>
1494
1495 * doc/install.texi: Remove ADAC reference and make accurate.
1496
1497 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1498
1499 * config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG.
1500 (FUNCTION_VALUE_REGNO_P): Likewise.
1501 * config/h8300/h8300.md: Define R0_REG.
1502
1503 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1504
1505 * config/h8300/h8300.c: Fix formatting.
1506 * config/h8300/h8300.md: Likewise.
1507
1508 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1509
1510 * config/h8300/h8300.h (ELIMINABLE_REGS): Update a comment.
1511
1512 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1513
1514 * config/h8300/h8300.md: Give names to anonymous insns.
1515
1516 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1517
1518 * config/h8300/h8300.md (extendqisi2): Remove constraints.
1519
1520 2003-11-27 Gunther Nikl <gni@gecko.de>
1521
1522 * doc/tm.texi (SYSROOT_HEADERS_SUFFIX_SPEC): Fix typo.
1523
1524 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1525
1526 PR optimization/13041
1527 * final.c (frame_pointer_needed): Fix comment.
1528 * reload1.c (reload): Decrease alignment of the frame
1529 pointer if it was used for register allocation.
1530
1531 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1532
1533 PR target/12900
1534 * reg-stack (move_for_stack_reg): New prototype. Return
1535 whether a control flow insn was deleted.
1536 (subst_stack_regs_pat): Likewise, using the information provided
1537 by move_for_stack_reg.
1538 (subst_stack_regs): Likewise, using the information provided
1539 by subst_stack_regs_pat.
1540 (convert_regs_1): Record whether a control flow insn was deleted,
1541 using the information provided by subst_stack_regs. Purge dead
1542 edges only if a control flow insn was deleted.
1543
1544 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1545
1546 PR middle-end/8028
1547 PR middle-end/9890
1548 PR middle-end/11151
1549 PR middle-end/12210
1550 PR middle-end/12503
1551 PR middle-end/12692
1552 * builtins.c (expand_builtin_apply): Use virtual_outgoing_args_rtx
1553 as the base address to copy the memory arguments to.
1554
1555 2003-11-26 Danny Smith <dannysmith@users.sourceforge.net>
1556
1557 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare
1558 function aliases as functions.
1559
1560 2003-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
1561
1562 * aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal
1563 of ADAC.
1564 * configure: Regenerate.
1565
1566 * Makefile.in: Remove references to ADAC.
1567
1568 * configure.in: Remove check for whether ${ADAC} accepts -Wno-long-long.
1569 * configure: Regenerate.
1570
1571 2003-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
1572 Olivier Hainque <hainque@act-europe.fr>
1573
1574 PR target/6466
1575 * config/sparc/sparc-protos.h (compute_frame_size): New prototype.
1576 (sparc_flat_compute_frame_size): Likewise.
1577 (sparc_flat_save_restore): Move prototype...
1578 * config/sparc/sparc.c (sparc_flat_save_restore): ...here.
1579 (save_regs): New prototype.
1580 (build_big_number): Likewise.
1581 (apparent_fsize): Change type to HOST_WIDE_INT.
1582 (actual_fsize): Likewise.
1583 (frame_base_offset): Likewise.
1584 (build_big_number): Add support for HOST_BITS_PER_WIDE_INT == 64.
1585 Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
1586 [TARGET_ARCH64]: Use the sequence of sparc_emit_set_const64_longway
1587 to load a 64-bit constant.
1588 (sparc_nonflat_function_prologue): Change string descriptor to
1589 HOST_WIDE_INT_PRINT_DEC. Change offset type to HOST_WIDE_INT.
1590 (output_restore_regs): Change offset type to HOST_WIDE_INT.
1591 (sparc_nonflat_function_epilogue): Change string descriptor to
1592 HOST_WIDE_INT_PRINT_DEC. Use build_big_number.
1593 (output_sibcall): Change size type to HOST_WIDE_INT. Use
1594 build_big_number. Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
1595 (sparc_frame_info): Change types for several components.
1596 (sparc_flat_compute_frame_size): Update types according to previous
1597 change.
1598 (sparc_flat_function_prologue): Change string descriptor to
1599 HOST_WIDE_INT_PRINT_DEC. Change offset type to int. Use
1600 build_big_number.
1601 (sparc_flat_function_epilogue): Change offset type to int.
1602 Rename 'size1' into 'reg_offset1'. Change string descriptor to
1603 HOST_WIDE_INT_PRINT_DEC. Use build_big_number. Change big number
1604 limit to 4096 instead of 4095.
1605
1606 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Change offset type to
1607 HOST_WIDE_INT.
1608
1609 2003-11-24 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1610
1611 * function.c: Make outer_function-chain external.
1612 * function.h: Likewise.
1613
1614 2003-11-24 Richard Sandiford <rsandifo@redhat.com>
1615
1616 * config.gcc (mips-sgi-irix6*): Add t-iris6gld to tmake_file when
1617 using GNU ld.
1618 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC): New, taking the
1619 whole of the previous STARTFILE_SPEC except crtbegin.o%s.
1620 (IRIX6_ENDFILE_SPEC): Likewise ENDFILE_SPEC and crtend.o%s.
1621 (STARTFILE_SPEC, ENDFILE_SPEC): Define in terms of the above.
1622 (SUBTARGET_EXTRA_SPECS): Define.
1623 * config/mips/iris6gld.h (LINK_SPEC): Change -init function
1624 to __gcc_init and -fini function to __gcc_fini.
1625 (STARTFILE_SPEC): Redefine, including irix6-crti.o before crtbegin.o.
1626 (ENDFILE_SPEC): Likewise, including irix6-crtn.o after crtend.o.
1627 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Define.
1628 * config/mips/t-iris6gld,
1629 * config/mips/irix6-crti.asm,
1630 * config/mips/irix6-crtn.asm: New files.
1631
1632 2003-11-24 Eric Christopher <echristo@redhat.com>
1633
1634 PR C/13014
1635 * c-decl.c (c_in_iteration_stmt, c_in_case_stmt): New.
1636 (start_function): Use.
1637 (c_push_function_context): Ditto.
1638 (c-pop_function_context): Ditto.
1639 (language_function): Move...
1640 * c-tree.h: ... here. Add x_in_iteration_stmt, and
1641 x_in_case_stmt.
1642 * c-parse.in (do_stmt_start, select_or_iter_stmt, stmt): Use
1643 c_in_iteration_stmt, c_in_case_stmt for parser state. Move
1644 check for valid break or continue statment here...
1645 * c-semantics.c (genrtl_break_stmt, genrtl_continue_stmt): From
1646 here. Change original errors to abort.
1647
1648 2003-11-24 Jan Hubicka <jh@suse.cz>
1649
1650 * fold-const.c (fold): Do not return early when optimizing
1651 COMPONENT_REF and constant.
1652
1653 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
1654
1655 * config/h8300/h8300.md (tablejump_h8300): Change to
1656 *tablejump_h8300.
1657 (tablejump_h8300h): Change to *tablejump_h8300hs_advanced.
1658 (tablejump_normal_mode): Change to *tablejump_h8300hs_normal.
1659 (indirect_jump_h8300): Change to *indirect_jump_h8300.
1660 (indirect_jump_h8300h): Change to
1661 *indirect_jump_h8300hs_advanced.
1662 (indirect_jump_normal_mode): Change to
1663 *indirect_jump_h8300hs_normal.
1664
1665 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
1666
1667 * config/h8300/h8300.md: Remove constraints from expanders.
1668
1669 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
1670
1671 * config/h8300/h8300.md: (stm_h8300s_2): Change the name to
1672 stm_h8300s_2_advanced.
1673 (stm_h8300s_2_normal): New.
1674 (stm_h8300s_2): Likewise.
1675 (stm_h8300s_3): Change the name to stm_h8300s_3_advanced.
1676 (stm_h8300s_3_normal): New.
1677 (stm_h8300s_3): Likewise.
1678 (stm_h8300s_4): Change the name to stm_h8300s_4_advanced.
1679 (stm_h8300s_4_normal): New.
1680 (stm_h8300s_4): Likewise.
1681 (ldm_h8300s_2): Change the name to ldm_h8300s_2_advanced.
1682 (ldm_h8300s_2_normal): New.
1683 (ldm_h8300s_2): Likewise.
1684 (ldm_h8300s_3): Change the name to ldm_h8300s_3_advanced.
1685 (ldm_h8300s_3_normal): New.
1686 (ldm_h8300s_3): Likewise.
1687 (ldm_h8300s_4): Change the name to ldm_h8300s_4_advanced.
1688 (ldm_h8300s_4_normal): New.
1689 (ldm_h8300s_4): Likewise.
1690 (two peephole2's): Enable only with !TARGET_NORMAL_MODE.
1691 (two peephole2's): New.
1692
1693 2003-11-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1694
1695 * genattrtab.c (simplify_cond): Update indices correctly.
1696 (attr_alt_subset_p, attr_alt_subset_of_compl_p, attr_alt_intersection,
1697 attr_alt_union, attr_alt_complement, attr_alt_bit_p, mk_attr_alt): New.
1698 (check_attr_test, encode_units_mask, compute_alternative_mask,
1699 make_alternative_compare, simplify_and_tree,
1700 attr_rtx_cost, simplify_test_exp, gen_attr,
1701 write_test_expr, walk_attr_value): Handle EQ_ATTR_ALT.
1702 * rtl.def (EQ_ATTR_ALT): New.
1703
1704 2003-11-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1705
1706 * genattrtab.c (strcmp_check, DEF_ATTR_STRING): New macros.
1707 (length_str, delay_type_str, delay_1_0_str, num_delay_slots_str):
1708 New variables.
1709 (main): Initialize them.
1710 (find_attr): Canonicalize the attribute name string.
1711 (attr_rtx_1, copy_boolean, expand_delays, gen_unit): Always canonicalize
1712 string arguments.
1713 (attr_printf, attr_eq): Use DEF_ATTR_STRING.
1714 (check_attr_test, check_attr_value, make_length_attrs,
1715 write_length_unit_log, simplify_by_exploding, gen_attr,
1716 write_test_expr, write_attr_value, write_eligible_delay,
1717 write_complex_function, make_internal_attr,
1718 write_const_num_delay_slots): Changed due to change of type of
1719 find_attr.
1720 (fill_attr, evaluate_eq_attr, simplify_and_tree,
1721 attr_rtx_cost, simplify_by_exploding, walk_attr_value): Use
1722 strcmp_check.
1723
1724 2003-11-23 Kazu Hirata <kazu@cs.umass.edu>
1725
1726 PR target/13122
1727 * config/h8300/h8300.c (push): Call push_h8300hs_normal in
1728 normal mode.
1729 (pop): Call pop_h8300hs_normal in normal mode.
1730 * config/h8300/h8300.md: Likewise.
1731 (pushqi1_h8300hs_normal): New.
1732 (pushqi1): Call pushqi1_h8300hs_normal in normal mode.
1733 (pushhi1_h8300hs_normal): New.
1734 (pushhi1): Call pushhi1_h8300hs_normal in normal mode.
1735 (push_h8300hs_normal): New.
1736 (pop_h8300hs_normal): Likewise.
1737
1738 2003-11-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1739
1740 * genattrtab.c (count_sub_rtxs): Removed.
1741
1742 2003-11-23 Richard Earnshaw <rearnsha@arm.com>
1743
1744 * recog.c (preprocess_constraints): Only zero those elements of
1745 recog_op_alt that are needed for this insn.
1746 * arm.c (note_invalid_constants): A function can't contain invalid
1747 constants if it has no constraints.
1748
1749 2003-11-22 Jan Hubicka <jh@suse.cz>
1750
1751 * i386.c (classify_argument): Pass __float128 in memory.
1752 (ix86_return_in_memory): Likewise.
1753 (ix86_libcall_value): Likewsie.
1754
1755 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
1756
1757 * config/h8300/h8300.c (dosize): Convert to ISO-C.
1758
1759 2003-11-22 J"orn Rennecke <joern.rennecke@superh.com>
1760
1761 * flow.c (update_life_info): Amend comment about when a register
1762 can become dead.
1763
1764 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
1765
1766 * doc/.cvsignore: Delete.
1767
1768 2003-11-21 Daniel Berlin <dberlin@dberlin.org>
1769 David Edelsohn <edelsohn@gnu.org>
1770
1771 * dwarf2out.c (add_location_or_const_value_attribute): Add support
1772 for PARALLEL.
1773
1774 2003-11-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1775
1776 * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
1777 (TARGET_LIBGCC2_CFLAGS): Define.
1778
1779 * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare.
1780 (__do_global_ctors): Likewise.
1781
1782 2003-11-21 Mark Wielaard <mark@klomp.org>
1783
1784 * doc/invoke.texi (-O2): Doesn't enable -fweb.
1785
1786 2003-11-21 Kazu Hirata <kazu@cs.umass.edu>
1787
1788 * doc/invoke.texi: Mention dV and dZ.
1789
1790 2003-11-21 Kazu Hirata <kazu@cs.umass.edu>
1791
1792 * doc/invoke.texi: Update dump file names.
1793 Remove de, dW, and dX.
1794
1795 2003-11-20 James E Wilson <wilson@specifixinc.com>
1796
1797 PR c/13133
1798 * reload1.c (reload): Delete special handling for setjmp.
1799
1800 2003-11-21 Andreas Tobler <a.tobler@schweiz.ch>
1801
1802 * mklibgcc.in: Evaluate shlib_slibdir_qual during link
1803 step too.
1804 * config/t-slibgcc-darwin: Adjust install path.
1805 * config/rs6000/t-darwin: Revert multilib matches since
1806 it is not used on darwin.
1807
1808 2003-11-20 Richard Henderson <rth@redhat.com>
1809
1810 * ssa.c, ssa-dce.c, ssa-ccp.c: Remove files.
1811 * Makefile.in (OBJS-common, GTFILES): Don't reference them.
1812 (gtype-desc.o, toplev.o, flow.o): Remove ssa.h.
1813 (ssa.o, ssa-dce.o, ssa-ccp.o): Remove.
1814 * flow.c: Don't include ssa.h.
1815 (set_phi_alternative_reg): Remove.
1816 (calculate_global_regs_live): Don't call it.
1817 (mark_used_regs): Don't handle PHI.
1818 * gengtype.c (open_base_files): Don't reference ssa.h.
1819 * rtl.def (PHI): Remove.
1820 * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill.
1821 * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce.
1822 * opts.c (common_handle_option): Likewise.
1823 * toplev.c (f_options): Likewise.
1824 (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove.
1825 (dump_file): Update to match.
1826 (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove.
1827 (rest_of_handle_ssa): Remove.
1828 (rest_of_compilation): Don't call it.
1829 * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove.
1830 * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce.
1831 * doc/passes.texi (SSA optimizations): Remove.
1832
1833 2003-11-20 Bob Wilson <bob.wilson@acm.org>
1834
1835 * configure.in: Add xtensa-*-* targets to test for dwarf2 debug_line.
1836 * configure: Regenerate.
1837
1838 2003-11-20 Kelley Cook <kcook@gcc.gnu.org>
1839
1840 * Makefile.in (Makefile): Pass along CONFIG_SHELL.
1841
1842 2003-11-20 David Mosberger <davidm@hpl.hp.com>
1843
1844 * config/t-libunwind (LIB2ADDEH): Add unwind-c.c.
1845 (SHLIB_LC): Define.
1846 * unwind-libunwind.c (_Unwind_GetCFA): Implement.
1847 (_Unwind_GetBSP) [UNW_TARGET_IA64]: New function.
1848
1849 2003-11-20 Fariborz Jahanian <fjahanian@apple.com>
1850 David Edelsohn <edelsohn@gnu.org>
1851
1852 * calls.c (expand_call): Allocate new temp in pass1.
1853 (store_one_arg): If PARALLEL, calculate excess using mode size of
1854 rtvec elt.
1855 * expr.c (emit_push_insn): If PARALLEL, calculate offset using
1856 mode size of rtvec elt.
1857 * function.c (assign_parms): Use parm in register, if available.
1858
1859 2003-11-20 Kazu Hirata <kazu@cs.umass.edu>
1860
1861 * config/h8300/lib1funcs.asm (MOVP): Remove.
1862 (ADDP): Likewise.
1863 (CMPP): Likewise.
1864
1865 2003-11-20 Richard Earnshaw <rearnsha@arm.com>
1866
1867 * arm.c (use_return_insn): New argument, SIBLING. Support returning
1868 with a single instruction if the stack has been decremented by 4
1869 and we have a frame pointer. Update all callers.
1870 (output_return_instruction): Likewise.
1871 (arm_output_epilogue): Change argument to SIBLING. Calculate
1872 really_return from the new argument. Update all callers.
1873 * arm.h (USE_RETURN_INSN): Pass NULL for the sibling.
1874 * arm.md (sibcall_epilogue): Call use_return_insn directly, and
1875 pass the sibling call.
1876 * arm-protos.h (use_return_insn, arm_output_epilogue): Update
1877 prototypes.
1878
1879 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
1880
1881 * Makefile.in (extraclean): Delete.
1882 * configure.in (target_list): Remove extraclean.
1883 * configure: Regenerate.
1884 * doc/makefile.texi, doc/sourcebuild.texi: Update.
1885 * objc/Make-lang.in (objc.extraclean): Delete.
1886
1887 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
1888
1889 * Makefile.in (lang_checks): Add.
1890 (check-c++, check-f77, check-java, check-g++, check-g77,
1891 check-objc): Remove hardcoded targets.
1892 * doc/sourcebuild.texi: Document testsuite hooks.
1893 * objc/Make-lang.in (check-objc, lang_checks): Add.
1894
1895 2003-11-19 Scott Snyder <snyder@fnal.gov>
1896
1897 PR target/13131
1898 * dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a
1899 flag, not a constant.
1900
1901 2003-11-19 Kelley Cook <kcook@gcc.gnu.org>
1902
1903 * config/arc/arc-protos.h: Update to C90 prototypes.
1904 * config/arc/arc.c: Likewise.
1905 * config/arc/initfini.c: Likewise.
1906
1907 2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
1908
1909 * stmt.c (expand_goto): Memory clobbers added.
1910
1911 2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
1912
1913 * reload.c (find_reloads): Added missing type casts.
1914
1915 2003-11-19 James E Wilson <wilson@specifixinc.com>
1916
1917 * combine.c (sets_function_arg_p): Delete unused function.
1918
1919 2003-11-19 Eric Christopher <echristo@redhat.com>
1920
1921 * reload1.c (reload): Revert 2 previous checkins.
1922
1923 2003-11-19 Nathanael Nerode <neroden@gcc.gnu.org>
1924
1925 * cpptrad.c (_cpp_scan_out_logical_line): Improve test for
1926 whether directive begins at the beginning of a line.
1927
1928 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
1929
1930 * config/frv/frv.c (frv_init_libfuncs): Correct ufix_optab entries.
1931
1932 2003-11-19 Gerald Pfeifer <gp@suse.de>
1933
1934 * doc/install.texi (Specific): Remove information on old versions
1935 of glibc versus old versions of GCC.
1936
1937 2003-11-19 Richard SAndiford <rsandifo@redhat.com>
1938
1939 * emit-rtl.c (gen_lowpart): Don't force MEMs into a register unless
1940 the register lowpart is a TRULY_NOOP_TRUNCATION.
1941
1942 2003-11-19 Richard Henderson <rth@redhat.com>
1943
1944 * config/i386/i386.c (print_reg): Handle QI and HI modes for
1945 non Q regs.
1946
1947 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
1948
1949 * config/config.gcc (powerpc-*-darwin*): Add libgcc build
1950 specification file.
1951 * config/t-slibgcc-darwin: New file, libgcc build specification.
1952 * config/t-darwin: Add libgcc2 flag -fPIC.
1953 * config/rs6000/t-darwin: Multilib matches float.
1954 * libgcc-darwin.ver: New file, contains libgcc symbols.
1955
1956 2003-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
1957
1958 * config/ns32k/ns32k.h: Remove obsolete comment.
1959
1960 2003-11-18 Roger Sayle <roger@eyesopen.com>
1961
1962 PR middle-end/11821
1963 * config/arm/arm.c (arm_rtx_costs_1): Improve estimate of the code
1964 size for calls to libgcc's div & mod subroutines when using -Os.
1965
1966 2003-11-18 Jan Hubicka <jh@suse.cz>
1967
1968 * cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
1969
1970 2003-11-18 Marc Espie <espie@openbsd.org>
1971
1972 * config/rs6000/sysv4.h: OpenBSD hooks.
1973
1974 2003-11-18 Richard Henderson <rth@redhat.com>
1975
1976 * expr.c (expand_expr): Don't look through constant arrays if
1977 they don't bind locally.
1978
1979 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1980
1981 * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
1982 when seeing if truncation or extension.
1983
1984 2003-11-17 Eric Christopher <echristo@redhat.com>
1985
1986 * reload1.c (reload): Fix previous change.
1987
1988 2003-11-17 Scott Snyder <snyder@fnal.gov>
1989
1990 PR debug/11325
1991 * dwarf2out.c (struct die_struct): Add die_definition field.
1992 (add_AT_specification): New.
1993 (gen_subprogram_die, gen_variable_die,
1994 gen_struct_or_union_type_die): Use it.
1995 (prune_unused_types_mark): If we're marking a forward declaration,
1996 also mark the full definition, if it exists.
1997
1998 2003-11-16 Nick Clifton <nickc@redhat.com>
1999
2000 * config/stormy16/stormy16.h (BUILD_VA_LIST_TYPE): Delete.
2001 * config/stormy16/stormy16-protos.h (xstormy16_build_va_list):
2002 Remove prototype.
2003 * config/stormy16/stormy16.c (xstormy16_build_va_list): Rename
2004 to xstormy16_build_builtin_va_list and make static.
2005 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
2006
2007 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2008
2009 * config/h8300/h8300-protos.h: Add the prototype for
2010 same_cmp_following_p.
2011 * config/h8300/h8300.c (same_cmp_following_p): New.
2012 * config/h8300/h8300.md (peephole2): Use it.
2013
2014 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2015
2016 * config/h8300/h8300.md: Don't use REGNO when its operand is
2017 not guaranteed to be a REG.
2018
2019 2003-11-16 Richard Sandiford <rsandifo@redhat.com>
2020
2021 * Makefile.in (expr.o): Depend on $(TARGET_H).
2022 * target.h (return_in_msb): New target hook.
2023 * target-def.h (TARGET_RETURN_IN_MSB): New macro.
2024 (TARGET_CALLS): Include it.
2025 * calls.c (shift_returned_value): New function.
2026 (expand_call): Use it.
2027 * expr.c: Include target.h.
2028 (copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
2029 deciding what padding is needed. Change the name of the local
2030 padding variable from big_endian_correction to padding_correction.
2031 * stmt.c (shift_return_value): New function.
2032 (expand_return): Use it. Adjust memory->register copy in the same
2033 way as copy_blkmode_from_reg. Only change the return register's
2034 mode if it was originally BLKmode.
2035 * doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
2036 * config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
2037 (mips_fpr_return_fields): New, split out from mips_function_value.
2038 (mips_return_in_msb, mips_return_fpr_pair): New functions.
2039 (mips_function_value): Rework to use the functions above.
2040 * config/mips/irix6-libc-compat.c: Delete.
2041 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.
2042
2043 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2044
2045 * doc/install.texi (--enable-checking): Update valgrind's URL.
2046
2047 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2048
2049 * config/h8300/h8300.md: Fix warnings by replacing -2147483648
2050 with -2147483647 - 1.
2051
2052 2003-11-16 Gerald Pfeifer <gerald@pfeifer.com>
2053
2054 Fix links in online manuals.
2055 * doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
2056 (Precompiled Headers): @pxref to cpp, not cpp.info.
2057
2058 2003-11-16 Jason Merrill <jason@redhat.com>
2059
2060 * Makefile.in, objc/Make-lang.in (objc.tags): Create TAGS.sub
2061 files in each directory and TAGS files that include them for each
2062 front end.
2063
2064 2003-11-15 Kazu Hirata <kazu@cs.umass.edu>
2065
2066 * config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
2067 3 of S2L.
2068 (modnorm): Likewise.
2069 (exitdiv): Look at bit 3 of S2L only.
2070
2071 2003-11-15 Kazu Hirata <kazu@cs.umass.edu>
2072
2073 * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
2074 (DO_GLOBAL_DTORS_BODY): Likewise.
2075
2076 2003-11-15 Joseph S. Myers <jsm@polyomino.org.uk>
2077
2078 * doc/install.texi (Prerequisites): Refine documentation of
2079 autoconf, automake and perl requirements. Document required
2080 gettext version.
2081
2082 <2003-11-14 Jason Merrill <jason@redhat.com>
2083
2084 * function.c (assign_parms): Use TREE_TYPE to determine the real
2085 type of the argument object.
2086
2087 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
2088
2089 * config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
2090 iteration.
2091
2092 2003-11-14 Fariborz Jahanian <fjahanian@apple.com>
2093
2094 * config/rs6000/rs6000.c (rs6000_move_block_from_reg):
2095 New routine to save vararg registers on stack. Support for
2096 -mpowerpc64 in mixed mode.
2097
2098 2003-11-14 Bernardo Innocenti <bernie@develer.com>
2099
2100 * config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
2101 for MOTOROLA versus MIT syntax. Improves readability and provides
2102 better compile-time error checking for both code paths.
2103
2104 2003-11-14 Kelley Cook <kcook@gcc.gnu.org>
2105
2106 * config/frv/frv-protos.h: Update for C90.
2107 * config/frv/frv.h: Likewise.
2108 * config/frv/frvbegin.c: Likewise.
2109 * config/frv/frv.c: Likewise.
2110 (frv_adjust_field_align): Delete unused variable.
2111
2112 2003-11-14 Geoffrey Keating <geoffk@apple.com>
2113
2114 * config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
2115 to each place where TARGET_LONG_DOUBLE_128 is used with
2116 DEFAULT_ABI == ABI_AIX.
2117
2118 * cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
2119 message comply with GNU standards.
2120
2121 2003-11-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2122
2123 PR/6552
2124 * function.c (struct epi_info): New field const_equiv.
2125 (update_epilogue_consts): New function.
2126 (keep_stack_depressed): Clear new field and verify scratch register
2127 doesn't have it set.
2128 Call new function via note_stores.
2129 (handle_epilogue_set): Allow setting SP equiv reg in different mode.
2130 Allow PLUS where second operand is register known set to constant.
2131 (emit_equiv_load): Write load using proper mode if source different.
2132 * config/mips/mips.md (return_internal): Put (return) first.
2133
2134 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
2135
2136 * config/h8300/lib1funcs.asm (___udivsi3): Add a comment.
2137
2138 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
2139
2140 * config/h8300/lib1funcs.asm (modsi3): Don't save unused
2141 registers.
2142 (divsi3): Likewise.
2143 (reti): Don't restore unused registers.
2144
2145 2003-11-14 Nick Clifton <nickc@redhat.com>
2146
2147 * config/fr30/fr30.c: Include toplev.h
2148
2149 2003-11-14 Richard Earnshaw <rearnsha@arm.com>
2150
2151 * except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.
2152
2153 2003-11-14 Richard Earnshaw <rearnsha@arm.com>
2154
2155 * arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C
2156 function definition syntax.
2157
2158 2003-11-14 Eric Christopher <echristo@redhat.com>
2159
2160 * reload1.c (reload): Revert previous patch. Make
2161 check for assignment into reg_equiv_address stricter.
2162
2163 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
2164
2165 * Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS.
2166
2167 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
2168
2169 * config/frv/frv.c (frv_in_small_data_p): Return false for unknown
2170 section names.
2171
2172 2003-11-14 Jason Merrill <jason@redhat.com>
2173
2174 PR middle-end/12526
2175 * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
2176 * calls.c (call_expr_flags): New fn.
2177 * tree.h: Declare it.
2178
2179 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2180
2181 * config/h8300/lib1funcs.asm (__udivsi3): Remove.
2182 (divmodsi3): Change the name to ___udivsi3.
2183 Update all callers.
2184
2185 2003-11-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2186
2187 * libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
2188 __mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
2189 __ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
2190 __udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
2191 __fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
2192 __floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
2193 Const-ify and/or initialize automatic variables at declaration.
2194
2195 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2196
2197 * config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
2198 of er4 with er3. Adjust all callers.
2199
2200 2003-11-13 Andrew Pinski <apinski@apple.com>
2201
2202 * config/darwin.c (machopic_output_possible_stub_label):
2203 Allow stub symbol be not defined when outputting possible
2204 stub label.
2205
2206 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2207
2208 * config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
2209 instead of exitdiv.
2210 (___umodsi3): Likewise.
2211 (exitdiv): Do not restore any register.
2212 (reti): Restore registers.
2213
2214 2003-11-13 Steven Bosscher <stevenb@suse.de>
2215
2216 * tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
2217
2218 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2219
2220 * config/h8300/lib1funcs.asm: Fix comment typos.
2221
2222 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2223
2224 * config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
2225 unused registers. Don't jump to exitdiv.
2226 (umodsi3): Likewise.
2227
2228 2003-11-13 Mark Mitchell <mark@codesourcery.com>
2229 Kean Johnston <jkj@sco.com>
2230
2231 PR c/13029
2232 * toplev.c (check_global_declarations): Do not warn about unused
2233 static consts.
2234
2235 2003-11-13 Pavel Pisa <pisa@cmp.felk.cvut.cz>
2236 Kazu Hirata <kazu@cs.umass.edu>
2237
2238 * config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
2239 the approximate quotient method.
2240
2241 2003-11-13 Richard Earnshaw <rearnsha@arm.com>
2242
2243 * combine.c (distribute_notes): When re-distributing the notes from
2244 an insn we are about to delete, ensure we can't end up with a cyclic
2245 list of notes.
2246
2247 2003-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2248
2249 PR optimization/12926
2250 * expr.c (expand_assignment) [COMPONENT_REF]: Don't put
2251 the UNCHANGING_RTX_P flag on memory references to read-only
2252 components that are not addressable.
2253
2254 2003-11-12 Kazu Hirata <kazu@cs.umass.edu>
2255
2256 * config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
2257 DenHighNonZero.
2258
2259 2003-11-13 Jan Hubicka <jh@suse.cz>
2260
2261 PR opt/12275
2262 * c-decl.c (finish_decl): Use change_decl_assembler_name.
2263 * c-pragma.c (handle_pragma_redefine_extname): Likewise.
2264 * varasm.c (make_decl_rtl): Likewise.
2265 * cgraph.c (change_decl_assembler_name): New function.
2266 * tree.h (set_decl_assembler_name): Kill dead declaration.
2267 (change_decl_assembler_name): Declare.
2268
2269 * decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
2270 * decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
2271
2272 2003-11-12 Kazu Hirata <kazu@cs.umass.edu>
2273
2274 * config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
2275 an unused register.
2276
2277 2003-11-12 Richard Sandiford <rsandifo@redhat.com>
2278
2279 PR bootstrap/12752
2280 * config/mips/t-iris6 (MULTILIB_OPTIONS): Put -mabi=n32 first.
2281 (MULTILIB_OSDIRNAMES): Reorder accordingly.
2282
2283 2003-11-12 Janis Johnson <janis187@us.ibm.com>
2284
2285 * rs6000-protos.h (rs6000_initial_elimination_offset): Add.
2286 (rs6000_stack_info): Remove. (debug_stack_info): Remove.
2287 (rs6000_emit_eh_reg_restore): Add
2288 * rs6000.c (rs6000_stack_t): Move from rs6000.h, change data type
2289 of vars_size and total_size to HOST_WIDE_INT.
2290 (emit_frame_save): Change parameter size to HOST_WIDE_INT.
2291 (rs6000_stack_info): Make static; change data size to HOST_WIDE_INT.
2292 (debug_stack_info): Make static; change output format of HOST_WIDE_INT
2293 values.
2294 (rs6000_emit_eh_reg_restore): New, with code formerly in rs6000.md.
2295 (rs6000_initial_elimination_offset): New, with code formerly in
2296 INITIAL_ELIMINATION_OFFSET.
2297 * rs6000.h (rs6000_stack_t): Remove.
2298 (INITIAL_ELIMINATION_OFFSET): Replace code with call to function
2299 rs6000_initial_elimination_offset.
2300 * rs6000.md (UNSPECV_EH_RR split): Replace code with call to
2301 rs6000_emit_eh_reg_restore.
2302
2303 2003-11-12 Mike Stump <mrs@apple.com>
2304
2305 * c-typeck.c (c_convert_parm_for_inlining): Add argnum, which
2306 is the argumnt we are processing so that warnings and errors
2307 will have that information.
2308 * c-tree.h (c_convert_parm_for_inlining): Add argnum.
2309 * lang-hooks-def.h
2310 (lhd_tree_inlining_convert_parm_for_inlining): Likewse.
2311 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): Likewise.
2312 * langhooks.h (convert_parm_for_inlining): Likewise.
2313 * tree-inline.c (initialize_inlined_parameters): Compute and
2314 pass argnum down.
2315
2316 2003-11-12 Alexey Starovoytov <alexey.starovoytov@sun.com>
2317 Roger Sayle <roger@eyesopen.com>
2318
2319 PR optimization/12953
2320 * tree-inline.c (inline_forbidden_p_1): Added check for BUILT_IN
2321 before switch by FUNCTION_CODE.
2322
2323 2003-11-12 Richard Earnshaw <rearnsha@arm.com>
2324
2325 * arm.md (storehi): Avoid use of explicit subreg.
2326 (storehi_bigend, storeinthi, movhi_bigend): Likewise.
2327
2328 2003-11-12 J"orn Rennecke <joern.rennecke@superh.com>
2329
2330 * config/sh/sh.md (prefetch): New pattern.
2331
2332 2003-11-11 Eric Christopher <echristo@redhat.com>
2333
2334 * reload1.c (reload): Verify that addresses for
2335 reg_equiv_* are valid for the architecture.
2336
2337 2003-11-11 Eric Christopher <echristo@redhat.com>
2338
2339 * function.c (purge_addressof_1): Add libcall check.
2340 Remove test for cached replacements on fallback case.
2341 Simplify mode comparisons. Add libcall test for
2342 paradoxical subregs.
2343
2344 2003-11-11 Kazu Hirata <kazu@cs.umass.edu>
2345
2346 * config/h8300/t-h8300: Fix an obsolete comment.
2347
2348 2003-11-11 James E Wilson <wilson@specifixinc.com>
2349
2350 * expmed.c (store_bit_field, extract_bit_field): Revert last two
2351 changes.
2352
2353 2003-11-11 Kazu Hirata <kazu@cs.umass.edu>
2354
2355 * config/h8300/lib1funcs.asm: Replace DenHighZero with
2356 DenHighNonZero.
2357
2358 2003-11-11 Jan Hubicka <jh@suse.cz>
2359
2360 * cgraphunit.c (cgraph_function_possibly_inlined_p): Use
2361 really_no_inline.
2362
2363 2003-11-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2364
2365 * pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when
2366 generating 64-bit code.
2367
2368 2003-11-10 David Edelsohn <edelsohn@gnu.org>
2369
2370 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
2371 accidental commit in previous change.
2372
2373 2003-11-10 Fariborz Jahanian <fjahanian@apple.com>
2374
2375 * config/rs6000/rs6000.h (STACK_SIZE_MODE): Add definition.
2376 * config/rs6000/rs6000.c (reg_or_mem_operand): Add macho-style
2377 address recognition.
2378 (macho_lo_sum_memory_operand): Routine to recognize macho-style
2379 address recognition.
2380
2381 2003-11-10 Richard Henderson <rth@redhat.com>
2382
2383 * dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
2384
2385 2003-11-10 Matt Austern <austern@apple.com>
2386
2387 * config/darwin-protos.h (darwin_assemble_visibility): Declare.
2388 * config/darwin.c (darwin_assemble_visibility): Define. Warn for
2389 anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
2390 * config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
2391 darwin_assemble_visibility instead of default.
2392
2393 2003-11-10 Waldek Hebisch <hebisch@math.uni.wroc.pl>
2394
2395 PR target/12865
2396 * config/sparc/sparc.c (sparc_initialize_trampoline): Call
2397 __enable_execute_stack only after writing onto the stack.
2398 (sparc64_initialize_trampoline): Likewise.
2399
2400 2003-11-09 Roger Sayle <roger@eyesopen.com>
2401
2402 * loop.c (check_dbra_loop): Try swapping the comparison operands
2403 of the loop condition to identify a suitable induction variable.
2404 * unroll.c (loop_iterations): Likewise.
2405
2406 2003-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2407
2408 * config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
2409 sparc64 #cpu and #machine assertions.
2410
2411 2003-11-09 Richard Henderson <rth@redhat.com>
2412
2413 * Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.
2414
2415 2003-11-09 Jan Hubicka <jh@suse.cz>
2416
2417 * tree-optimize.c (tree_rest_of_compilation): Fix warning.
2418
2419 * cgraphunit.c (cgraph_expand_function): Use
2420 cgraph_possibly_inlined_p.
2421 * tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.
2422
2423 * opts.c (common_handle_option): Do not set max-inline-insns.
2424 * params.def: Update comments.
2425 (PARAM_MAX_INLINE_INSNS): Kill.
2426 * invoke.texi (max-inline-insns): Kill.
2427
2428 2003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
2429
2430 PR c/3190
2431 PR c/8714
2432 * c-format.c (set_Wformat): Do not enable -Wformat-y2k by default.
2433 * invoke.texi: Update.
2434
2435 2003-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2436
2437 PR optimization/12630
2438 * pa.c (compute_movstrsi_length): Rename to compute_movstr_length.
2439 Handle length computation 64-bit moves.
2440 (compute_clrstr_length, output_block_clear): Implement block clear.
2441 (output_block_move): Handle 64-bit moves.
2442 (pa_adjust_insn_length): Use compute_movstr_length and
2443 compute_clrstr_length.
2444 * pa.md (movstrsi): Revise operand order and comments. Don't use
2445 match_scratch.
2446 (movstrsi_internal): Delete.
2447 (movstrsi_prereload, movstrsi_postreload): New insns. Define splitter
2448 and peephole2 patterns to transform prereload to postreload form.
2449 (movstrdi, movstrdi_prereload, movstrdi_postreload, clrstrsi,
2450 clrstrsi_prereload, clrstrsi_postreload, clrstrdi, clrstrdi_prereload,
2451 clrstrdi_postreload): New patterns for 64-bit block move, and block
2452 clear.
2453 * pa-protos.h (output_block_clear): New prototype.
2454
2455 2003-11-08 Andreas Schwab <schwab@suse.de>
2456
2457 * dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO ||
2458 XCOFF_DEBUGGING_INFO.
2459
2460 2003-11-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2461
2462 * dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
2463
2464 2003-11-07 Geoffrey Keating <geoffk@apple.com>
2465
2466 * config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
2467 redundant parens.
2468
2469 * cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
2470 (find_file_in_dir): Likewise.
2471 (_cpp_find_file): Print message if no header file is found
2472 but an invalid PCH file was.
2473
2474 2003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
2475
2476 * c-typeck.c (pedantic_lvalue_warning): Deprecate compound
2477 expressions as lvalues.
2478 (internal_build_compound_expr): Remove special handling for
2479 non-pedantic case.
2480 * doc/extend.texi: Document that all extended lvalues are now
2481 deprecated.
2482
2483 2003-11-07 Geoffrey Keating <geoffk@apple.com>
2484
2485 PR 11654
2486 * dbxout.c (struct dbx_file): Do not save for PCH.
2487 (current_file): Likewise.
2488 (dbxout_init): Don't allocate struct dbx_file using GC.
2489 (dbxout_start_source_file): Likewise.
2490
2491 2003-11-07 Falk Hueffner <falk@debian.org>
2492
2493 * config/alpha/elf.h, config/alpha/unicosmk.h,
2494 config/alpha/vms.h: Convert to ISO C90.
2495
2496 2003-11-07 Nathanael Nerode <neroden@gcc.gnu.org>
2497
2498 * config/arm/pe.h: Convert to ISO C90.
2499
2500 2003-11-07 J"orn Rennecke <joern.rennecke@superh.com>
2501
2502 * sh-protos.h (sh_pch_valid_p): Declare.
2503 * sh.c ("intl.h"): Include.
2504 (TARGET_PCH_VALID_P): Override.
2505 (sh_target_switches): New variable.
2506 (target_switches): Define.
2507 (sh_pch_valid_p): New function.
2508
2509 * sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI.
2510
2511 2003-11-07 Jan Hubicka <jh@suse.cz>
2512
2513 * i386.c (x86_64_sign_extended_value): Return false from tls variables.
2514 (x86_64_zero_extended_value): likewise.
2515
2516 2003-11-07 Richard Sandiford <rsandifo@redhat.com>
2517
2518 * config/mips/mips.md (loadgp): Take $25 as a second operand.
2519 * config/mips/mips.c (mips_expand_prologue): Modify accordingly.
2520
2521 2003-11-06 Matt Austern <austern@apple.com>
2522
2523 * c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
2524 field instead of hanging an attribute object off the decl.
2525 * tree.h (DECL_VISIBLITY): New accessor macro for
2526 symbol_visibility field in struct tree_decl.
2527 (enum symbol_visibility): Move definition to before tree_decl.
2528 (struct tree_decl): Define new two-bit field, symbol_visibility.
2529 (decl_visibility): Remove declaration.
2530 * varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
2531 instead of decl_visibility.
2532 (default_binds_local_p_1): Use DECL_VISIBILITY instead of
2533 decl_visibility.
2534 (decl_visibility): Remove.
2535
2536 2003-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2537
2538 * config/s390/s390.c (s390_emit_epilogue): Recognize more cases
2539 where register 14 will be saved.
2540
2541 2003-11-06 Geoffrey Keating <geoffk@apple.com>
2542
2543 * config/rs6000/rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
2544 (USE_ALTIVEC_FOR_ARG_P): Likewise.
2545 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Move from rs6000.h.
2546 Take a pointer as the CUM parameter. Update callers.
2547 (USE_ALTIVEC_FOR_ARG_P): Likewise. Also correct for Darwin/AIX
2548 32-bit ABIs.
2549 (function_arg_advance): Use USE_ALTIVEC_FOR_ARG_P. Correct case
2550 of vector parameters as named arguments of stdarg function.
2551 (function_arg): Likewise.
2552
2553 * config/rs6000/darwin.h (ASM_SPEC): Use -force_cpusubtype_ALL when
2554 -maltivec is specified, not the non-existent -faltivec.
2555
2556 2003-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2557
2558 * config/s390/s390-protos.h (s390_function_value): Declare.
2559 * config/s390/s390.c (TARGET_RETURN_IN_MEMORY): Define.
2560 (s390_return_in_memory): New function.
2561 (s390_function_value): New function.
2562 (s390_function_arg_float): Return false for all arguments larger
2563 than 8 bytes.
2564 (s390_function_arg_pass_by_reference): Likewise. Return true for
2565 all vector arguments.
2566 (s390_function_arg_integer): New function.
2567 (s390_function_arg_advance): Call it. Add sanity checks.
2568 (s390_function_arg): Likewise.
2569 * config/s390/s390.h (FUNCTION_VALUE): Call s390_function_value.
2570 (LIBCALL_VALUE): Likewise.
2571 (RET_REG): Remove.
2572 (RETURN_IN_MEMORY): Remove.
2573
2574 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
2575
2576 * config/mips/mips-protos.h (mips_initial_elimination_offset): Change
2577 return type to HOST_WIDE_INT.
2578 * config/mips/mips.c (mips_frame_info): Give sizes type HOST_WIDE_INT.
2579 Make initialized a bool. Make register masks unsigned ints.
2580 (compute_frame_size): Make same mask change here. Use HOST_WIDE_INT
2581 where appropriate.
2582 (mips_initial_elimination_offset): Return a HOST_WIDE_INT.
2583 (mips_output_function_prologue): Print sizes as HOST_WIDE_INTs.
2584
2585 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
2586
2587 * config/frv/frv.c (frv_initial_elimination_offset): Remove bogus
2588 negation.
2589
2590 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
2591
2592 * config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
2593
2594 2003-11-06 Momchil Velikov <velco@fadata.bg>
2595
2596 * config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT
2597 for VR4111 too.
2598
2599 2003-11-06 Jan Hubicka <jh@suse.cz>
2600
2601 * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
2602 missing casts.
2603
2604 2003-11-06 Zack Weinberg <zack@codesourcery.com>
2605
2606 * genmodes.c: Change the word "bitsize" to "precision" throughout.
2607 * machmode.def: Likewise.
2608 * machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
2609 (GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
2610 (GET_MODE_PRECISION): New macro.
2611 (mode_bitsize): Renamed mode_precision.
2612 * stor-layout.c (mode_for_size, smallest_mode_for_size):
2613 Use GET_MODE_PRECISION; clarify comments.
2614
2615 2003-11-05 Joseph S. Myers <jsm@polyomino.org.uk>
2616
2617 * doc/install-old.texi: Remove old documentation of building
2618 cross-compilers.
2619 * doc/install.texi: Move some of it to here.
2620
2621 2003-11-05 Per Bothner <pbothner@apple.com>
2622
2623 PR preprocessor/12891
2624 * c-opts.c (finish_options): Set include_cursor to disable premature
2625 calls to push_command_line_include from cpp_scan_nooutput.
2626 Fixes bug reported by DJ Delorie.
2627
2628 2003-11-05 Geoffrey Keating <geoffk@apple.com>
2629
2630 * config/rs6000/rs6000.c (setup_incoming_varargs): Remove
2631 code supporting old-style varargs.
2632
2633 * config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
2634 an intermediate register for better optimisation.
2635
2636 2003-11-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2637
2638 PR optimization/10080
2639 * cfgloopanal.c (variable_initial_value, variable_initial_values,
2640 simple_loop_exit_p): Record the fact that initial value is extended
2641 from inner mode.
2642 (count_strange_loop_iterations, count_loop_iterations): Handle
2643 ivs that iterate in a narrower mode. Fix handling of overflows.
2644 Improve handling of NE conditions.
2645 (inverse, fits_in_mode_p): New static functions.
2646 (simple_increment): Detect variables that iterate in a narrower mode.
2647 * cfgloop.h (struct loop_desc): Fields inner_mode and extend added.
2648
2649 2003-11-05 Geoffrey Keating <geoffk@apple.com>
2650
2651 * config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
2652 error.
2653
2654 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
2655 needs VRSAVE.
2656
2657 2003-11-05 Joseph S. Myers <jsm@polyomino.org.uk>
2658
2659 * c-typeck.c (pedantic_lvalue_warning): Deprecate use of
2660 conditional expressions as lvalues.
2661
2662 2003-11-05 Kazu Hirata <kazu@cs.umass.edu>
2663
2664 * tsystem.h: Add the prototype of strlen.
2665 * unwind-pe.h (read_encoded_value_with_base): Add an
2666 appropriate cast to handle a case where the pointer size is
2667 smaller than sizeof (int).
2668
2669 2003-11-04 Richard Sandiford <rsandifo@redhat.com>
2670
2671 * config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
2672 (mips_delegitimize_address): Delete.
2673 (mips_gotoff_global, mips_load_got_page): Declare.
2674 (mips_load_got_global, mips_rewrite_small_data): Declare.
2675
2676 * config/mips/mips.h (FIND_BASE_TERM): Remove definition.
2677 (DANGEROUS_FOR_LA25_P): Use global_got_operand.
2678 (PREDICATE_CODES): Add global_got_operand, local_got_operand and
2679 small_data_pattern. Remove CONST from const_arith_operand's entry.
2680
2681 * config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros.
2682 (UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise.
2683 (mips_constant_type): Delete.
2684 (mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL,
2685 SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP.
2686 (NUM_SYMBOL_TYPES): New macro.
2687 (mips_address_type): Remove ADDRESS_INVALID.
2688 (machine_function): Add has_gp_insn_p.
2689 (mips_constant_info): Delete.
2690 (mips_address_info): Add the address type as an extra field. Replace
2691 the c field with symbol_type.
2692 (mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays.
2693 (TARGET_DELEGITIMIZE_ADDRESS): Remove definition.
2694 (mips_reloc_offset_ok_p, mips_classify_constant): Delete.
2695 (mips_split_const, mips_symbolic_constant_p): New functions.
2696 (mips_symbolic_address_p): Take the symbol type and mode as arguments.
2697 (mips_classify_address): Return true if the address is valid, storing
2698 its type in INFO. Use mips_symbolic_constant_p. Use mips_lo_relocs[]
2699 to test whether a LO_SUM address is allowed.
2700 (mips_symbol_insns): Return 0 for general mips16 symbols.
2701 Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition.
2702 Handle the new SYMBOL_GOTOFF_*s.
2703 (mips_address_insns): Update call to mips_classify_address.
2704 (mips_const_insns): Be more fussy about HIGH constants. Remove use
2705 of mips_classify_constant. Be more accurate about CONSTs.
2706 (mips_global_pic_constant_p): Delete.
2707 (const_arith_operand): Only accept CONST_INTs.
2708 (call_insn_operand): Remove call to mips_classify_constant.
2709 Let mips_symbolic_constant_p check for invalid offsets.
2710 (move_operand): Check for general_operands first. Only accept symbolic
2711 constants if they satisfy mips_symbolic_constant_p and cannot be split.
2712 (symbolic_constant): Use mips_symbolic_constant_p.
2713 (global_got_operand, local_got_operand): New predicates.
2714 (stack_operand): Update call to mips_classify_address.
2715 (mips_legitimate_address_p): Likewise.
2716 (mips_reloc, mips_lui_reloc): Delete.
2717 (mips_force_temporary): Only use the given temporary if no_new_pseudos.
2718 Use emit_move_insn.
2719 (mips_split_symbol, mips_unspec_address): New functions.
2720 (mips_unspec_offset_high): New function.
2721 (mips_load_got): Replace reloc argument with a symbol_type.
2722 Use mips_unspec_address to create the address and put it in a
2723 LO_SUM with the base register.
2724 (mips_load_got16, mips_load_got32): Delete.
2725 (mips_emit_high, mips_legitimize_symbol): Delete.
2726 (mips_gotoff_global): New function.
2727 (mips_load_got_page, mips_load_got_global): New functions.
2728 (mips_legitimize_symbol): Inline handling of LO_SUM splits.
2729 (mips_legitimize_const_move): Likewise. Remove HIGH handling.
2730 Inline code to handle constants plus invalid offsets. Use
2731 mips_split_symbol to legitimize constant pool addresses.
2732 (mips_delegitimize_address): Delete.
2733 (mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs
2734 a cost of 1 insn. Give the rest a cost of CONSTANT_POOL_ADDRESS.
2735 (mips_subword): Pass memrefs through mips_rewrite_small_data.
2736 (mips_output_move): Remove use of mips_classify_constant.
2737 (mips_expand_call): Use mips_unspec_offset_high to calculate the
2738 high part of the GOT address for calls to global functions.
2739 (override_options): Initialize mips_split_p[], mips_lo_relocs[]
2740 and mips_hi_relocs[].
2741 (print_operand): Use print_operand_reloc to handle '%h' and '%R'.
2742 Remove use of mips_classify_constant.
2743 (mips_reloc_string): Delete.
2744 (print_operand_reloc): New function.
2745 (print_operand_address): Update call to mips_classify_address.
2746 (mips_rewrite_small_data_p, small_data_pattern_1): New functions.
2747 (small_data_pattern): New predicate.
2748 (mips_rewrite_small_data_1, mips_rewrite_small_data): New functions.
2749 (mips_function_has_gp_insn): New function.
2750 (mips_global_pointer): Use it.
2751 (mips_gp_insn): Delete.
2752 (mips_expand_prologue): When compiling for n32/n64 abicalls, use a
2753 single loadgp pattern to initialize $gp. Pass it the offset of _gp
2754 from the start of the current function.
2755 (mips16_gp_pseudo_reg): Revert last patch.
2756
2757 * config/mips/mips.md (RELOC_*): Delete.
2758 (UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants.
2759 (got): New insn attribute.
2760 (type): Set to "load" if got == load.
2761 (length): Set to 4 if got == load, 8 if got == xgot_high.
2762 (lui[sd]i): Delete.
2763 (*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns.
2764 (*got_disp[sd]i, *got_page[sd]i): Likewise.
2765 (*low[sd]i): Change constraints to "d". Add a new define_split to
2766 rewrite small data constants into LO_SUMs.
2767 (loadgp): New insns.
2768
2769 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2770
2771 * config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.
2772
2773 2003-11-04 DJ Delorie <dj@redhat.com>
2774
2775 * config/v850/v850.md (mulhisi3): Expand the const_int case
2776 separately to avoid trying to sign extend the const.
2777
2778 2003-11-04 Richard Sandiford <rsandifo@redhat.com>
2779
2780 * emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant
2781 addresses to be shared.
2782 (force_const_mem): Return a copy of the pool entry.
2783
2784 2003-11-03 Andreas Jaeger <aj@suse.de>
2785
2786 * Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.
2787
2788 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
2789
2790 * Makefile.in (cpp.dvi): New target split from cpp.info.
2791 (gcc.dvi): New target split from gcc.info.
2792 (gccint.dvi): New target split from gccint.info.
2793 (cppinternals.dvi): New target split from cppinternals.info
2794 (gccinstall.info): New specific rule.
2795 (gccinstall.dvi): Likewise.
2796 (dvi): Move targets to $(docobjdir).
2797 ($(docobjdir)/%.dvi): New implicit rule.
2798
2799 2003-11-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2800
2801 * doc/gty.texi (tag, desc): Say more about role of desc values in
2802 selecting between tags.
2803
2804 2003-11-03 Alexander Kabaev <ak03@gte.com>
2805
2806 * real.c (encode_ieee_single): Ensure proper promotion.
2807
2808 2003-11-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2809
2810 * doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner,
2811 and Andrew Pinski.
2812
2813 2003-11-03 Syd Polk <spolk@apple.com>
2814
2815 * config/rs6000/rs6000.c (rs6000_override_options): Add G3, G4, and G5
2816 marketing names to the list of supported processors.
2817 * config/rs6000/rs6000.h: Ditto.
2818 * doc/invoke.texi: Ditto.
2819 * config.gcc: Ditto.
2820
2821 2003-11-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2822
2823 * fixinc/inclhack.def (stdio_va_list): Allow tab before va_list.
2824 Merge two substitutions.
2825 * fixinc/fixincl.x: Regenerate.
2826 Fixes PR bootstrap/12666.
2827
2828 2003-11-03 Joseph S. Myers <jsm@polyomino.org.uk>
2829
2830 * doc/install-old.texi: Remove VMS documentation.
2831
2832 2003-11-03 Jan Hubicka <jh@suse.cz>
2833
2834 * i386.c (override_options): Remove hack enabling 128bit long double
2835 commited by accident.
2836
2837 2003-11-02 Per Bothner <per@bothner.com>
2838
2839 * c-opts.c (needValue): Do cpp_find_main_file before processing
2840 any imacros flags, so pfile->main_file is set for the latter.
2841
2842 2003-11-03 Andreas Jaeger <aj@suse.de>
2843 Zack Weinberg <zack@codesourcery.com>
2844
2845 * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
2846 (SYSCALLS.c.X-warn): Suppress warnings.
2847
2848 2003-11-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2849
2850 PR optimization/12845
2851 * pa.c (output_cbranch): Use cmpb for DImode comparisons with 0.
2852
2853 2003-11-02 Zack Weinberg <zack@codesourcery.com>
2854
2855 * print-rtl.c (print_rtx): Call PRINT_REG with second argument -1.
2856 * config/i386/i386.c (print_reg): Abort on a virtual register
2857 if code != -1; not if file == asm_out_file.
2858 * config/i386/i386.h (PRINT_REG): Document meaning of CODE == -1.
2859 (DEBUG_PRINT_REG): Delete, unused.
2860
2861 2003-11-02 Andreas Schwab <schwab@suse.de>
2862
2863 * config/ia64/fde-glibc.c (_GNU_SOURCE): Define to 1 instead of
2864 empty to avoid conflict with the definition from configure.
2865
2866 2003-11-02 Roger Sayle <roger@eyesopen.com>
2867
2868 PR optimization/10817
2869 * ifcvt.c (noce_emit_move_insn): Improve documentation comment.
2870 (noce_try_move): New function to optimize an if-the-else into an
2871 unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
2872 (noce_process_if_block): Attempt simplification with noce_try_move.
2873
2874 * simplify-rtx.c (simplify_ternary_operation): Some minor fixes
2875 and improvements to the optimizations of IF_THEN_ELSE expressions.
2876 (simplify_subreg): Silence signed/unsigned comparison warning.
2877
2878 2003-11-02 Richard Sandiford <rsandifo@redhat.com>
2879
2880 * Makefile.in (targhooks.o, reload.o): Update dependencies.
2881 (GTFILES): Add targhooks.c.
2882 (gt-targhooks.h): New rule; depend on s-gtype.
2883 * target.h (direct_pool_load_p): New hook.
2884 * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
2885 (TARGET_INITIALIZER): Include it.
2886 * targhooks.h (default_direct_pool_load_p): Declare.
2887 (hook_bool_machine_mode_true): Declare.
2888 * targhooks.c: Include insn-config.h, recog.h, ggc.h and
2889 gt-targhooks.h.
2890 (pool_symbol): New variable.
2891 (default_direct_pool_load_p): New function.
2892 (hook_bool_machine_mode_true): New function.
2893 * reload.c: Include target.h.
2894 (find_reloads): If an alternative will force a constant into memory,
2895 count an extra reload if constant pool symbols are not valid
2896 addresses. If an alternative uses memory to move values between
2897 registers, count the move as two reloads rather than one.
2898 * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
2899 * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
2900
2901 2003-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2902
2903 PR optimization/12799
2904 * postreload.c (reload_cse_move2add): Generate the add2
2905 patterns manually.
2906
2907 2003-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2908
2909 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
2910 Return 0 for all complex modes whose size is lesser or equal to
2911 a word. Add a ??? comment for the condition used with 16-byte
2912 aligned modes.
2913
2914 2003-11-01 Kelley Cook <kcook@gcc.gnu.org>
2915
2916 * .cvsignore: Remove c-parse* and tradcif.c.
2917 * objc/.cvsignore: Delete.
2918
2919 2003-11-01 Roger Sayle <roger@eyesopen.com>
2920
2921 * unwind-sjlj.c (_Unwind_GetCFA): Return (_Unwind_Word)0 instead
2922 of NULL.
2923
2924 2003-11-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2925
2926 * som.h (DO_GLOBAL_DTORS_BODY): Change to C90 declaration.
2927
2928 * libgcc2.c (SYMBOL__MAIN): Provide C90 declaration.
2929
2930 * collect2.c (scan_libraries): Fix typos.
2931
2932 PR preprocessor/12847
2933 * cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
2934 cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
2935 c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
2936 DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
2937 "CPP_".
2938
2939 2003-11-01 Fariborz Jahanian <fjahanian@apple.com>
2940
2941 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct
2942 no_units calculation.
2943
2944 2003-11-01 Andreas Jaeger <aj@suse.de>
2945
2946 * unwind-dw2.c (_Unwind_FrameState): Remove commas at end of
2947 enumeration list.
2948
2949 2003-11-01 Andreas Schwab <schwab@suse.de>
2950
2951 * config/ia64/sysv4.h (SDATA_SECTION_FUNCTION): Update to C90
2952 prototypes.
2953 (SBSS_SECTION_FUNCTION): Likewise.
2954
2955 2003-11-01 Andreas Jaeger <aj@suse.de>
2956
2957 * Makefile.in (GCC_CFLAGS): Add @WERROR@ for target files.
2958
2959 2003-11-01 Andreas Tobler <a.tobler@schweiz.ch>
2960
2961 * config/rs6000/sysv4.h (EXTRA_SECTION_FUNCTIONS): Update to C90
2962 prototypes.
2963
2964 2003-11-01 Andreas Jaeger <aj@suse.de>
2965
2966 * unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable.
2967 (uw_frame_state_for): Constify variables.
2968 (extract_cie_info): Constify first argument.
2969
2970 * unwind-dw2-fde-darwin.c: Adjust prototype of
2971 _Unwind_Find_registered_FDE for recent changes.
2972 (examine_objects): Constify return value and local variable result.
2973 (_Unwind_Find_FDE): Constify return value and local variable ret.
2974
2975 2003-10-31 Per Bothner <pbothner@apple.com>
2976
2977 * c-opts.c (finish_options): Change to returns boolean - false iff
2978 the call to cpp_find_main_file fails.
2979 (c_common_init): Skip preprocess_file if finish_options failed.
2980 (c_common_parse_file): Break if finish_options failed.
2981 Fixes PR preprocessor/12545.
2982
2983 2003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2984
2985 * aclocal.m4: Blacklist ultrix* for mmap file.
2986 * configure: Rebuilt.
2987
2988 * function.c (assign_parms): Add ATTRIBUTE_UNUSED to variable
2989 reg_parm_stack_space.
2990 * toplev.c (default_get_pch_validity): Fix warning.
2991
2992 * vax.c: Include toplev.h.
2993 (vax_init_libfuncs): Fix typo (umod).
2994 * vax.h (ASM_COMMENT_START): Define.
2995 (PRINT_OPERAND): Fix warning when HOST_WIDE_INT is a long long.
2996
2997 2003-10-31 Roger Sayle <roger@eyesopen.com>
2998
2999 PR middle-end/11968
3000 * expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
3001 confusing comment; distributivity isn't handled in expand_expr.
3002 * fold-const.c (extract_muldiv_1 <PLUS_EXPR>): Allow overflow
3003 in distributivity, if wrap-around semantics are specified with
3004 -fwrapv.
3005
3006 2003-11-01 Alan Modra <amodra@bigpond.net.au>
3007
3008 PR 12315
3009 * final.c (profile_function): Allow for NULL svrtx.
3010
3011 2003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3012
3013 * pa.c (pa_select_section): Use new style declaration.
3014 * som.h (readonly_data): Likewise.
3015
3016 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
3017
3018 * config/rs6000/rs6000.c: Update to C90 prototypes.
3019
3020 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
3021
3022 PR target/7513
3023 * arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
3024 code.
3025
3026 2003-10-31 Andreas Jaeger <aj@suse.de>,
3027 Zack Weinberg <zack@codesourcery.com>
3028
3029
3030 * crtstuff.c (__register_frame_info, __register_frame_info_bases)
3031 (__deregister_frame_info, __deregister_frame_info_bases):
3032 Constify void * argument.
3033 * unwind-dw2-fde.h (struct fde_vector):
3034 Constify 'orig_data' and 'array' fields.
3035 (__register_frame_info, __register_frame_info_bases)
3036 (__deregister_frame_info, __deregister_frame_info_bases):
3037 Constify void * argument.
3038 (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
3039 return values, and casts of type fde *, struct dwarf_fde *,
3040 and struct dwarf_cie *.
3041 * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
3042 (__deregister_frame_info, __deregister_frame_info_bases):
3043 Constify void * argument.
3044 (get_cie_encoding, ): Constify struct dwarf_cie * argument.
3045 (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
3046 (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
3047 fde_split, SWAP, frame_downheap, frame_heapsort)
3048 (classify_object_over_fdes, add_fdes, linear_search_fdes,
3049 binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
3050 binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
3051 Constify arguments, local variables, return values, and casts
3052 of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
3053 Use const pointer types in sizeof expressions, for clarity.
3054 * unwind-dw2-fde-glibc.c
3055 (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
3056 (struct unw_eh_callback_data): Constify 'ret' field.
3057
3058 2003-10-31 Fariborz Jahanian <fjahanian@apple.com>
3059 David Edelsohn <edelsohn@gnu.org>
3060
3061 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): New.
3062 (function_arg): Call it.
3063 (rs6000_function_value): Widen integral return value to mode based
3064 on TARGET_32BIT, not word_mode.
3065 * config/rs6000/rs6000.h (PROMOTE_MODE): Likewise.
3066 (UNITS_PER_ARG): New.
3067 (RS6000_ARG_SIZE): Use it.
3068
3069 2003-10-31 Gerald Pfeifer <gerald@pfeifer.com>
3070
3071 * .cvsignore: No longer ignore gengtype-lex.c, gengtype-yacc.c,
3072 and gengtype-yacc.h.
3073
3074 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
3075
3076 PR optimization/8896
3077 * postreload.c (reload_combine): Check that REGY doesn't die in an
3078 insn of the form (set (regx) (plus (regx) (regy))), ie REGX != REGY.
3079
3080 2003-10-31 Josef Zlomek <zlomekj@suse.cz>
3081
3082 PR/10239
3083 * cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
3084
3085 2003-10-31 Josef Zlomek <zlomekj@suse.cz>
3086
3087 PR/11640
3088 * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
3089 immediatelly before BARRIER.
3090
3091 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
3092
3093 * Makefile.in (STRICT2_WARN): Add -Wold-style-definition.
3094
3095 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
3096
3097 PR target/11271
3098 * reload.c (find_reloads_address): Handle any register in
3099 (PLUS (PLUS (REG) (REG)) (CONST_INT).
3100
3101 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
3102
3103 * ggc-page.c (ggc_pch_read): Wrap call to poison_pages in
3104 ENABLE_GC_CHECKING not in GGC_POISON.
3105
3106 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
3107
3108 PR bootstrap/9863
3109 * configure.in: Bail out if awk is missing.
3110 * configure: Regenerate.
3111
3112 PR ada/12761
3113 * Makefile.in: Move default definitions of X_ADA_CFLAGS,
3114 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from ada/Make-lang.in to here.
3115
3116 2003-10-30 Richard Henderson <rth@redhat.com>
3117
3118 * c-objc-common.c (c_tree_printer): Handle types correctly.
3119 Factor code a bit.
3120
3121 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
3122
3123 * value-prof.c, web.c: Update to C90.
3124
3125 2003-10-30 Eric Christopher <echristo@redhat.com>
3126
3127 * function.c (purge_addressof_1): Add case for REG_RETVAL
3128 notes when modes are unequal.
3129
3130 2003-10-31 Jan Hubicka <jh@suse.cz>
3131
3132 * i386-modes.def: Add XFmode format adjustment.
3133
3134 2003-10-30 Jan Hubicka <jh@suse.cz>
3135
3136 * real.c (encode_ieee_extended): Back out previous patch.
3137
3138 2003-10-30 Jan Hubicka <jh@suse.cz>
3139
3140 * real.c (encode_ieee_extended): Initialize whole array.
3141 * reg-stack.c (move_for_stack_reg0: Use always XFmode.
3142 * i386-modes.def: Change definitions of TFmode and XFmode.
3143 * i386.c (classify_argument): Rename TFmodes to XFmodes; add new TFmode
3144 code.
3145 (construct_container): Allow constructing of TFmode integer containers.
3146 (ix86_return_in_memory): XFmode is not returned in memory.
3147 (init_ext_80387_constants): Always use XFmode.
3148 (print_operand): Likewise.
3149 (ix86_prepare_fp_compare_regs): Likewise.
3150 (split_to_parts): Deal with TFmode.
3151 (split_long_move): Simplify.
3152 (ix86_init_mmx_sse_builtins): Add __float80, __float128.
3153 (ix86_memory_move_cost): Do not confuse TFmode.
3154 * i386.h (LONG_DOUBLE_TYPE_SIZE): Set to 96.
3155 (IS_STACK_MODE): TFmode is not stack mode.
3156 (HARD_REGNO_NREGS, CLASS_MAX_NREGS): Deal nicely with XFmode.
3157 (VALID_SSE_REG_MODE): Allow TFmode.
3158 (VALID_FP_MODE_P): Disallow TFmode.
3159 (VALID_INT_MODE_P): Allow TFmode in 64bit mode.
3160 * i386.md (TFmode patterns): Kill.
3161 (movtf, motf_rex64): New patterns.
3162
3163 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
3164
3165 * config/mips/mips.md (adddi3): Fix typo in mips16 stack pointer code.
3166
3167 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
3168
3169 * config/mips/mips.md (mov_lwl): Use memory_operand where appropriate.
3170 (mov_lwr, mov_swl, mov_swr): Likewise.
3171 (mov_ldl, mov_ldr, mov_sdl, mov_sdr): Likewise.
3172
3173 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
3174
3175 * config/mips/mips.c (mips_global_pointer): Don't try to use $25.
3176
3177 2003-10-30 Richard Henderson <rth@redhat.com>
3178
3179 * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
3180 test for irix6 rather than preprocessor test.
3181
3182 2003-10-30 Richard Henderson <rth@redhat.com>
3183
3184 * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
3185
3186 2003-10-30 Ulrich Weigand <uweigand@de.ibm.com>
3187
3188 * config/s390/s390.c (struct machine_function): Use save_return_addr_p
3189 as a general flag that the return address register needs to be saved,
3190 not necessarily because of __builtin_return_addr (0).
3191 (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
3192 remove special handling of zSeries machines.
3193 (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
3194 register as a regular register on zSeries machines.
3195 (s390_reorg): Adjust calls to s390_split_branches and
3196 s390_optimize_prolog.
3197 (s390_frame_info): On zSeries machines, do not assume the return
3198 register is always used. Update regs_ever_live with current data
3199 for the special registers.
3200 (s390_emit_epilogue): Use save_return_addr_p to determine whether
3201 the return register was saved.
3202 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
3203 RETURN_REGNUM fixed on zSeries machines.
3204 (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
3205 * config/s390/s390.md ("*doloop_si"): Handle branch overflow
3206 via ahi-jgne pair on zSeries machines.
3207 ("*doloop_di"): Likewise.
3208 ("*doloop_di_long"): Remove.
3209
3210 2003-10-30 Richard Earnshaw <rearnsha@arm.com>
3211
3212 * arm.c (arm_override_options): Revert change of arm_constant_limit
3213 when optimizing for size.
3214
3215 2003-10-29 Richard Henderson <rth@redhat.com>
3216
3217 * fold-const.c (fold_single_bit_test): Convert the input to the
3218 operational intermediate type.
3219
3220 2003-10-29 Richard Henderson <rth@redhat.com>
3221
3222 * builtins.c (std_build_builtin_va_list): New.
3223 * expr.h (std_build_builtin_va_list): Declare.
3224 * defaults.h (BUILD_VA_LIST_TYPE): New.
3225 * system.h (BUILD_VA_LIST_TYPE): Poison.
3226 * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
3227 * target.h (struct gcc_target): Add build_builtin_va_list.
3228 * tree.c (build_common_tree_nodes_2): Use it.
3229
3230 * config/alpha/alpha-protos.h, config/alpha/alpha.c,
3231 config/alpha/alpha.h, config/alpha/unicosmk.h,
3232 config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
3233 config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
3234 config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
3235 config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
3236 config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
3237 config/mips/mips.h, config/rs6000/rs6000-protos.h,
3238 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
3239 config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
3240 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
3241 config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
3242 config/xtensa/xtensa.h: Rename foo_build_va_list to
3243 foo_build_builtin_va_list; make it static. Define
3244 TARGET_BUILD_BUILTIN_VA_LIST. Remove BUILD_VA_LIST_TYPE.
3245 Update protos.
3246
3247 * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
3248 * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
3249
3250 2003-10-29 James E Wilson <wilson@specifixinc.com>
3251
3252 * recog.c (asm_operand_ok): Add missing break after case 'X'.
3253 Change if statements to else if statements in default case.
3254 (extract_constrain_insn_cached): Fix misspelling of constrain_operands
3255 in comment.
3256 (constrain_operands_cached): Likewise.
3257 (constrain_operands): Change if statements to else if statements in
3258 default case.
3259 * reload.c (find_reloads): Likewise.
3260
3261 2003-10-29 Richard Henderson <rth@redhat.com>
3262
3263 * config/m68k/m68k.c (notice_update_cc): Clear cc status for
3264 shifts and rotates.
3265
3266 2003-10-30 Alan Modra <amodra@bigpond.net.au>
3267
3268 * config/rs6000/rs6000.md: Remove duplicate pattern.
3269
3270 2003-10-29 Hans-Peter Nilsson <hp@axis.com>
3271
3272 * real.c (do_divide): Initialize result with a 0.
3273
3274 * configure.in <enable-checking for valgrind>: Look for
3275 <valgrind/memcheck.h> first. AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
3276 if it exists.
3277 * configure, config.in: Regenerate.
3278 * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
3279 HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>. Use
3280 #elif for other alternatives.
3281 * ggc-page.c: Ditto.
3282 * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
3283 include structure from ggc-common.c.
3284
3285 2003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3286
3287 * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
3288 (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
3289 * pa.c (pa_adjust_insn_length): Check for btable branches using
3290 attribute TYPE_BTABLE_BRANCH.
3291 (pa_reorg): Simplify.
3292 * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
3293 (ASM_OUTPUT_ADDR_VEC_ELT): As above.
3294 (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
3295 * pa.md (btable_branch): New instruction type.
3296 (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
3297 btable branches.
3298 (define_delay): Add btable branches to insn types that may have an
3299 insn in the delay position.
3300 (Z2, Z3): Add btable branch to list.
3301 Simplify unamed pattern set copy pic_label_operand to register. Add
3302 PA 2.0 variant.
3303 (short_jump): New jump for use in branch tables.
3304 (casesi, casesi0): Revise for new branch table formats.
3305 (casesi32, casesi32p, casesi64p): New casesi patterns.
3306 (indirect_jump): Move.
3307
3308 2003-10-29 David Edelsohn <edelsohn@gnu.org>
3309
3310 * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
3311 !TARGET_POWERPC64.
3312 (UNITS_PER_GPR_WORD): Delete.
3313 (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
3314 (HARD_REGNO_MODE_OK): Same.
3315 (CLASS_MAX_NREGS): Same.
3316
3317 2003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3318
3319 * pa.h (ASM_COMMENT_START): Define.
3320
3321 2003-10-29 Zack Weinberg <zack@codesourcery.com>
3322
3323 * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
3324 MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
3325 component, not zero.
3326
3327 2003-10-29 Andreas Schwab <schwab@suse.de>
3328
3329 * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
3330
3331 2003-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
3332
3333 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
3334 Never return 1 for complex integral modes whose size is lesser or
3335 equal to a word.
3336 (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
3337 in the comment.
3338 (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
3339 modes.
3340 (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
3341 greater than 16 bytes by reference.
3342
3343 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3344
3345 * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
3346 not TARGET_ILP32.
3347 (ia64_initialize_trampoline): Use globalize_label target call.
3348
3349 2003-10-29 Andreas Schwab <schwab@suse.de>
3350
3351 * doc/install.texi (Building): Add a sentence about building Ada
3352 for a canadian cross.
3353
3354 2003-10-28 Zack Weinberg <zack@codesourcery.com>
3355
3356 * config/ia64/ia64.c (cmptf_libfunc): New static.
3357 (ia64_expand_compare): Add logic to open-code calls to
3358 _U_Qfcmp for TFmode comparisons.
3359 (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
3360 Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
3361 never be generated anymore.
3362 * config/ia64/ia64.md (cmptf): New expander.
3363
3364 2003-10-28 Zack Weinberg <zack@codesourcery.com>
3365
3366 * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
3367 (*sqrt_approx): New instruction pattern for approximate square roots.
3368 (*setf_exp_xf): New instruction pattern for exponentiation.
3369 (*maddxf4_alts_truncsf): New instruction pattern for truncation.
3370 (sqrtsf2_internal_thr): New define_and_split implementing
3371 throughput-optimized inline calculation of SFmode square root.
3372 (sqrtdf2_internal_thr): Likewise for DFmode.
3373 (sqrtxf2_internal_thr): Likewise for XFmode.
3374 (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
3375 latency- and throughput-optimized square root algorithms.
3376 * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
3377 TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
3378 New macros.
3379 (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
3380 -minline-sqrt-max-throughput.
3381 * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
3382 and -minline-sqrt-max-throughput are given, notify the user
3383 that both options cannot be used simultaneously.
3384 If -minline-sqrt-min-latency is given, notify the user that
3385 this mode is not yet implemented.
3386 (rtx_needs_barrier): Reformat initial comment to obey
3387 72-character width limit. Support UNSPEC_SETF_EXP and
3388 UNSPEC_FR_SQRT_RECIP_APPROX.
3389
3390 2003-10-29 Alan Modra <amodra@bigpond.net.au>
3391
3392 * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
3393 moves.
3394
3395 2003-10-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3396
3397 PR target/11598
3398 PR libgcj/10610
3399 * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
3400
3401 2003-10-28 Richard Earnshaw <rearnsha@arm.com>
3402
3403 * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
3404 an extra stack adjustment insn if the stack pointer is already
3405 pointing at the right place.
3406 (use_return_insn): Allow a return insn to be used when we have a
3407 frame pointer if the stack pointer is in the right place.
3408 (output_return_instruction): Handle it.
3409
3410 2003-10-28 Andreas Jaeger <aj@suse.de>
3411
3412 * ggc-zone.c (check_cookies): Add missing variable.
3413 Add void to prototypes.
3414
3415 2003-10-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3416
3417 * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
3418 * crtstuff.c (__do_global_ctors_1): Move prototype.
3419 * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
3420 appropriate.
3421 * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
3422 Mark parameter with __attribute__((unused)).
3423
3424 2003-10-27 Zack Weinberg <zack@codesourcery.com>
3425
3426 * c-decl.c (pushdecl): Clarify comment.
3427
3428 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
3429
3430 * doc/install.texi: Update instructions for Ada cross builds
3431
3432 PR ada/5909:
3433 * doc/sourcebuild.texi: Document Ada test suite.
3434
3435 2003-10-27 Stephane Carrez <stcarrez@nerim.fr>
3436
3437 * config/m68hc11/m68hc11.c: Convert to ISO C90.
3438 * config/m68hc11/m68hc11-protos.h: Likewise.
3439
3440 2003-10-27 Jan Hubicka <jh@suse.cz>
3441 Eric Botcazou <ebotcazou@libertysurf.fr>
3442
3443 * toplev.c (enum dump_file_index, dump_file): Fix ordering of
3444 webizer pass dump.
3445
3446 2003-10-27 Jakub Jelinek <jakub@redhat.com>
3447 Jan Hubicka <jh@suse.cz>
3448
3449 * reload1.c (struct elim_table): Change offset, initial_offset and
3450 previous_offset fields to HOST_WIDE_INT.
3451 (offsets_at): Change from int to HOST_WIDE_INT.
3452 (reload): Adjust offsets_at initialization.
3453 (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
3454 (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
3455 * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
3456 to HOST_WIDE_INT. Don't save regs using mov for huge frame sizes
3457 if TARGET_64BIT.
3458 (pro_epilogue_adjust_stack): New function.
3459 (ix86_expand_prologue, ix86_expand_epilogue): Use it.
3460 * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
3461 (pro_epilogue_adjust_stack_1): Remove * in front of name.
3462 (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
3463 (pro_epilogue_adjust_stack_rex64_2): New insn.
3464
3465 * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
3466
3467 * config/i386/i386.c (ix86_expand_call): Replace 40 with
3468 FIRST_REX_INT_REG + 3 /* R11 */.
3469
3470 2003-10-26 Richard Henderson <rth@redhat.com>
3471
3472 * config/alpha/alpha.md (attr cannot_copy): New.
3473 (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
3474 prologue_ldgp_er_2, prologue_ldgp_1): Set it.
3475 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
3476
3477 2003-10-26 Daniel Berlin <dberlin@dberlin.org>
3478
3479 * ggc-zone.c: New file, zone allocating collector.
3480 * configure: Accept zone option for --with-gc
3481 * configure.in: Ditto.
3482 * ggc.h (ggc_pch_count_object): Pass bool indicating
3483 stringiness. Update all callers.
3484 (ggc_pch_alloc_object): Ditto.
3485 (ggc_pch_write_object): Ditto.
3486 (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
3487 type.
3488 (ggc_alloc_rtvec): Ditto.
3489 (ggc_alloc_tree): Use zone allocation, since some things using this macro
3490 aren't a single typecode.
3491 * ggc-none.c (ggc_alloc_typed): New function.
3492 (ggc_alloc_zone): Ditto.
3493 * ggc-page.c: Ditto on both functions.
3494
3495 2003-10-26 Gunther Nikl <gni@gecko.de>
3496
3497 * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
3498 frame information is always valid.
3499 (m68k_output_function_prologue): Remove superfluous TARGET_68881
3500 test; fix formatting.
3501
3502 2003-10-26 Gunther Nikl <gni@gecko.de>
3503
3504 * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
3505 reg_rev_mask computation.
3506 (m68k_output_function_prologue): Fix usage of current_frame (one typo
3507 and one missing); use reg_rev_mask not reg_mask.
3508 (m68k_output_function_epilogue): Fix usage of current_frame;
3509 use fpu_rev_mask not fpu_mask.
3510
3511 2003-10-26 Bernardo Innocenti <bernie@develer.com>
3512
3513 * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
3514 num_saved_regs, use current_frame.reg_no instead.
3515
3516 2003-10-26 Bernardo Innocenti <bernie@develer.com>
3517 Paul Dale <pauli@snapgear.com>
3518
3519 * doc/extend.texi (interrupt_handler): Add m68k to the
3520 list of processors implementing it.
3521 * doc/invoke.texi (-msep-data): Document new m68k option.
3522 (-mno-sep-data): Likewise.
3523 (-mid-shared-library): Likewise.
3524 (-mno-id-shared-library): Likewise.
3525 (-mshared-library-id): Likewise.
3526
3527 2003-10-26 Andreas Jaeger <aj@suse.de>
3528
3529 * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
3530 comparison.
3531 (_Unwind_SetGR): Likewise.
3532
3533 2003-10-26 Ottavio Campana <ottavio@campana.vi.it>
3534
3535 PR target/12690
3536 * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
3537
3538 2003-10-26 Gunther Nikl <gni@gecko.de>
3539
3540 * config/m68k/m68k.c (m68k_output_function_prologue): Move front
3541 comment from here to...
3542 (m68k_save_reg): ...here. Fix comment formatting.
3543 (m68k_output_function_prologue): Fix comment formatting.
3544 (m68k_output_function_epilogue): Likewise.
3545 (const_method): Likewise.
3546
3547 2003-10-26 Kazu Hirata <kazu@cs.umass.edu>
3548
3549 * toplev.c (default_get_pch_validity): Guard the use of
3550 target_options with #ifdef TARGET_OPTIONS.
3551 (default_pch_valid_p): Likewise.
3552
3553 2003-10-26 Andreas Jaeger <aj@suse.de>
3554 Zack Weinberg <zack@codesourcery.com>
3555 Andreas Tobler <toa@pop.agri.ch>
3556
3557 * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
3558 (output_die): Likewise.
3559 (print_die): Likewise.
3560
3561 2003-10-26 Andreas Jaeger <aj@suse.de>
3562
3563 * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
3564 dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
3565 dwarf2out.c change.
3566
3567 * toplev.c (default_pch_valid_p): Fix warning.
3568
3569 2003-10-25 Roger Sayle <roger@eyesopen.com>
3570
3571 * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
3572 RTL nodes. If an operator's operands are unchanged, return the
3573 original argument unchanged.
3574
3575 2003-10-26 Graham Stott <graham.stott@btinternet.com>
3576
3577 Fix bootstrap failure.
3578 * expmed.c (store_bit_field): Don't compare bitsize against
3579 modes with zero bit-size.
3580
3581 (extract_bit_field): Likewise
3582
3583 2003-10-25 Jan Hubicka <jh@suse.cz>
3584
3585 * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
3586 (cfa_loc): Likewise.
3587 (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
3588 HOST_WIDE_INT.
3589 (args_size, old_args_size): change type to HOST_WIDE_INT.
3590 (dwarf2out_def_cfa, dwarf2out_args_size,
3591 dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
3592 (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
3593 (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
3594 AT_offset): Use HOST_WIDE_INT.
3595 (based_loc_descr): offset is HOST_WIDE_INT.
3596 (add_data_member): Likewise.
3597 (add_const_value_attribute): Simplify.
3598
3599 2003-10-25 Richard Henderson <rth@redhat.com>
3600
3601 * config/i386/i386.c (ix86_eax_live_at_start_p): New.
3602 (ix86_expand_prologue): Save and restore eax around stack probe
3603 if it's live.
3604
3605 2003-10-25 Jan Hubicka <jh@suse.cz>
3606
3607 * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
3608
3609 2003-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
3610
3611 PR target/12712
3612 * reg-stack.c (convert_regs_1): Create an arbitrary input stack
3613 if the block has no predecessors.
3614 (convert_regs_2): Document the problem with successors whose
3615 only predecessor is the block to be processed.
3616 (convert_regs): Don't create the arbitrary input stack here.
3617
3618 2003-10-24 Zack Weinberg <zack@codesourcery.com>
3619
3620 * genmodes.c (struct mode_data): Add contained and next_cont
3621 fields.
3622 (complete_mode): Maintain linked list of modes that have a
3623 given component.
3624 (emit_mode_unit_size): Delete.
3625 (emit_mode_nunits): New.
3626 (emit_insn_modes_c): Update to match.
3627 (emit_mode_adjustments): Propagate size and alignment
3628 adjustments from component modes to their containers.
3629 * machmode.h (mode_unit_size): Delete.
3630 (mode_nunits): New.
3631 (GET_MODE_NUNITS): Just return the value in the table.
3632 (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
3633 GET_MODE_SIZE.
3634 * expmed.c (store_bit_field, extract_bit_field): Can use a
3635 plain move instruction if bitsize >= GET_MODE_BITSIZE of
3636 destination/source mode, respectively.
3637 * varasm.c (assemble_real): Write out the full size of the
3638 constant, not just its bitsize.
3639 (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
3640
3641 * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
3642 Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
3643 alignment of XF and TF modes in compliance with ia64 ABIs.
3644 Can now hardwire the format of both modes.
3645 * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
3646 (general_tfmode_operand, destination_tfmode_operand)
3647 (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
3648 general_xfmode_operand, destination_xfmode_operand,
3649 xfreg_or_fp01_operand, spill_xfmode_operand respectively.
3650 (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
3651 and float80_type be 96 so they get XFmode. Use !TARGET_HPUX,
3652 not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
3653 __float128.
3654 * config/ia64/ia64.h: Default TARGET_HPUX to 0.
3655 Change TFmode to XFmode wherever appropriate. Remove all
3656 references to INTEL_EXTENDED_IEEE_FORMAT.
3657 (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
3658 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
3659 (PREDICATE_CODES): Update to match function renames.
3660 * config/ia64/ia64.md: Change TF to XF throughout; rename all
3661 patterns to match. Remove all references to
3662 INTEL_EXTENDED_IEEE_FORMAT. Update predicate calls to match
3663 function renames.
3664 * config/ia64/ia64-protos.c: Update all prototypes to match
3665 renamed functions.
3666 * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
3667 Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
3668 * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
3669 __divtf3; keep old name for backward compatibility.
3670 (L__compat): New section providing forwarding stubs for
3671 __fixtfti, __fixunstfti, __floattitf.
3672 * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
3673
3674 2003-10-24 Geoffrey Keating <geoffk@apple.com>
3675
3676 PR 10757
3677 * c-pch.c: Include target.h. Improve comments.
3678 (struct c_pch_validity): Add target_data_length.
3679 (pch_init): Add target's validity data.
3680 (c_common_valid_pch): Check target's validity data.
3681 * target-def.h (TARGET_GET_PCH_VALIDITY): New.
3682 (TARGET_PCH_VALID_P): New.
3683 (TARGET_INITIALIZER): Add new fields.
3684 * target.h: Include tm.h.
3685 (struct gcc_target): Add get_pch_validity, pch_valid_p.
3686 * toplev.h (default_get_pch_validity): New prototype.
3687 (default_pch_valid_p): New prototype.
3688 * toplev.c (default_get_pch_validity): New routine.
3689 (default_pch_valid_p): New routine.
3690 * Makefile.in (TARGET_H): Add TM_H. Replace all users of
3691 target.h with $(TARGET_H).
3692 (c-pch.o): Add TARGET_H.
3693 * doc/tm.texi (PCH Target): New node.
3694 (TARGET_GET_PCH_VALIDITY): Document.
3695 (TARGET_PCH_VALID_P): Document.
3696
3697 2003-10-24 Kelley Cook <kcook@gcc.gnu.org>
3698
3699 * Makefile.in: Define a vpath for %.texi. Remove explicit $(docdir)
3700 and $(docdir)/include from any *.texi dependencies.
3701 ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
3702 ($(docobjdir)/%.1): Depend on .pod instead of .texi.
3703 ($(docobjdir)/%.7): Likewise.
3704 (%.pod): New implicit rule.
3705 (cpp.pod): New dependency only rule.
3706 (gcc.pod): New intermediate rule with dependencies and commands.
3707 (gfdl.pod): Likewise.
3708 (fsf-funding.pod): Likewise.
3709
3710 2003-10-24 Nathanael Nerode <neroden@gcc.gnu.org>
3711
3712 * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
3713 related code.
3714 * fixinc/fixinc.ptx: Remove.
3715 * fixinc/fixinc.svr4: Remove.
3716
3717 2003-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3718
3719 * config/s390/s390.c (load_multiple_operation): Allow both SImode
3720 and DImode if word_mode is DImode.
3721 (store_multiple_operation): Likewise.
3722 * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
3723 ("*load_multiple_di"): Allow only if word_mode == DImode.
3724 ("movqi"): Use LLGC whenever TARGET_ZARCH.
3725 ("fix_truncdfsi2"): Fix incorrect temporary size.
3726 ("fix_truncsfsi2"): Likewise.
3727 ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
3728 string for function return value operand.
3729 ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
3730
3731 2003-10-24 Joseph S. Myers <jsm@polyomino.org.uk>
3732
3733 * c-parse.in (array_declarator): Use expr_no_commas.
3734 Fixes PR c/11943.
3735
3736 2003-10-24 Richard Sandiford <rsandifo@redhat.com>
3737
3738 * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
3739 associated includes in #ifndef inhibit_libc.
3740
3741 2003-10-24 Roger Sayle <roger@eyesopen.com>
3742
3743 * doc/libgcc.texi: Document some more of the libgcc API.
3744
3745 2003-10-24 Richard Earnshaw <rearnsha@arm.com>
3746
3747 * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
3748 comparing a constant with small negative numbers and add costing
3749 for constants in conjunction with AND.
3750 (note_invalid_constants): Tidy previous change.
3751 (thumb_cmp_operand): Tidy.
3752 (thumb_cmpneg_operand): New function.
3753 * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
3754 for size.
3755 (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
3756 (PREDICATE_CODES): Add thumb_cmpneg_operand.
3757 * arm.md (cbranchsi4): Convert to define_expand. Handle comparison
3758 with a negative constant.
3759 (cbranchsi4_insn): Matcher for cbranchsi4.
3760 (cbranchsi4_scratch): Similar, but a scratch is available for
3761 handling negative constants.
3762 (movsi_cbranchsi4): New pattern.
3763 (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
3764 and use the TST instruction.
3765 (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
3766 (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
3767 cannot see high regs or memory alternatives.
3768 (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
3769
3770 2003-10-24 Richard Earnshaw <rearnsha@arm.com>
3771
3772 * arm.c (note_invalid_constants): Try to extract the constant
3773 pool value using avoid_constant_pool_reference; only use
3774 get_pool_constant if that returns the original reference.
3775
3776 2003-10-24 Jan Hubicka <jh@suse.cz>
3777
3778 PR c++/12624
3779 * varasm.c (notice_global_symbol): Disqualify global registers.
3780
3781 2003-10-23 Roger Sayle <roger@eyesopen.com>
3782
3783 PR middle-end/11414
3784 * loop.c (load_mems): Use redirect_jump to forward jumps from
3785 the original loop end label to the new "loop sink" block's label.
3786
3787 2003-10-23 Roger Sayle <roger@eyesopen.com>
3788
3789 PR middle-end/12705
3790 * optabs.c (expand_binop): When expanding complex operations
3791 inline, always calculate result into a new temporary register.
3792 Minor code clean-ups.
3793
3794 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3795
3796 * objc/lang-specs.h: Handle -print-objc-runtime-info.
3797 * doc/invoke.texi (Objective-C Dialect Options): Document it.
3798
3799 2003-10-24 Danny Smith <dannysmith@users.sourceforge.net>
3800
3801 * config/i386/cygwin.asm: Add copyright notice. Add comment
3802 on why this code is needed.
3803
3804 2003-10-23 Kazu Hirata <kazu@cs.umass.edu>
3805
3806 * config/h8300/clzhi2.c: Fix warnings.
3807 * config/h8300/ctzhi2.c: Likewise.
3808 * config/h8300/fixunssfsi.c: Likewise.
3809 * config/h8300/parityhi2.c: Likewise.
3810 * config/h8300/popcounthi2.c: Likewise.
3811
3812 2003-10-23 James E Wilson <wilson@specifixinc.com>
3813
3814 * gcc.c (option_map): Delete --target and --use-version.
3815
3816 2003-10-23 Fariborz Jahanian <fjahanian@apple.com>
3817 David Edelsohn <edelsohn@gnu.org>
3818
3819 * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
3820 TARGET_POWREPC64.
3821 (UNITS_PER_GPR_WORD): Define.
3822 (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
3823 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
3824 (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
3825 (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
3826 * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
3827 DFmode and DImode in 32-bit ABI / 64-bit computation mode.
3828 (rs6000_emit_prologue): Select reg_mode and reg_size using
3829 TARGET_32BIT, not TARGET_POWERPC64.
3830 (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
3831 ABI / 64-bit computation mode
3832
3833 2003-10-22 Andrew Haley <aph@redhat.com>
3834
3835 * toplev.c (output_file_directive): Allow for null input_name.
3836
3837 2003-10-22 Waldek Hebisch <hebisch@math.uni.wroc.pl>
3838
3839 * config/i386/i386.c (classify_argument): Handle SET_TYPE.
3840
3841 2003-10-22 Chris Demetriou <cgd@broadcom.com>
3842
3843 * configure.in: In --enable-generated-files-in-srcdir option
3844 handling, fix default case handling.
3845 * configure: Regenerate.
3846
3847 2003-10-22 Phil Edwards <phil@codesourcery.com>
3848
3849 * config.gcc: Update *-*-vxworks* generic hook and comments.
3850 (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
3851 mips-wrs-windiss, sh-wrs-vxworks): New stanzas.
3852 * genmultilib: Allow the MULTILIB_OSDIRNAMES to be mapped directly.
3853 * config/svr4.h (SWITCH_TAKES_ARG): Undefine it before redefining it.
3854 * config/windiss.h: New file.
3855 * config/arm/t-vxworks: New file.
3856 * config/arm/vxworks.h: New file.
3857 * config/i386/t-vxworks: New file.
3858 * config/i386/vxworks.h: New file.
3859 * config/mips/t-vxworks: New file.
3860 * config/mips/vxworks.h: New file.
3861 * config/mips/windiss.h: New file.
3862 * config/sh/t-vxworks: New file.
3863 * config/sh/vxworks.h: New file.
3864
3865 2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
3866
3867 * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
3868 (h8300_saveall_function_p): New.
3869 (h8300_insert_attributes): Insert the saveall attribute if
3870 #pragma saveall is specified.
3871 (h8300_attribute_table): Add saveall.
3872 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
3873 * doc/extend.texi: Mention the saveall attribute.
3874
3875 2003-10-22 Joseph S. Myers <jsm@polyomino.org.uk>
3876
3877 * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
3878 deprecation of casts as lvalues.
3879 * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
3880 * fixinc/fixincl.x: Regenerate.
3881 * fixinc/tests/base/obstack.h: New test.
3882
3883 2003-10-22 Andreas Schwab <schwab@suse.de>
3884
3885 PR target/12676
3886 * config/m68k/m68k.c (output_addsi3): Fix range check to work on
3887 LP64 platforms.
3888
3889 2003-10-22 Jan Hubicka <jh@suse.cz>
3890
3891 * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
3892 presence of DW_AT_inline.
3893 (gen_subprogram_die): Likewise; do not abort instead of emitting
3894 DW_AT_not_inline.
3895
3896 2003-10-22 Jan Hubicka <jh@suse.cz>
3897
3898 * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
3899 global info is not ready.
3900
3901 2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
3902
3903 * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
3904
3905 2003-10-22 Ulrich Weigand <uweigand@de.ibm.com>
3906
3907 * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
3908 ("*movstr_short"): ... into this insn pattern.
3909 ("movstr_short"): New expander.
3910 ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
3911 ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
3912 ("movstr_long"): New expander.
3913 ("clrstr_short_64", "clrstr_short_31"): Merge ...
3914 ("*clrstr_short"): ... into this insn pattern.
3915 ("clrstr_short"): New expander.
3916 ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
3917 ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
3918 ("clrstr_long"): New expander.
3919 ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
3920 ("*cmpmem_short"): ... into this insn pattern.
3921 ("cmpmem_short"): New expander.
3922 ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
3923 ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
3924 ("cmpmem_long"): New expander.
3925 * config/s390/s390.c (s390_expand_movstr): Use new expanders.
3926 (s390_expand_clrstr): Likewise.
3927 (s390_expand_cmpmem): Likewise.
3928
3929 2003-10-22 Mark Mitchell <mark@codesourcery.com>
3930
3931 * c-pch.c (struct c_pch_validity): Add pch_init field.
3932 (pch_init): Set it.
3933 (c_common_valid_pch): Check it.
3934
3935 2003-10-22 David Taylor <dtaylor@emc.com>
3936
3937 PR debug/12500
3938 * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
3939
3940 2003-10-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3941
3942 * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
3943 alpha_return_in_memory if no VALTYPE specified.
3944
3945 2003-10-22 Jan Hubicka <jh@suse.cz>
3946
3947 PR debug/12389
3948 * Makefile.in (dwarf2out.o): Depend on cgraph.h.
3949 * cgraph.c (cgraph_function_possibly_inlined_p): New function.
3950 * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
3951 (cgraph_global_info): Add flag inlined
3952 * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
3953 cgraph_function_possibly_inded_p
3954 * cgraphunit.c (mark_inline): Set inlined flag.
3955 * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
3956 only for possibly inlined functions.
3957 * c-decl.c (duplicate_decls): Never output abstract DIE representing old
3958 body of function.
3959
3960 2003-10-22 Andrew Haley <aph@redhat.com>
3961
3962 * varasm.c (output_constructor): Make constructor annotation
3963 conditional on ASM_COMMENT_START.
3964
3965 2003-10-21 Jason Merrill <jason@redhat.com>
3966
3967 * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
3968 (get_narrower): Likewise.
3969
3970 * stor-layout.c (layout_decl): Do packed field alignment for
3971 bit-fields, too.
3972
3973 2003-10-21 Eric Christopher <echristo@redhat.com>
3974
3975 * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
3976
3977 2003-10-21 Geoffrey Keating <geoffk@apple.com>
3978
3979 * c-pch.c: Add comments in various places.
3980 (struct c_pch_validity): Add the lengths of various strings.
3981 (host_machine): New static.
3982 (target_machine): New static.
3983 (get_ident): Bump version number.
3984 (pch_init): Write out version, host, target validity data.
3985 (c_common_valid_pch): Check version, host, target.
3986 * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
3987 TARGET_MACHINE.
3988
3989 2003-10-21 Jason Merrill <jason@redhat.com>
3990
3991 * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
3992 (EXPR_P): New macro.
3993
3994 2003-10-21 Zack Weinberg <zack@codesourcery.com>
3995
3996 * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
3997 * config/ia64/ia64.c (ia64_expand_fetch_and_op,
3998 ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
3999 DImode. Use convert_move to load ar.ccv.
4000 (ia64_expand_compare_and_swap): Likewise.
4001 If expand_expr doesn't put 'old' and 'new' in the proper
4002 modes, run them through convert_to_mode.
4003
4004 2003-10-21 Eric Christopher <echristo@redhat.com>
4005
4006 * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
4007 for too large bitfields.
4008
4009 2003-10-21 Mark Mitchell <mark@codesourcery.com>
4010
4011 * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
4012
4013 2003-10-21 Andrew Haley <aph@redhat.com>
4014
4015 * varasm.c (output_constructor): Annotate constructor.
4016
4017 2003-10-21 Mark Mitchell <mark@codesourcery.com>
4018
4019 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
4020 on existence of destination file.
4021
4022 2003-10-21 Jan Hubicka <jh@suse.cz>
4023
4024 * haifa-sched.c (choose_ready): Initialize index.
4025
4026 2003-10-21 Jason Merrill <jason@redhat.com>
4027
4028 * tree.c (build1): Fix off-by-one error.
4029
4030 2003-10-21 Robert Millan <robertmh@gnu.org>
4031
4032 * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
4033 * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
4034 * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
4035 * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
4036
4037 2003-10-21 Eric Botcazou <ebotcazou@libertysurf.fr>
4038
4039 * web.c: Fix various comments.
4040
4041 2003-10-20 Nicolas Pitre <nico@cam.org>
4042
4043 * config/arm/arm.c (arm_override_options): Set arm_constant_limit
4044 to 2 instead of 1 when optimize_size is true. Gather code based on
4045 optimize_size together. Add comment about XScale load latency.
4046
4047 2003-10-21 Gunther Nikl <gni@gecko.de>
4048
4049 * config/m68k/m68k.c (m68k_output_function_prologue): Remove
4050 obsolete comments.
4051
4052 2003-10-20 Kelley Cook <kcook@gcc.gnu.org>
4053
4054 * Makefile.in: Get parsedir and docobjdir from configure.
4055 * configure.in: Recogonize --enable-generated-files-in-srcdir.
4056 Pass along parsedir and docobjdir.
4057 * configure: Regenerate.
4058 * doc/install.texi: Document --enable-generated-files-in-srcdir.
4059
4060 2003-10-20 Kelley Cook <kcook@gcc.gnu.org>
4061
4062 * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
4063 included.
4064
4065 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
4066
4067 * c-common.c (expand_tree_builtin): Ensure creal and cimag
4068 functions do not return lvalues.
4069
4070 2003-10-20 Jason Merrill <jason@redhat.com>
4071
4072 PR c/12553
4073 * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
4074 appropriately.
4075
4076 PR c/11446
4077 * stor-layout.c (layout_decl): Fix alignment handling.
4078
4079 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
4080
4081 * doc/extend.texi: Deprecate casts as lvalues.
4082
4083 2003-10-20 Jan Hubicka <jh@suse.cz>
4084
4085 * toplev.c (rest_of_compilation): Fix webizer pass ordering.
4086
4087 * cgraphunit.c (decide_is_function_needed): Fix test dealing
4088 with functions implicitly made inline.
4089
4090 * cgraphunit.c (cgraph_decide_inlining_incrementally): New function.
4091 (cgraph_finalize_function): Use it.
4092 (cgraph_mark_inline): Allow incrmental decisions
4093 * invoke.texi (max-inline-slope, min-inline-insns): Kill.
4094 * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
4095 * tree-inline.c (limits_allow_inlining): Kill.
4096 (expand_call_inline): Always use unit-at-a-time path.
4097
4098 2003-10-20 Zack Weinberg <zack@codesourcery.com>
4099
4100 * fixinc/inclhack.def (hpux11_snprintf): New edit.
4101 * fixinc/fixincl.x: Regenerate.
4102 * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
4103
4104 2003-10-20 Mark Mitchell <mark@codesourcery.com>
4105
4106 * Makefile.in (install-info): Simplify.
4107 ($(DESTDIR)$(infodir)/%.info): New rule.
4108 * configure.in (target_list): Remove install-info.
4109 * doc/.cvsignore (gcc.info*): Remove.
4110 (gccint.info*): Likewise.
4111 (gccinstall.info*): Likewise.
4112 (cpp.info*): Likewise.
4113 (cppinternals.info*): Likewise.
4114 (*.info*): Add it.
4115 * doc/sourcebuild.texi: Update description of install-info.
4116 * objc/Make-lang.in (objc.install-info): Remove.
4117
4118 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4119
4120 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
4121 Use it in _MIPS_SIM definition.
4122 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
4123
4124 2003-10-20 Zack Weinberg <zack@codesourcery.com>
4125
4126 * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
4127 virtual register, but only if file == asm_out_file.
4128 * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
4129 for ARG_POINTER_REGNUM.
4130
4131 2003-10-20 Zack Weinberg <zack@codesourcery.com>
4132
4133 * c-common.c (registered_builtin_types): New static.
4134 (c_common_type_for_mode): Consult registered_builtin_types.
4135 (c_register_builtin_type): Add type to registered_builtin_types.
4136 * optabs.c (init_floating_libfuncs): Initialize libfuncs for
4137 all MODE_FLOAT modes, not just the ones corresponding to
4138 float_type_node, double_type_node, and long_double_type_node.
4139
4140 2003-10-20 Richard Henderson <rth@redhat.com>
4141
4142 * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
4143 * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
4144
4145 2003-10-20 Dorit Naishlos <dorit@il.ibm.com>
4146
4147 * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
4148 support new flag -minsert-sched-nops.
4149 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
4150 * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
4151 support new flag -minsert-sched-nops.
4152 (is_cracked_insn, is_microcoded_insn): New functions.
4153 (rs6000_sched_finish): New function.
4154 (rs6000_issue_rate): Return 5 for power4.
4155 (get_next_active_insn, insn_terminates_group_p): New
4156 functions.
4157 (is_costly_group, force_new_group): New functions.
4158 (redefine_groups, pad_groups): New functions.
4159 (rs6000_variable_issue): Use new functions.
4160 * doc/invoke.texi (-minsert-sched-nops): Document new
4161 option.
4162
4163 2003-10-20 David S. Miller <davem@redhat.com>
4164
4165 * config/sparc/sparc.md (type attribute): Add new insn types
4166 fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
4167 (patterns emitting VIS insns): Use them.
4168 * config/sparc/ultra1_2.md: Add VIS scheduling rules.
4169 * config/sparc/ultra3.md: Likewise.
4170
4171 2003-10-20 Falk Hueffner <falk@debian.org>
4172
4173 PR target/12654
4174 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
4175 comparison against constant by adjusting the argument except for
4176 EQ and NE.
4177
4178 2003-10-19 Mark Mitchell <mark@codesourcery.com>
4179
4180 * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
4181 arm1136jfs, and armv6j.
4182 * config/arm/arm.c (FL_ARCH6J): New macro.
4183 (FL_VFPV2): Likewise.
4184 (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
4185 and arm1136jfs.
4186 (all_architectures): Add entry for armv6j.
4187 (arm_override_options): Add entries for arm926ejs, arm1026ejs,
4188 arm1136js, and arm1136jfs.
4189 * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
4190 (TARGET_CPU_arm1026ej_s): Likewise.
4191 (TARGET_CPU_arm1136j_s): Likewise.
4192 (TARGET_CPU_arm1136jf_s): Likewise.
4193 * doc/invoke.texi: Document new ARM cores and architecture
4194 variants.
4195
4196 2003-10-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4197
4198 * Makefile.in (toplev.o): Add value-prof.h dependency.
4199 (value-prof.o): Add REGS_H dependency.
4200 * common.opt (fprofile-values, fvpt): New.
4201 * flags.h (flag_value_profile_transformations): Declare.
4202 * opts.c (common_handle_option): Handle -fprofile_values and
4203 -fvpt.
4204 * profile.c (branch_prob): Don't remove death notes here.
4205 * timevar.def (TV_VPT): New.
4206 * value-prof.c: Include regs.h.
4207 (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
4208 gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
4209 mod_subtract_transform, value_profile_transformations): New.
4210 (insn_values_to_profile): Call insn_divmod_values_to_profile.
4211 (find_values_to_profile): Add dumps.
4212 * value-prof.h (value_profile_transformations): Declare.
4213 * toplev.c: Include value-prof.h.
4214 (rest_of_handle_value_profile_transformations): New.
4215 (enum dump_file_index): Add DFI_vpt.
4216 (dump_file): Add vpt dump.
4217 (flag_value_profile_transformations): New.
4218 (lang_independent_options): Add flag_profile_values and
4219 flag_value_profile_transformations.
4220 (rest_of_compilation): Call
4221 rest_of_handle_value_profile_transformations.
4222 (process_options): Let -fvpt imply -fprofile-values.
4223 * doc/invoke.texi (-fvpt): Document.
4224
4225 2003-10-19 Jan Hubicka <jh@suse.cz>
4226
4227 * i386.c (print_reg): Do not abort on certain registers.
4228
4229 PR optimization/12612
4230 * reg-stack.c (subst_stack_regs_pat): Use st(1) for clobbers.
4231 * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
4232 match_scratch; avoid bogus paralles.
4233
4234 PR target/12674
4235 * i386.c (ix86_function_regparm): Disable implicit register passing
4236 conventions when profiling.
4237
4238 2003-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
4239 Richard Henderson <rth@redhat.com>
4240
4241 PR optimization/8178
4242 * config/i386/i386.md (*movsi_zero): Delete.
4243 (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
4244
4245 2003-10-19 Richard Henderson <rth@redhat.com>
4246
4247 * config/alpha/alpha.c (fix_operator): New.
4248 (divmod_operator): Tidy.
4249 (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
4250 * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
4251 (PREDICATE_CODES): Update.
4252 * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
4253 (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
4254 (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
4255 (fix_truncsfdi_ieee): Likewise.
4256 (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
4257 (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
4258 * config/alpha/alpha-protos.h: Update.
4259
4260 2003-10-19 Richard Sandiford <rsandifo@redhat.com>
4261
4262 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
4263 * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
4264 * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
4265 constant operands.
4266
4267 2003-10-18 Kazu Hirata <kazu@cs.umass.edu>
4268
4269 * doc/extend.texi: Fix typos.
4270 * doc/invoke.texi: Likewise.
4271
4272 2003-10-18 Nicolas Pitre <nico@cam.org>
4273
4274 * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
4275 XScale optimizations not arm_arch_xscale.
4276 * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
4277
4278 2003-10-18 Ulrich Weigand <uweigand@de.ibm.com>
4279
4280 * config/s390/s390-protos.h (shift_count_operand): Add prototype.
4281 * config/s390/s390.c (shift_count_operand): New function.
4282 (s390_extra_constraint): Use it to implement 'Y' constraint.
4283 (print_shift_count_operand): New function.
4284 (print_operand): Use it to implement '%Y'.
4285 * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
4286 (PREDICATE_CODES): Add shift_count_operand.
4287 * config/s390/s390.md ("rotldi3"): Merge alternatives,
4288 using "shift_count_operand" predicate and "Y" constraint,
4289 and "%Y" to output the combined shift count.
4290 ("rotlsi3"): Likewise.
4291 ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
4292 ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
4293 "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
4294 ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
4295 ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
4296 ("lshrsi3"): Likewise.
4297
4298 2003-10-18 Gunther Nikl <gni@gecko.de>
4299
4300 * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
4301 argument to asm_fprintf statement.
4302
4303 2003-10-18 Fariborz Jahanian <fjahanian@apple.com>
4304
4305 * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
4306 (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
4307 a "long long" argument.
4308
4309 2003-10-18 Alexandre Oliva <aoliva@redhat.com>
4310
4311 * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
4312 as well.
4313
4314 2003-10-18 Richard Sandiford <rsandifo@redhat.com>
4315
4316 * rtl.h (rtl_size): Declare.
4317 (rtunion): Remove rtwint.
4318 (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
4319 (RTX_HDR_SIZE, RTX_SIZE): New macros.
4320 (RTL_CHECK1): Adjust for new rtx_def layout.
4321 (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
4322 (XWINT, XCWINT): Likewise. Access the rtx structure directly.
4323 (X0WINT): Remove.
4324 (X0ANY): New macro.
4325 * rtl.def: Adjust comments for new rtx_def layout.
4326 * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
4327 number of slots.
4328 * rtl.c (rtx_size): New array.
4329 (rtx_alloc): Adjust call to ggc_alloc_rtx. Use RTX_HDR_SIZE.
4330 (copy_rtx): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
4331 (shallow_copy_rtx): Adjust call to ggc_alloc_rtx. Use RTX_SIZE.
4332 * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
4333 * emit-rtl.c (copy_most_rtx): Likewise.
4334 (copy_rtx_if_shared): Use RTX_SIZE.
4335 (copy_insn_1): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
4336 * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call. Use RTX_HDR_SIZE.
4337 * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
4338 (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
4339 an array. Adjust output for new rtx_def layout.
4340 * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
4341 * reload1.c (eliminate_regs): Use RTX_SIZE.
4342 * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
4343 * gdbinit.in (pi): Likewise.
4344
4345 2003-10-18 Jan Hubicka <jh@suse.cz>
4346
4347 * integrate.c (copy_decl_for_inlining): Revert previous patch.
4348
4349 2003-10-18 Jan Hubicka <jh@suse.cz>
4350
4351 * integrate.c (copy_decl_for_inlining): Fix copying of copies.
4352
4353 2003-10-18 Roger Sayle <roger@eyesopen.com>
4354
4355 * libgcc.texi: Group multi-word types, such as "long double" and
4356 "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
4357 Document __unord?f2 as returning a non-zero value, not just one.
4358
4359 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
4360
4361 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
4362 ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
4363
4364 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4365
4366 * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
4367 match_operand.
4368
4369 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4370
4371 * config/sparc/sparc.c (function_arg_record_value_1): New fourth
4372 parameter packed_p. Search for a DECL_PACKED field only if
4373 packed_p is false. Pass packed_p recursively.
4374 (function_arg_record_value_2): Likewise.
4375 (function_arg_record_value): Update calls to
4376 function_arg_record_value_1 and function_arg_record_value_2.
4377
4378 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4379
4380 * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
4381 was successfully forced to memory before using the result.
4382
4383 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4384
4385 PR optimization/8178
4386 * config/i386/i386.md (*movsi_zero): New insn to set
4387 a register to zero on TARGET_USE_MOV0 targets.
4388
4389 2003-10-18 Kelley Cook <kcook@gcc.gnu.org>
4390
4391 * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
4392 (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
4393
4394 2003-10-17 David Edelsohn <edelsohn@gnu.org>
4395
4396 * doc/invoke.texi (gcse-las): Fix typo.
4397
4398 2003-10-17 Andrew Pinski <pinskia@physics.uc.edu>
4399
4400 * doc/install.texi: Remove first part of the sentence for
4401 zsh not working. Change gcc to GCC.
4402
4403 PR bootstrap/12546
4404 * doc/install.texi: Document that zsh does not work when
4405 configuring gcc.
4406
4407 2003-10-17 Nathanael Nerode <neroden@gcc.gnu.org>
4408
4409 * config/ptx4.h: Switch to DWARF 2; update comments.
4410
4411 2003-10-17 Segher Boessenkool <boessen@de.ibm.com>
4412 Hartmut Penner <hpenner@de.ibm.com>
4413
4414 PR 10404, partial 11591, partial 11601
4415 * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
4416 "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
4417 "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
4418 "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
4419 "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
4420 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
4421 (altivec_expand_stv_builtin): Adjust for the memory_operand.
4422 (altivec_expand_builtin): Call altivec_expand_lv_builtin.
4423 (altivec_init_builtins): Use `long int' for memory offsets.
4424
4425 2003-10-17 Jan Hubicka <jh@suse.cz>
4426
4427 * opts.c (common_handle_option): Handle OPT_fweb
4428 * invoke.texi (-fweb): Add missing parts of documentation.
4429
4430 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4431
4432 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
4433 before redefinition.
4434
4435 2003-10-17 Mostafa Hagog <mustafa@il.ibm.com>
4436
4437 * common.opt: Add description of the new -fgcse-las flag.
4438 * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
4439 * gcse.c (hash_scan_set): Handle the case of store expression and
4440 insert the memory expression to the hash table, this way we make it
4441 possible to discover redundant loads after stores and remove them.
4442 (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
4443 to pre_insert_copies, it is not the correct place to call it after
4444 adding stores to be in the available expression hash table.
4445 (pre_insert_copies): Added the call to update_ld_motion_stores when
4446 one or more copies were inserted.
4447 * opts.c (common_handle_option): Handle the -fgcse-las flag.
4448 * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
4449
4450 * doc/invoke.tex: Document new -fgcse-las flag.
4451
4452 2003-10-18 Alan Modra <amodra@bigpond.net.au>
4453
4454 * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
4455 for posterity, then remove it.
4456
4457 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
4458 Nathan Sidwell <nathan@codesourcery.com>
4459
4460 * config/arm/arm.c (use_return_insn): Not a single instruction, if
4461 there's a frame pointer.
4462 (arm_output_epilogue): Protect stack pointer from being corrupted
4463 on interrupt.
4464
4465 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
4466
4467 * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
4468
4469 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
4470
4471 * combine.c (simplify_set): Do not clear out undobuf.other_insn
4472 already set elsewhere.
4473
4474 2003-10-17 Kelley Cook <kcook@gcc.gnu.org>
4475
4476 * config/i386/i386.c (ix86_expand_prologue): Use
4477 gen_allocate_stack_worker.
4478
4479 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4480
4481 * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
4482 without gas.
4483 (mips-sgi-irix6*): Likewise.
4484
4485 * config/mips/iris6gas.h: New file.
4486 * gcc/config.gcc (mips-sgi-irix6*): Use it.
4487
4488 * config/mips/mips.h (TARGET_IRIX): Provide default.
4489 (TARGET_IRIX5): Likewise.
4490 (TARGET_SGI_O32_AS): Likewise.
4491 * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
4492 (TARGET_IRIX5): Likewise.
4493 * config/mips/iris6.h (TARGET_IRIX6): Remove.
4494 (TARGET_IRIX5): Redefine as 0.
4495
4496 * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
4497 linker workaround with TARGET_IRIX and mips_abi instead of
4498 ASM_OUTPUT_UNDEF_FUNCTION.
4499 (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
4500 testing TARGET_IRIX and mips_abi explicitly.
4501 * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
4502 * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
4503
4504 * config/mips/mips.c (irix_output_external_libcall): Renamed from
4505 mips_output_external_libcall.
4506 Use new TARGET_IRIX in guard.
4507 * config/mips/mips-protos.h (irix_output_external_libcall): Match
4508 this.
4509 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
4510
4511 * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
4512 Define as 0.
4513
4514 * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
4515 depending on mips_abi.
4516 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
4517 * config/mips/mips.c (mips_output_function_prologue): Test
4518 FUNCTION_NAME_ALREADY_DECLARED at runtime.
4519 (mips_output_function_epilogue): Likewise.
4520 (build_mips16_function_stub): Likewise.
4521 (build_mips16_call_stub): Likewise.
4522 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
4523 default.
4524
4525 * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
4526 IRIX 6 O32 assembler.
4527 (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
4528 (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
4529 _MIPS_SIM for O32 ABI.
4530 (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
4531 (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
4532 (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
4533 Integrate O32 version.
4534 (SUBTARGET_ASM_SPEC): Handle -mabi=32.
4535 (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
4536 O32 ABI.
4537 (BSS_SECTION_ASM_OP_32): Define.
4538 (BSS_SECTION_ASM_OP_64): Likewise.
4539 (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
4540 using them.
4541 (TARGET_ASM_NAMED_SECTION): Reflect renaming.
4542 Move up to allow override for O32 ABI without GNU as.
4543 (EH_FRAME_SECTION_NAME): Define explicitly.
4544 (MUST_USE_SJLJ_EXCEPTIONS): Define.
4545 [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
4546 DTORS_SECTION_ASM_OP): Dummy definitions.
4547 (TARGET_ASM_NAMED_SECTION): Undef statically.
4548 (EH_FRAME_SECTION_NAME): Likewise.
4549 (ASM_OUTPUT_FILENAME): Integrate mips.h version.
4550 (LINK_SPEC): Only use default options -call_shared -no_unresolved
4551 without -r.
4552 Don't pass -init, -fini with -mabi=32.
4553 (COLLECT_PARSE_FLAG): Define.
4554
4555 * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
4556 TARGET_IRIX.
4557 Renamed to use irix_ prefix.
4558 (iris6_asm_named_section): Likewise.
4559 (iris_section_align_entry_eq): Likewise.
4560 (iris_section_align_entry_hash): Likewise.
4561 (iris6_file_start): Likewise.
4562 (iris6_section_align_1): Likewise.
4563 (iris6_file_end): Likewise.
4564 (iris6_section_type_flags): Likewise.
4565 (iris_section_align_htab): Likewise.
4566 (iris_orig_asm_out_file): Likewise.
4567 [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
4568 (TARGET_ASM_FILE_END): Likewise.
4569 (TARGET_SECTION_TYPE_FLAGS): Likewise.
4570
4571 * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
4572 (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
4573 override_options instead.
4574 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
4575 (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
4576 * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
4577 flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
4578 assemblers.
4579 Likewise for constructor/destructor handling.
4580 (override_options): Handle IRIX O32 assembler quirks.
4581 [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
4582 without gas.
4583 (mips_file_start): Use new TARGET_IRIX.
4584 (mips_declare_object_name): No special processing for IRIX O32
4585 assembler.
4586 (mips_finish_declare_object): Likewise.
4587 (irix_asm_output_align): Renamed from iris6_asm_output_align.
4588 Don't record alignment for O32 ABI.
4589 (irix_file_start): Renamed from iris6_file_start.
4590 Return early for O32 ABI.
4591 (irix_file_end): Renamed from iris6_file_end.
4592 Don't emit .section directives for O32 ABI.
4593 * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
4594 * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
4595
4596 * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
4597 (MULTILIB_OSDIRNAMES): Likewise.
4598
4599 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4600
4601 * collect2.c (COLLECT_PARSE_FLAG): Provide default.
4602 (main): Use it.
4603 * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
4604
4605 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
4606
4607 * arm-modes.def (CC_Nmode): New condition code mode.
4608 * arm.c (thumb_condition_code): Delete.
4609 (arm_select_cc_mode): Handle single-bit test for Thumb.
4610 (arm_print_operand, cases 'd' and 'D'): Don't special case the
4611 condition code logic for Thumb.
4612 (get_arm_condition_code): Handle CC_Nmode.
4613 (thumb_cbrch_target_operand): New function.
4614 * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
4615 * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
4616 * arm.md: Add Thumb split patterns for zero_extract and
4617 sign_extract.
4618 (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
4619 (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
4620 (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
4621 (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
4622 (cbranchne_decr1): Re-work to use CC_Nmode.
4623
4624 * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
4625 by the return instruction. Add a use of the link register if it
4626 wasn't stored.
4627
4628 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
4629
4630 * flow.c (init_propagate_block_info): Don't abort if a conditional
4631 jump is not a comparison of a register. Instead, just don't record
4632 conditional life information.
4633
4634 2003-10-16 Jan Hubicka <jh@suse.cz>
4635
4636 PR optimization/12630
4637 * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
4638 for operands 7 and 8.
4639
4640 2003-10-16 Kelley Cook <kcook@gcc.gnu.org>
4641
4642 * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
4643
4644 2003-10-16 Danny Smith <dannysmith@users.sourceforge.net>
4645
4646 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
4647
4648 * config/i386/winnt.c (gen_stdcall_suffix): Make static
4649 (gen_fastcall_suffix): Likewise.
4650 (i386_pe_dllexport_p): Likewise.
4651 (i386_pe_dllimport_p): Likewise.
4652 (i386_pe_mark_dllexport): Likewise.
4653 (i386_pe_mark_dllimport): Likewise.
4654 (i386_pe_asm_named_section): Fix formatting.
4655
4656 2003-10-16 Zack Weinberg <zack@codesourcery.com>
4657
4658 * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
4659 * system.h: Declare snprintf if necessary.
4660 * configure, config.in: Regenerate.
4661
4662 2003-10-15 David Edelsohn <edelsohn@gnu.org>
4663
4664 * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
4665 arguments if TARGET_ALTIVEC_ABI.
4666
4667 2003-10-15 Roger Sayle <roger@eyesopen.com>
4668
4669 * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
4670 fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
4671 fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
4672 New functions.
4673 (expand_builtin_memcpy): Use integer_zerop instead of testing
4674 host_integerp and tree_low_cst directly. Move misapplied hunk
4675 for optimization wher SRC and DEST point to the same location.
4676 (expand_builtin_mempcpy): From here.
4677 (expand_builtin_memmove): Use integer_zerop instead of testing
4678 host_integerp and tree_low_cst_directly.
4679 (expand_builtin_memset): Likewise.
4680 (expand_builtin_memcmp): Likewise (and for integer_onep).
4681 (expand_builtin_strncmp): Likewise.
4682 (fold_builtin): Call the appropriate fold_builtin_foo functions
4683 to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
4684 strcmp and strncmp.
4685
4686 2003-10-15 Geoffrey Keating <geoffk@apple.com>
4687
4688 * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
4689 prototype. Clean up some whitespace.
4690 * config/darwin.c: Use gen_rtx_FOO (...) rather than
4691 gen_rtx (FOO, ...).
4692 (machopic_non_lazy_ptr_name): Make static.
4693 (name_needs_quotes): Allow '.' and '$' unquoted.
4694 (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
4695 case.
4696
4697 2003-10-15 Gábor Lóki <alga@rgai.hu>
4698
4699 * fold-const.c (tree_swap_operands_p): Disable some features
4700 when optimizing for size.
4701
4702 2003-10-15 David Daney <ddaney@avtrex.com>
4703
4704 * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
4705 * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
4706 from leaf functions.
4707 (DWARF_FRAME_RETURN_COLUMN): Ditto.
4708 (SIGNAL_UNWIND_RETURN_COLUMN): New, used
4709 by MD_FALLBACK_FRAME_STATE_FOR.
4710 * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
4711
4712 2003-10-15 Zack Weinberg <zack@codesourcery.com>
4713
4714 * genmodes.c: Include hashtab.h.
4715 (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
4716 (adj_bytesize, adj_alignment, adj_format, new_adjust)
4717 (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
4718 (print_maybe_const_decl, emit_mode_adjustments): New.
4719 (known_modes): Rename to modes.
4720 (find_mode): Kill class argument; look up in hash table.
4721 (new_mode): Insert into hash table also.
4722 (new_adjust): New.
4723 (reset_float_format, make_partial_integer_mode)
4724 (make_vector_mode): Tweak error reporting.
4725 (reset_float_format): Correct type of fourth argument.
4726 (emit_insn_modes_h): Add #defines to help make mode_size,
4727 mode_base_align, and real_format_for_mode conditionally const.
4728 (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
4729 (emit_real_format_for_mode): Likewise, but temporarily disabled.
4730 (emit_insn_modes_c): Call emit_mode_adjustments.
4731 (main): Initialize modes_by_name.
4732 * Makefile.in: Update dependencies.
4733 * machmode.def: Document EXPR arguments and new ADJUST_* statements.
4734 * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
4735 declarations of mode_size and mode_base_align. Declare
4736 init_adjust_machine_modes.
4737 * toplev.c (backend_init): Call init_adjust_machine_modes.
4738
4739 2003-10-15 Olivier Hainque <hainque@act-europe.fr>
4740
4741 * genmodes.c (calc_wider_mode): Allocate enough room for all the
4742 entries we'll possibly assign in the sort buffer.
4743
4744 2003-10-15 Ulrich Weigand <uweigand@de.ibm.com>
4745
4746 * config.gcc (s390x-ibm-tpf*): New target.
4747 * doc/install.texi: Document it.
4748 * config/s390/t-tpf: New file.
4749 * config/s390/tpf.h: New file.
4750
4751 2003-10-15 Hans-Peter Nilsson <hp@axis.com>
4752
4753 PR target/12598
4754 * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
4755 (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
4756 Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
4757 ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
4758 (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
4759 (define_split "*mov_sidesi_mem"+28, +29, +30): Use
4760 replace_equiv_address, not gen_rtx_MEM.
4761 * config/cris/cris.c (cris_mem_op): New match_operator function.
4762 (cris_notice_update_cc): Use replace_equiv_address, not
4763 gen_rtx_MEM.
4764 * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
4765
4766 2003-10-15 Bernardo Innocenti <bernie@develer.com>
4767
4768 * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
4769 MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
4770 definitions after the other flags.
4771
4772 2003-10-14 Ziemowit Laski <zlaski@apple.com>
4773
4774 * c-parse.in (methoddef, methodproto): Call objc_add_method()
4775 instead of add_method().
4776 * objc/objc-act.c (objc_check_decl): Do not check for
4777 constant_string_type.
4778 (add_method): Rename to objc_add_method().
4779 (really_start_method): Call objc_add_method() instead of
4780 add_method().
4781 * objc/objc-act.h (add_method): Rename to objc_add_method().
4782
4783 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
4784
4785 * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
4786 (s390_slb_comparison): Likewise.
4787 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
4788 New functions.
4789 * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
4790 and s390_slb_comparison.
4791 * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
4792 zSeries machines.
4793 ("*adddi3_31z", "*subdi3_31z"): New insns.
4794 ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
4795 "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
4796 New insns.
4797
4798 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
4799
4800 * configure.in: Clean up some feedback echoes.
4801 * configure: Regenerate.
4802
4803 * aclocal.m4: Properly quote names of macros being defined.
4804
4805 * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
4806
4807 2003-10-14 Steve Ellcey <sje@cup.hp.com>
4808
4809 * config/ia64/ia64.c (ia64_expand_call): Force function address
4810 to DImode.
4811 * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
4812
4813 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
4814
4815 * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
4816 "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
4817 ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
4818 "*divsf3_ibm"): Likewise.
4819
4820 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
4821
4822 * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
4823 target_alias with target_noncanonical.
4824
4825 2003-10-14 Geoffrey Keating <geoffk@apple.com>
4826
4827 * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
4828 and add case for machines where outgoing register parameters
4829 get stack space.
4830
4831 * config/darwin.c (machopic_indirect_data_reference): Use a scratch
4832 register when generating indirect address.
4833
4834 2003-10-14 Richard Earnshaw <rearnsha@arm.com>
4835
4836 * arm.c (arm_addimm_operand): MODE arguemnt is unused.
4837 * arm.md (cbranchne_decr1): Fix bootstrap warning.
4838
4839 2003-10-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4840
4841 * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
4842 * fixinc/fixincl.x: Regenerate.
4843 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
4844 testcase.
4845 Fixes PR bootstrap/9330.
4846
4847 2003-10-13 Eric Christopher <echristo@redhat.com>
4848
4849 * config/frv/frv.c (frv_adjust_field_align): Redo check for
4850 too wide bitfields.
4851 (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
4852 * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
4853 (SBSS_SECTION_ASM_OP): Remove.
4854 (EXTRA_SECTIONS): Remove in_sbss.
4855 (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
4856 (SBSS_SECTION_FUNCTION, sbss_section): Remove.
4857 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
4858 named_section.
4859
4860 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
4861
4862 * Makefile.in, configure.in, config.host, mkheaders.in: Replace
4863 uses of ${target_alias} for directory names (and other places which
4864 won't like the empty string) with ${target_noncanonical}. Introduce
4865 call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
4866 available.
4867 * configure: Regenerate.
4868
4869 2003-10-13 Ian Lance Taylor <ian@wasabisystems.com>
4870
4871 * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
4872 * config/arm/arm.md: For splits which rely on conditional moves,
4873 remove ! TARGET_IWMMXT condition.
4874
4875 2003-10-13 David S. Miller <davem@redhat.com>
4876
4877 * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
4878 (find_cond_trap): Always increment if we emit a conditional
4879 trap insn.
4880
4881 2003-10-13 Zack Weinberg <zack@codesourcery.com>
4882
4883 * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
4884 with min-insn-modes.o.
4885 (STAGESTUFF): Add min-insn-modes.c.
4886 (genobjs): Add genmodes.o.
4887 (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
4888 (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
4889 (min-insn-modes.c, min-insn-modes.o): New rules.
4890 (s-modes): Also generate min-insn-modes.c.
4891 ($(BUILD_PREFIX_1)insn-modes.o): Kill.
4892 * genmodes.c (struct mode_data): Add format field.
4893 (blank_mode, validate_mode, complete_mode): Update to match.
4894 (make_scalar_mode): Separate into make_int_mode and make_float_mode.
4895 (_SCALAR_MODE): Kill.
4896 (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
4897 (emit_insn_modes_c_header): Adjust.
4898 (emit_min_insn_modes_c_header, emit_real_format_for_mode)
4899 (emit_min_insn_modes_c): New functions.
4900 (emit_insn_modes_c): Call emit_real_format_for_mode.
4901 (main): Add -m option to generate min-insn-modes.c.
4902 * machmode.h: Update documentation. Add format argument to
4903 all uses of FLOAT_MODE.
4904 * real.c: Don't define real_format_for_mode here.
4905
4906 * dwarfout.c: Move default definition of PRINT_REG...
4907 * defaults.h: ...here.
4908 * print-rtl.c: Include tm_p.h.
4909 (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
4910 Kill.
4911 (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG. But surround
4912 this entire block with #ifndef GENERATOR_FILE.
4913 * regclass.c: Unconditionally define reg_names.
4914 * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
4915 Don't define DEBUG_REGISTER_NAMES.
4916 * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
4917 redefinition of REGISTER_NAMES.
4918 * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
4919
4920 * combine.c: Change all preprocessor conditionals on
4921 EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
4922 for clarity.
4923 * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
4924 * configure.in: Don't define EXTRA_CC_MODES.
4925 * configure, config.in: Regenerate.
4926 * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
4927
4928 * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
4929 May assume that GET_MODE_CLASS is accurate for extra CC modes
4930 at all times.
4931
4932 * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
4933 number of arguments to aggregate_value_p.
4934
4935 * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
4936 * machmode.def: Explain ARCH-modes.def. Document
4937 RESET_FLOAT_FORMAT. Improve commentary on various mode
4938 clusters. Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
4939 XF, or TF modes here. Remove backward-compatibility
4940 definition of CC.
4941
4942 * config/alpha/alpha-modes.def: New file; define TF mode.
4943 * config/arc/arm-modes.def: Define XF mode.
4944 * config/c4x/c4x-modes.def: Define QF and HF modes. Unset
4945 float format for SF and DF modes.
4946 * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
4947 * config/i386/i386-modes.def: Define XF and TF modes.
4948 * config/i960/i960-modes.def: Define TF mode.
4949 * config/ia64/ia64-modes.def: Define TF and OI modes.
4950 * config/m68k/m68k-modes.def: New file; define XF mode.
4951 * config/mips/mips-modes.def: New file; define TF mode, reset
4952 formats for SF and DF modes.
4953 * config/pa/pa-modes.def: Define TF mode.
4954 * config/rs6000/rs6000.c: Define TF and PSI modes.
4955 * config/s390/s390-modes.def: Define OI mode.
4956 * config/sh/sh-modes.def: New file; define PSI mode.
4957 * config/sparc/sparc-modes.def: Define TF mode.
4958 * config/vax/vax-modes.def: New file; reset formats for SF and
4959 DF modes.
4960
4961 * config/c4x/c4x.c (c4x_override_options): No need to mess
4962 with real_format_for_mode or set REAL_MODE_FORMATs.
4963 (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
4964 variable.
4965 * config/i386/i386.c (override_options): No need to set
4966 REAL_MODE_FORMATs here.
4967 * config/i960/i960.c (i960_initialize): Likewise.
4968 * config/m68k/m68k.c (m68k_override_options): Likewise.
4969 * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
4970 for TFmode only if not the default.
4971 * config/mips/mips.c (override_options): Likewise.
4972 * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
4973 DFmode only if not the default.
4974
4975 * config/i370/i370.h (RET_REG): Don't consider TFmode.
4976 * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
4977 * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
4978 of modes that don't appear anywhere in the machine description.
4979
4980 * config/arc/arc-modes.def, config/arm/arm-modes.def
4981 * config/c4x/c4x-modes.def, config/frv/frv-modes.def
4982 * config/i386/i386-modes.def, config/i960/i960-modes.def
4983 * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
4984 * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
4985 * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
4986 * config/sparc/sparc-modes.def: Convert to new style for
4987 declaring extra CC modes.
4988
4989 2003-10-13 Zack Weinberg <zack@codesourcery.com>
4990
4991 * cpplex.c (_cpp_clean_line): In the common case of a line
4992 with no trigraphs and no \-newline, avoid writing to memory.
4993 (_cpp_skip_block_comment): Use a local 'cur' pointer instead
4994 of the buffer member. Make c an uchar to avoid unnecessary
4995 sign extensions.
4996
4997 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
4998
4999 * configure.in: Remove unnecessary test.
5000 * configure: Regenerate.
5001
5002 * configure.in: Fix grammatical error. Move UWIN host error to...
5003 * config.host: Here.
5004 * configure: Regenerate.
5005
5006 2003-10-13 Andreas Krebbel <krebbel1@de.ibm.com>
5007
5008 * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
5009 "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
5010 of flag_unsafe_math_optimizations.
5011 * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
5012 "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
5013 fused-madd and no-fused-madd.
5014 * doc/invoke.texi: Documented the new options fused-madd and
5015 no-fused-madd for S/390.
5016
5017 2003-10-14 Alan Modra <amodra@bigpond.net.au>
5018
5019 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
5020 MASK_ALIGN_NATURAL if rs6000_alignment_string not given. Don't
5021 assign DEFAULT_ABI.
5022 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
5023 * config/rs6000/rs6000.c: Formatting.
5024 (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
5025 when rs6000_alignment_string given.
5026
5027 2003-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
5028
5029 PR target/12538
5030 * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
5031 (sparc_flat_must_save_register_p): New function to decide whether
5032 a register must be saved/restored in the function prologue/epilogue.
5033 (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
5034
5035 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
5036
5037 * config/avr/avr.c, config/avr/avr-protos.h: Convert to
5038 ISO C90 function declarations and definitions.
5039 * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
5040
5041 2003-10-12 Nathanael Nerode <neroden@gcc.gnu.org>
5042
5043 * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
5044 config files which do the same thing.
5045 * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
5046 config/freebsd6.h: Remove now unnecessary files.
5047
5048 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
5049
5050 * c-common.c (c_common_truthvalue_conversion): Warn if the
5051 address of a non-weak function is used as a truth value.
5052
5053 2003-10-12 Kazu Hirata <kazu@cs.umass.edu>
5054
5055 * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
5056 a literal.
5057 * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
5058 instead of a literal.
5059
5060 2003-10-12 Hans-Peter Nilsson <hp@bitrange.com>
5061
5062 * doc/extend.texi (Function Attributes): Mention the exceptional
5063 path for noreturn-marked functions.
5064
5065 2003-10-12 Jan Hubicka <jh@suse.cz>
5066
5067 * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
5068 warning.
5069
5070 2003-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5071
5072 * config/i386/i386.c (x86_this_parameter): Fix typo.
5073
5074 203-10-11 Jan Hubicka <jh@suse.cz>
5075
5076 * Makefile.in (web.o): New.
5077 * web.c: New file.
5078 * rtl.h (web_main): Declare.
5079 * timervar.def (TV_WEB): New.
5080 * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
5081 (rest_of_hanle_web): New.
5082 (flag_web): New static variable.
5083 (lang_independent_options): Add "web".
5084 (rest_of_compilation): Call rest_of_handle_web.
5085 * invoke.texi (-fweb): Document.
5086 * common.opt (fweb): New.
5087 * flags.h (flag_web): New.
5088 * opts.c (decode_options): Set flag_web at -O3.
5089
5090 * passes.texi (web construction): Document.
5091 * invoke.texi (-O3): Document that -fweb is enabled.
5092
5093 * regrename.c (regrename_optimize): Deal better with situation when
5094 replacement failed.
5095
5096 * sched-ebb.c: Include params.h and profile.h
5097 (schedule_ebbs): Use tracer parameters to discover superblocks
5098 * Makefile.in (sched-ebb.o): Add dependencies.
5099
5100 2003-10-11 Roger Sayle <roger@eyesopen.com>
5101
5102 * fold-const.c (negate_mathfn_p): New function to determine whether
5103 a built-in mathematical function is sign preserving, f(-x) == -f(x).
5104 Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
5105 (tree_swap_operands_p): Change API to take an additional argument
5106 indicating that the swapped operands evaluate in reverse order.
5107 Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
5108 operand side-effects or we don't care about flag_evaluation_order.
5109 (reorder_operands_p): New function to check whether its safe to
5110 evaluate the given operands in reverse order.
5111 (negate_expr_p): We can always negate integer constants unless
5112 we honor -ftrapv and the signed type would overflow. Only allow
5113 -(A-B) into B-A if reorder_operands_p says that its OK. Allow
5114 negation of COMPLEX_CST if both real and imaginary parts can be
5115 negated. Allow negation through floating point extensions and
5116 sign-preserving built-in functions.
5117 (negate_expr): Move the code to negate integers from "fold" to
5118 here. Always negate integer constants unless we honor -ftrapv
5119 and the signed type would overflow. Always negate real constants
5120 unless we honor -ftrapping-math. Only convert -(A-B) into B-A
5121 if allowed by reorder_operands_p. Add support for COMPLEX_CST.
5122 Optimize negation through floating point extensions and
5123 sign-preserving built-in functions (as defined by negate_mathfn_p).
5124 (fold): Adjust calls to tree_swap_operands_p.
5125 (fold <NEGATE_EXPR>): Move the remaining negation optimizations
5126 to negate_expr_p/negate_expr.
5127 (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
5128 allowed to convert (-A) - B into (-B) - A.
5129
5130 2003-10-11 Roger Sayle <roger@eyesopen.com>
5131
5132 * builtins.c (expand_builtin_strcmp): Defend against the possibility
5133 that gen_cmpstrsi may fail: Stabilize the argument list against
5134 re-evaluation and expand the library call directly using this saved
5135 argument list if a cmpstrsi sequence can't be generated.
5136 (expand_builtin_strncmp): Likewise.
5137
5138 * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
5139
5140 2003-10-11 Roger Sayle <roger@eyesopen.com>
5141
5142 PR optimization/12260
5143 * simplify-rtx.c (simplify_unary_operation): Simplify all unary
5144 operations through CONST nodes. Optimize (neg (plus X C)) as
5145 (minus -C X) for constant values C.
5146 (simplify_binary_operation): Optimize (minus (neg X) C) as
5147 (minus -C X) for constant values C.
5148 (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
5149 instead create (minus -C X).
5150
5151 2003-10-11 Roger Sayle <roger@eyesopen.com>
5152
5153 * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
5154 safe_from_p for us, once it chooses an evaluation order.
5155 (expand_expr <MULT_EXPR>): Likewise.
5156 (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise. If expand_operands
5157 places the second operand in "target", swap the operands.
5158 (do_store_flag): Let expand_operands call safe_from_p for us.
5159
5160 2003-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
5161
5162 PR optimization/12544
5163 * function.c (put_var_into_stack): Don't generate ADDRESSOFs
5164 for DECL_NONLOCAL decls.
5165
5166 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5167
5168 * expr.c: Follow spelling conventions.
5169 * final.c: Likewise.
5170 * optabs.c: Likewise.
5171 * sched-deps.c: Likewise.
5172 * sdbout.c: Likewise.
5173
5174 Sat Oct 11 12:24:23 CEST 2003 Jan Hubicka <jh@suse.cz>
5175
5176 * varasm.c (notice_global_symbol): Fix handling of variables; avoid
5177 re-computing of variable.
5178
5179 2003-10-11 Richard Henderson <rth@redhat.com>
5180
5181 * config/alpha/alpha.c (alpha_return_in_memory): Rename from
5182 return_in_memory, make static, change signature to match target hook.
5183 (alpha_setup_incoming_varargs): Make static, change signature to
5184 match target hook, add code for vms and unicos.
5185 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
5186 TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
5187 TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
5188 TARGET_STRICT_ARGUMENT_NAMING,
5189 TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
5190 * config/alpha/alpha-protos.h: Update.
5191 * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
5192 PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
5193 SETUP_INCOMING_VARARGS): Remove.
5194 * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
5195 * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
5196
5197 2003-10-11 Ian Lance Taylor <ian@wasabisystems.com>
5198
5199 * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
5200
5201 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5202
5203 * config/m68k/lb1sf68.asm: Follow spelling conventions.
5204 * config/m68k/m68k.c: Likewise.
5205 * config/m68k/m68k.h: Likewise.
5206 * config/m68k/m68k.md: Likewise.
5207
5208 2003-10-11 Roger Sayle <roger@eyesopen.com>
5209
5210 * builtins.c (expand_builtin_memcpy): Optimize case when the two
5211 pointer arguments are the equal, non-volatile and side-effect free.
5212 (expand_builtin_mempcpy): Likewise.
5213 (expand_builtin_memmove): Likewise.
5214 (expand_builtin_strcpy): Likewise.
5215 (expand_builtin_memcmp): Likewise.
5216 (expand_builtin_strcmp): Likewise.
5217 (expand_builtin_strncmp): Likewise.
5218
5219 2003-10-11 Roger Sayle <roger@eyesopen.com>
5220
5221 * combine.c (apply_distributive_law): Enable "distributive" floating
5222 point optimizations with -funsafe-math-optimizations.
5223
5224 2003-10-11 Andrew Pinski <pinskia@physics.uc.edu>
5225
5226 * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
5227
5228 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5229
5230 * config/m68k/m68k-protos.h: Remove the prototype for
5231 finalize_pic.
5232
5233 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5234
5235 * config/m68k/m68k.c: Fix comment typos.
5236
5237 2003-10-11 Bernardo Innocenti <bernie@develer.com>
5238
5239 * config/m68k/m68k-protos.h (use_return_insn): Change return type from
5240 int to bool.
5241 * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
5242 (current_frame): New global var.
5243 (m68k_compute_frame_layout): Cache computations in current_frame.
5244 (m68k_initial_elimination_offset): Use values from current_frame
5245 instead of recomputing them.
5246 (use_return_insn): Likewise.
5247 (m68k_output_function_prologue): Likewise.
5248 (m68k_output_function_epilogue): Likewise.
5249 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
5250 inside the block for __pic__.
5251
5252 2003-10-11 Peter Barada <peter@baradas.org>
5253 Bernardo Innocenti <bernie@develer.com>
5254
5255 * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
5256 (m68k_save_reg): Add boolean parameter `interrupt_handler'.
5257 (m68k_interrupt_function_p): New function.
5258 (m68k_handle_fndecl_attribute): Ditto.
5259 (m68k_compute_frame_layout): Ditto.
5260 (m68k_attribute_table): Define back-end specific attributes.
5261 (m68k_output_function_epilogue): Emit RTE instruction for interrupt
5262 functions.
5263
5264 2003-10-11 Bernardo Innocenti <bernie@develer.com>
5265
5266 * config/m68k/t-uclinux: New target Makefile fragment.
5267 * config/m68k/uclinux.h: New target macro file.
5268 * config.gcc (m68k-*-uclinux): New target definition.
5269
5270 2003-10-10 Roger Sayle <roger@eyesopen.com>
5271
5272 * builtins.c (builtin_mathfn_code): Generalize to check whether
5273 the call is to any built-in function by comparing the call's
5274 argument list against the builtin decl's function type.
5275
5276 2003-10-10 Roger Sayle <roger@eyesopen.com>
5277
5278 * cse.c (constant_pool_entries_regcost): New global variable to
5279 hold the register cost component of constant_pool_entries_cost.
5280 (fold_rtx): Calculate constant_pool_entries_regcost at the same
5281 time as constant_pool_entries_cost.
5282 (cse_insn): Set both src_folded_cost and src_folded_regcost from
5283 constant_pool_entries_cost and constant_pool_entries_regcost.
5284 (cse_main): Initialize constant_pool_entries_regcost to zero.
5285
5286 * optabs.c (expand_unop): Attach a REG_EQUAL note describing
5287 the semantics of the sequence of bit operations used to negate
5288 a floating-point value.
5289 (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
5290 the semantics of the bit operations used to abs a floating point
5291 value.
5292
5293 2003-10-11 Bernardo Innocenti <bernie@develer.com>
5294 Paul Dale <pauli@snapgear.com>
5295
5296 * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
5297 support.
5298 * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
5299 -fpic, -fPIC, -msep-data and -mid-shared-library.
5300 * config/m68k/m68k.c (m68k_library_id_string): New global variable.
5301 (override_options): Add -msep-data and -mshared-library-id support.
5302 (m68k_output_function_prologue): Generate code to load A5 for
5303 TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
5304 (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
5305 (m68k_output_pic_call): New function.
5306 * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
5307 (TARGET_ID_SHARED_LIBRARY): Ditto.
5308 (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
5309 * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
5310 (call_value): Likewise.
5311
5312 2003-10-10 Zack Weinberg <zack@codesourcery.com>
5313
5314 * gengenrtl.c (find_formats, genheader): Make i an unsigned
5315 int, remove cast of NUM_RTX_CODE.
5316 * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
5317 entire file. Remove the #ifs on GET_MODE_MASK etc and
5318 GET_MODE_WIDER_MODE etc.
5319
5320 2003-10-10 Eric Christopher <echristo@redhat.com>
5321
5322 * lcm.c (optimize_mode_switching): Change NORMAL_MODE
5323 to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
5324 that set mode.
5325 * config/sh/sh.h (MODE_ENTRY): New macro.
5326 (MODE_EXIT): Ditto.
5327 (MODE_AFTER): Ditto.
5328 * config/sh/sh.md: Change for MODE_AFTER. Add
5329 fp_set attribute.
5330 * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
5331
5332 2003-10-10 Zack Weinberg <zack@codesourcery.com>
5333
5334 * genmodes.c, mode-classes.def: New files.
5335 * machmode.def: Rewritten to genmodes.c interface.
5336 * Makefile.in (extra_modes_file): New substitution variable.
5337 (MACHMODE_H): No longer includes machmode.def or
5338 @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
5339 (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
5340 (OBJS-common): Add insn-modes.o.
5341 (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
5342 genmodes$(build_exeext).
5343 (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
5344 genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
5345 (s-genrtl): Don't depend on $(RTL_BASE_H).
5346 (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
5347 or $(RTL_BASE_H); just rtl.def.
5348 * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
5349 real.h. Give fake definition of CONST_DOUBLE_FORMAT and
5350 substitute definition of NUM_RTX_CODE. Add casts to avoid
5351 warnings.
5352 * machmode.h: Include insn-modes.h, not machmode.def. Include
5353 mode-classes.def to define enum mode_class. Tweak definitions
5354 of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
5355 GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
5356 (inner_mode_array): Renamed mode_inner.
5357 (mode_base_align): New.
5358 * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
5359 mode_unit_size, mode_wider_mode, mode_mask_array,
5360 inner_mode_array, class_narrowest_mode): Delete definitions.
5361 * stor-layout.c (get_mode_alignment): Use mode_base_align.
5362 * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
5363 and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
5364
5365 * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
5366 No need to define BITS_PER_UNIT.
5367
5368 2003-10-10 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5369
5370 * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
5371 (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
5372 (ia64_initialize_trampoline): If not using GAS, declare trampoline
5373 as global.
5374 * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
5375 (ASM_OUTPUT_DEBUG_LABEL): Likewise.
5376
5377 * stor-layout.c (compute_record_mode): Don't force BLKmode if
5378 field is zero-length BLKmode.
5379 * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
5380 zero-size references.
5381
5382 * combine.c (distribute_links): Properly test for REG being set.
5383
5384 * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
5385 gen_lowpart and company except for REG.
5386
5387 2003-10-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5388
5389 * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
5390
5391 2003-10-10 Nathanael Nerode <neroden@gcc.gnu.org>
5392
5393 * config.gcc (mips*-*-netbsd*): Remove content-free line.
5394
5395 2003-10-10 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
5396
5397 * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
5398 gcov_position_t and gcov_type.
5399
5400 2003-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
5401
5402 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
5403 * configure: Regenerate.
5404
5405 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
5406
5407 * config/h8300/h8300.md (define_asm_attributes): Specify
5408 the length of an asm insn more precisely.
5409
5410 2003-10-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5411
5412 * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
5413
5414 2003-10-09 Bob Wilson <bob.wilson@acm.org>
5415
5416 * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
5417 FP register number to 48 and MAC16 accumulator to 0x210.
5418
5419 2003-10-09 Nathanael Nerode <neroden@gcc.gnu.org>
5420
5421 * config.gcc: Remove redundant thread_file setting clauses for
5422 various *-*-linux* targets.
5423
5424 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
5425
5426 * config/h8300/h8300.md (define_asm_attributes): New.
5427
5428 2003-10-09 Roger Sayle <roger@eyesopen.com>
5429
5430 * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
5431 to the comparison, as emit_libcall_block calls copy_rtx on equiv.
5432
5433 2003-10-09 Dorit Naishlos <dorit@il.ibm.com>
5434
5435 * haifa-sched.c (ok_for_early_schedule): New function.
5436 (early_queue_to_ready): New function.
5437 (schedule_block): Allow early removal of insns from Q.
5438 (schedule_insn): Update INSN_TICK in case of premature
5439 issue.
5440 * common.opt (sched_stalled_insns): New flag.
5441 (sched_stalled_insns_dep): New flag.
5442 * flags.h: Same above flags.
5443 * opts.c: Same as above.
5444 * toplev.c: Same as above.
5445 * target.h (targetm.sched.is_costly_dependence): New
5446 hook.
5447 * target-def.h: Same as above.
5448 * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
5449 Support new flag -msched-costly-dep.
5450 (DEFAULT_SCHED_COSTLY_DEP): Define.
5451 * config/rs6000/rs6000.c:
5452 (rs6000_is_costly_dependence): New function.
5453 (is_load_insn, is_store_insn): New functions.
5454 (is_load_insn1, is_store_insn1, is_mem_ref): New
5455 functions.
5456 * doc/invoke.texi (-fsched-stalled-insns-dep)
5457 (-fsched-stalled-insns, -msched-costly-dep): Document
5458 options.
5459 * doc/tm.texi (is_costly_dependence): Define new
5460 scheduler target hook.
5461
5462 2003-10-09 Jason Merrill <jason@redhat.com>
5463
5464 PR c++/6392
5465 * c-common.c (c_build_qualified_type): Look through arrays first.
5466 (c_apply_type_quals_to_decl): Look through arrays.
5467
5468 * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
5469 types with constructors.
5470
5471 * coverage.c (build_ctr_info_value): Use build_decl to make a
5472 VAR_DECL.
5473 (create_coverage): Likewise.
5474
5475 * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
5476 here.
5477 (expand_asm_operands): Not here.
5478 (parse_input_constraint): No longer static.
5479 * tree.h: Declare it.
5480
5481 2003-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
5482
5483 * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
5484 libgcc_s.so.
5485 (SHLIB_INSTALL): Likewise.
5486
5487 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
5488
5489 * doc/install.texi: Remove reference to removed 'pthreads' thread
5490 option.
5491
5492 2003-10-08 Aldy Hernandez <aldyh@redhat.com>
5493
5494 * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
5495 operand 2.
5496
5497 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
5498
5499 * config.gcc: Don't accept --enable-threads=pthreads. Clean
5500 up related case statements.
5501 * configure.in: Don't accept --enable-threads=pthreads,
5502 decosf1, mach, or os2 (none of which work anyway). Alphabetize
5503 supported thread files in case clause.
5504 * configure: Regenerate.
5505
5506 2003-10-08 Geoffrey Keating <geoffk@apple.com>
5507
5508 * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
5509 definition to above SPARC_STACK_BOUNDARY_HACK.
5510
5511 2003-10-08 Jason Merrill <jason@redhat.com>
5512
5513 * c-pretty-print.c (pp_c_postfix_expression)
5514 <COMPOUND_LITERAL_EXPR>: Fix thinko.
5515
5516 2003-10-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5517
5518 * mklibgcc.in: Don't hide undefined or typeless symbols.
5519
5520 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5521
5522 PR optimization/12142
5523 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
5524 uses of the register in the SET_SRC. Remove unnecessary argument.
5525 * pa.c (legitimize_pic_address): Before reload, use a scratch register
5526 for the intermediate result in loading the address of a SYMBOL_REF.
5527 Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn
5528 which loads the SYMBOL_REF address.
5529
5530 2003-10-08 Timo Kokkonen <tjko@iki.fi>
5531 Eric Botcazou <ebotcazou@libertysurf.fr>
5532
5533 PR bootstrap/12490
5534 * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
5535 to define the size of the extern_C_braces array. Set it to 200.
5536 (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
5537
5538 2003-10-08 Carlo Wood <carlo@alinoe.com>
5539
5540 * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
5541 a space after the -o option. flex 2.5.31 understands both, with
5542 and without the space. Removed that space.
5543
5544 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
5545
5546 * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
5547 (compute_frame_size): Initialize it. Remove the .cprestore slot
5548 from args_size.
5549 (mips_output_function_prologue): Simplify accordingly.
5550 (mips_debugger_offset): Change the mips16 frame pointer offset from
5551 current_function_outgoing_args to cfun->machine->frame.args_size.
5552 (mips_initial_elimination_offset): Likewise.
5553 (mips_expand_prologue): Likewise.
5554 (mips_expand_epilogue): Likewise.
5555
5556 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
5557
5558 * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
5559 (EXTRA_MEMORY_CONSTRAINT): Define.
5560 (CAN_ELIMINATE): Remove lwu workaround.
5561 * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
5562 Use a 'W' constraint for the source operand.
5563
5564 2003-10-08 Kazu Hirata <kazu@cs.umass.edu>
5565
5566 * genopinit.c (main): Output code to declare undefined
5567 variables.
5568
5569 2003-10-07 Kelley Cook <kcook@gcc.gnu.org>
5570
5571 * gengtype-lex.l: Remove -Wtraditional cruft.
5572 * Makefile.in (gengtype-lex.c): Likewise.
5573
5574 2003-10-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5575
5576 * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
5577
5578 2003-10-07 Jason Merrill <jason@redhat.com>
5579
5580 PR c++/12519
5581 * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
5582 it isn't a decl.
5583
5584 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
5585
5586 * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
5587 not overridden.
5588 Fixes PR bootstrap/12173.
5589
5590 2003-10-07 Zack Weinberg <zack@codesourcery.com>
5591
5592 * errors.c: Don't include coretypes.h or tm.h.
5593 (trim_filename): Use IS_DIR_SEPARATOR.
5594 * Makefile.in: Update dependencies of errors.o and
5595 $(BUILD_PREFIX_1)errors.o.
5596
5597 2003-10-07 Geoffrey Keating <geoffk@apple.com>
5598
5599 * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
5600 account when aligning arguments.
5601 * calls.c (STACK_POINTER_OFFSET): Move default from here ...
5602 * defaults.h (STACK_POINTER_OFFSET): ... to here.
5603 * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
5604 it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
5605 (SPARC_STACK_BOUNDARY_HACK): Define.
5606 * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
5607 arrange for vector parameters to varargs functions to be passed
5608 in both memory and GPRs when appropriate.
5609 (rs6000_va_arg): Vector arguments passed in memory are 16-byte
5610 aligned.
5611
5612 * hooks.c (hook_bool_tree_true): New.
5613 (hook_rtx_tree_int_null): New.
5614 (hook_rtx_rtx_null): Use NULL, not 0.
5615 * hooks.h: Add 'extern' to everything.
5616 (hook_bool_tree_true): New.
5617 (hook_rtx_tree_int_null): New.
5618 * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
5619 * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
5620 * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
5621 prototype.
5622 * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
5623 (setup_incoming_varargs): Prototype.
5624 (TARGET_PROMOTE_FUNCTION_ARGS): Define.
5625 (TARGET_PROMOTE_FUNCTION_RETURN): Define.
5626 (TARGET_STRUCT_VALUE_RTX): Define.
5627 (TARGET_RETURN_IN_MEMORY): Define.
5628 (TARGET_SETUP_INCOMING_VARARGS): Define.
5629 (TARGET_STRICT_ARGUMENT_NAMING): Define.
5630 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
5631 (init_cumulative_args): Use rs6000_return_in_memory.
5632 (setup_incoming_varargs): Make 'static'.
5633 * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
5634 (PROMOTE_FUNCTION_RETURN): Delete.
5635 (STRUCT_VALUE): Delete.
5636 (RETURN_IN_MEMORY): Delete.
5637 (SETUP_INCOMING_VARARGS): Delete.
5638
5639 2003-10-07 Gerald Pfeifer <gerald@pfeifer.com>
5640
5641 * doc/invoke.texi (Warning Options): Simplify and clarify the
5642 descriptions of -Wnonnull and -Winit-self.
5643
5644 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
5645
5646 * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
5647 indicees for floating-point conversersion libcalls.
5648
5649 2003-10-07 Nathanael Nerode <neroden@gcc.gnu.org>
5650
5651 * Makefile.in: Add more comments separating large conceptually
5652 separate sections.
5653
5654 * configure.in: Clean up thread file logic.
5655 * configure: Regenerate.
5656
5657 2003-10-07 Danny Smith <dannysmith@users.sourceforge.net>
5658
5659 * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
5660 (switch_to_section): Handle in_readonly_data.
5661 * config/i386/winnt.c (i386_pe_asm_named_section): Handle
5662 readonly data.
5663
5664 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
5665
5666 * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
5667 it.
5668 (cbranchne_decr1): New Thumb pattern.
5669 * arm.c (arm_addimm_operand): New insn predicate.
5670 * arm-protos.h: Add a prototype for it.
5671 * arm.h (PREDICATE_CODES): Add it.
5672
5673 2003-10-07 Dorit Naishlos <dorit@il.ibm.com>
5674
5675 * sched-int.h (sched_info): New field
5676 sched_max_insns_priority.
5677 * sched-rgn.c (init_ready_list): Add invocations to
5678 targetm.sched.adjust_priority.
5679 (sched_max_insns_priority): Init new field.
5680 * sched-ebb.c (sched_max_insns_priority): Init new field.
5681 * haifa-sched.c (set_priorities): Set
5682 sched_info->sched_max_insns_priority.
5683 * config/rs6000/rs6000.h:
5684 (rs6000_sched_restricted_insns_priority_str): Support new
5685 flag -mprioritize-restricted-insns.
5686 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
5687 * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
5688 function.
5689 (rs6000_adjust_priority): Change priority of restricted
5690 insns, using above new function and new flag.
5691 * doc/invoke.texi (-mprioritize-restricted-insns): Document
5692 new option.
5693
5694 2003-10-07 Zack Weinberg <zack@codesourcery.com>
5695
5696 * expr.c (cmpstr_optab, cmpmem_optab): New.
5697 * genopinit.c: Initialize them.
5698 * optabs.h: Declare them.
5699 * optabs.c (init_optabs): Clear them.
5700 (prepare_cmp_insn): Use cmpstr_optab and cmpmem_optab to find
5701 block memory compare insns, not conditional chains. Restructure
5702 the fallback generation of a call to memcmp/bcmp for better
5703 readability.
5704
5705 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
5706
5707 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
5708 (mips_save_restore_fn): New typedef.
5709 (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
5710 (mips_set_frame_expr, mips_frame_set): Move above prologue code.
5711 (save_restore_insns): Remove, replacing with...
5712 (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
5713 (mips_save_reg, mips_restore_reg): New function.
5714 (mips_expand_prologue, mips_expand_epilogue): Rework.
5715 * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
5716 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
5717 (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
5718
5719 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
5720
5721 * config/mips/mips.c (mips_expand_prologue): Remove unused
5722 traversal of function arguments.
5723
5724 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
5725
5726 * doc/invoke.texi: Remove documentation of -mentry.
5727 * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
5728 (override_options, mips_save_reg_p): Remove handling.
5729 (compute_frame_size, mips_output_function_prologue): Likewise.
5730 (mips_expand_prologue, mips_expand_epilogue): Likewise.
5731 * config/mips/mips.h (mips_entry_string): Remove declaration.
5732 (TARGET_OPTIONS): Remove -mentry.
5733 * config/mips/mips16.S: Remove mention of -mentry.
5734
5735 2003-10-06 Zack Weinberg <zack@codesourcery.com>
5736
5737 * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
5738 (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
5739 (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
5740 (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
5741 (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
5742 (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
5743 (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
5744 (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
5745 (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
5746 (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
5747 (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
5748 (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
5749 (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
5750 (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
5751 (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
5752 (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
5753 (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
5754 (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
5755 (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
5756 (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
5757 (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
5758 (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
5759 (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
5760 (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
5761 (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
5762 (fixunstfti_libfunc): Delete.
5763 * optabs.h (struct optab_handlers): Break out of struct optab.
5764 (struct convert_optab, convert_optab, enum convert_optab_index,
5765 convert_optab_table, sext_optab, zext_optab, trunc_optab,
5766 sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
5767 sfloat_optab, ufloat_optab): New.
5768 (set_conv_libfunc): Prototype.
5769 (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
5770 (trunc_optab): Renamed btrunc_optab.
5771 * builtins.c (expand_builtin_mathfn): Update to match.
5772 * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
5773 (convert_optab_table, new_convert_optab, init_convert_optab)
5774 (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
5775 (set_conv_libfunc): New.
5776 (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
5777 (expand_float, expand_fix): Use new conversion optabs,
5778 not old insn code tables or long chains of ifs.
5779 (init_optabs): No need to clear old insn code tables.
5780 Initialize the new optabs, not the old libfunc array entries.
5781 Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
5782 * genopinit.c: Initialize conversion optabs, not the
5783 former insn code tables. Remove unnecessary casts.
5784 Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
5785 * expr.c (convert_move): Remove redundant check that
5786 to_real==from_real. Use the conversion optabs instead
5787 of long chains of tests of modes. Move partial-integer-mode
5788 interconversion above all integer conversion. Do not recurse
5789 on a value forced into a register in the original mode.
5790
5791 * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
5792 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
5793 * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
5794 in new conversion optabs; do not reference the old libfunc
5795 array entries. No need to include libfuncs.h.
5796
5797 2003-10-06 Roger Sayle <roger@eyesopen.com>
5798
5799 * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
5800 point comparison sequence with a REG_EQUAL note that describes
5801 the comparison's semantics.
5802
5803 2003-10-06 Roger Sayle <roger@eyesopen.com>
5804
5805 * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
5806 of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
5807
5808 2003-10-06 Roger Sayle <roger@eyesopen.com>
5809 Zack Weinberg <zack@codesourcery.com>
5810
5811 * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
5812 instruction by using LCT_CONST and then calling emit_libcall_block
5813 ourselves.
5814
5815 2003-10-06 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5816
5817 PR optimization/11974
5818 * optabs.c (expand_unop): Promote libcall outmode according to
5819 hard_libcall_value.
5820
5821 2003-10-06 Zack Weinberg <zack@codesourcery.com>
5822
5823 * real.h (REAL_MODE_FORMAT): New macro.
5824 * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
5825 * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
5826 * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
5827 * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
5828 * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
5829 directly to real_format_for_mode array, wherever possible.
5830
5831 2003-10-06 Devang Patel <dpatel@apple.com>
5832
5833 * dwarf2out.c (is_main_source): Remove variable.
5834 (dwarf2out_start_source_file): Do not check is_main_source.
5835 Do not reset is_main_source.
5836 (dwarf2out_init): Do not initialize is_main_source.
5837
5838 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5839
5840 * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
5841 (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
5842 introduced some multi-line prototypes.
5843 * fixinc/fixincl.x: Regenerate.
5844
5845 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5846
5847 * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
5848 * config/mips/mips.c (stack_operand): New predicate.
5849 * config/mips/mips.md: Use it for the destination of mips16 insns
5850 that store $31.
5851
5852 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5853
5854 * config/mips/mips.md (*lowsi): Renamed from lowsi.
5855 (*lowdi): Likewise lowdi.
5856 (*lowsi_mips16, *lowdi_mips16): New patterns.
5857 * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
5858 mips16 CONSTANT_RELOC handling.
5859 (mips_delegitimize_address): Adjust for new sdata representation.
5860
5861 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5862
5863 * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
5864 skip any remaining register arguments.
5865
5866 2003-10-06 Ulrich Weigand <uweigand@de.ibm.com>
5867
5868 * reload.c (find_reloads_subreg_address): Use correct offset for
5869 paradoxical MEM subregs on big-endian targets.
5870
5871 2003-10-06 Andrew Haley <aph@redhat.com>
5872
5873 * tree.c (get_callee_fndecl): Call
5874 lang_hooks.lang_get_callee_fndecl.
5875 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
5876 (lhd_get_callee_fndecl): New.
5877
5878 2003-10-06 Andrew Pinski <apinski@apple.com>
5879
5880 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
5881 error in calculating the length of the string.
5882 (machopic_stub_name): Likewise.
5883
5884 2003-10-06 Roger Sayle <roger@eyesopen.com>
5885
5886 * optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
5887 describing the return value of the comparison libcall to the
5888 REG_RETVAL instruction of the emitted sequence.
5889
5890 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
5891
5892 PR optimization/12215
5893 * cse.c (cse_set_around_loop): Emit the move at the beginning
5894 of the next basic block for trapping sets.
5895
5896 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
5897
5898 PR optimization/11637
5899 * combine.c (adjust_for_new_dest): New function to adjust the
5900 notes and LOG_LINKS when the dest of an insn has changed.
5901 (try_combine): Use it when deleting the first insn of a two-insn
5902 parallel or splitting a two-load parallel.
5903
5904 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5905
5906 * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
5907 if TARGET_EXPLICIT_RELOCS.
5908
5909 2003-10-06 Mark Mitchell <mark@codesourcery.com>
5910
5911 PR bootstrap/12512
5912 * Makefile.in (info): Use double-colon rules.
5913 (dvi): Likewise.
5914 (generated-manpages): Likewise.
5915 * configure.in: Do not create lang.info, lang.dvi, or
5916 lang.generated-manpages hooks.
5917 * configure: Regenerated.
5918 * objc/Make-lang.in (objc.info): Remove.
5919 (objc.dvi): Remove.
5920 (objc.generated-manpages): Remove.
5921 * doc/sourcebuild.texi: Update description of info, dvi, and
5922 generated-manpages hooks.
5923
5924 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5925
5926 * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
5927
5928 2003-10-05 Andrew Pinski <apinski@apple.com>
5929
5930 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
5931 errors in memcpy destinations.
5932 (machopic_stub_name): Likewise.
5933
5934 2003-10-05 Andrew Pinski <apinski@apple.com>
5935
5936 * config/darwin.c (machopic_non_lazy_ptr_name):
5937 Change strcat to memcpy and add length together.
5938 (machopic_stub_name): Likewise.
5939
5940 2003-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
5941
5942 * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
5943 signal trampoline codes.
5944
5945 2003-10-05 Chris Demetriou <cgd@broadcom.com>
5946
5947 * config/mips/mips.md (*divsf3): Move description of
5948 SB-1 F2 erratum from here to...
5949 (divsf3): Here. Disable if TARGET_FIX_SB1 is set and
5950 flag_unsafe_math_optimizations is not.
5951
5952 2003-10-05 Aldy Hernandez <aldyh@redhat.com>
5953
5954 * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
5955 TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
5956
5957 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
5958
5959 * c-pretty-print.c: Fix comment typos.
5960 * c-pretty-print.h: Likewise.
5961 * calls.c: Likewise.
5962 * cfgloopmanip.c: Likewise.
5963 * cgraphunit.c: Likewise.
5964 * cppfiles.c: Likewise.
5965 * final.c: Likewise.
5966 * function.c: Likewise.
5967 * gcov-io.h: Likewise.
5968 * gcse.c: Likewise.
5969 * genoutput.c: Likewise.
5970 * loop.c: Likewise.
5971 * postreload.c: Likewise.
5972 * reg-stack.c: Likewise.
5973 * regmove.c: Likewise.
5974 * sched-int.h: Likewise.
5975 * sched-rgn.c: Likewise.
5976 * simplify-rtx.c: Likewise.
5977 * tree-inline.c: Likewise.
5978 * config/m68hc11/m68hc11.h: Likewise.
5979 * config/mmix/mmix.c: Likewise.
5980 * config/mn10300/mn10300.md: Likewise.
5981 * config/sh/sh.h: Likewise.
5982
5983 2003-10-05 Richard Henderson <rth@redhat.com>
5984
5985 * tree-inline.c (remap_type): New.
5986 (remap_decl): Use it. Remap DECL_SIZE*.
5987 (copy_body_r): Use it.
5988 (walk_tree): Walk TREE_TYPE too.
5989 (copy_tree_r): Don't walk subtrees of types.
5990 * tree.c (variably_modified_type_p): Restructure. Consider integer
5991 types with non-const bounds variably modified.
5992
5993 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
5994
5995 * doc/invoke.texi: Fix typos.
5996
5997 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
5998
5999 * fold-const.c: Follow spelling conventions.
6000 * function.c: Likewise.
6001 * config/c4x/c4x.h: Likewise.
6002 * config/c4x/c4x.md: Likewise.
6003 * config/frv/frv.md: Likewise.
6004 * config/rs6000/aix.h: Likewise.
6005 * config/rs6000/linux64.h: Likewise.
6006 * config/xtensa/xtensa.c: Likewise.
6007
6008 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6009
6010 * c-pretty-print.c: Fix comment formatting.
6011 * cfglayout.c: Likewise.
6012 * cfgloopanal.c: Likewise.
6013 * cppcharset.c: Likewise.
6014 * dbxout.c: Likewise.
6015 * ggc-page.c: Likewise.
6016 * ggc.h: Likewise.
6017 * target.h: Likewise.
6018
6019 2003-10-04 Kelley Cook <kelleycook@wideopenwest.com>
6020
6021 * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
6022
6023 2003-10-04 Nathanael Nerode <neroden@gcc.gnu.org>
6024
6025 * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
6026 Convert to ISO C90 function declarations and definitions.
6027
6028 2003-10-04 Zack Weinberg <zack@codesourcery.com>
6029
6030 * libfuncs.h
6031 (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
6032 (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
6033 (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
6034 (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
6035 (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
6036 (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
6037 (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
6038 (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
6039 (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
6040 (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
6041 (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
6042 (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
6043 (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
6044 (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
6045 (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
6046 (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
6047 Delete.
6048 * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
6049 (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
6050 (le_optab, unord_optab): New.
6051
6052 * optabs.c (prepare_float_lib_cmp): Rewrite. Get the libfuncs
6053 from the code_to_optab table, not a giant switch; use
6054 swap_condition; do widening only if a comparison function that
6055 we can call exists in a wider mode, not if a cmp_optab insn or
6056 libfunc exists in a wider mode; call protect_from_queue
6057 exactly once on each operand.
6058 (init_optabs): Initialize the new optabs, not the deleted libfuncs.
6059
6060 * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
6061 * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
6062 Set floating point comparison libfuncs using set_optab_libfunc
6063 on the appropriate optab.
6064
6065 * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
6066 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
6067 selector conditionals.
6068
6069 2003-10-04 Stephane Carrez <stcarrez@nerim.fr>
6070
6071 * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
6072 identical to m68hc12 as far as libraries are concerned.
6073
6074 2003-10-04 Eric Botcazou <ebotcazou@libertysurf.fr>
6075
6076 PR c/12446
6077 * c-typeck.c (convert_for_assignment): Issue an error for
6078 array to pointer assignment after default conversion.
6079 (digest_init): Likewise.
6080
6081 2003-10-04 Fariborz Jahanian <fjahanian@apple.com>
6082
6083 * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
6084
6085 2003-10-03 Gerald Pfeifer <gerald@pfeifer.com>
6086
6087 * doc/extend.texi (Function Attributes): Fix title of GNU C
6088 Preprocessor manual.
6089 (C++ Extensions): Fix reference to "Predefined Macros" in the
6090 GNU C Preprocessor manual.
6091
6092 2003-10-04 Richard Earnshaw <reanrsha@arm.com>
6093
6094 * doc/extend.texi: Document how GCC estimates and relies on the size
6095 of an asm.
6096
6097 2003-10-04 Richard Sandiford <rsandifo@redhat.com>
6098
6099 * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
6100 arguments downward for big-endian o64.
6101
6102 2003-10-03 Robert Bowdidge <bowdidge@apple.com>
6103
6104 * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
6105 PCH generation, avoiding too-frequent flushes when writing to NFS
6106 file system.
6107
6108 2003-10-03 Ziemowit Laski <zlaski@apple.com>
6109
6110 * objc/objc-act.c (lookup_category): Mark as 'inline'.
6111
6112 2003-10-03 Alexander Malmberg <alexander@malmberg.org>
6113 Ziemowit Laski <zlaski@apple.com>
6114
6115 * objc/objc-act.c (add_method_to_hash_list, lookup_category):
6116 New functions.
6117 (lookup_method_in_hash_lists): New parameter indicating whether
6118 we are messaging 'Class' or 'id'.
6119 (check_duplicates): Likewise; do not assume all methods will
6120 be either class or instance methods.
6121 (generate_category, finish_class): Use lookup_category().
6122 (add_method): Use add_method_to_hash_list(); insert instance
6123 methods of root classes into the global class method hash table.
6124 (add_category): Use lookup_category(); avoid constructing
6125 duplicate categories.
6126 (really_start_method): Add method to corresponding @interface,
6127 if not already there (and if the @interface exists).
6128 (finish_message_expr, finish_objc): Adjust calls to
6129 check_duplicates().
6130
6131 2003-10-03 Roger Sayle <roger@eyesopen.com>
6132
6133 PR optimization/9325, PR java/6391
6134 * fold-const.c (fold_convert): For floating point to integer
6135 conversions, return the maximum/minimum representable integer
6136 value if the real constant overflows the destination type.
6137 * tree.c (real_value_from_int_cst): Allow the type to be NULL,
6138 meaning don't truncate the result to a floating point mode.
6139 Simplify the logic by calling real_from_integer directly.
6140 * simplify-rtx.c (simplify_unary_operation): Implement the
6141 same semantics for folding floating point to integer conversions
6142 in RTL.
6143
6144 2003-10-03 Chris Demetriou <cgd@broadcom.com>
6145
6146 * config/mips/mips.c (mips_emit_prefetch): Restructure
6147 to avoid use of arrays, handle indexed prefetch.
6148 * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
6149 (ISA_HAS_PREFETCHX): New deffine.
6150 * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
6151 update comments.
6152 (prefetch_indexed_di, prefetch_indexed_si): New insns.
6153
6154 2003-10-03 Jeff Sturm <jsturm@one-point.com>
6155 Roger Sayle <roger@eyesopen.com>
6156
6157 PR optimization/12289
6158 * calls.c (emit_call_1): Pretend to have popped the arguments
6159 to noreturn and longjmp functions instead of ignoring them.
6160 (expand_call): Don't adjust stack_pointer_dela while
6161 inhibit_defer_pop is set.
6162
6163 2003-10-03 Andreas Schwab <schwab@suse.de>
6164
6165 PR bootstrap/12276
6166 * configure.in: Check for libunwind on the host only if building
6167 a native compiler.
6168 * configure: Regenerated.
6169
6170 2003-10-03 Paolo Carlini <pcarlini@unitus.it>
6171
6172 * unwind-pe.h (read_encoded_value_with_base): Constify u and
6173 its inizialization cast.
6174
6175 2003-10-03 Richard Sandiford <rsandifo@redhat.com>
6176
6177 PR target/12485
6178 * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
6179
6180 2003-10-02 Mark Mitchell <mark@codesourcery.com>
6181
6182 PR optimization/12180
6183 * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
6184 functions containing calls to __builtin_next_arg.
6185
6186 2003-10-02 Chris Demetriou <cgd@broadcom.com>
6187
6188 * config/mips/mips.c (mips_emit_prefetch): Use operand 3
6189 in instructions being output.
6190 * config/mips/mips.md (prefetch_si_address): Change third
6191 operand's constraint letter to 'I'.
6192 (prefetch_di_address): Likewise.
6193 (prefetch_si, prefetch_di): Set third operand to const0_rtx.
6194
6195 2003-10-02 Zack Weinberg <zack@codesourcery.com>
6196
6197 * system.h: Poison macros obsoleted by earlier patch.
6198 * config/cris/cris.c: C90-ify a function definition.
6199
6200 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
6201
6202 PR/12292
6203 * combine.c (make_field_assignment): Check whether rtx's code
6204 is CONST_INT before using INTVAL.
6205
6206 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
6207
6208 * cgraph.c (cgraph_node): Use INSERT instead of 1 in
6209 htab_find_slot_with_hash.
6210 (cgraph_node_for_identifier): Use NO_INSERT.
6211 (cgraph_remove_node): Use NO_INSERT.
6212 (cgraph_varpool_node): Use INSERT.
6213 (cgraph_varpool_node_for_identifier): Use NO_INSERT.
6214
6215 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
6216
6217 Waldek Hebisch <hebisch@math.uni.wroc.pl>
6218 PR/12072
6219 * varasm.c (compare_constant): Fix thinko.
6220
6221 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
6222
6223 * config/frv/frv.c (frv_issue_rate): New function.
6224 (frv_pack_insns): Use it.
6225 (TARGET_SCHED_ISSUE_RATE): Define.
6226
6227 2003-10-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
6228
6229 * config/mcore/mcore.c: Convert to ISO C90 function declarations
6230 and definitions.
6231 * config/mcore/mcore.h: Likewise.
6232 * config/mcore/mcore-protos.h: Likewise.
6233
6234 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
6235
6236 * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
6237 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
6238
6239 2003-10-01 Per Bothner <pbothner@apple.com>
6240
6241 * c-lex.c (src_line): Remove unneeded static variable.
6242 (cb_line_change): Set input_line directly, instead of src_line.
6243 (get_non_padding_token): We no longer need to compensate for the
6244 "horrible things" the C++ front-end does with the current line number,
6245
6246 * cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
6247 callback even when popping the main file.
6248 * c-lex.c (fe_file_change): Handle a NULL new_map.
6249 * fix-header.c (cb_file_change): Likewise.
6250 * c-ppoutput.c (pp_file_change): Likewise.
6251
6252 * cppinit.c (cpp_read_main_file): Split into two functions:
6253 Distribute _cpp_stack_file call over the two functions.
6254 (cpp_find_main_file): New function.
6255 Don't call _cpp_do_file_change even if working_directory flag set.
6256 (cpp_push_main_file): New function.
6257 * cppfiles.c (_cpp_find_failed): New helper function.
6258 (find_file): Made non-static and renamed to _cpp_find_file.
6259 (_cpp_stack_file): No longer needed. But note the following.
6260 (stack_file): Made non-static and renamed to _cpp_stack_file.
6261 * fix-header.c (cpp_read_main_file): Replace cpp_read_main_file
6262 call with calls to cpp_find_main_file and cpp_push_main_file.
6263 (search_path_head): If there is no current buffer, use main_file.
6264 * cpphash.h: Update function declarations.
6265 * cpplib.h: Update function declarations.
6266
6267 * c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
6268 (c_common_parse_file): No longer need to call cpp_read_main_file
6269 when file_index > 0 (as in multi-file or server compiation).
6270 (finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME
6271 as this now happens before cpp_push_main_file.
6272 (push_command_line_include): When done with options, pass LC_LEAVE
6273 instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
6274 (fe_file_change): Handle NULL new_map, and simplify.
6275 * cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed
6276 08-28 change, since we're never called with a NULL buffer.
6277 (_cpp_lex_direct): Likewise.
6278 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
6279 Return false if buffer is NULL at end.
6280
6281 * cpplex.c (_cpp_get_fresh_line): Return value now just depends on
6282 whether pfile->buffer is NULL after pop, ignoring return_at_eof.
6283 * cpphash.h (struct cpp_buffer): Remove unused return_at_eof field.
6284 * cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof,
6285 remove the unused return_at_eof parameter.
6286 * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
6287 Update callers of cpp_push_buffer.
6288
6289 2003-10-01 Zack Weinberg <zack@codesourcery.com>
6290
6291 * target.h (init_libfuncs): New hook.
6292 * target-def.h: Default TARGET_INIT_BUILTINS and
6293 TARGET_INIT_LIBFUNCS to hook_void_void. Add
6294 TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
6295 * builtins.c (default_init_builtins): Delete.
6296 * expr.h (default_init_builtins): Delete prototype.
6297 * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
6298 Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
6299 Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
6300 DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
6301 MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
6302 and UMODDI3_LIBCALL,
6303
6304 * Makefile.in (optabs.o): Depends on target.h.
6305 * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
6306 * optabs.c: Include target.h.
6307 (prepare_float_lib_cmp): No need for #ifdef around use of
6308 FLOAT_LIB_COMPARE_RETURNS_BOOL.
6309 (set_optab_libfunc): New function.
6310 (init_optabs): Delete use of all *_LIBCALL defines.
6311 Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
6312 * optabs.h: Prototype set_optab_libfunc.
6313
6314 * config.gcc: Remove all references to pa/long_double.h,
6315 ia64/hpux_longdouble.h, and gofast.h.
6316 (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
6317 to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
6318
6319 * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
6320 * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
6321 * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
6322 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
6323 * config/sparc/sparc.c, config/vax/vax.c:
6324 Provide a definition for TARGET_INIT_LIBFUNCS. Where
6325 necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
6326
6327 * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
6328 * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
6329 * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
6330 * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
6331 * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
6332 * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
6333 * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
6334 * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
6335 INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
6336
6337 * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
6338 Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
6339 * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
6340 HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
6341 * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
6342
6343 * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
6344 * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
6345 SUN_INTEGER_MULTIPLY_64 to 0.
6346 * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
6347 SUN_INTEGER_MULTIPLY_64 to 1.
6348 * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
6349 SUN_INTEGER_MULTIPLY_64 to 0.
6350 * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
6351 Define US_SOFTWARE_GOFAST.
6352 * config/vax/vax.h: Default TARGET_ELF to 0.
6353 * config/vax/elf.h: Redefine TARGET_ELF to 1.
6354
6355 * config/gofast.h: Don't define any macros here. Provide one
6356 static function, gofast_maybe_init_libfuncs, which does what
6357 INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
6358 is already defined. Do not clear negation libfuncs. Do
6359 not mess with HFmode, XFmode, or TFmode libfuncs.
6360
6361 * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
6362
6363 2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
6364
6365 PR C/12466
6366 * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
6367
6368 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6369
6370 * config/mips/xm-iris5.h: Remove, unnecessary.
6371 * config.build (mips-sgi-irix5*): Remove.
6372 (mips-sgi-irix6*o32): Likewise.
6373 * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
6374 (mips-sgi-irix5cross64): Likewise.
6375 (mips-sgi-irix5*): Likewise.
6376 * config.host (mips-sgi-irix5*): Remove.
6377 (mips-sgi-irix6*o32): Likewise.
6378
6379 2003-10-01 Zack Weinberg <zack@codesourcery.com>
6380
6381 * dbxout.c (dbxout_fptype_value): Delete.
6382 (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
6383
6384 2003-10-01 Alexandre Oliva <aoliva@redhat.com>
6385
6386 * output.h (compute_reloc_for_constant): Declare.
6387 * varasm.c (compute_reloc_for_constant): Extract from...
6388 (output_addressed_constants): ... here. Adjust all callers.
6389
6390 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6391
6392 * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
6393 * configure: Rebuilt.
6394
6395 2003-10-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6396
6397 * fold-const.c (make_range): When handling unsigned, don't reverse
6398 range if high bound is zero.
6399
6400 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
6401
6402 * config/frv/frv.h (PREDICATE_CODES): Added
6403 condexec_si_media_operator, condexec_sf_add_operator and
6404 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
6405 and condexec_sf_unary_operator.
6406
6407 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6408
6409 * aclocal.m4: Add ultrix* to /dev/zero blacklist.
6410 * configure: Rebuilt.
6411
6412 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6413
6414 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
6415 Allow override.
6416 * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
6417
6418 2003-09-23 David S. Miller <davem@redhat.com>
6419
6420 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
6421 before redefining.
6422 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
6423
6424 2003-10-01 Steven Bosscher <steven@gcc.gnu.org>
6425
6426 * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
6427 C90 function declarations and definitions.
6428
6429 2003-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
6430
6431 * config.gcc (cris-*-linux*): Revert mistaken commit.
6432
6433 2003-10-01 Eric Botcazou <ebotcazou@libertysurf.fr>
6434
6435 PR optimization/11753
6436 * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
6437 the length in the non-V9 case.
6438
6439 2003-09-30 Richard Henderson <rth@redhat.com>
6440
6441 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
6442 DWARF_ALT_FRAME_RETURN_COLUMN.
6443 * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
6444 (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
6445 (uw_frame_state_for): Return end-of-stack for null return address.
6446 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
6447
6448 * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
6449 (alpha_expand_prologue): Store a zero for it.
6450 (alpha_expand_epilogue): Don't reload it.
6451 * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
6452 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
6453 for the sigframe return address.
6454
6455 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
6456
6457 * sdbout.c: Convert to ISO C90 prototypes.
6458 * objc/objc-act.c: Likewise.
6459
6460 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
6461
6462 * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
6463 * config/i386/winnt.c: Likewise.
6464 * config/i386/cygming.h: Likewise.
6465
6466 2003-09-30 Kazu Hirata <kazu@cs.umass.edu>
6467
6468 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
6469 (A ^ B) - B for any B.
6470
6471 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
6472
6473 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
6474 powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
6475
6476 2003-09-30 Richard Earnshaw <rearnsha@arm.com>
6477
6478 * arm/ieee754-sf.S: Tidy formatting.
6479
6480 2003-09-30 Nicolas Pitre <nico@cam.org>
6481
6482 * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
6483 and ARM_MOD_BODY.
6484 (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
6485 (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
6486 added better divisor alignment in the other case.
6487 (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
6488 (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
6489 macros above, add fast exits for divisor >= dividend, etc.
6490
6491 2003-09-30 Nicolas Pitre <nico@cam.org>
6492
6493 * arm/ieee754-df.S: Split compilation of fixunsdfsi from
6494 L_fixdfsi target.
6495 * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
6496
6497 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
6498
6499 * config.gcc: Default use_fixproto to 'no'.
6500
6501 2003-09-30 Richard Sandiford <rsandifo@redhat.com>
6502
6503 PR optimization/12345
6504 * config/mips/mips-protos.h (mips_restore_gp): Remove.
6505 (mips_gp_save_slot): Declare.
6506 * config/mips/mips.c (mips_restore_gp): Remove in favor of...
6507 (mips_gp_save_slot): ...this new function.
6508 * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
6509 and mips_output_move to generate the output template.
6510 (call_internal): Force splitting if TARGET_SPLIT_CALLS. Don't emit
6511 a gp load after a noreturn call. Load the gp using a move rather
6512 than an exception_receiver pattern.
6513 (call_value_internal, call_value_multiple_internal): Likewise.
6514 (call_split, call_value_split, call_value_multiple_split): Clobber $28.
6515
6516 2003-09-30 Carlo Wood <carlo@alinoe.com>
6517
6518 PR debug/12319
6519 * cfglayout.c (insn_scope): Use prologue_locator and
6520 epilogue_locator; return the outer function scope for
6521 pro- and epilogue insns.
6522
6523 2003-09-29 Zack Weinberg <zack@codesourcery.com>
6524
6525 * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
6526 REAL_TYPEs based on the bitsize of the type's mode, not the
6527 mode directly.
6528
6529 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6530
6531 * dwarf2out.c (default_eh_frame_section): Split into ...
6532 (named_section_eh_frame_section, collect2_eh_frame_section): ... new
6533 functions.
6534 * output.h (named_section_eh_frame_section): Declare.
6535 (collect2_eh_frame_section): Likewise.
6536
6537 2003-09-29 Zack Weinberg <zack@codesourcery.com>
6538
6539 * real.c (real_sqrt): Use get_canonical_qnan directly.
6540
6541 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
6542
6543 * varasm.c (assemble_real): Use real_to_target directly,
6544 calculate the number of significant elements of the result
6545 array and write them out in a loop, instead of using a giant
6546 switch statement to pick the correct REAL_VALUE_TO_TARGET_*
6547 macro.
6548
6549 2003-09-29 Jan Hubicka <jh@suse.cz>
6550
6551 PR c++/12175
6552 * varasm.c (notice_global_symbol): Discard external symbols.
6553
6554 PR optimization/12286
6555 * gcov-io.c (gcov_read_words): Fix memmove call.
6556 * profile.c (compute_branch_probabilities): Add extra sanity checks.
6557
6558 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6559
6560 * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
6561 Solaris 7-9.
6562
6563 * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
6564 wildcards which explicitly match micro versions.
6565 * fixinc/fixincl.x: Regenerate.
6566
6567 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
6568
6569 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
6570 (A ^ B) - B, where B is any power of 2 minus 1.
6571
6572 2003-09-29 Jan Hubicka <jh@suse.cz>
6573
6574 * libgcov.c (gcov_exit): Fix two pastos.
6575
6576 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
6577
6578 * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
6579 define_split immediately below to form define_insn_and_split.
6580
6581 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
6582
6583 * config/h8300/h8300.md (*tstsi_variable_bit): New.
6584 (*tstsi_variable_bit_qi): Likewise.
6585
6586 2003-09-28 Phil Edwards <phil@codesourcery.com>
6587
6588 * doc/cppopts.texi: Use 'dashMP' instead of '-MP' as a cross-
6589 reference name.
6590
6591 2003-09-28 Richard Henderson <rth@redhat.com>
6592
6593 * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
6594 file and line separately.
6595
6596 2003-09-28 Ulrich Weigand <uweigand@de.ibm.com>
6597
6598 * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
6599 "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
6600 "*subdi3_borrow_cconly"): New insns.
6601 ("*addsi3_sub", "*subsi3_sub"): Remove.
6602 ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
6603 ("*subsi3_cc"): Fix op_type attribute.
6604
6605 2003-09-28 Richard Henderson <rth@redhat.com>
6606
6607 * stmt.c (expand_asm_operands): Take a location_t, instead of
6608 individual file and line.
6609 * c-typeck.c (c_expand_asm_operands): Likewise.
6610 * tree.h (expand_asm_operands): Update decl.
6611 * c-common.h (c_expand_asm_operands): Likewise.
6612 * c-semantics (genrtl_asm_stmt): Update call.
6613
6614 2003-09-28 Philip Blundell <philb@gnu.org>
6615
6616 * config/arm/arm.c (legitimize_pic_address): Check
6617 SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
6618 (arm_assemble_integer): Likewise.
6619
6620 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
6621
6622 * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
6623 config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
6624 config/c4x/c4x.h:
6625 Convert to ISO C90 function declarations and definitions.
6626
6627 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
6628
6629 * config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
6630 Convert to ISO C90 function declarations and definitions.
6631
6632 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
6633
6634 * config/mips/mips.c (mips_constant_info): Add reloc field.
6635 (mips_classify_constant): Initialize it. Always set SYMBOL to the
6636 underlying symbol, not to an unspec.
6637 (mips_delegitimize_address, print_operand): Clean up accordingly.
6638
6639 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
6640
6641 * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
6642 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
6643 * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
6644 (mips_classify_constant): Use it.
6645 (mips_splittable_symbol_p): Add an offset argument.
6646 (mips_classify_address): Adjust call accordingly.
6647 (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
6648 than a relocation unspec. Update call to mips_splittable_symbol_p.
6649 Generalize the code that copes with symbols + invalid offsets.
6650 (print_operand): Allow '%R' to be applied to small data addresses.
6651 (mips_reloc_string): Remove RELOC_GPREL16.
6652 (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg. Return $gp
6653 for TARGET_EXPLICIT_RELOCS. Return null if we can't use gp-relative
6654 relocation operators.
6655 * config/mips/mips.md (RELOC_GPREL16): Remove. Shuffle other reloc
6656 constants accordingly.
6657
6658 2003-09-27 Roger Sayle <roger@eyesopen.com>
6659
6660 * toplev.c (flag_evaluation_order): New global variable.
6661 * flags.h (flag_evaluation_order): Prototype here.
6662 * expr.c (expand_operands): If we need to preserve observable
6663 evaluation order, protect exp1 from clobbering exp0's result.
6664
6665 2003-09-28 Andreas Jaeger <aj@suse.de>
6666
6667 * c-decl.c (finish_function): Convert definition to ISO C90.
6668 * ifcvt.c (mark_loop_exit_edges): Likewise.
6669 * ra-rewrite.c (emit_colors): Likewise.
6670
6671 2003-09-27 Nathanael Nerode <neroden@gcc.gnu.org>
6672
6673 * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
6674 * config.gcc (arm*-*-uclinux*): Disable fixproto.
6675 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
6676 powerpc-*-eabialtivec*): Disable fixproto.
6677
6678 2003-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
6679
6680 PR optimization/12340
6681 * loop.h (struct induction): Document the new semantics
6682 of the 'same' field for bivs.
6683 * unroll.c (biv_total_increment): Don't count the same
6684 biv increment several times.
6685 (loop_iterations) [GENERAL_INDUCT]: Likewise.
6686
6687 2003-09-27 Graham Stott <graham.stott@btinternet.com>
6688
6689 * unroll.c (loop_interations)[GT]: Add missing break.
6690
6691 2003-09-27 Kelley Cook <kcook@gcc.gnu.org>
6692
6693 * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
6694 config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
6695 config/dbxelf.h, config/elfos.h, config/fp-bit.h,
6696 config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
6697 config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
6698 config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
6699 config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
6700 config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
6701 config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
6702 config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
6703 config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
6704 config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
6705 config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
6706 config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
6707 config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
6708 config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
6709 config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
6710 config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
6711 config/alpha/xm-vms.h, config/arc/arc-modes.def,
6712 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
6713 config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
6714 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6715 config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
6716 config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
6717 config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
6718 config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
6719 config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
6720 config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
6721 config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
6722 config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
6723 config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
6724 config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
6725 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
6726 config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
6727 config/i960/i960-c.c, config/i960/i960-coff.h,
6728 config/i960/i960-modes.def, config/i960/i960-protos.h,
6729 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
6730 config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
6731 config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6732 config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
6733 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6734 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
6735 config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
6736 config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
6737 config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
6738 config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
6739 config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
6740 config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
6741 config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
6742 config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
6743 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
6744 config/mcore/mcore-protos.h, config/mcore/mcore.c,
6745 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
6746 config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
6747 config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
6748 config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
6749 config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
6750 config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
6751 config/mips/vr.h, config/mn10300/linux.h,
6752 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
6753 config/mn10300/mn10300.h, config/mn10300/mn10300.md,
6754 config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
6755 config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
6756 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
6757 config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
6758 config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
6759 config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
6760 config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
6761 config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
6762 config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
6763 config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
6764 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
6765 config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
6766 config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
6767 config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
6768 fixinc/fixinc.svr4: GNU CC -> GCC.
6769
6770 2003-09-26 Loren James Rittle <ljrittle@acm.org>
6771
6772 * objc/objc-act.c (tm_p.h): Tweak order.
6773 * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
6774
6775 2003-09-26 Nathanael Nerode <neroden@gcc.gnu.org>
6776
6777 * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
6778 Include t-slibgcc-elf-ver and t-linux in tmake_file.
6779 * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
6780 Disable fixproto.
6781 * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
6782 Disable fixproto.
6783 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
6784 sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
6785
6786 * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
6787
6788 2003-09-26 Loren James Rittle <ljrittle@acm.org>
6789
6790 * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
6791 * objc/objc-act.c (tm_p.h): Include.
6792
6793 2003-09-26 Per Bothner <pbothner@apple.com>
6794
6795 * dbxout.c (dbxout_typedefs): Output typedefs in forward order.
6796 No longer any need to reverse by recursion.
6797
6798 2003-09-26 Roger Sayle <roger@eyesopen.com>
6799 Richard Henderson <rth@redhat.com>
6800
6801 PR optimization/11741
6802 * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
6803 appropriate set to match that in hash_scan_insn. Fall back to
6804 the original copy method, if we can't validate changing insn.
6805 (pre_delete): Only delete instructions that have a single_set,
6806 instead of aborting when we encounter an PARALLEL insn with more
6807 then one SET.
6808
6809 2003-09-26 Andreas Krebbel <krebbel1@de.ibm.com>
6810
6811 * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
6812 ("builtin_longjmp"): Insn deleted.
6813 ("save_stack_nonlocal"): Save literal pool base pointer behind
6814 backchain and stack pointer.
6815 ("restore_stack_nonlocal"): Restore literal pool base pointer.
6816 * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
6817 the stack save area for the nonlocal goto case.
6818
6819 2003-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6820
6821 PR bootstrap/12358
6822 * pa.c (output_bvb): Fix typo.
6823
6824 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
6825
6826 * expmed.c (store_bit_field): Don't search for an integer mode
6827 unless we need the result.
6828
6829 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
6830
6831 * expr.c (emit_move_insn_1): If there is no move pattern for the
6832 original mode, try using a pattern for the corresponding integer mode.
6833
6834 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
6835
6836 PR middle-end/9200
6837 * combine.c (if_then_else_cond): Tighten mode check.
6838
6839 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6840
6841 * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
6842 'struct _cpp_strbuf'.
6843
6844 * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
6845 config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
6846 config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
6847 config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
6848 config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
6849 config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
6850 config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
6851 config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
6852 config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
6853 "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
6854 * config/i386/i386-aout.h, config/i386/i386-coff.h,
6855 config/i386/i386-interix.h, config/i386/i386-interix3.h,
6856 config/i386/i386-modes.def, config/i386/i386-protos.h,
6857 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6858 config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
6859 config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
6860 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
6861 config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
6862 "GNU compiler" -> GCC.
6863 * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
6864 config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
6865 config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
6866 config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
6867 config/i386/freebsd-aout.h, config/i386/freebsd.h,
6868 config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
6869
6870 2003-09-25 Kelley Cook <kelleycook@wideopenwest.com>
6871
6872 * cgraph.c (dump_cgraph): Don't output newline before dump. Add in
6873 "local" to the callgraph dump. Output "after inlining" earlier.
6874 * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
6875 callgraph dumps. Correct misspellings.
6876 (cgraph_decide_inlining): Output number of insns before inlining.
6877 Output the calling function into which a function is inlined.
6878 (cgraph_decide_small_functions): Format dump file like always_inline.
6879
6880 2003-09-25 Loren James Rittle <ljrittle@acm.org>
6881
6882 * config/i386/i386.h (ix86_return_in_memory): Add prototype.
6883
6884 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
6885
6886 * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
6887 FPR slots in the save area.
6888 (s390_emit_epilogue): Likewise.
6889
6890 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
6891
6892 * cgraph.h (cgraph_remove_edge): Declare.
6893 * cgraph.c (cgraph_remove_edge): Make extern.
6894 * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
6895 instead of cgraph_remove_call.
6896
6897 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
6898
6899 * objc/objc-act.c (gen_declaration_1): Fix printf format.
6900
6901 2003-09-25 Richard Earnshaw <rearnsha@arm.com>
6902
6903 * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
6904 arm7tdmi core.
6905
6906 2003-09-25 Ziemowit Laski <zlaski@apple.com>
6907
6908 * config/darwin-protos.h (objc_image_info_section):
6909 New prototype.
6910
6911 2003-09-25 Ziemowit Laski <zlaski@apple.com>
6912
6913 * Makefile.in (stub-objc.o): Depend on $(GGC_H).
6914
6915 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6916
6917 * config.gcc: Get rid of more gratuitious 'x'es. Actually allow
6918 tsc701 as a --with-cpu, --with-tune setting for sparc.
6919
6920 2003-09-25 Ziemowit Laski <zlaski@apple.com>
6921
6922 * c-parse.in (objc_try_stmt): Do not specify a %type.
6923
6924 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6925
6926 * config.gcc: New 'widely ported system' clause for rtems.
6927 Set thread file there, not in individual clauses.
6928
6929 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
6930
6931 PR target/6222
6932 * config/mips/mips.c (mips_va_arg): Handle arguments that must be
6933 passed on the stack.
6934
6935 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6936
6937 * config.gcc (widely ported systems section): Mostly alphabetize
6938 by system. Comment the case where we can't.
6939 * config.gcc (widely ported systems section): Reindent and clean up.
6940
6941 * config.gcc: Remove some unnecessary uses of 'x' in case statements.
6942 Actually allow ep9312 as an arm --with-arch setting.
6943
6944 * config.gcc (*-hpux11): Disable fixproto.
6945
6946 2003-09-24 Phil Edwards <phil@codesourcery.com>
6947
6948 PR pch/12112
6949 * gcc/cppfiles.c (pch_open_file): Return based on combined
6950 result of all files.
6951 (validate_pch): Return validate flag for current file.
6952
6953 2003-09-24 Roger Sayle <roger@eyesopen.com>
6954
6955 PR bootstrap/12358
6956 * fold-const.c (tree_swap_operands_p): Only reorder operands when
6957 one of the operands is constant.
6958
6959 2003-09-24 Ziemowit Laski <zlaski@apple.com>
6960
6961 MERGE OF objc-improvements-branch into MAINLINE:
6962 * Makefile.in (C_OBJS): Add in stub-objc.o.
6963 (c-parse.y): Change sed demarcations to begin with '@@'.
6964 (stub-objc.o): New rule.
6965 * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
6966 flag_replace_objc_classes): New flags.
6967 * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
6968 RID_AT_SYNCHRONIZED): New keywords.
6969 (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
6970 flag_replace_objc_classes): New flags.
6971 (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
6972 objc_comptypes, objc_message_selector, lookup_objc_ivar,
6973 get_current_scope, objc_mark_locals_volatile): New prototypes,
6974 some moved from c-tree.h.
6975 * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
6976 (finish_decl): Adjust where objc_check_decl() gets called.
6977 * c-lang.c (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
6978 objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
6979 * c-opts.c (c_common_handle_option): Add handling for flag_nil_receivers,
6980 flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
6981 * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
6982 '@@end_ifc', respectively.
6983 (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
6984 (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
6985 objc_finally_block): New rules.
6986 (component_decl_list2): Clean up semantic action for @defs construct.
6987 (component_decl, c99_block_start): Remove call to add_objc_decls().
6988 (poplevel): Add call to objc_clear_super_receiver().
6989 (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
6990 constructs.
6991 (classdef, methodprotolist): Clean up/simplify.
6992 (methodprotolist2): Eliminate.
6993 (methodproto): Call add_method() instead of add_class_method() and
6994 add_instance_method().
6995 (receiver): Add TYPENAME production.
6996 (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
6997 (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
6998 AT_SYNCHRONIZED.
6999 * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
7000 objc_comptypes, objc_message_selector)
7001 * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
7002 struct and pointer types.
7003 (build_c_cast): Do not discard ObjC protocol qualifiers.
7004 (convert_for_assignment): Cache result of comp_target_types() instead
7005 of calling it more than once.
7006 * c.opt (fnext-runtime): Update description string.
7007 (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
7008 New ObjC/ObjC++-specific flags.
7009 * function.h (GCC_FUNCTION_H): Header guard.
7010 * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
7011 * stub-objc.c: New file, to be used to satisfy references to ObjC
7012 functions by the C and C++ front-ends.
7013 * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
7014 * config/darwin.h (FUNCTION): Add in_objc_image_info.
7015 (SECTION_FUNCTION): Add objc_image_info_section.
7016 * doc/invoke.texi: Link to GCC web site for Objective-C information.
7017 (-fconstant-string-class): Update documentation.
7018 (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
7019 -fzero-link): New documentation.
7020 * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
7021 with '@@'.
7022 * objc/lang-specs.h (@objective-c-header): Fix -E spec.
7023 * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
7024 throughout; provide casts for return values from memory allocation
7025 functions (xmalloc, alloca, ggc_alloc, etc.).
7026 (OBJC_VOID_AT_END): New macro.
7027 (rtl.h): Do not #include any more.
7028 (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
7029 (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
7030 TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
7031 TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
7032 TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
7033 (struct val_stack, catch_count_stack, exc_binding_stack, val_stack_push,
7034 val_stack_pop): New.
7035 (objc_check_decl): Fix precondition for error message, along with
7036 the message itself.
7037 (lookup_and_install_protocols): Remove nonexistent protocols from
7038 protocol list instead of returning error_mark_node.
7039 (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
7040 (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
7041 (synth_module_prologue): General clean-up; construct NeXT-specific
7042 runtime API prototypes if needed.
7043 (build_string_class_template): Remove.
7044 (check_string_class_template, string_layout_checked): New.
7045 (build_objc_string_object): Generalize to work with
7046 -fconstant-string-class.
7047 (build_objc_symtab_template): Fix layout for the NeXT runtime.
7048 (build_metadata_decl): New.
7049 (forward_declare_categories): Call build_metadata_decl() instead of
7050 create_builtin_decl() et al.
7051 (build_module_descriptor): Use OBJC_VOID_AT_END instead of
7052 void_list_node_1.
7053 (build_selector_reference_decl, build_class_reference_decl,
7054 build_objc_string_decl): Do not set TREE_READONLY.
7055 (get_proto_encoding): Do not call hack_method_prototype().
7056 (get_class_reference): Add failure mode for invalid class names;
7057 support -fzero-link; defer if in an ObjC++ template declaration.
7058 (objc_declare_alias, objc_declare_class): Fix up duplicate name
7059 lookup; check for global scope if in ObjC++.
7060 (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
7061 RECORD_TYPE, IDENTIFIER_NODE, etc.)
7062 (objc_is_id): Removed.
7063 (objc_is_object_ptr): New function.
7064 (get_class_ivars_from_name): New function, used for @defs construct.
7065 (get_class_ivars): Add option to return raw ivars; create a
7066 ClASS_OWN_IVARS list for each class as needed.
7067 (objc_enter_block, objc_exit_block, objc_declare_variable,
7068 objc_build_throw_stmt, val_stack_push, val_stack_pop,
7069 objc_build_try_enter_fragment, objc_build_extract_expr,
7070 objc_build_try_exit_fragment, objc_build_extract_fragment,
7071 objc_build_try_prologue, objc_build_try_epilogue,
7072 objc_build_catch_stmt, objc_build_catch_epilogue,
7073 objc_build_finally_prologue, objc_build_finally_epilogue,
7074 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
7075 objc_build_synchronized_epilogue, build_objc_exception_stuff):
7076 New functions.
7077 (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
7078 the future).
7079 (build_private_template): Fix up calls to get_class_ivars().
7080 (offset_is_register, forwarding_offset): Remove.
7081 (objc_method_parm_type, objc_encoded_type_size): New functions.
7082 (encode_method_prototype): Simplify to no longer depend on
7083 back-end information.
7084 (build_tmp_function_decl_xxx, build_tmp_function_decl,
7085 hack_method_prototype): Removed.
7086 (generate_protocol_references): Remove calls to
7087 build_tmp_function_decl().
7088 (generate_protocols): Adjust calls to encode_method_prototype().
7089 (build_class_template): Generate sel_id' and 'gc_object_type' fields
7090 for the NeXT runtime.
7091 (synth_forward_declarations): Call build_metadata_decl().
7092 (check_ivars): Check that the number of ivars matches also.
7093 (build_super_template): Modify super_type directly; disable debugging
7094 output while generating decl.
7095 (build_ivar_list_initializer): Skip list elements that are not
7096 FIELD_DECLs.
7097 (ivar_list_length): New function.
7098 (generate_ivar_lists): Call ivar_list_length() instead of list_length()
7099 and encode_method_prototype() instead of encode_method_def().
7100 (build_shared_structure_initializer): Generate 'sel_id' field for
7101 the NeXT runtime.
7102 (generate_category): Do not set TREE_USED.
7103 (build_keyword_selector): Ditto; transform into a function argument
7104 chain.
7105 (get_arg_type_list): If there are no user-specified arguments, use
7106 '...'; use OBJC_VOID_AT_END.
7107 (check_duplicates): Add a parameter indicating whether methods or
7108 selectors are being checked.
7109 (receiver_is_class_object): Add parameters indicating whether
7110 receiver is 'self' or 'super'; robustify.
7111 (build_message_expr): Defer call to finish_message_expr() if
7112 inside an ObjC++ template.
7113 (lookup_method_in_hash_lists): New function.
7114 (finish_message_expr): Complete rewrite/fix.
7115 (build_objc_method_call): Ditto; factor out commonalities between
7116 the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
7117 messenger variants on the NeXT.
7118 (lookup_instance_method_static, lookup_class_method_static):
7119 Fold into a single lookup_method_static() function with an
7120 additional parameter.
7121 (add_class_method, add_instance_method): Fold into a single
7122 add_method() function with an additional parameter.
7123 (add_category): Make duplicate categories a hard error in ObjC++.
7124 (add_instance_variable): Properly handle unnamed ivars, arrays of
7125 zero or no size and bitfields. In ObjC++, check for nontrivial
7126 C++ class instances.
7127 (is_public): Allow C functions to access non-@public ivars, with
7128 a warning.
7129 (start_class): Move common initializations to
7130 synth_module_prologue(); check for global scope if in ObjC++.
7131 (continue_class): Fix calls to finish_struct().
7132 (objc_declare_protocols, start_protocol): Check for global scope
7133 if in ObjC++.
7134 (encode_pointer): Encode 'BOOL *' specially on the NeXT.
7135 (encode_aggregate_within): Rewrite to properly distinguish
7136 struct tags from typedefs in both ObjC and ObjC++.
7137 (encode_bitfield, encode_complete_bitfield): Remove.
7138 (encode_next_bitfield, encode_gnu_bitfield): New functions.
7139 (encode_field_decl): Call encode_next_bitfield() or
7140 encode_gnu_bitfield() as needed.
7141 (synth_self_and_ucmd_args): New function.
7142 (start_method_def): Use it.
7143 (objc_types_are_equivalent): New function.
7144 (comp_proto_with_proto): Use it instead of comptypes(), since
7145 we need symmetry.
7146 (really_start_method): Use lookup_method_static() instead of
7147 lookup_class_method_static() and lookup_instance_method_static();
7148 Emit 'extern "C"' if in ObjC++ mode.
7149 (add_objc_decls): Removed.
7150 (UOBJC_SUPER_scope): New variable.
7151 (get_super_receiver): Move construction of 'super' from
7152 add_objc_decls(); remove dependency on struct objc_class.
7153 (encode_method_def): Removed; encode_method_prototype() is
7154 used instead.
7155 (objc_clear_super_receiver): New function.
7156 (objc_expand_function_end): Do not do anything for ordinary
7157 C functions.
7158 (finish_method_def): Mark ObjC methods as un-inlinable.
7159 (gen_declaration_1): Emit widths of bitfields.
7160 (finish_objc): Call generate_objc_image_info() if needed;
7161 use check_duplicates() when checking for selector duplicates.
7162 (generate_objc_image_info): New function.
7163 * objc/objc-act.h (add_instance_method, add_class_method,
7164 get_class_ivars): Remove prototypes.
7165 (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
7166 objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
7167 objc_build_catch_stmt, objc_build_catch_epilogue,
7168 objc_build_finally_prologue, objc_build_finally_epilogue,
7169 add_method, get_class_ivars_from_name): New prototypes.
7170 (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
7171 (TYPE_PROTOCOL_LIST): Robustify to distinguish from
7172 TRANSLATION_UNIT_DECLs.
7173 (OBJC_TYPE_NAME): New.
7174 (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
7175 got included.
7176 (IS_SUPER): Robustify.
7177 (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
7178 umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
7179 objc_exception_try_enter_decl, objc_exception_try_exit_decl,
7180 objc_exception_match_decl, objc_exception_throw_decl,
7181 objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
7182 objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
7183 objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
7184 objc_catch_type): New ObjC/ObjC++ roots.
7185 * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
7186 ObjC/ObjC++ tree node codes.
7187
7188 2003-09-24 Alexandre Oliva <aoliva@redhat.com>
7189
7190 * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
7191 code path that calls a handler.
7192
7193 2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
7194
7195 * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
7196 Disable fixproto.
7197
7198 * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
7199 the section giving $with_cpu defaults by target.
7200
7201 * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
7202 arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
7203 rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
7204 rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
7205 rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
7206 i[34567]86-pc-msdosdjgpp*): Disable fixproto.
7207
7208 2003-09-24 David Edelsohn <edelsohn@gnu.org>
7209
7210 * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
7211 together. Protect load string instruction with TARGET_STRING.
7212 (movti_string): Collapse case 1 and 2 together.
7213
7214 2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
7215
7216 * c-common.c (c_common_type_for_mode): Check for VOIDmode.
7217
7218 2003-09-24 Richard Earnshaw <rearnsha@arm.com>
7219
7220 * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
7221 do...while(0)
7222
7223 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7224
7225 * config.gcc: Move use_fixproto=no from generic vxworks clause to
7226 specific one.
7227
7228 * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
7229 (accidentally missed in last pass).
7230
7231 2003-09-23 Andrew Pinski <apinski@apple.com>
7232
7233 PR bootstrap/12383
7234 * configure: Regenerate.
7235
7236 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7237
7238 * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
7239 missed in last pass).
7240
7241 2003-09-23 Alexandre Oliva <aoliva@redhat.com>
7242
7243 * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
7244 constant.
7245
7246 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7247
7248 * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
7249
7250 * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
7251 powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
7252 powerpcle-*-eabi*): Disable fixproto.
7253
7254 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
7255 specific FreeBSD clauses.
7256 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
7257 specific NetBSD clauses.
7258 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
7259 to specific OpenBSD clauses.
7260
7261 2003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7262
7263 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
7264 without adding a frame note.
7265 * pa.md (allocate_stack): Save pic register in new frame marker when
7266 generating pic code.
7267
7268 2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
7269
7270 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
7271 cgraph_expand_functions.
7272
7273 2003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7274
7275 * Makefile.in (gnucompare*): Merge into ...
7276 (slowcompare*): ... here.
7277 (fastcompare*): New targets.
7278 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
7279 other "fast" cmp programs.
7280 * configure: Regenerate.
7281
7282 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7283
7284 * targhooks.c: Include output.h.
7285 * Makefile.in (targhooks.o): Add output.h to dependency list.
7286
7287 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7288
7289 * config.host: Removed superfluous newline.
7290
7291 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7292
7293 * config.gcc: Use ${target}, not $machine.
7294 * configure.in: Don't set $machine.
7295 * configure: Regenerate.
7296
7297 2003-09-23 Geoffrey Keating <geoffk@apple.com>
7298
7299 * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
7300
7301 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
7302 pass zero-size arrays by reference.
7303 (rs6000_va_arg): Likewise.
7304
7305 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7306
7307 * config.gcc: Set use_fixproto=no in each specific *-gnu*
7308 configuration, rather than the generic one.
7309
7310 2003-09-23 Richard Henderson <rth@redhat.com>
7311
7312 * tree-inline.c (remap_save_expr): Map new save_expr to identity
7313 rather than to error_mark_node.
7314
7315 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7316
7317 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
7318 Update description.
7319 * configure: Regenerate.
7320 * config.in: Likewise.
7321 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
7322 HAVE_GAS_SHF_MERGE value.
7323 * varasm.c (mergeable_string_section): Likewise.
7324 (mergeable_constant_section): Likewise.
7325
7326 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7327
7328 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
7329 value.
7330
7331 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7332
7333 * target.h (struct gcc_target): New member external_libcall.
7334 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
7335 (TARGET_ASM_OUT): Use it.
7336 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
7337 * targhooks.c: Convert to ISO C 90.
7338 (default_external_libcall): New function.
7339 * targhooks.h (default_external_libcall): Declare.
7340 * varasm.c (assemble_external_libcall): Use
7341 targetm.asm_out.external_libcall instead of
7342 ASM_OUTPUT_EXTERNAL_LIBCALL.
7343 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
7344 (mips_output_external_libcall): Declare.
7345 * config/mips/mips.c (mips_output_external_libcall): Change
7346 definition guard.
7347 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
7348 Only operate for O32 ABI.
7349 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
7350 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
7351 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
7352 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
7353
7354 2003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
7355
7356 * config.gcc: Do per-target disabling of fixproto here in clauses,
7357 not in t- fragments.
7358 * configure.in: Adjust to set STMP_FIXPROTO correctly.
7359 * configure: Regenerate.
7360 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
7361 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
7362 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
7363 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
7364 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
7365 t-interix, t-linux-aout: Delete files consisting only of
7366 setting of STMP_FIXPROTO.
7367
7368 * config.host: Allow unknown hosts (not targets). Allow
7369 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
7370 empty clauses. Remove useless obsolete-configuration clause.
7371 Prune unsupported configuration list. Collapse identical
7372 clauses for closely related systems. Rewrite comment for
7373 unsupported hosts list. Reorganize a little.
7374
7375 2003-09-22 Richard Henderson <rth@redhat.com>
7376
7377 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
7378 not precision.
7379
7380 2003-09-22 David Edelsohn <edelsohn@gnu.org>
7381 Hartmut Penner <hpenner@de.ibm.com>
7382 Segher Boessenkool <boessen@de.ibm.com>
7383
7384 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
7385 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
7386 (rs6000_split_altivec_in_gprs): Rename to ...
7387 (rs6000_split_multireg_move): Add support for update addressing.
7388 * config/rs6000/rs6000-protos.h: Same.
7389 * config/rs6000/altivec.md: Same.
7390 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
7391 multiple GPRs.
7392 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
7393 (movti_power): Use new splitter for multiple GPRs.
7394 (movti_string): Same.
7395 (movti_ppc64): Same.
7396
7397 2003-09-22 Bob Wilson <bob.wilson@acm.org>
7398
7399 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
7400 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
7401
7402 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
7403
7404 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
7405 (andsi3): Set attr cc to set_zn when using shifts or adds.
7406
7407 2003-09-22 Bernardo Innocenti <bernie@develer.com>
7408
7409 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
7410
7411 2003-09-22 Bernardo Innocenti <bernie@develer.com>
7412
7413 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
7414 Resurrect -mrtd option.
7415
7416 2003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
7417
7418 PR target/12281
7419 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
7420 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
7421
7422 2003-09-22 Olivier Hainque <hainque@act-europe.fr>
7423
7424 PR target/9786
7425 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
7426 after potential deletion of trapping insn. Avoids later ICE
7427 from call to fixup_abnormal_edges.
7428 (convert_regs_2): Stack the current block successors before
7429 processing this block, that is, before the potential deletion of
7430 dead edges by convert_regs_1, because these edges have been used
7431 to initialize the predecessors count.
7432
7433 2003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
7434
7435 * real.c: Fix several nits in the head comment.
7436
7437 2003-09-21 Richard Henderson <rth@redhat.com>
7438
7439 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
7440 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
7441 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
7442 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
7443 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
7444
7445 2003-09-21 Richard Henderson <rth@redhat.com>
7446
7447 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
7448 (TREE_FILENAME, TREE_LINENO): Likewise.
7449 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
7450 (TREE_LOCUS_SET_P): New.
7451 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
7452 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
7453 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
7454 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
7455 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
7456
7457 2003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
7458
7459 * config/vax/vax-protos.h: Convert to ISO C90.
7460 * config/vax/vax.c: Convert to ISO C90.
7461
7462 2003-09-21 Graham Stott <grahams@btinternet.com>
7463
7464 PR target/12353
7465 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
7466
7467 2003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
7468
7469 PR target/12301
7470 * reorg.c (stop_search_p): Return 1 for insns that can
7471 throw internally.
7472
7473 2003-09-20 Richard Henderson <rth@redhat.com>
7474
7475 * c-format.c (gcc_diag_char_table): Add %J.
7476 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
7477 (check_format_types): Fix wanted_type name lookup.
7478 (init_dynamic_diag_info): Setup %J.
7479 * diagnostic.c (text_specifies_location): Implement %J.
7480 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
7481 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
7482 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
7483 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
7484 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
7485
7486 * tree-inline.c: Include intl.h
7487 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
7488 * Makefile.in (tree-inline.o): Update.
7489
7490 2003-09-20 Roger Sayle <roger@eyesopen.com>
7491
7492 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
7493 transformation of a>=0 into (unsigned)a<0x80000000.
7494
7495 2003-09-20 Andrew Pinski <apinski@apple.com>
7496
7497 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
7498
7499 2003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
7500
7501 * Makefile.in: Don't set (unused) DLLTOOL.
7502
7503 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
7504 Remove obsolete references to ENQUIRE.
7505
7506 2003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
7507
7508 * configure.in: Remove --with-elf, which doesn't work.
7509 * configure: Regenerate.
7510 * config.gcc: Remove references to $elf, which does nothing.
7511
7512 * config/i386/xm-vsta.h: Remove xm-file believed useless.
7513 * config.build (i386-vsta): Remove reference to it.
7514 * config.host (i386-vsta): Remove reference to it.
7515
7516 2003-09-19 Phil Edwards <phil@codesourcery.com>
7517
7518 * doc/install.texi: Document the multiple testsuite options.
7519
7520 2003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
7521
7522 * doc/install.texi (Specific): Add the specific versions of GCC
7523 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
7524 version 3 and older was discontinued.
7525
7526 2003-09-19 Joel Sherrill <joel@oarcorp.com>
7527
7528 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
7529 68881.
7530
7531 2003-09-19 Bernardo Innocenti <bernie@develer.com>
7532
7533 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
7534 for -m68030, -m68020-60 and -m68020-40.
7535 * config/m68k/m68k.h (TARGET_68030): New target flag.
7536 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
7537 TARGET_REGPARM): Remove.
7538 * config/m68k/m68k.h: Regroup and renumber target flags.
7539 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
7540 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
7541 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
7542 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
7543 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
7544
7545 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7546
7547 * config/m68k/t-rtems (m68k-*-rtems*): New.
7548 * config.gcc: Use config/m68k/t-rtems.
7549
7550 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7551
7552 * config/mips/t-rtems: New.
7553 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
7554
7555 2003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
7556
7557 * cgraph.c: Fix typo in debugging output.
7558
7559 2003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7560 Eric Botcazou <ebotcazou@libertysurf.fr>
7561
7562 PR target/12166
7563 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
7564
7565 2003-09-18 Mike Stump <mrs@apple.com>
7566
7567 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
7568 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
7569 cb_ident, cb_def_pragma): Use fileline typedef.
7570 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
7571
7572 2003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
7573
7574 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
7575 total parm size if a parm has incomplete type.
7576 (gen_fastcall_suffix): Likewise.
7577
7578 2003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7579
7580 * except.c (output_function_exception_table): Adjust last change
7581 to handle TYPE of INTEGER_CST.
7582
7583 2003-09-18 Mark Mitchell <mark@codesourcery.com>
7584
7585 PR target/11184
7586 * builtins.c (expand_builtin_apply): Use convert_memory_address
7587 before returning the value.
7588
7589 * alias.c (find_base_value): Simplify use of
7590 convert_memory_address.
7591 (find_base_term): Likewise.
7592 * builtins.c (expand_builtin_stejmp_setup): Likewise.
7593 (expand_builtin_longjmp): Likewise.
7594 (expand_builtin_prefetch): Likewise.
7595 (get_memory_rtx): Likewise.
7596 (expand_builtin_return): Likewise.
7597 (expand_builtin_memcpy): Likewise.
7598 (expand_builtin_strncpy): Likewise.
7599 (expand_builtin_memset): Likewise.
7600 (expand_builtin_va_arg): Likewise.
7601 (expand_builtin_va_copy): Likewise.
7602 (expand_builtin_alloca): Likewise.
7603 * calls.c (expand_call): Likewise.
7604 * except.c (expand_builtin_extract_return_addr): Likewise.
7605 (expand_builtin_eh_return): Likewise.
7606 * explow.c (convert_memory_address): Define even when
7607 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
7608 is already in the right mode.
7609 * explow.c (memory_address): Simplify use of convert_memory_address.
7610 (probe_stack_range): Likewise.
7611 * expmed.c (make_tree): Likewise.
7612 * expr.c (emit_block_move_in_libcall): Likewise.
7613 (expand_assignment): Likewise.
7614 (expand_expr): Likewise.
7615 * function.c (assign_parms): Likewise.
7616 (expand_function_end): Likewise.
7617 * integrate.c (copy_rtx_and_substitute): Likewise.
7618 * stmt.c (expand_computed_goto): Likewise.
7619
7620 2003-09-18 Roger Sayle <roger@eyesopen.com>
7621
7622 * simplify-rtx.c (simplify_unary_operation): Only transform
7623 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
7624 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
7625
7626 2003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7627
7628 PR target/11674
7629 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
7630
7631 2003-09-18 Roger Sayle <roger@eyesopen.com>
7632
7633 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
7634 PARITY_EXPR): Delete unused tree codes.
7635 * c-common.c (c_common_truthvalue_conversion): Delete references
7636 to FFS_EXPR and POPCOUNT_EXPR.
7637 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
7638 (pp_c_expression): Likewise.
7639 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
7640 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
7641 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
7642 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
7643 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
7644 and long long variants.
7645
7646 2003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
7647
7648 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
7649 * c-pretty-print.c: Fix formatting.
7650 (pp_c_integer_constant): Append type annotation to literals. Tidy.
7651 (pp_c_type_specifier): Tidy.
7652 (pp_c_compound_literal): New function.
7653 (pp_c_initializer): Simplify..
7654 (pp_c_initializer_list): Likewise.
7655 (pp_c_brace_enclosed_initializer_list): New function.
7656 (pp_c_postfix_expression): Simplify.
7657
7658 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
7659
7660 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
7661 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
7662
7663 2003-09-17 Richard Henderson <rth@redhat.com>
7664
7665 * tree-optimize.c (tree_rest_of_compilation): Save and restore
7666 input_location.
7667
7668 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
7669
7670 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
7671
7672 2003-09-17 Richard Henderson <rth@redhat.com>
7673
7674 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
7675
7676 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7677
7678 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
7679 * configure: Regenerate.
7680
7681 2003-09-17 Mark Mitchell <mark@codesourcery.com>
7682
7683 PR debug/12066
7684 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
7685 * langhooks-def.h (lhd_return_null_tree_v): New function.
7686 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
7687 (LANG_HOOKS_DECLS): Add it to the intializer.
7688 * langhooks.c (lhd_return_null_tree_v): New function.
7689 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
7690
7691 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
7692
7693 * configure.in: Quote gcc_config_arguments for configargs.h.
7694 * configure: Regenerated.
7695 * gccbug.in: Don't shell-expand gcc_config_arguments.
7696
7697 2003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
7698
7699 PR c++/11357
7700 * c-pretty-print.c (pp_c_floating_constant): Append
7701 type-annotation to floating constants.
7702
7703 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7704
7705 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
7706 Define _ABIO32.
7707 Use it for _MIPS_SIM.
7708 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
7709
7710 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
7711 Moved ...
7712 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
7713 updating comment.
7714 Fixes PR target/10190.
7715
7716 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
7717
7718 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
7719 to shared libraries.
7720
7721 2003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
7722
7723 PR optimization/11646
7724 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
7725 EDGE_ABNORMAL flag for EH edges.
7726 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
7727 if dead edges were purged.
7728
7729 2003-09-16 Bernardo Innocenti <bernie@develer.com>
7730
7731 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
7732 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
7733 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
7734 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
7735
7736 2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
7737
7738 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
7739 returned by tablejump_p.
7740
7741 2003-09-16 Joel Brobecker <brobecker@gnat.com>
7742
7743 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
7744
7745 2003-09-16 Roger Sayle <roger@eyesopen.com>
7746
7747 PR bootstrap/12269
7748 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
7749 argument to be VOIDmode, taking the mode of the comparison from
7750 the operands. Only call simplify_relational_operation if we
7751 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
7752 if comparison has a floating point result. Ensure that the
7753 result is always of the specified mode.
7754 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
7755 (simplify_unary_operation): Ensure the correct mode and cmp_mode
7756 are always passed to simplify_gen_relational. Simplify NOT of
7757 comparison operator in any mode, not just BImode.
7758 (simplify_ternary_operation): Correct tests on the return value
7759 of simplify_relational_operation to use const_true_rtx, not
7760 const1_rtx. Abort if it ever returns a non-constant result.
7761
7762 * cfgloopanal.c (count_strange_loop_iterations): Use the function
7763 simplify_relational_operation, not simplify_gen_relational, if
7764 we're only interested in constant comparisons and will ignore
7765 non-constant results.
7766
7767 2003-09-16 Roger Sayle <roger@eyesopen.com>
7768
7769 * fold-const.c (tree_swap_operands_p): New function to determine
7770 the prefered ordering of operands.
7771 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
7772 operands to commutative, comparison or ternary operators. Replace
7773 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
7774 transformation of A ? B : C into !A ? C : B.
7775
7776 2003-09-16 Jakub Jelinek <jakub@redhat.com>
7777
7778 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7779 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7780 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7781 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7782 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7783 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7784 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7785 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7786
7787 2003-09-16 Jason Merrill <jason@redhat.com>
7788 Jakub Jelinek <jakub@redhat.com>
7789
7790 * c-common.c (handle_warn_unused_result_attribute): New function.
7791 (c_common_attribute_table): Add warn_unused_result.
7792 (c_expand_expr): Issue warning when result of inlined function
7793 with warn_unused_result attribute is ignored.
7794 * calls.c (expand_call): Issue warning when result of function
7795 with warn_unused_result attribute is ignored.
7796 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
7797 * expr.c (expr_wfl_stack): Define.
7798 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
7799 pass const0_rtx as target. Chain locations into expr_wfl_stack.
7800 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
7801 bit if inlined function has warn_unused_result attribute.
7802 * input.h (expr_wfl_stack): Declare.
7803 * doc/extend.texi: Document warn_unused_result attribute.
7804
7805 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
7806
7807 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
7808
7809 2003-09-15 Bob Wilson <bob.wilson@acm.org>
7810
7811 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
7812 ATTRIBUTE_UNUSED.
7813 (call_insn_operand): For PIC, don't allow a direct call to a
7814 function in a different section than the current one.
7815
7816 2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
7817
7818 * doc/invoke.texi (Warning Options): Add missing hyphen before
7819 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
7820 Move "-Wold-style-definition" to the C-only section.
7821 Fix the ordering of the warning options.
7822
7823 2003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7824 Jeff Law <law@redhat.com>
7825
7826 * gcse.c (remove_reachable_equiv_notes): New.
7827 replace_store_insn): Call it. Update antic list.
7828 (store_killed_in_insn): Take REG_EQUAL notes into account.
7829 (build_store_vectors, delete_store): Add parameter to
7830 replace_store_insn call.
7831
7832 2003-09-15 Bob Wilson <bob.wilson@acm.org>
7833
7834 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
7835 SYMBOL_REF_LOCAL_P.
7836
7837 2003-09-15 Kazu Hirata <kazu@cs.umass.edu>
7838
7839 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
7840 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
7841 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
7842 Likewise.
7843 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
7844 Likewise.
7845 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
7846 * config/sparc/sparc.c (function_arg_padding): Likewise.
7847
7848 2003-09-15 Vladimir Makarov <vmakarov@redhat.com>
7849
7850 * haifa-sched.c (schedule_block): Use ready_remove_first instead
7851 of choose_ready for non-dfa insn scheduling.
7852
7853 2003-09-15 Andreas Jaeger <aj@suse.de>
7854 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7855
7856 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
7857 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
7858 * c-parse.in: Warn about old-style parameter definition.
7859 * c-common.c: Define warn_old_style_defintion.
7860 * c-common.h: Declare it.
7861 * c.opt: Add Wold-style-defintion.
7862
7863 2003-09-15 Andreas Jaeger <aj@suse.de>
7864
7865 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
7866 * config/rs6000/rs6000.c: Likewise.
7867
7868 2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7869
7870 PR optimization/10914
7871 * expr.h (get_condition, canonicalize_condition): Declaration changed.
7872 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
7873 and canonicalize_condition calls.
7874 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
7875 delete_null_pointer_checks): Ditto.
7876 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
7877 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
7878 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
7879 (canonicalize_condition, get_condition): Allow to return comparisons
7880 of cc mode registers.
7881 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
7882 cc mode registers comparison in condition.
7883
7884 2003-09-12 Mark Mitchell <mark@codesourcery.com>
7885
7886 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
7887 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
7888 function.
7889 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
7890
7891 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
7892
7893 * combine.c (simplify_comparison): Convert
7894 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
7895 (eq (and (lshiftrt X Y) 1) 0).
7896
7897 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
7898
7899 * alias.c: Follow spelling conventions.
7900 * cpphash.h: Likewise.
7901 * fold-const.c: Likewise.
7902
7903 2003-09-14 Alexandre Oliva <aoliva@redhat.com>
7904
7905 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
7906 * c-lex.c (cb_line_change): Skip line changing whenever
7907 c-ppoutput.c would.
7908
7909 2003-09-14 Steven Bosscher <steven@gcc.gnu.org>
7910
7911 * ra.c: Convert to ISO C90 prototypes.
7912 * ra-build.c: Likewise.
7913 * ra-colorize.c: Likewise.
7914 * ra-debug.c: Likewise.
7915 * ra-rewrite.c: Likewise.
7916
7917 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
7918
7919 * Makefile.in (%.dvi): Remove excess $(docdir).
7920
7921 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
7922
7923 * function.c (STACK_BYTES): Move definition to head of file.
7924 (assign_parms): Don't pass current_function_pretend_args_size
7925 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
7926 round current_function_pretend_args_size up to STACK_BYTES. Skip any
7927 excess before laying out the argument.
7928
7929 2003-09-14 Andreas Jaeger <aj@suse.de>
7930
7931 * objc/objc-act.c: Convert to ISO C90 prototypes.
7932 * objc/objc-act.h: Likewise.
7933
7934 2003-09-14 Olaf Hering <olh@suse.de>
7935
7936 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
7937
7938 2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
7939
7940 PR target/12021
7941 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
7942 as they already are done in config/m68k/m68k.h.
7943 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
7944
7945 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
7946 (machopic_output_stub): Only generate pic base symbols when using pic
7947 and generate them in the form L00000000$spb.
7948
7949 2003-09-13 Richard Henderson <rth@redhat.com>
7950
7951 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
7952 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
7953 * cgraph.h: Update.
7954
7955 2003-09-12 Dale Johannesen <dalej@apple.com>
7956
7957 * config/rs6000/rs6000.c: Fix typos in previous.
7958
7959 2003-09-12 Ziemowit Laski <zlaski@apple.com>
7960
7961 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
7962 when allocating pp->buffer.
7963
7964 2003-09-12 Geoffrey Keating <geoffk@apple.com>
7965
7966 * config/darwin.c (machopic_select_rtx_section): Use
7967 const_data_section for things that might require relocation.
7968
7969 2003-09-12 H.J. Lu <hongjiu.lu@intel.com>
7970
7971 PR bootstrap/12264
7972 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
7973
7974 2003-09-12 Bob Wilson <bob.wilson@acm.org>
7975
7976 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
7977 * config/xtensa/linux.h (ASM_SPEC): Likewise.
7978 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
7979 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
7980 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
7981 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
7982 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
7983 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
7984 and redefine corresponding TARGET_* macros with constants from the
7985 xtensa-config.h header.
7986 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
7987 for the options listed above.
7988
7989 2003-09-12 Dale Johannesen <dalej@apple.com>
7990
7991 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
7992 * config/rs6000/rs6000-c.c: Ditto.
7993 * config/rs6000/rs6000.c: Ditto.
7994 * config/rs6000/ sysv4.h: Ditto.
7995
7996 2003-09-12 Chris Lattner <sabre@nondot.org>
7997
7998 * loop.c: Move comments describing BIV's and GIV's to top of file
7999
8000 2003-09-12 Roger Sayle <roger@eyesopen.com>
8001
8002 PR optimization/8967
8003 * alias.c (write_dependence_p): Modify to take an additional constp
8004 argument that controls whether the UNCHANGING_RTX_P flags are used.
8005 (anti_dependence, output_dependence): Adjust write_dependence_p
8006 callers to pass this additional argument, to return the same result.
8007 (unchanging_anti_dependence): New variant of anti_dependence that
8008 ignores the UNCHANGING_RTX_P property on memory references.
8009 * rtl.h (unchaning_anti_dependence): Prototype here.
8010 * flow.c (init_propagate_block): Place fake constant mem writes on
8011 the mem_set_list so that dead writes to const variables are deleted.
8012 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
8013 (mark_used_regs): Likewise.
8014
8015 2003-09-12 Richard Sandiford <rsandifo@redhat.com>
8016
8017 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
8018 (mcore_secondary_reload_class): Declare.
8019 (mcore_output_inline_const_forced): Remove.
8020 * config/mcore/mcore.md (movsi): Remove the code that forced
8021 non-inlineable constants into a register if the target was r15
8022 or the stack pointer. Remove constant restrictions from the main
8023 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
8024 of an r <- P alternative. Remove fallback define_insn for reload.
8025 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
8026 define_insn. Use mcore_output_move in the remaining define_insn.
8027 Adjust condition and constraints in the way as for movsi.
8028 (movdi): Always split unacceptable constants into two. Use
8029 simplify_gen_subreg instead of operand_subword{,_force}.
8030 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
8031 (mcore_output_move): Support HImode and QImode moves as well.
8032 (mcore_m15_operand_p): New function.
8033 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
8034 (mcore_secondary_reload_class): New function.
8035 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
8036 terms of mcore_secondary_reload_class.
8037
8038 2003-09-11 Mike Stump <mrs@apple.com>
8039
8040 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
8041
8042 2003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8043
8044 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
8045 MODE exactly, then only convert logN(N) -> 1.0 if
8046 flag_unsafe_math_optimizations is set.
8047
8048 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
8049 init_builtin_dconsts): Delete.
8050 * emit-rtl.c (dconstpi, dconste): Define.
8051 (init_emit_once): Initialize dconstpi & dconste.
8052 * real.h (dconstpi, dconste): Declare.
8053
8054 2003-09-11 Alexandre Oliva <aoliva@redhat.com>
8055
8056 PR fortran/11522
8057 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
8058 for ultimate origin even if block is abstract.
8059
8060 2003-09-11 Roger Sayle <roger@eyesopen.com>
8061
8062 * combine.c (combine_simplify_rtx): Move several NOT and NEG
8063 optimizations from here...
8064 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
8065 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
8066
8067 2003-09-11 Richard Henderson <rth@redhat.com>
8068
8069 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
8070 Tweek tests for function already generated.
8071 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
8072 * cgraph.h (cgraph_finalize_function): Update for extra arg.
8073 * c-decl.c (finish_function): Likewise.
8074
8075 2003-09-10 Joe Buck <jbuck@welsh-buck.org>
8076
8077 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
8078
8079 2003-09-10 Jerry Quinn <jlquinn@optonline.net>
8080
8081 * real.c: Update URL to VAX floating point docs.
8082 (decode_vax_d): Extract 8 exponent bits instead of 7.
8083
8084 2003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
8085
8086 * combine.c (force_to_mode): Set fuller_mask based only on mask,
8087 not op_mode.
8088
8089 2003-09-11 Jan Hubicka <jh@suse.cz>
8090
8091 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
8092 on why function is not inlinable; do not check
8093 the body.
8094 (inline_forbidden_p): Move to...
8095 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
8096 deal with alloca, longjmp.
8097 (inline_forbidden_p): New static function.
8098 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
8099 find_builtin_longjmp_call): Kill.
8100
8101 2003-09-10 Richard Henderson <rth@redhat.com>
8102
8103 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
8104 * cgraphunit.c: Update to match.
8105 (record_call_1): Rearrange. Call lang hook for language nodes.
8106 (cgraph_analyze_function): Don't call lower_function.
8107 * langhooks.h (struct lang_hooks_for_callgraph): Replace
8108 lower_function with analyze_expr.
8109 * langhooks-def.h: Update to match.
8110 * langhooks.c (lhd_callgraph_analyze_expr): New.
8111
8112 2003-09-10 Martin Husemann <martin@duskware.de>
8113
8114 PR target/11965
8115 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
8116 constants greater than 63.
8117 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
8118 against constants greater than 31.
8119 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
8120 constants greater than 63.
8121
8122 2003-09-09 Richard Henderson <rth@redhat.com>
8123
8124 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
8125 * cgraph.h (cgraph_finalize_function): Update.
8126 * c-decl.c (finish_function): Update.
8127
8128 2003-09-09 Devang Patel <dpatel@apple.com>
8129
8130 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
8131 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
8132
8133 2003-09-09 Eric Christopher <echristo@redhat.com>
8134
8135 * configure.in: Change usage of 'head' to 'sed 1q'.
8136 * configure: Regenerate.
8137
8138 2003-09-09 Richard Henderson <rth@redhat.com>
8139
8140 * except.c: Include cgraph.h.
8141 (output_function_exception_table): Invoke
8142 cgraph_varpool_mark_needed_node.
8143 * Makefile.in (except.o): Update.
8144
8145 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
8146
8147 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
8148 and use it throughout.
8149
8150 2003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8151
8152 * builtins.c (real_dconstp, fold_builtin_logarithm,
8153 fold_builtin_exponent): New, split out from fold_builtin. Also
8154 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
8155 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
8156 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
8157 of hardcoded array size.
8158 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
8159 (tree_expr_nonnegative_p): Likewise.
8160 * real.h (dconst3, dconst10, dconstthird): New.
8161
8162 2003-09-09 Jan Hubicka <jh@suse.cz>
8163
8164 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
8165 inline functions.
8166 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
8167 DECL_SAVED_TREE.
8168
8169 2003-09-09 Roger Sayle <roger@eyesopen.com>
8170
8171 * builtins.c (fold_builtin_cabs): Protect the complex argument
8172 against multiple evaluation when optimizing cabs* into sqrt*.
8173
8174 2003-09-09 Jan Hubicka <jh@suse.cz>
8175
8176 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
8177
8178 2003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
8179
8180 * Makefile.in: Revert yesterday's change.
8181
8182 2003-09-08 Bernardo Innocenti <bernie@develer.com>
8183 Peter Barada <peter@baradas.org>
8184
8185 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
8186 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
8187 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
8188 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
8189 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
8190 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
8191 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
8192 (m68k_compute_frame_layout): New function.
8193 (m68k_initial_elimination_offset): New function.
8194 (m68k_output_function_prologue): ColdFire-specific movem handling.
8195 (m68k_output_function_epilogue): Likewise.
8196 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
8197 (ARG_POINTER_REGNUM): Add new definition.
8198 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
8199 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
8200 (CAN_ELIMINATE): Likewise.
8201 (INITIAL_ELIMINATION_OFFSET): Likewise.
8202
8203 2003-09-08 Bernardo Innocenti <bernie@develer.com>
8204
8205 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
8206 by removing redundant variable cfa_store_offset.
8207
8208 2003-09-08 Mark Mitchell <mark@codesourcery.com>
8209
8210 * langhooks-def.h (lhd_register_builtin_type): New function.
8211 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
8212 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8213 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
8214 * langhooks.c (lhd_register_builtin_type): New function.
8215 * c-common.h (c_register_builtin_type): Declare.
8216 * c-common.c (c_register_builtin_type): New function.
8217 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
8218 c_register_builtin_type.
8219 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
8220 __float80, and __float128 macros.
8221 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
8222 __float80, and __float128 types.
8223
8224 2003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8225
8226 * builtin-types.def
8227 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
8228 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
8229 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
8230 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
8231 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
8232 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
8233 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
8234 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
8235 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
8236 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
8237 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
8238 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
8239 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
8240 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
8241 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
8242 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
8243 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
8244 New.
8245 * doc/extend.texi: Document new builtins.
8246
8247 2003-09-09 Jan Hubicka <jh@suse.cz>
8248
8249 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
8250 finalization.
8251 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
8252 functions, check for COMDAT.
8253 (cgraph_assemble_pending_functions): Break out from...
8254 (cgraph_finalize_function): ... here; allow redefinig of extern inline
8255 functions.
8256 (record_call_1): Record function references only in non-unit-at-a-time
8257 mode.
8258 (cgraph_analyze_function): Reset current_function_decl.
8259 (cgraph_finalize_compilation_unit): Assemble pending functions.
8260
8261 2003-09-08 Mark Mitchell <mark@codesourcery.com>
8262
8263 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
8264 (libgov.a): Likewise.
8265 (libgcc_eh.a): Likewise.
8266
8267 2003-09-08 Roger Sayle <roger@eyesopen.com>
8268
8269 * fold-const.c (operand_equal_p): Clarify documentation.
8270
8271 2003-09-08 Richard Henderson <rth@redhat.com>
8272
8273 * c-decl.c (c_expand_body_1): Push and pop function context here.
8274 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
8275 nested argument instead of computing nesting ourselves.
8276
8277 2003-09-08 Jakub Jelinek <jakub@redhat.com>
8278
8279 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
8280 regstack if optimizing but not scheduling after reload.
8281
8282 2003-09-08 Jakub Jelinek <jakub@redhat.com>
8283
8284 * config/sparc/sparc.c (struct machine_function): New type.
8285 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
8286 (sparc_override_options): Initialize init_machine_status.
8287 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
8288 tie_symbolic_operand, tle_symbolic_operand): New functions.
8289 (symbolic_operand): Disallow tls_symbolic_operand.
8290 (symbolic_memory_operand): Likewise.
8291 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
8292 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
8293 New functions.
8294 (sparc_tls_symbol): New variable.
8295 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
8296 legitimize_address): New functions.
8297 (print_operand): Handle %&.
8298 (sparc_init_machine_status, get_some_local_dynamic_name,
8299 get_some_local_dynamic_name_1): New functions.
8300 (sparc_output_dwarf_dtprel): New function.
8301 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
8302 constant_address_p.
8303 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
8304 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
8305 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
8306 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
8307 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
8308 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
8309 (ASM_OUTPUT_DWARF_DTPREL): Define.
8310 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
8311 tie_symbolic_operand, tle_symbolic_operand.
8312 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
8313 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
8314 (tls_call_delay): New attribute.
8315 (in_call_delay): Use it.
8316 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
8317 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
8318 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
8319 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
8320 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
8321 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
8322 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
8323 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
8324 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
8325 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
8326 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
8327 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
8328 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
8329 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
8330 insns.
8331 * config/sparc/sparc-protos.h (legitimate_constant_p,
8332 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
8333 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
8334 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
8335 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8336 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
8337 * configure.in (sparc*-*-*): Add TLS check.
8338 * configure: Rebuilt.
8339
8340 2003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8341
8342 PR target/11689
8343 * config/i386/i386.c (memory_address_length): Fix computation when
8344 the base is esp or ebp.
8345
8346 2003-09-07 Mark Mitchell <mark@codesourcery.com>
8347
8348 PR c++/11852
8349 * varasm.c (initializer_constant_valid_p): Correct logic for
8350 CONSTRUCTORs.
8351
8352 2003-09-07 Roger Sayle <roger@eyesopen.com>
8353
8354 * expr.c (expand_operands): New function to expand an operand pair.
8355 (expand_expr): Call expand_operands whenever we need to expand both
8356 operands of a binary operator.
8357 (do_store_flag): Likewise for operands of comparison operations.
8358
8359 2003-09-07 Roger Sayle <roger@eyesopen.com>
8360
8361 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
8362 (-A)*B if we care about sign-dependent rounding.
8363
8364 2003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
8365
8366 * c-pretty-print.h (pp_c_left_brace): Declare.
8367 (pp_c_right_brace): Likewise.
8368 * c-pretty-print.c (pp_c_left_brace): Now a function
8369 (pp_c_right_brace): Likewise.
8370
8371 2003-09-07 Jan Hubicka <jh@suse.cz>
8372
8373 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
8374
8375 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
8376
8377 * diagnostic.c (warn_deprecated_use): Move to toplev.c
8378
8379 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
8380
8381 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
8382 * Makefile.in (langhooks.o): Depend on diagnostic.h
8383
8384 2003-09-06 James E Wilson <wilson@tuliptree.org>
8385
8386 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
8387 simplify.
8388
8389 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
8390
8391 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
8392 and use it throughout.
8393
8394 2003-09-07 Jan Hubicka <jh@suse.cz>
8395
8396 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
8397
8398 * toplev.c (rest_of_decl_compilation): Do not finalize external
8399 virables.
8400
8401 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
8402 functions.
8403 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
8404
8405 2003-09-06 Jan Hubicka <jh@suse.cz>
8406
8407 PR target/12070
8408 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
8409
8410 PR opt/12082
8411 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
8412
8413 2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
8414
8415 * diagnostic.c (announce_function): Move to toplev.c.
8416
8417 2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8418
8419 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
8420 volatile mem.
8421
8422 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8423
8424 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
8425 when gc checking is enabled.
8426
8427 2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
8428
8429 PR c/9862
8430 * c-decl.c (c_expand_body_1): Move return warning from here...
8431 (finish_function): ...to here.
8432
8433 2003-09-05 Geoffrey Keating <geoffk@apple.com>
8434
8435 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
8436 a subset of the input class.
8437
8438 2003-09-05 Kazu Hirata <kazu@cs.umass.edu>
8439
8440 * config/i860/i860.c: Follow spelling conventions.
8441 * config/i860/i860.h: Likewise.
8442 * config/sh/sh.h: Likewise.
8443
8444 2003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
8445
8446 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
8447 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
8448 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
8449
8450 2003-09-05 Roger Sayle <roger@eyesopen.com>
8451 Richard Henderson <rth@redhat.com>
8452
8453 PR optimization/1823
8454 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
8455 multiplication to implement division by constant integer.
8456
8457 2003-09-05 Jan Hubicka <jh@suse.cz>
8458
8459 * opts.c (decode_options): Enable unit-at-a-time at -O2.
8460 * params.def (max-inline-insns-single): Set to 500
8461 (max-inline-insns-auto): Set to 150
8462 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
8463
8464 2003-09-04 Richard Henderson <rth@redhat.com>
8465
8466 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
8467 (cgraph_mark_needed_node): Remove needed argument.
8468 * cgraph.h: Update to match.
8469 * cgraphunit.c (decide_is_function_needed): Split out from ...
8470 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
8471 if we generated the function.
8472 (record_call_1): Update for cgraph_mark_reachable_node.
8473 * varasm.c (mark_referenced): Likewise.
8474 * objc/objc-act.c (mark_referenced_methods): Likewise.
8475
8476 2003-09-04 DJ Delorie <dj@redhat.com>
8477
8478 * targhooks.c: Add comment explaining the migration process.
8479
8480 2003-09-04 Eric Christopher <echristo@redhat.com>
8481
8482 * config/frv/t-frv: Fix path for frv-abi.h.
8483 * config/frv/frv-asm.h: Fix string concatenation.
8484
8485 2003-09-04 DJ Delorie <dj@redhat.com>
8486
8487 * builtins.c (apply_args_size): Guard against a NULL cfun.
8488 (expand_builtin_apply_args_1): Likewise.
8489 (expand_builtin_apply): Likewise.
8490 Fixes PR bootstrap/12172.
8491
8492 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8493
8494 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
8495 assembler supports Sun syntax for cmov.
8496 * configure: Regenerate.
8497 * config.in: Likewise.
8498 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
8499 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
8500 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
8501 Fixes PR target/12101.
8502
8503 2003-09-04 Matt Austern <austern@apple.com>
8504
8505 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
8506 with verbosity 0, instead of DECL_NAME, for human-readable string.
8507
8508 2003-09-04 Eric Christopher <echristo@redhat.com>
8509
8510 * targhooks.c (default_return_in_memory): Allow
8511 unconverted ports.
8512
8513 2003-09-04 Eric Christopher <echristo@redhat.com>
8514
8515 * targhooks.c (default_return_in_memory): Fix typo
8516 in last checkin.
8517
8518 2003-09-04 Eric Christopher <echristo@redhat.com>
8519
8520 * targhooks.c (default_return_in_memory): Fix default
8521 definition.
8522
8523 2003-09-04 Bernardo Innocenti <bernie@develer.com>
8524
8525 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
8526 deleted function.
8527 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
8528 enable coff-only code in m68k.c.
8529
8530 2003-09-04 Nick Clifton <nickc@redhat.com>
8531
8532 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
8533 v850e1.
8534 * config/v850/v850.h: Accept v850e1 as a default CPU.
8535 Accept -mv850e1 as a command line option.
8536 * doc/invoke.texi: Document new -mv850e1 command line switch.
8537 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
8538 -mv850e.
8539
8540 2003-09-04 Nick Clifton <nickc@redhat.com>
8541
8542 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
8543 * config/v850/t-v850: Only produce one extra multilib - for
8544 the v850e.
8545 * config/v850/t-v850e: New file: Only produce one extra
8546 multilib - for the v850.
8547
8548 2003-09-04 Jakub Jelinek <jakub@redhat.com>
8549
8550 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
8551 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
8552 * unwind.h (_Unwind_GetBSP): New prototype.
8553 * libgcc-std.ver: Add empty GCC_3.3.2 version.
8554 * mkmap-symver.awk: For symbol versions with no exported symbols,
8555 don't put anything into version script, just change all symbol
8556 versions which inherit from it to inherit from its ancestor.
8557
8558 2003-09-04 Eric Christopher <echristo@redhat.com>
8559
8560 * config/mips/mips.c (mips_expand_prologue): Convert to
8561 calls.struct_value_rtx hook.
8562 (reg_or_const_float_1_operand): New.
8563 * config/mips/mips.h: Update Comments.
8564 (mips_arg): Add reg_or_const_float_1_operand.
8565 * config/mips/mips.md (divdf3); Convert to expander.
8566 (divsf3): Ditto.
8567 (*divdf3): New pattern.
8568 (*divsf3): Ditto.
8569
8570 2003-09-04 Jan Hubicka <jh@suse.cz>
8571
8572 * toplev.c (wrapup_global_declarations): Fix final pass in
8573 unit-at-atime mode.
8574
8575 2003-09-04 Mark Mitchell <mark@codesourcery.com>
8576
8577 * doc/extend.texi: Document removal of cast-as-lvalue extension in
8578 C++.
8579
8580 2003-09-04 Nicolas Roche <roche@act-europe.fr>
8581
8582 * gcc.c (process_command): Fix typo.
8583
8584 2003-09-03 David O'Brien <obrien@FreeBSD.org>
8585
8586 optimization/11980
8587 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
8588 (PTRDIFF_TYPE): Likewise.
8589 (WCHAR_TYPE_SIZE): Likewise.
8590
8591 2003-09-03 DJ Delorie <dj@redhat.com>
8592
8593 * targhooks.c: New file.
8594 * targhooks.h: New file.
8595 * Makefile.in: Add targhooks.o support.
8596 (function.o): Depend on$(TARGET_H).
8597 (stmt.o): Likewise.
8598 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
8599 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
8600 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
8601 (expand_builtin_saveregs): Convert to
8602 calls.expand_builtin_saveregs hook.
8603 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
8604 here, instead of ...
8605 (get_parm_info) ... here.
8606 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
8607 hook.
8608 (finish_function): Handle calls.promote_prototypes hook here too.
8609 * c-typeck.c (convert_arguments): Convert to
8610 calls.promote_prototypes hook.
8611 (c_convert_parm_for_inlining): Likewise.
8612 * calls.c (initialize_argument_information): Convert to
8613 calls.promote_function_args hook.
8614 (expand_call): Convert to calls.struct_value_rtx,
8615 calls.strict_argument_naming,
8616 calls.pretend_outgoing_varargs_named, and
8617 calls.promote_function_return hooks. Pass fndecl to
8618 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
8619 hooks, so they can use that.
8620 (emit_library_call_value_1): Likewise.
8621 * combine.c (setup_incoming_promotions): Convert to
8622 calls.promote_function_args hook.
8623 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
8624 * expr.c (expand_assignment): Pass call to aggregate_value_p.
8625 (expand_expr): Likewise.
8626 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
8627 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
8628 RETURN_IN_MEMORY macro defaults.
8629 * final.c (profile_function): Convert to calls.struct_value_rtx
8630 hook.
8631 * function.c (aggregate_value_p): Accept function type tree as
8632 second parameter; try to deduce fntype from it. Convert to
8633 calls.return_in_memory hook.
8634 (assign_parms): Convert to calls.setup_incoming_varargs,
8635 calls.strict_argument_naming, calls.promote_function_args,
8636 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
8637 aggregate_value_p.
8638 (expand_function_start): Likewise. Convert to
8639 calls.struct_value_rtx hook.
8640 (expand_function_end): Convert to calls.promote_function_return hook.
8641 (allocate_struct_function): Pass fndecl to aggregate_value_p.
8642 * hard-reg-set.h: Update comments to new hook names.
8643 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
8644 * reg-stack.c (stack_result): Likewise.
8645 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
8646 * stmt.c (expand_value_return): Convert to
8647 calls.promote_function_return hook.
8648 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
8649 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
8650 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
8651 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
8652 TARGET_STRICT_ARGUMENT_NAMING,
8653 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
8654 * target.h: Likewise.
8655 * tree.h (aggregate_value_p): Also takes a tree to deduce function
8656 attributes from (for target hooks).
8657 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
8658 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
8659 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
8660 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
8661 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
8662 to hooks.
8663
8664 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
8665 to aggregate_value_p.
8666 * config/arm/arm.c (arm_init_cumulative_args,
8667 arm_output_mi_thunk): Likewise.
8668 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
8669 Likewise.
8670 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
8671 mips_can_use_return_insn): Likewise.
8672 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
8673 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8674 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
8675 aggregate_value_p.
8676 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
8677 function to aggregate_value_p.
8678 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
8679 aggregate_value_p.
8680
8681 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
8682 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
8683 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
8684 (sh_handle_renesas_attribute, sh_promote_prototypes,
8685 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
8686 sh_setup_incoming_varargs, sh_strict_argument_naming,
8687 sh_pretend_outgoing_varargs_named): New decls.
8688 (targetm): Add new hooks.
8689 (calc_live_regs): Save MACL and MACH if the function has the
8690 renesas attribute.
8691 (sh_expand_prologue): Support renesas attribute.
8692 (sh_builtin_saveregs): Make static.
8693 (sh_build_va_list): Support renesas attribute.
8694 (sh_va_start): Likewise.
8695 (sh_va_arg): Likewise.
8696 (sh_promote_prototypes): New.
8697 (sh_function_arg): New, moved from sh.h. Support renesas
8698 attribute.
8699 (sh_function_arg_advance): Likewise.
8700 (sh_return_in_memory): Likewise.
8701 (sh_strict_argument_naming): Likewise.
8702 (sh_pretend_outgoing_varargs_named): Likewise.
8703 (sh_struct_value_rtx): New.
8704 (sh_attribute): Add renesas attribute.
8705 (sh_handle_renesas_attribute): New.
8706 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
8707 (sh_ms_bitfield_layout_p): Support renesas attribute also.
8708 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
8709 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
8710 -mhitachi.
8711 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
8712 target hooks.
8713 (sh_args): Add renesas_abi flag.
8714 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
8715 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
8716 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
8717 stack for the renesas abi.
8718 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
8719 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
8720 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
8721 call cookie to indicate renesas calls.
8722
8723 2003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
8724
8725 * gcse.c (replace_one_set): New function.
8726 (pre_insert_copy_insn): Change the order of copying
8727 to make copy propagation discover additional PRE opportunities.
8728
8729 2003-09-03 Roger Sayle <roger@eyesopen.com>
8730
8731 PR optimization/11700.
8732 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
8733 of a hard register is representable before trying to simplify it
8734 using subreg_hard_regno.
8735
8736 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8737
8738 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
8739 * configure: Regenerate.
8740
8741 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8742
8743 * intl.h (N_): Remove parentheses.
8744
8745 2003-09-03 Bernardo Innocenti <bernie@develer.com>
8746
8747 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
8748 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
8749 definition and code blocks compiled when not defined.
8750 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
8751 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
8752 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
8753 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
8754
8755 2003-09-03 Jeff Sturm <jsturm@one-point.com>
8756
8757 * cgraphunit.c (visited_nodes): New static variable.
8758 (record_call_1): Use walk_tree with visited_nodes.
8759 (cgraph_create_edges): Use walk_tree with visited_nodes.
8760 Setup/teardown visited_nodes hashtable.
8761
8762 2003-09-03 Roger Sayle <roger@eyesopen.com>
8763
8764 * toplev.c (flag_rounding_math): New global variable.
8765 (f_options): Add to the list of language independent options.
8766 * flags.h (flag_rounding_math): Prototype here.
8767 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
8768 * common.opt (frounding-math): New common command line option.
8769 * opts.c (common_handle_option): Handle OPT_frounding_math.
8770 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
8771
8772 * doc/invoke.texi: Document this new command line option.
8773
8774 2003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8775
8776 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
8777
8778 2003-09-03 Jan Hubicka <jh@suse.cz>
8779
8780 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
8781 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
8782 * c-objc-common.c: Kill include of gt-c-objc-common.h
8783 (expand_deferred_fns, deffer_fn): Kill function.
8784 (deferred_fns): Kill variable.
8785 (finish_cdtor): Update finish_function call.
8786 (c_objc_common_finish_file): Always call cgraph code.
8787 * c-parse.c: Regenerate.
8788 * c-parse.y: Regenerate.
8789 * c-tree.h (finish_function): Update prototype.
8790 * objc-acct.c (build_module_descriptor, finish_method_def):
8791 Update call of finish_function.
8792 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
8793 forward prototype.
8794 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
8795 function and assemble it if needed.
8796 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
8797 mode.
8798 (cgraph_optimize): Likewise.
8799 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
8800 even when it has no inline callees.
8801 * c-parse.in: Update calls to finish_function.
8802
8803 2003-09-03 Nick Clifton <nickc@redhat.com>
8804
8805 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
8806 Use #error to generate the message if TARGET_DEFAULT is not
8807 recognised.
8808
8809 2003-09-03 Richard Sandiford <rsandifo@redhat.com>
8810
8811 * config/mips/mips.h (MASK_UNUSED1): Remove.
8812 (MASK_XGOT, TARGET_XGOT): Define.
8813 (TARGET_SWITCHES): Add an entry for -mxgot.
8814 (ASM_SPEC): Map -mxgot to -xgot.
8815 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
8816 whether we're using a big-GOT sequences.
8817 (mips_legitimize_const_move, mips_expand_call): Likewise.
8818 (override_options): Revert 2003-01-09 change.
8819 * doc/invoke.texi: Document -mxgot.
8820
8821 2003-09-02 Jason Merrill <jason@redhat.com>
8822
8823 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
8824 * config/sparc/sol2.h: Not here.
8825
8826 2003-09-02 Roger Sayle <roger@eyesopen.com>
8827
8828 * expr.c (expand_expr): The code following both_summands performs
8829 the same task as simplify_gen_binary. Replace all gotos to
8830 both_summands with a call to simplify_gen_binary and delete the
8831 now unused label.
8832
8833 2003-09-02 Jason Merrill <jason@redhat.com>
8834
8835 PR c++/7327
8836 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
8837
8838 2003-09-02 Jeff Sturm <jsturm@one-point.com>
8839
8840 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
8841 (cgraph_optimize_function): Set current_function_decl to the
8842 fndecl we're integrating from.
8843
8844 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8845
8846 * builtins.def: Break out _Complex math functions into their
8847 own category.
8848
8849 2003-09-02 Andreas Jaeger <aj@suse.de>
8850
8851 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
8852
8853 2003-09-02 Josef Zlomek <zlomekj@suse.cz>
8854
8855 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
8856 finding the note again.
8857
8858 2003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
8859
8860 * config.gcc: Remove host-specific rewrites of target_alias.
8861
8862 2003-09-01 Mark Mitchell <mark@codesourcery.com>
8863
8864 * Makefile.in (genprogs): Fix typo.
8865
8866 * Makefile.in (gencheck.o): Remove build commands.
8867 (dummy-conditions.o): Likewise.
8868 (read-rtl.o): Likewise.
8869 (gensupport.o): Likewise.
8870 (genconfig$(build_exeext)): Remove rule.
8871 (genconfig.o): Remove build commands.
8872 (genflags$(build_exeext)): Remove rule.
8873 (genflags.o): Remove build commands.
8874 (gencodes$(build_exeext)): Remove rule.
8875 (gencodes.o): Remove build commands.
8876 (genconstants.o): Remove build commands.
8877 (genemit$(build_exeext)): Remove rule.
8878 (genemit.o): Remove build commands.
8879 (genrecog$(build_exeext)): Remove rule.
8880 (genrecog.o): Remove build commands.
8881 (genextract$(build_exeext)): Remove rule.
8882 (genextract.o): Remove build commands.
8883 (genpeep$(build_exeext)): Remove rule.
8884 (genpeep.o): Remove build commands.
8885 (genattr$(build_exeext)): Remove rule.
8886 (genattr.o): Remove build commands.
8887 (genprognames): New variable.
8888 (genprogs): Likewise.
8889 (genobjs): Likewise.
8890 (genprogs): New rule.
8891 (genobjs): Likewise.
8892 (genattrtab.o): Remove build commands.
8893 (genautomata.o): Likewise.
8894 (genoutput$(build_exeext)): Remove rule.
8895 (genoutput.o): Remove build commands.
8896 (gengenrtl.o): Likewise.
8897 (genpreds.o): Likewise.
8898 (gengtype.o): Likewise.
8899 (genconditions.o): Likewise.
8900 (gen-protos.o): Likewise.
8901 (scan.o): Likewise.
8902 (fix-header.o): Likewise.
8903 (scan-decls.o): Likewise.
8904 (check-g++): Combine with other check targets.
8905 (check-gcc): Likewise.
8906 (check-g77): Likewise.
8907 (check-objc): Likewise.
8908
8909 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
8910
8911 * config.gcc: Remove host-specific stuff which is unused here
8912 since the introduction of config.host.
8913
8914 * doc/fragments.texi: Mention config.host.
8915 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
8916 of config.build, config.host, and config.gcc.
8917
8918 2003-09-01 Zack Weinberg <zack@codesourcery.com>
8919
8920 * c-decl.c (pushdecl): Don't put variables on
8921 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
8922 incomplete.
8923
8924 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
8925
8926 * config.host: New file.
8927 * config.gcc: Remove some host-specific stuff and some
8928 logic needed only for repeated invocation.
8929 * configure.in: Use config.host.
8930 * configure: Regenerate.
8931
8932 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
8933
8934 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
8935 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
8936 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
8937 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
8938 * tree.def (BIT_ANDTC_EXPR): Kill.
8939
8940 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
8941
8942 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
8943 * configure: Regenerate.
8944
8945 * config.gcc: Remove references to install_headers_dir, now unused
8946 since introduction of config.build.
8947 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
8948
8949 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
8950 config.build.
8951
8952 * config.build: New file.
8953 * config.gcc: Remove some build-specific stuff.
8954 * configure.in: Use config.build.
8955 * configure: Regnerate.
8956
8957 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
8958 Roger Sayle <roger@eyesopen.com>
8959
8960 PR middle-end/11823
8961 * stmt.c (expand_end_case_type): Only use jump tables for dense
8962 switch statements when optimizing for size.
8963
8964 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
8965
8966 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
8967 the != 0 case, which ensures pending stack adjustments are flushed.
8968
8969 2003-08-30 Zack Weinberg <zack@codesourcery.com>
8970
8971 * configure.frag: Delete file.
8972 * configure.in: Rename the substitution variables
8973 dep_host_xmake_file and dep_tmake_file to xmake_file and
8974 tmake_file respectively. Do not expand $srcdir in the
8975 value of these; leave that for Make. Introduce a new
8976 substitution varaible, all_lang_makefrags, which lists
8977 subdirectory Make-lang.in files; exclude these from
8978 all_lang_makefiles, which is now only for subdirectory
8979 outputs. Do not invoke configure.frag. Do not set nor
8980 AC_SUBST_FILE target_overrides, host_overrides, or
8981 language_fragments. Create build subdirectories in
8982 config.status extra commands.
8983 * configure: Regenerate.
8984 * Makefile.in: Update substitutions to match changes to
8985 configure. Use include directives instead of @-insertions
8986 to read in host, target, and language fragments.
8987 (Makefile rule): Do not invoke configure.frag. Do not copy
8988 config.status to config.run before executing it. Set
8989 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
8990 regenerated.
8991 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
8992
8993 2003-08-30 Zack Weinberg <zack@codesourcery.com>
8994
8995 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
8996 * c-typeck.c (same_translation_unit_p): New function.
8997 (comptypes): Use it instead of flags parameter to identify
8998 structure types from different translation units.
8999 * c-decl.c (duplicate_decls): Always call comptypes with
9000 COMPTYPE_STRICT flags argument.
9001 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
9002 to file_scope_decl.
9003
9004 2003-08-30 Zack Weinberg <zack@codesourcery.com>
9005
9006 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
9007 * c-decl.c (struct c_scope): Remove "incomplete" field.
9008 (pushdecl): Attach variables with incomplete types to
9009 the TYPE_MAIN_VARIANT of the incomplete type in question.
9010 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
9011 to complete, not at current_scope->incomplete. All such
9012 variables do need completion.
9013
9014 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
9015 Nicolas Pitre <nico@cam.org>
9016
9017 * arm/lib1funcs.asm (RETCOND): Delete.
9018 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
9019 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
9020 (__ARM_ARCH__): Move here from ieee754-?f.S.
9021 (RET, RETc): Clean up definitions.
9022 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
9023 (FUNC_END): New macro that marks the end of any function.
9024 (ARM_FUNC_START): New macro that allows an assembler routine to be
9025 implemented in ARM code even if a Thumb-only build.
9026 Unconditionally include ieee754-?f.S.
9027 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
9028 Mark ends of functions.
9029 Split into separate conditionally-compiled units.
9030 Use RETLDM to return from routines.
9031 * arm/ieee754-sf.S: Similarly.
9032 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
9033 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
9034 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
9035 _fixsfsi and _fixunssfsi.
9036
9037 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
9038 multiplication underflows to zero.
9039 (__adddf3): Fix bug when using VFP ordering on little-endian
9040 processors.
9041 (__fixdfsi): Use rrx to extract the carry into a register instead of
9042 MRS instruction. Optimize later use of result.
9043 * arm/ieee754-sf.S (__fixsfsi): Likewise.
9044 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
9045
9046 2003-08-29 Richard Henderson <rth@redhat.com>
9047
9048 * tree-optimize.c: New file.
9049 * Makefile.in (OBJS-archive): Add tree-optimize.o.
9050 (tree-optimize.o): New.
9051 * c-decl.c (store_parm_decls): Use allocate_struct_function.
9052 (finish_function): Don't free_after_parsing or free_after_compilation.
9053 (set_save_expr_context): Move to tree-optimize.c.
9054 (c_expand_body_1): Use tree_rest_of_compilation.
9055 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
9056 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
9057 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
9058 iterate until closure.
9059 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
9060 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
9061 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
9062 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
9063 * toplev.h (tree_rest_of_compilation): Declare it.
9064
9065 2003-08-29 Richard Henderson <rth@redhat.com>
9066
9067 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
9068 * integrate.c (save_for_inline): Set saved_for_inline.
9069 * c-semantics.c (genrtl_scope_stmt): Check it.
9070 * toplev.c (wrapup_global_declarations): Check it.
9071 (rest_of_handle_inlining): Set and check rtl_inline_init.
9072 (rest_of_compilation): Remove out of date comment.
9073
9074 2003-08-29 Richard Henderson <rth@redhat.com>
9075
9076 * function.c (allocate_struct_function): New, split out of ...
9077 (prepare_function_start, init_function_start): ... here.
9078 * expr.c (init_expr): Use ggc_alloc_cleared.
9079 * stmt.c (init_stmt_for_function): Likewise.
9080 * tree.h (allocate_struct_function): Declare.
9081
9082 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
9083
9084 * config.gcc: Don't use negated character class in shell case
9085 clause.
9086
9087 2003-08-29 Richard Henderson <rth@redhat.com>
9088
9089 * function.h (struct function): Move function_frequency and
9090 max_jumptable_ents before start of bit field members.
9091
9092 2003-08-29 Richard Henderson <rth@redhat.com>
9093
9094 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
9095 (fold_builtin_constant_p) ... not here.
9096
9097 2003-08-29 Richard Henderson <rth@redhat.com>
9098
9099 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
9100 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
9101 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
9102
9103 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9104
9105 * builtins.def: Fix typos.
9106 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
9107 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
9108 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
9109 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
9110 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
9111
9112 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
9113 Use ATTR_MATHFN_FPROUNDING_ERRNO.
9114
9115 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
9116
9117 * config.gcc (i386-*-vsta): Fix obvious bogosity.
9118
9119 * fixinc/inclhack.def: Remove special cases for unsupported
9120 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
9121 * fixinc/fixincl.x: Regenerate.
9122
9123 2003-08-29 Mark Mitchell <mark@codesourcery.com>
9124
9125 * Makefile.in (cpp.info): Just state dependencies.
9126 (gcc.info): Likewise.
9127 (gccint.info): Likewise.
9128 (gccinstall.info): Likewise.
9129 (cppinternals.info): Likewise.
9130 (cpp.dvi): Likewise.
9131 (gcc.dvi): Likewise.
9132 (gccint.dvi): Likewise.
9133 (gccinstall.dvi): Likewise.
9134 (cppinternals.dvi): Likewise.
9135 (gcov.1): Likewise.
9136 (cpp.1): Likewise.
9137 (gcc.1): Likewise.
9138 (gfdl.7): Likewise.
9139 (gpl.7): Likewise.
9140 (fsf-funding.7): Likewise.
9141 ($(objdir)/%.info): New pattern rule.
9142 (%.dvi): Likewise.
9143
9144 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
9145
9146 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
9147 (restage2): Likewise.
9148 (restage3): Likewise.
9149 (restage4): Likewise.
9150 (restageprofile): Likewise.
9151 (restagefeedback): Likewise.
9152 (bubblestrap): Likewise.
9153
9154 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
9155
9156 * config.gcc: Narrow unsupported target match to avoid clobbering
9157 i?86-sequent-sysv4*.
9158
9159 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9160
9161 * builtins.c (mathfn_built_in): Handle new math builtins.
9162
9163 2003-08-28 Per Bothner <per@bothner.com>
9164
9165 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
9166 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
9167 (_cpp_lex_buffer): Likewise.
9168 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
9169
9170 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
9171
9172 * config/s390/s390.md ("*mulsi3_sign"): New insn.
9173 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
9174 ("mulsidi3"): ... this new insn.
9175 ("umulsidi3"): New insn.
9176 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
9177 mixed-mode matching constraints.
9178 ("udivmodsi4", "udivmoddisi3"): New insns.
9179 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
9180
9181 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9182
9183 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
9184 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
9185 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
9186 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
9187 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
9188 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
9189 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
9190 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
9191 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
9192 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
9193 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
9194 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
9195 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
9196 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
9197 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
9198 * tree.c: Assign new type_nodes.
9199 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
9200 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
9201 (float_ptr_type_node, double_ptr_type_node,
9202 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
9203
9204 * doc/extend.texi: Document new builtins.
9205
9206 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9207
9208 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
9209 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
9210
9211 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
9212 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
9213 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
9214 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
9215 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
9216 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
9217 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
9218 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
9219 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
9220 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
9221
9222 * doc/extend.texi: Document new builtins.
9223
9224 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
9225
9226 * fixinc/mkfixinc.sh: Remove special case code for unsupported
9227 variants of i?86, powerpcle, and thumb.
9228 * fixinc/mkfixinc.sh: Remove special case code for unsupported
9229 arm and hppa variants.
9230
9231 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9232
9233 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
9234 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
9235 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
9236 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
9237 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
9238 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
9239 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
9240 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
9241 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
9242 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
9243
9244 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
9245 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
9246 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
9247 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
9248 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
9249 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
9250 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
9251 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
9252 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
9253 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
9254 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
9255 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
9256 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
9257 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
9258 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
9259 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
9260 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
9261 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
9262 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
9263 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
9264 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
9265 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
9266 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
9267 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
9268 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
9269 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
9270 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
9271 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
9272 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
9273 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
9274 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
9275
9276 * doc/extend.texi: Document new builtins.
9277
9278 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
9279
9280 * config/s390/s390.c (legitmate_constant_p): Use LARL on
9281 zSeries machines even in 31-bit addressing mode.
9282 (legitimate_reload_constant_p): Likewise.
9283 (legitimize_pic_address): Likewise.
9284 (legitimize_tls_address): Likewise.
9285 (s390_split_branches): Likewise.
9286 (s390_dump_pool): Likewise.
9287 (s390_mainpool_finish): Likewise.
9288 (s390_chunkify_start): Likewise.
9289 (s390_select_rtx_section): Likewise.
9290 * config/s390/s390.md ("doloop_si"): Likewise.
9291 ("pool_start_31", "pool_end_31"): Likewise.
9292 ("pool_start_64", "pool_end_64"): Likewise.
9293 ("main_base_31_small", "main_base_31_large"): Likewise.
9294 ("main_base_64"): Likewise.
9295 ("reload_base_31", "reload_base_64"): Likewise.
9296 ("*movsi_larl"): New insn.
9297 ("cjump", "icjump"): Use long branches on zSeries machines.
9298 ("jump"): Likewise.
9299 ("call"): Use BRASL on zSeries machines.
9300 ("call_value", "call_value_tls"): Likewise.
9301 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
9302 and replace by ...
9303 ("*bras", "*brasl", "*basr") ... these new insns.
9304 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
9305 "bas_31_r"): Remove and replace by ...
9306 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
9307 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
9308 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
9309 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
9310 ("*return_si", "*return_di"): Remove and replace by ...
9311 ("*return"): ... this new insn.
9312 ("rotlsi3"): Allow on zSeries machines.
9313
9314 * config/s390/s390.c (legitimize_reload_constant_p): Use
9315 LL/LH type instructions in z/Architecture mode.
9316 * config/s390/s390.md ("*movsi_lli"): Likewise.
9317 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
9318 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
9319 ("*extendqisi2"): Use LB in z/Architecture mode.
9320 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
9321 z/Architecture mode.
9322 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
9323 Likewise.
9324
9325 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
9326 and 31-bit mode.
9327 ("ptr_extend"): Allow only in 64-bit mode.
9328
9329 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
9330
9331 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
9332 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
9333 definitions.
9334 (main): Only use standard_startfile_prefix if native.
9335 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
9336
9337 2003-08-27 Per Bothner <pbothner@apple.com>
9338
9339 * cpperror.c (print_location): Don't check for !pfile->buffer. That
9340 test fails following my 08-21 change, and it seems unnecessary anyway.
9341 (cpp_error): Likewise.
9342
9343 2003-08-27 Jason Merrill <jason@redhat.com>
9344
9345 * real.c (do_multiply): Initialize with memset.
9346
9347 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9348
9349 * gcov.c (typedef struct arc_info): New field cs_count.
9350 (accumulate_line_counts): Find cycles correctly.
9351
9352 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
9353
9354 * config/s390/s390.c (struct machine_function): Remove member
9355 literal_pool_label.
9356 (s390_optimize_prolog): Replace TEMP_REG argument with
9357 TEMP_USED and BASE_USED. Do not check get_pool_size ().
9358 (general_s_operand): Accept all immediates before reload if
9359 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
9360 references.
9361 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
9362 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
9363 (s390_alloc_pool): New function.
9364 (s390_new_pool): Call it.
9365 (s390_dump_pool): Add REMOTE_LABEL argument.
9366 (s390_chunkify_start): Add BASE_REG argument. Do not check
9367 get_pool_size ().
9368 (s390_chunkify_finish): Add BASE_REG argument. Adapt
9369 s390_dump_pool call.
9370 (s390_pool_count, s390_nr_constants): Remove.
9371 (s390_output_constant_pool): Remove.
9372 (s390_mainpool_start): New function.
9373 (s390_mainpool_finish): New function.
9374 (s390_mainpool_cancel): New function.
9375 (s390_reorg): Implement main literal pool handling.
9376 (s390_emit_prologue): Emit main_pool placeholder instead of
9377 literal_pool_31 / literal_pool_64 insns.
9378 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
9379 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
9380 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
9381 ("main_base_31_small", "main_base_31_large"): New insns.
9382 ("main_base_64", "main_pool"): New insns.
9383 ("literal_pool_31", "literal_pool_64"): Remove.
9384
9385 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
9386
9387 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
9388 fixinc.ptx.
9389 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
9390 Prettify a little.
9391 * fixinc/fixincl.x: Regenerate.
9392
9393 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
9394
9395 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
9396 (L_ieee754_dp): New. Include ieee754-df.S.
9397 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
9398 and compilation in apcs-26 mode.
9399 * arm/ieee754-df.S: Likewise.
9400 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
9401 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
9402
9403 2003-08-27 Nicolas Pitre <nico@cam.org>
9404
9405 * arm/ieee754-sf.S: New.
9406 * arm/ieee754-df.S: New.
9407
9408 2003-08-27 Jakub Jelinek <jakub@redhat.com>
9409
9410 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
9411 and restore it if returning NULL.
9412
9413 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
9414
9415 * calls.c (initialize_argument_information): If an argument has no
9416 stack space associated with it, and BLOCK_REG_PADDING is defined,
9417 use it to decide at which end the argument should be padded.
9418 * function.c (assign_parms): Allocate BLKmode stack slots.
9419 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
9420 (mips_pad_reg_upward): Declare.
9421 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
9422 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
9423 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
9424 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
9425 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
9426 (mips_expand_call): Remove code for generating structure shifts.
9427 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
9428 types unless using the EABI.
9429 (function_arg_advance): Don't generate shift instructions.
9430 (function_arg): Don't return them. Don't short-circuit the
9431 check for double structure chunks for DFmode arguments.
9432 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
9433 (mips_expand_prologue): Remove code to emit structure shifts.
9434 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
9435 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
9436 comments to say that only structure returns are a problem.
9437
9438 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
9439
9440 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
9441 Fix to match produced versions.
9442 * fixinc/inclhack.def (longlong_t): New disabled test, ported
9443 from fixinc.svr4.
9444 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
9445 from fixinc.ptx.
9446 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
9447 ported from fixinc.ptx.
9448
9449 2003-08-26 Per Bothner <pbothner@apple.com>
9450
9451 * cpplib.h (struct cpp_token): Change type of field line to fileline.
9452 (cpp_error_with_line): Use fileline for appropriate parameter.
9453 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
9454 (struct cpp_reader): Likewise for fields line and directive_line.
9455 (_cpp_begin_message): Use fileline for appropriate parameter.
9456 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
9457 cpp_error): Use fileline for appropriate parameters and variables.
9458 (print_location): New local lin, since it is not a fileline.
9459
9460 2003-08-26 Roger Sayle <roger@eyesopen.com>
9461
9462 PR middle-end/12002
9463 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
9464 (FLOAT_TYPE_P): Define in terms of these two new macros.
9465 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
9466 for complex floating point types.
9467
9468 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
9469
9470 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
9471 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
9472 s390_output_pool_entry.
9473
9474 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
9475
9476 * fixinc/inclhack.def (svr4_preproc_lint_on,
9477 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
9478 fixes, ported from fixinc.svr4.
9479
9480 2003-08-26 Mark Mitchell <mark@codesourcery.com>
9481
9482 * doc/install.texi (Prerequisites): Mention GNU make requirement.
9483
9484 * Makefile.in (AR_FOR_TARGET): Export it.
9485 (AR_CREATE_FOR_TARGET): Likewise.
9486 (AR_FLAGS_FOR_TARGET): Likewise.
9487 (AR_EXTRACT_FOR_TARGET): Likewise.
9488 (AWK): Likewise.
9489 (BUILD_PREFIX): Likewise.
9490 (BUILD_PREFIX_1): Likewise.
9491 (DESTDIR): Likewise.
9492 (GCC_FOR_TARGET): Likewise.
9493 (INCLUDES): Likewise.
9494 (INSTALL_DATA): Likewise.
9495 (LIB1ASMSRC): Likewise.
9496 (LIBGCC2_CFLAGS): Likewise.
9497 (MACHMODE_H): Likewise.
9498 (NM_FOR_TARGET): Likewise.
9499 (RANLIB_FOR_TARGET): Likewise.
9500 (libsubdir): Likewise.
9501 (slibdir): Likewise.
9502 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
9503 exporting.
9504 (libgcc.a): Don't pass them here.
9505 (stmp-multilib): Or here.
9506 (install-libgcc): Or here.
9507 (install-multilib): Or here.
9508 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
9509 (stage1_build): Or here.
9510
9511 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
9512
9513 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
9514 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
9515
9516 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
9517
9518 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
9519 "*fmaddsf", "*fmsubsf"): New insns.
9520
9521 2003-08-26 Roger Sayle <roger@eyesopen.com>
9522
9523 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
9524 (C1*C2)/X when unsafe math optimizations are allowed.
9525 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
9526 math optimizations. Minor code clean-ups. Recursively call
9527 fold when constructing sub-expressions.
9528
9529 2003-08-26 Roger Sayle <roger@eyesopen.com>
9530
9531 * builtins.c (fold_builtin_bitop): New function to perform constant
9532 folding of ffs, clz, ctz, popcount and parity builtin functions
9533 and their long and long long variants (such as ffsl and ffsll).
9534 (fold_builtin): fold_builtin_bitop when appropriate.
9535 * simplify-rtx.c (simplify_unary_operation): Honor both
9536 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
9537 evaluating clz and ctz at compile-time, for operands wider
9538 than HOST_WIDE_INT.
9539
9540 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
9541
9542 * builtins.c (build_function_call_expr): Don't set
9543 TREE_SIDE_EFFECTS here.
9544 * expr.c (emit_block_move_via_libcall): Likewise.
9545 (clear_storage_via_libcall): Likewise.
9546 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
9547 CALL_EXPRs.
9548
9549 * gcse.c (is_too_expensive): New function.
9550 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
9551
9552 2003-08-25 Zack Weinberg <zack@codesourcery.com>
9553
9554 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
9555 commented-out logic to use DCE threads (if present), add
9556 support for POSIX threads.
9557 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
9558 #defines for -pthread. Add -lpthread to LIB_SPEC when
9559 -pthread. In both cases take -mt as a synonym for -pthread
9560 for acc compatibility.
9561 Define GTHREAD_USE_WEAK to 0.
9562 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
9563 Remove old logic for DCE threads from LIB_SPEC.
9564 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
9565
9566 2003-08-25 Roger Sayle <roger@eyesopen.com>
9567
9568 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
9569 return 0 for invalid argument types. Instead drop through to a
9570 call of expand_call at the bottom of function. If op is SQRT,
9571 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
9572
9573 2003-08-25 Richard Henderson <rth@redhat.com>
9574
9575 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
9576 result when op0 is SImode.
9577
9578 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
9579
9580 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
9581 from fixinc.svr4.
9582 * fixinc/fixincl.x: Regenerate.
9583 * fixinc/tests/base/sys/signal.h: Regenerate.
9584
9585 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
9586
9587 * combine.c (simplify_comparison): Re-enable widening of comparisons
9588 with non-paradoxical subregs of non-REG expressions.
9589
9590 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
9591
9592 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
9593
9594 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
9595
9596 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
9597
9598 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
9599
9600 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
9601 * c-pretty-print.h (c_pretty_printer): Now typedef to the
9602 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
9603 (struct c_pretty_print_info): Document. Add new fields.
9604 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
9605 (pp_direct_abstract_declarator): New macro.
9606 (pp_ptr_operator): Likewise.
9607 (pp_simple_type_specifier): Likewise.
9608 (pp_expression): Likewise.
9609 (pp_parameter_list): Rename from pp_parameter_declaration.
9610 * c-pretty-print.c (pp_c_whitespace): Now a function.
9611 (pp_c_left_paren): Likewise.
9612 (pp_c_right_paren): Likewise.
9613 (pp_c_dot): Likewise.
9614 (pp_c_ampersand): Likewise.
9615 (pp_c_arrow): Likewise.
9616 (pp_c_semicolon): Likewise.
9617 (pp_c_type_cast): New function.
9618 (pp_c_space_for_pointer_operator): Likewise.
9619 (pp_c_call_argument_list): Likewise.
9620 (pp_c_cv_qualifier): Adjust prototype.
9621 (pp_c_type_qualifier_list): Likewise.
9622 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
9623 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
9624 Adjust to follow standard grammar.
9625 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
9626 REFERENCE_TYPE. Tidy.
9627 (pp_c_parameter_type_list): Adjust prototype. Tidy.
9628 (pp_c_parameter_declaration): Remove.
9629 (pp_c_abstract_declarator): Adjust prototype.
9630 (pp_c_direct_abstract_declarator): Likewise.
9631 (pp_c_type_id): Likewise.
9632 (pp_c_storage_class_specifier): Likewise.
9633 (pp_c_function_specifier): Likewise.
9634 (pp_c_declaration_specifiers): Likewise.
9635 (pp_c_direct_declarator): Likewise.
9636 (pp_c_declarator): Likewise.
9637 (pp_c_declarator): Likewise.
9638 (pp_c_declaration): Likewise.
9639 (pp_c_attributes): Likewise. Tidy.
9640 (pp_c_function_definition): Adjust prototype.
9641 (pp_c_char): Likewise.
9642 (pp_c_string_literal): Likewise.
9643 (pp_c_integer_constant): Likewise.
9644 (pp_c_character_constant): Likewise.
9645 (pp_c_bool_constant): Likewise.
9646 (pp_c_enumeration_constant): Likewise.
9647 (pp_c_floating_constant): Likewise.
9648 (pp_c_constant): Likewise.
9649 (pp_c_identifier): Likewise.
9650 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
9651 (pp_c_initializer): Adjust prototype.
9652 (pp_c_init_declarator): Likewise.
9653 (pp_c_initializer_list): Likewise.
9654 (pp_c_id_expression): Likewise.
9655 (pp_c_postfix_expression): Likewise.
9656 (pp_c_expression_list): Likewise.
9657 (pp_c_unary_expression): Likewise.
9658 (pp_c_cast_expression): Likewise.
9659 (pp_c_multiplicative_expression): Likewise.
9660 (pp_c_additive_expression): Likewise.
9661 (pp_c_shift_expression): Likewise.
9662 (pp_c_relational_expression): Likewise.
9663 (pp_c_equality_expression): Likewise.
9664 (pp_c_and_expression): Likewise.
9665 (pp_c_exclusive_or_expression): Likewise.
9666 (pp_c_inclusive_or_expression): Likewise.
9667 (pp_c_logical_and_expression): Likewise.
9668 (pp_c_logical_or_expression): Likewise.
9669 (pp_c_conditional_expression): Likewise.
9670 (pp_c_assignment_expression): Likewise.
9671 (pp_c_expression): Likewise. Tidy.
9672 (pp_c_statement): Likewise. Document.
9673 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
9674
9675 * c-lang.c (c_initialize_diagnostics): Update.
9676 * c-common.h (strip_pointer_operator): Declare.
9677 * c-common.c (strip_pointer_operator): Define.
9678
9679 2003-08-25 Mark Mitchell <mark@codesourcery.com>
9680
9681 PR c++/8795
9682 * tree.h (build_method_type_directly): Declare.
9683 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
9684 (vector_size_helper): Likewise.
9685 * tree.c (build_method_type_directly): New function.
9686 (build_method_type): Use it.
9687
9688 2003-08-24 Richard Henderson <rth@redhat.com>
9689
9690 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
9691 for 16-byte vector modes if sse not enabled; warn for abi change.
9692 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
9693
9694 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
9695
9696 * rtlanal.c (may_trap_p): Simplify an integer comparison.
9697
9698 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
9699
9700 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
9701 comment. Enable for DYNIX/ptx systems (when they switch to
9702 regular fixincludes).
9703 * fixinc/fixincl.x: Regenerate.
9704
9705 2003-08-23 Jason Eckhardt <jle@rice.edu>
9706
9707 * config/i860/t-i860: New.
9708 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
9709
9710 2003-08-23 Jakub Jelinek <jakub@redhat.com>
9711
9712 * c-decl.c (pushdecl): Only put decls which finish_struct will do
9713 something about onto incomplete chain.
9714 (finish_struct): If not removing type from incomplete
9715 list, update prev.
9716
9717 2003-08-20 Jan Hubicka <jh@suse.cz>
9718
9719 PR target/11369
9720 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
9721
9722 PR target/11031
9723 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
9724 const_0_to_15_operand, const_0_to_255_operand): New predicates.
9725 * i386.h (PREDICATE_CODES): Add these.
9726 * i386.c (pinsrw and pextrw patterns): Use them.
9727
9728 PR target/10984
9729 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
9730
9731 PR target/8869
9732 * expr.c (convert_modes): Deal properly with integer to vector
9733 constant conversion.
9734
9735 PR target/8871
9736 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
9737
9738 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
9739
9740 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
9741 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
9742 ("*movhi"): ... this.
9743 ("movqi", "*movqi"): Likewise.
9744 ("movqi_64"): Remove.
9745 ("*zero_extendhisi2_31"): Change predicate to s_operand.
9746
9747 2003-08-23 Dale Johannesen <dalej@apple.com>
9748 * calls.c (emit_library_call_value_1): Fix obvious errors in
9749 arguments to emit_group_store.
9750
9751 2003-08-23 Jason Eckhardt <jle@rice.edu>
9752
9753 * calls.c (emit_library_call_value_1): Remove code related
9754 to LIBGCC_NEEDS_DOUBLE.
9755 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
9756 * doc/tm.texi: Likewise.
9757 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
9758
9759 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
9760
9761 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
9762
9763 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
9764
9765 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
9766 as well. Put memory references in the varargs alias set.
9767 (mips_expand_prologue): Remove varargs handling from here.
9768
9769 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
9770
9771 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
9772 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
9773 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
9774 for function pointer calls.
9775 * config/s390/s390.md ("*negdi2_31"): Likewise.
9776
9777 2003-08-23 Roger Sayle <roger@eyesopen.com>
9778
9779 * combine.c (apply_distributive_law): Correct comment.
9780
9781 2003-08-23 Jason Eckhardt <jle@rice.edu>
9782
9783 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
9784
9785 2003-08-22 Jason Eckhardt <jle@rice.edu>
9786
9787 * config/i860/i860.c (i860_build_va_list): Create the va_decl
9788 declaration. Document the va_list structure.
9789 (i860_va_start): Initialize the va_list structure.
9790 (i860_va_arg): Rewrite completely.
9791 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
9792 * config/i860/varargs.asm: Do not allocate or initialize
9793 a va_list. Return the address of the register save area.
9794
9795 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9796
9797 * config/iq2000/iq2000.c: Fix comment typos.
9798 * config/iq2000/iq2000.md: Likewise.
9799
9800 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9801
9802 * config/iq2000/iq2000.c: Follow spelling conventions.
9803 * config/iq2000/iq2000.h: Likewise.
9804 * config/mn10300/mn10300.c: Likewise.
9805
9806 2003-08-22 Jason Eckhardt <jle@rice.edu>
9807
9808 * config/i860/i860.c (output_move_double): Don't set latehalf
9809 to zero for CONST_INT (since it could be, e.g., -1).
9810
9811 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
9812 (MODSI3_LIBCALL): ...with this one.
9813 (UREMSI3_LIBCALL): Replace this macro...
9814 (UMODSI3_LIBCALL): ...with this one.
9815
9816 2003-08-22 Jason Eckhardt <jle@rice.edu>
9817
9818 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
9819 (output_delayed_branch): Remove prototype.
9820 (single_insn_src_p): Remove prototype.
9821 * config/i860/i860.c (single_insn_src_p): Remove function.
9822 (output_delayed_branch): Remove function.
9823 (output_delay_insn): Remove function.
9824 (va_start): Remove unconditional test and dead code, re-format.
9825 Fix coding style and spelling problems in various comments.
9826 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
9827 (blockage pattern): ...and use it here.
9828 (all define_peephole patterns related to delayed branches): Remove.
9829 Fix coding style and spelling problems in various comments.
9830
9831 2003-08-22 Jason Eckhardt <jle@rice.edu>
9832
9833 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
9834 Remove all uses of the PARAMS macro. Remove superflous prototypes.
9835 Convert all function definitions from traditional to ISO C90 syntax.
9836 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
9837 with 'GCC'. Remove all uses of the PARAMS macro.
9838 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
9839 * config/i860/i860.md: Likewise.
9840 * config/i860/sysv4.h: Likewise.
9841 * config/i860/varargs.asm: Likewise.
9842
9843 2003-08-22 Jason Eckhardt <jle@rice.edu>
9844
9845 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
9846 argument.
9847 (tdesc_section): Add prototype.
9848 Update copyright dates.
9849 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
9850 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
9851 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
9852 (targetm): Likewise.
9853 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
9854 for '%d' where necessary.
9855 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
9856 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
9857 by UNITS_PER_WORD when referencing (likewise for .floats).
9858 (I860_SVR4_VARARGS): Rename...
9859 (I860_SVR4_VA_LIST): ...to this.
9860 Call build() with 't' rather than 'field'.
9861 (i860_rtx_costs): New function.
9862 (TARGET_RTX_COSTS): Define.
9863 (i860_internal_label): New function.
9864 (TARGET_ASM_INTERNAL_LABEL): Define.
9865 (i860_file_start): New function.
9866 Update copyright dates.
9867 * config/i860/i860.h (CPP_PREDEFINES): Remove.
9868 (TARGET_CPU_CPP_BUILTINS): Define.
9869 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
9870 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
9871 (ASM_FILE_START): Remove.
9872 (ASM_FILE_START_1): Remove.
9873 (ASM_GLOBALIZE_LABEL): Remove.
9874 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
9875 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
9876 with targetm.asm_out.internal_label.
9877 Update copyright dates.
9878 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
9879 (CPP_PREDEFINES): Remove.
9880 (TARGET_OS_CPP_BUILTINS): Define.
9881 (GLOBAL_ASM_OP): Define.
9882 (ASM_FILE_START): Remove.
9883 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
9884 (TARGET_ASM_FILE_START): Define.
9885 Update copyright dates.
9886
9887 2003-08-22 Jason Eckhardt <jle@rice.edu>
9888
9889 * gcc/config.gcc (i860-*-sysv4*): Add target.
9890 * config/i860/i860-protos.h: New.
9891 * config/i860/i860.c: New.
9892 * config/i860/i860.h: New.
9893 * config/i860/i860.md: New.
9894 * config/i860/sysv4.h: New.
9895 * config/i860/varargs.asm: New.
9896 * config/i860/x-sysv4: New.
9897
9898 2003-08-22 Jason Eckhardt <jle@rice.edu>
9899
9900 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
9901 Remove all uses of PARAMS macro.
9902 Convert all function definitions to ISO C90 syntax.
9903 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
9904 * config/pa/fptr.c: Likewise.
9905 * config/pa/lib2funcs.asm: Likewise.
9906 * config/pa/long_double.h: Likewise.
9907 * config/pa/milli64.S: Likewise.
9908 * config/pa/pa-64.h: Likewise.
9909 * config/pa/pa-hpux.h: Likewise.
9910 * config/pa/pa-hpux10.h: Likewise.
9911 * config/pa/pa-hpux11.h: Likewise.
9912 * config/pa/pa-linux.h: Likewise.
9913 * config/pa/pa-modes.def: Likewise.
9914 * config/pa/pa-osf.h: Likewise.
9915 * config/pa/pa-pro-end.h: Likewise.
9916 * config/pa/pa.md: Likewise.
9917 * config/pa/pa32-linux.h: Likewise.
9918 * config/pa/pa64-linux.h: Likewise.
9919 * config/pa/pa64-hpux.h: Likewise.
9920 * config/pa/pa64-regs.h: Likewise.
9921 * config/pa/quadlib.c: Likewise.
9922 * config/pa/rtems.h: Likewise.
9923 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
9924 all uses of the PARAMS macro.
9925 * config/pa/pa.h: Likewise.
9926 * config/pa/som.h: Likewise.
9927
9928 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
9929 Remove all uses of PARAMS macro.
9930 Convert all function definitions to ISO C90 syntax.
9931 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
9932 Remove all uses of PARAMS macro.
9933 * config/iq2000.h: Remove all uses of PARAMS macro.
9934 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
9935
9936 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
9937
9938 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
9939 * config/s390/s390.c (gen_consttable): Remove.
9940 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
9941 (s390_output_pool_entry): New function.
9942 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
9943 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
9944 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
9945 (UNSPECV_POOL_ENTRY): ... this new constant.
9946 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
9947 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
9948 ("*pool_entry"): ... and replace by this new insn.
9949 ("literal_pool_31"): Do not emit anchor label if pool empty.
9950
9951 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
9952 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
9953 (s390_fixup_clobbered_return_reg): Remove.
9954 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
9955 (s390_return_addr_rtx): Always retrieve return address from save area
9956 slot. Use save_return_addr_p to force slot to be filled.
9957 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
9958
9959 2003-08-22 Chris Demetriou <cgd@broadcom.com>
9960
9961 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
9962 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
9963 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
9964 around SB-1 errata if TARGET_FIX_SB1 is set.
9965 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
9966 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
9967
9968 2003-08-22 Roger Sayle <roger@eyesopen.com>
9969
9970 * hashtable.c (ht_expand): Avoid calculating rehash for the common
9971 case that the first probe hits an empty hash table slot.
9972
9973 2003-08-22 Mark Mitchell <mark@codesourcery.com>
9974
9975 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
9976
9977 2003-08-22 Mark Mitchell <mark@codesourcery.com>
9978
9979 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
9980 (ptr_extend_plus_imm): ... this.
9981 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
9982 optimization in C++.
9983 (ia64_output_mi_thunk): Support ILP32 mode.
9984
9985 2003-08-22 Bernardo Innocenti <bernie@develer.com>
9986
9987 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
9988 function.
9989 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
9990
9991 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9992
9993 * config/i386/i386.c (const_int_1_operand): Simplify an
9994 integer comparison.
9995
9996 2003-08-22 Alan Modra <amodra@bigpond.net.au>
9997
9998 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
9999 * config/rs6000/ppc64-fp.c: Likewise.
10000
10001 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10002
10003 * cfgcleanup.c: Fix comment typos.
10004 * emit-rtl.c: Likewise.
10005 * optabs.c: Likewise.
10006 * ra-build.c: Likewise.
10007 * rtlanal.c: Likewise.
10008 * tree.h: Likewise.
10009
10010 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10011
10012 * c-decl.c: Fix comment formatting.
10013 * cfgrtl.c: Likewise.
10014 * combine.c: Likewise.
10015 * convert.c: Likewise.
10016 * dominance.c: Likewise.
10017 * dwarf2out.c: Likewise.
10018 * dwarfout.c: Likewise.
10019 * expmed.c: Likewise.
10020 * fold-const.c: Likewise.
10021 * gcov.c: Likewise.
10022 * genattrtab.c: Likewise.
10023 * ggc-common.c: Likewise.
10024 * mips-tfile.c: Likewise.
10025 * regmove.c: Likewise.
10026
10027 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10028
10029 * builtin-attrs.def: Fix comment formatting.
10030 * c-pretty-print.c: Likewise.
10031 * diagnostic.h: Likewise.
10032 * langhooks.h: Likewise.
10033 * recog.c: Likewise.
10034 * simplify-rtx.c: Likewise.
10035 * tree.def: Likewise.
10036
10037 2003-08-22 Bernardo Innocenti <bernie@develer.com>
10038
10039 * config/m68k/m68k-protos.h: Convert to ISO C90.
10040 * config/m68k/m68k.c: Likewise.
10041
10042 2003-08-21 Bernardo Innocenti <bernie@develer.com>
10043 Paul Dale <pauli@snapgear.com>
10044 Peter Barada <peter@baradas.org>
10045
10046 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
10047 ColdFire cores.
10048
10049 2003-08-21 Zack Weinberg <zack@codesourcery.com>
10050
10051 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
10052 * config.gcc (*-*-openbsd): Don't set tm_file.
10053 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
10054 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
10055 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
10056 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
10057 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
10058 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
10059 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
10060 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
10061 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
10062 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
10063 xscale-*-coff): Use explicit and complete lists of target headers
10064 to include. Move definitions to tm_defines where appropriate.
10065 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
10066 not-yet-contributed configuration.
10067
10068 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
10069 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
10070 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
10071 * config/i386/nto.h, config/iq2000/iq2000.h,
10072 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
10073 * config/m68k/linux.h, config/m68k/m68k-aout.h
10074 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
10075 * config/m68k/netbsd.h, config/m68k/openbsd.h
10076 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
10077 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
10078 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
10079 Remove includes of other target config headers, and
10080 definitions of macros moved to tm_defines lists. Add #undefs
10081 where now necessary to prevent redefinition warnings.
10082
10083 * config/h8300/coff.h: New file split out of...
10084 * config/h8300/elf.h: ...here.
10085 * config/m68k/hp320base.h: New file split out of...
10086 * config/m68k/hp320.h: ...here.
10087 * config/rs6000/lynxbase.h: New file split out of...
10088 * config/rs6000/lynx.h: ...here.
10089
10090 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
10091 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
10092
10093 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
10094 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
10095 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
10096 Remove unnecessary #ifndef.
10097 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
10098 [under IN_LIBGCC2] with config/.
10099
10100 2003-08-21 Per Bothner <pbothner@apple.com>
10101
10102 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
10103 to cpp_push_buffer.
10104 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
10105 by return_at_eof check. Always call _cpp_pop_buffer at end.
10106
10107 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
10108
10109 PR target/11805
10110 * config/h8300/h8300.md (two anonymous patterns): Remove.
10111
10112 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
10113
10114 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
10115 * config/mips/mips.c (function_arg_pass_by_reference): Never return
10116 true for n32 & n64.
10117
10118 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
10119
10120 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
10121 and similarly in (A | C) == D where C & ~D != 0.
10122
10123 2003-08-20 Geoffrey Keating <geoffk@apple.com>
10124
10125 PR 8180
10126 * configure.in: When testing with_libs and with_headers, treat
10127 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
10128 * configure: Regenerate.
10129
10130 2003-08-20 Peter Barada <peter@baradas.org>
10131
10132 * longlong.h (umul_ppmm): Add ColdFire support.
10133
10134 2003-08-20 Peter Barada <peter@baradas.org>
10135 Bernardo Innocenti <bernie@develer.com>
10136
10137 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
10138 * config/m68k/m68k.h: Likewise.
10139 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
10140 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
10141 * config/m68k/linux.h: Likewise.
10142 * config/m68k/m68k.c: Likewise.
10143 * config/m68k/m68k.md: Likewise.
10144 * config/m68k/m68kelf.h: Likewise.
10145 * config/m68k/netbsd-elf.h: Likewise.
10146 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
10147
10148 2003-08-20 Bernardo Innocenti <bernie@develer.com>
10149
10150 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
10151 * config/m68k/m68k.md: Likewise.
10152
10153 2003-08-20 Mark Mitchell <mark@codesourcery.com>
10154
10155 PR java/11996
10156 Revert this change:
10157 2003-08-19 Mark Mitchell <mark@codesourcery.com>
10158 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
10159 types with precisions other than those given by native machine
10160 modes.
10161
10162 2003-08-20 Gunther Nikl <gni@gecko.de>
10163
10164 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
10165 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
10166 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
10167 * config/m68k/m68k.md (anonymous define_insn): Likewise
10168 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
10169 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
10170 code selected by NO_ASM_FMOVECR
10171
10172 2003-08-20 Gunther Nikl <gni@gecko.de>
10173
10174 * config/m68k/m68k.c (output_move_const_into_data_reg,
10175 output_move_himode): unify MOTOROLA/MIT handling of moveq
10176 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
10177 Likewise
10178
10179 2003-08-20 Gunther Nikl <gni@gecko.de>
10180
10181 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
10182 label name
10183 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
10184 HOST_WIDE_INT_PRINT_DEC with %wd
10185
10186 2003-08-20 Loren James Rittle <ljrittle@acm.org>
10187
10188 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
10189 redefine warning.
10190
10191 2003-08-20 Roger Sayle <roger@eyesopen.com>
10192
10193 PR middle-end/11984
10194 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
10195 operands before calling tree_int_cst_lt when performing associative
10196 transformations.
10197
10198 2003-08-20 Jason Merrill <jason@redhat.com>
10199
10200 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
10201 (EXPR_CHECK): Don't check for 'r' or 's' if we're
10202 checking IS_EXPR_CODE_CLASS.
10203 * calls.c (calls_function_1): Likewise.
10204 * fold-const.c (fold): Likewise.
10205 * tree.c (iterative_hash_expr): Likewise.
10206 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
10207
10208 2003-08-20 Gunther Nikl <gni@gecko.de>
10209
10210 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
10211 depending on MOTOROLA_BSR
10212 * config/m68k/m68k.md (anonymous define_insn): Likewise
10213
10214 2003-08-20 Jason Merrill <jason@redhat.com>
10215
10216 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
10217 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
10218 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
10219 * dojump.c (do_jump): Likewise.
10220 * fold-const.c (operand_equal_p, fold): Likewise.
10221 (tree_expr_nonnegative_p): Likewise.
10222
10223 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
10224 TYPE_USER_ALIGN for FIELD_DECLs.
10225
10226 * attribs.c (decl_attributes): Rebuild the function pointer type after
10227 changing the target type.
10228 * tree.c (get_qualified_type): Also check that the attributes match.
10229
10230 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
10231
10232 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
10233 * objc/config-lang.in (stagestuff): ... to here.
10234
10235 2003-08-19 Mark Mitchell <mark@codesourcery.com>
10236
10237 PR c++/11946
10238 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
10239 NOP_EXPR) when necessary.
10240 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
10241 types with precisions other than those given by native machine
10242 modes.
10243
10244 2003-08-19 Geoffrey Keating <geoffk@apple.com>
10245
10246 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
10247 because some macro is defined.
10248
10249 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
10250 options.
10251 * config/i386/darwin.h (ASM_SPEC): New.
10252 (SUBTARGET_EXTRA_SPECS): New.
10253 * config/rs6000/darwin.h (ASM_SPEC): New.
10254 (SUBTARGET_EXTRA_SPECS): New.
10255 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
10256 a cross-compiler between two different processors on Darwin.
10257 * configure: Regenerate.
10258
10259 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10260
10261 * builtins.c: Fix comment typos.
10262 * c-common.c: Likewise.
10263 * c-decl.c: Likewise.
10264 * c-pretty-print.c: Likewise.
10265 * cfgbuild.c: Likewise.
10266 * cfglayout.c: Likewise.
10267 * cfgloopanal.c: Likewise.
10268 * cgraphunit.c: Likewise.
10269 * cppfiles.c: Likewise.
10270 * dwarfout.c: Likewise.
10271 * expr.c: Likewise.
10272 * fold-const.c: Likewise.
10273 * gcse.c: Likewise.
10274 * ggc-page.c: Likewise.
10275 * haifa-sched.c: Likewise.
10276 * pretty-print.c: Likewise.
10277 * tree.c: Likewise.
10278 * tree.h: Likewise.
10279 * value-prof.c: Likewise.
10280
10281 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10282
10283 * c-decl.c: Follow spelling conventions.
10284 * cppfiles.c: Likewise.
10285
10286 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10287
10288 * c-common.c: Fix comment formatting.
10289 * c-common.h: Likewise.
10290 * c-decl.c: Likewise.
10291 * cppinit.c: Likewise.
10292 * cpplib.h: Likewise.
10293 * emit-rtl.c: Likewise.
10294 * input.h: Likewise.
10295 * line-map.h: Likewise.
10296 * opts.c: Likewise.
10297 * opts.h: Likewise.
10298 * simplify-rtx.c: Likewise.
10299
10300 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
10301
10302 * unwind-c.c: Add libgcc-style exception.
10303 * unwind-dw2.c: Likewise.
10304 * unwind-pe.h: Likewise.
10305 * unwind-sjlj.c: Likewise.
10306 * unwind.inc: Likewise.
10307
10308 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
10309
10310 PR c/5582 PR c++/10538
10311 * langhooks-def.h (lhd_decl_uninit): Declare.
10312 (LANG_HOOKS_DECL_UNINIT): New macro.
10313 (LANG_HOOKS_INITIALIZER): Adjust.
10314 * langhooks.h (struct lang_hooks): Add new field
10315 decl_uninit.
10316 * langhooks.c (lhd_decl_uninit): Define.
10317 * c-common.c (c_decl_uninit_1): New function.
10318 (c_decl_uninit): New function.
10319 (warn_init_self): Define.
10320 * c-common.h (c_decl_uninit): Declare.
10321 (warn_init_self): Declare.
10322 * c.opt: Introduce -Winit-self.
10323 * c-opts.c (c_common_handle_options): Set warn_init_self.
10324 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
10325 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
10326 * function.c (uninitialized_vars_warning): Call the language hook.
10327 * doc/invoke.texi: Document -Winit-self.
10328
10329 2003-08-19 Chris Demetriou <cgd@broadcom.com>
10330
10331 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
10332 to use better predicates and constraints. Define new
10333 instruction to handle "trap_if" with DI-mode arguments.
10334 (conditional_trap): FAIL if trap code is not 0.
10335
10336 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
10337
10338 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
10339 strstr with $pb to a strcompare with "<pic base>"
10340 (ix86_output_addr_diff_elt): Output the real pic base.
10341
10342 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
10343
10344 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
10345 (LANG_HOOKS_INITIALIZER): Correct.
10346 * c-lang.c: Likewise.
10347
10348 2003-08-19 Jan Hubicka <jh@suse.cz>
10349
10350 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
10351 (cgraph_varpool_mark_needed_node): Likewise.
10352 * cgraph.h (notice_global_symbol): Declare
10353 * varasm.c (notice_global_symbol): Break out from ...
10354 (assemble_start_function): ... here; update for variables.
10355 (assemble_variable): Use notice_global_symbol.
10356
10357 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
10358
10359 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
10360 expect SFmode and DFmode arguments to be passed in FPRs,
10361 regardless of the underlying type.
10362
10363 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
10364
10365 PR target/11924
10366 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
10367 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
10368
10369 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
10370
10371 PR c/11207
10372 * c-typeck.c (set_init_index): Check for negative index.
10373
10374 2003-08-18 Bob Wilson <bob.wilson@acm.org>
10375
10376 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
10377 call0 ABI.
10378 * config/xtensa/crtn.asm (_init, _fini): Likewise.
10379 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
10380 __umodsi3, __modsi3): Likewise.
10381 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
10382 $(INCLUDES).
10383
10384 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
10385
10386 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
10387
10388 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
10389
10390 * config/mips/mips.md: Quote C code in braces. Remove use of
10391 fake const0_rtx operands. Remove double backslashes. Use \;.
10392 Remove workarounds for bogus warnings.
10393
10394 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
10395
10396 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
10397 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
10398 rather than TARGET_MIPS4300.
10399 (mulsf3_internal, mulsf3_r4300): Likewise.
10400
10401 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
10402
10403 * config/mips/mips.md: Renumber unspecs. Clean up comments.
10404
10405 2003-08-17 Roger Sayle <roger@eyesopen.com>
10406
10407 * simplify-rtx.c (associative_constant_p): New function to test
10408 whether an RTX expression is an immediate constant.
10409 (simplify_associative_operation): New function to perform some
10410 reassociation optimizations of associative binary expressions.
10411 (simplify_binary_operation): Use simplify_associative_operation
10412 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
10413 Floating point expressions are only reassociated when unsafe
10414 math optimizations are permitted.
10415
10416 2003-08-17 Andreas Jaeger <aj@suse.de>
10417
10418 * config/alpha/alpha.md: Remove usage of PARAMS.
10419
10420 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
10421 * config/i386/i386-interix.h: Likewise.
10422 * config/i386/winnt.c: Likewise.
10423 * config/i386/cygming.h: Likewise.
10424 * config/i386/cygwin2.c: Likewise.
10425 * config/darwin.c: Likewise.
10426 * config/darwin-c.c: Likewise.
10427 * config/darwin-protos.h: Likewise.
10428 * config/darwin.h: Likewise.
10429 * config/s390/s390-protos.h: Likewise.
10430 * config/s390/s390.c: Likewise.
10431 * config/ia64/ia64.c: Likewse
10432 * config/ia64/ia64-protos.h: Likewise.
10433 * config/ia64/ia64-c.c: Likewise.
10434
10435 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10436
10437 * config/sparc/sparc.c: Convert to ISO C.
10438
10439 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
10440 * config/sparc/sparc.c: Likewise.
10441
10442 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
10443
10444 PR c++/11512
10445 * stmt.c (expand_expr_stmt_value): Don't warn about any void
10446 typed expression.
10447
10448 2003-08-16 Jan Hubicka <jh@suse.cz>
10449
10450 * i386.c (ix86_fntype_regparm): Rename from ...
10451 (ix86_function_regparm): ... this one; add fastcall and local
10452 functions.
10453 (ix86_function_ok_for_sibcall): Update.
10454 (ix86_return_pops_args): Likewise.
10455 (init_cumulative_args): Likewise.
10456 (x86_can_output_mi_thunk): Likewise.
10457 (function_arg): Fix formating.
10458 (x86_this_parameter): Fix fastcall.
10459 (x86_output_mi_thunk): Likewise.
10460
10461 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
10462 body as reachable; mark nested functions as needed too.
10463 (dump_cgraph): Do not output global.calls.
10464 * cgraph.h (cgraph_global_info): Kill.
10465 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
10466 (record_call_1): Speedup.
10467 (cgraph_analyze_function): Break out from ...; compute inlining
10468 parameters.
10469 (cgraph_finalize_compilation_unit): ... here.
10470 (cgraph_mark_inline): Kill computation of calls.
10471 (cgraph_decide_inlining): Do not compute most of initial values.
10472
10473 2003-08-14 Roger Sayle <roger@eyesopen.com>
10474
10475 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
10476 to negate if either operand is easy to negate, if we don't care
10477 about sign-dependent rounding.
10478 (negate_expr): Make the logic to negate a REAL_CST explicit.
10479 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
10480 that's easy to negate, if we don't honor sign-dependent rounding.
10481 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
10482 negate, and the symmetric A * -B as -A * B if A is easy to negate.
10483 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
10484 -C/D if B and C are cheap to negate. Add an explicit rule to
10485 optimize X/-1.0 as -X when we don't care about signaling NaNs.
10486
10487 2003-08-14 Zack Weinberg <zack@codesourcery.com>
10488
10489 * Makefile.in (tm_file): Rename tm_include_list.
10490 (tm_p_file): Rename tm_p_include_list.
10491 (build_xm_file): Rename build_xm_include_list.
10492 (host_xm_file): Rename host_xm_include_list.
10493 (xm_file): Rename xm_include_list.
10494 (xm_file_list): Add to be substituted.
10495 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
10496 Update to match.
10497 (bt-load.o): Add missing dependency on $(TM_H).
10498 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
10499 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
10500 build_xm_file, generate both *_file_list and *_include_list
10501 values from it. (xm_file_list was formerly not being generated.)
10502 In *_include_list, prefix the names of all headers found in
10503 $(srcdir)/config with config/. In each loop, consider only
10504 the special case files that can actually appear in that list.
10505 AC_SUBST all *_file_list and all *_include_list variables; do
10506 not AC_SUBST the plain *_file variables.
10507 * configure: Regenerate.
10508
10509 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10510
10511 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
10512
10513 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10514
10515 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
10516 direct calls.
10517 (attr_length_call): Include it here. Improve length estimate for
10518 local calls.
10519 (output_call): Use targetm.binds_local_p.
10520
10521 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10522
10523 * builtins.c (CASE_MATHFN): New helper macro.
10524 (mathfn_built_in): Simplify and sort.
10525
10526 * protoize.c (substr): Delete, callers changed to `strstr'.
10527
10528 2003-08-13 Zack Weinberg <zack@codesourcery.com>
10529
10530 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
10531 * config/iq2000/xm-iq2000.h: Delete file.
10532
10533 2003-08-13 Geoffrey Keating <geoffk@apple.com>
10534
10535 * gengtype.c (walk_type): Process a subobject before processing
10536 the pointer that points to the subobject.
10537
10538 2003-08-13 Per Bothner <pbothner@apple.com>
10539
10540 * regclass.c (init_reg_modes): Make non-static.
10541 Rename to init_reg_modes_once per new naming convention.
10542 (init_regs): Don't call init_reg_modes here.
10543 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
10544 * rtl.h (init_reg_modes_once): New declaration.
10545 * toplev.c (backend_init): Call init_regs after init_emit_once.
10546
10547 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
10548
10549 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
10550 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
10551
10552 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
10553
10554 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
10555 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
10556
10557 2003-08-13 Dale Johannesen <dalej@apple.com>
10558
10559 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
10560 handling of decrement-and-branch farther than 32 bits.
10561
10562 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
10563
10564 * configure.in (make_compare_target): Move test to ...
10565 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
10566 * configure: Regenerate.
10567
10568 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
10569
10570 * config/mips/iris6.h: Convert to C90 prototypes.
10571 * config/mips/irix6-libc-compat.c: Likewise.
10572 * config/mips/mips-protos.h: Likewise.
10573 * config/mips/mips.c: Likewise.
10574
10575 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
10576
10577 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
10578 for selected machines. Comment heavily.
10579 fixinc/fixincl.x: Rebuild.
10580 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
10581
10582 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
10583
10584 * config/mips/mips.h: Tweak various comments.
10585 * config/mips/mips.c: Likewise.
10586
10587 2003-08-11 James E Wilson <wilson@tuliptree.org>
10588
10589 PR optimization/11319
10590 PR target/10021
10591 * alias.c (find_base_value, case REG): Return 0 not src if no base
10592 found.
10593
10594 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10595
10596 * gcse.c (gmalloc): Fix last change.
10597
10598 2003-08-11 Roger Sayle <roger@eyesopen.com>
10599
10600 * simplify-rtx.c (simplify_binary_operation): Replace calls to
10601 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
10602 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
10603 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
10604
10605 2003-08-11 Roger Sayle <roger@eyesopen.com>
10606
10607 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
10608 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
10609 typecode for an ABS_EXPR.
10610
10611 * doc/c-tree.texi: Document ABS_EXPR.
10612
10613 2003-08-11 Roger Sayle <roger@eyesopen.com>
10614
10615 * fold-const.c (fold): Optimize any associative floating point
10616 operator with -funsafe-math-optimizations, not just MULT_EXPR.
10617
10618 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
10619
10620 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
10621 information in SHmedia case too.
10622 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
10623 Likewise.
10624 (__set_fpscr): Use an access via GOT for PIC case.
10625
10626 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
10627
10628 * configure.in (intermodule): Make switch test more portable.
10629 * configure: Regenerate.
10630
10631 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
10632
10633 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
10634 (restrap): Likewise.
10635
10636 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10637
10638 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
10639 (grealloc): Size argument is a size_t.
10640 (gcalloc): New function. Use throughout in lieu of
10641 gmalloc/memset.
10642
10643 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
10644 xmalloc/memset.
10645 * config/ia64/ia64.c (ia64_reorg): Likewise.
10646 * conflict.c (conflict_graph_new): Likewise.
10647 * fixinc/fixincl.c (run_compiles): Likewise.
10648 * genattrtab.c (optimize_attrs): Likewise.
10649 * genrecog.c (new_decision): Likewise.
10650 * haifa-sched.c (schedule_block): Likewise.
10651 * hashtable.c (ht_create): Likewise.
10652
10653 2003-08-11 Bob Wilson <bob.wilson@acm.org>
10654
10655 * config/xtensa/lib2funcs.S: Fix whitespace.
10656 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
10657 syntax where appropriate. Remove unnecessary backslash escapes.
10658 Reformat comments and fix some code formatting.
10659 (extendqisi2): Rearrange conditional.
10660 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
10661 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
10662 of fatal_insn.
10663
10664 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
10665
10666 * config/mips/mips.c: Various formatting fixes.
10667 (override_options): Resync -mtune handling with gas.
10668 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
10669 * config/mips/mips.h: More formatting fixes.
10670 (mips_abi): Move declaration.
10671 * config/mips/mips.md (exception_receiver): Add mode to
10672 unspec_volatile.
10673
10674 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
10675
10676 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
10677 evsplatfi here.
10678 (bdesc_1arg): Remove evsplati and evsplatfi.
10679
10680 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
10681
10682 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
10683 into account.
10684
10685 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10686
10687 * builtins.c (expand_builtin_strcat): Optimize constant strings.
10688
10689 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
10690
10691 * pretty-print.c (pp_base_indent): Rename from pp_indent.
10692 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
10693 (struct c_pretty_print_info): Add more fields.
10694 (pp_c_left_paren): Move to c-pretty-print.c.
10695 (pp_c_right_paren): Likewise.
10696 (pp_c_left_brace): Likewise.
10697 (pp_c_right_brace): Likewise.
10698 (pp_c_left_bracket): Likewise.
10699 (pp_c_right_bracket): Likewise.
10700 (pp_c_declarator): Declare.
10701 (pp_c_direct_declarator): Likewise.
10702 (pp_c_specifier_qualifier_list): Likewise.
10703 (pp_c_type_id): Likewise.
10704 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
10705 (pp_c_type_qualifier_list): New.
10706 (pp_c_pointer): Likewise.
10707 (pp_c_parameter_type_list): Likewise.
10708 (pp_c_function_definition): Likewise.
10709 (pp_c_id_expression): Likewise.
10710 (pp_c_simple_type_specifier): Tidy.
10711 (pp_c_unary_expression): Likewise.
10712 (pp_c_expression): Likewise.
10713 (pp_c_pretty_printer_init): Likewise.
10714 (pp_c_specifier_qualifier_list): Rework..
10715 (pp_c_abstract_declarator): Likewise.
10716 (pp_c_postfix_expression): Likewise.
10717 (pp_c_primary_expression): Likewise.
10718 (pp_c_cast_expression): Likewise.
10719 (pp_c_direct_abstract_declarator): Likewise.
10720 (pp_c_storage_class_specifier): Likewise.
10721 (pp_c_function_specifier): Likewise.
10722 (pp_c_declaration_specifiers): Likewise.
10723 (pp_c_direct_declarator): Likewise.
10724 (pp_c_declarator): Likewise.
10725 (pp_c_declaration): Likewise.
10726 (pp_c_statement): Likewise.
10727 (pp_c_integer_constant): Rename from pp_c_integer_literal.
10728 (pp_c_character_constant): Rename from pp_c_character_literal.
10729 (pp_c_bool_constant): Rename from pp_c_bool_literal.
10730 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
10731 (pp_c_floating_constant): Rename from pp_c_real_literal.
10732 (pp_c_constant): Rename from pp_c_literal.
10733 * c-lang.c: Include diagnostic.h and c-pretty-print.h
10734 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
10735 (c_initialize_diagnostics): New.
10736 * Makefile.in (c-lang.o): Update dependency.
10737
10738 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
10739
10740 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
10741
10742 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
10743
10744 * config/mips/mips.c (mips_no_mips16_string): Remove.
10745 (override_options): Don't handle -mips16 as part of -mipsN.
10746 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
10747 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
10748 (TARGET_OPTIONS): Remove -mno-mips16.
10749
10750 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
10751
10752 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
10753 (coprocessor2_operand): Likewise.
10754 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
10755 (lookup_name): Remove declaration.
10756 (abort_with_insn): Remove. Replace all uses with fatal_insn.
10757 (mips16, mips_abicalls): Remove.
10758 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
10759 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
10760 (coprocessor_operand, coprocessor2_operand): Remove.
10761 (override_options): Don't set mips16 or mips_abicalls.
10762 (print_operand): Don't expect SIGN_EXTEND operands.
10763 (mips_secondary_reload_class): Likewise.
10764 (mips_output_conditional_branch): Remove disabled long-branch code.
10765 * config/mips/mips.h (call_used_regs): Remove declaration.
10766 (may_call_alloca): Likewise.
10767 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
10768 (mips_abicalls, mips16): Remove declarations.
10769 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
10770 (CC1_SPEC): Remove outdated comment.
10771 (MIPS_VERSION, MACHINE_TYPE): Remove.
10772 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10773 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
10774 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
10775 (PUSH_ROUNDING): Likewise.
10776 (ASSEMBLER_SCRATCH_REGNUM): Remove.
10777 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
10778 and mips16 with TARGET_MIPS16.
10779
10780 2003-08-09 Per Bothner <pbothner@apple.com>
10781
10782 * cppinit.c (cpp_read_main_file): Split out source-independent
10783 initialization to separate function ...
10784 (cpp_post_options): New function.
10785 * cppfiles.c (cpp_stack_file): Rename public name to ...
10786 (_cpp_stack_file): New internal function name.
10787 * cpplib.h: Update accordingly.
10788 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
10789 (cpp_read_main_file): Don't initialize line here.
10790 * c-opts.c (c_common_post_options): Call cpp_post_options.
10791 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
10792 * fix-header.c (read_scan_file): Call cpp_post_options.
10793
10794 2003-08-09 Per Bothner <per@bothner.com>
10795
10796 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
10797
10798 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10799
10800 * pa.c (pa_asm_output_mi_thunk): Fix typo.
10801
10802 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
10803
10804 PR preprocessor/11839
10805 * cppfiles.c (open_file): Handle ENOTDIR.
10806
10807 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
10808
10809 PR target/11699
10810 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
10811
10812 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10813
10814 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
10815 source/destination is not a register operand.
10816
10817 2003-08-08 Richard Henderson <rth@redhat.com>
10818
10819 PR target/11535
10820 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
10821 RETURN_ADDRESS_POINTER_REGNUM.
10822 (ia64_expand_prologue): Don't frob it.
10823 (ia64_output_function_epilogue): Likewise.
10824 (ia64_return_addr_rtx): New.
10825 (ia64_split_return_addr_rtx): New.
10826 * config/ia64/ia64-protos.h: Update.
10827 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
10828 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
10829 (GENERAL_REGNO_P): Don't check it.
10830 (AR_*_REGNUM): Renumber.
10831 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
10832 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
10833 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
10834 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
10835 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
10836 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
10837 (movdi_ret_addr): New.
10838
10839 2003-08-08 Geoffrey Keating <geoffk@apple.com>
10840
10841 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
10842
10843 2003-08-08 Roger Sayle <roger@eyesopen.com>
10844
10845 * tree.h (get_identifier) Define a macro form of get_identifier
10846 that calls get_identifier_with_length when the string is constant.
10847 (get_identifier_with_length): Change type of second argument to
10848 size_t in prototype.
10849 * stringpool.c (get_identifier): Undefine the macro before giving
10850 the function definition.
10851 (get_identifier_with_length): Change type of second argument to
10852 size_t in function definition.
10853 * hashtable.c (calc_hash): Change type of second argument to size_t.
10854 (ht_lookup): Change type of third argument to size_t. Reorganize
10855 to speed-up the cases where the hash table slot is empty, or the
10856 first probe matches (i.e. there isn't a collision).
10857 * hashtable.h (ht_lookup): Adjust function prototype.
10858
10859 2003-08-08 Bernardo Innocenti <bernie@develer.com>
10860
10861 PR target/9697
10862 PR target/11777
10863 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
10864
10865 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
10866
10867 * common.opt: Add debug switches.
10868 * flags.h (use_gnu_debug_info_extensions): Boolify.
10869 * opts.c (write_symbols, debug_info_level,
10870 use_gnu_debug_info_extensions): Move from toplev.c.
10871 (set_debug_level): New.
10872 (common_handle_options): Handle debug switches.
10873 (print_help): Display target options directly.
10874 * toplev.c (debug_hooks): Don't initialize.
10875 (write_symbols, debug_info_level,
10876 use_gnu_debug_info_extensions): Move to opts.c.
10877 (debug_args, display_help, decode_g_option): Remove.
10878 (process_options): Set no debug if level zero here,
10879 and no-debug-hooks. Error here if impossible debug format selected.
10880 * toplev.h (display_help, decode_g_option): Remove.
10881
10882 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
10883
10884 * tree.c (get_file_function_name_long): Fix size of alloca() area.
10885
10886 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
10887
10888 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
10889 and gcc_cv_prog_cmp_skip.
10890 * configure: Regenerate.
10891
10892 2003-08-08 Stan Cox <scox@redhat.com>
10893
10894 * config/iq2000: New port.
10895 * config.gcc (iq2000-*-elf): Added.
10896 * doc/install.texi (Specific): Add iq2000 description.
10897
10898 2003-08-08 Andreas Schwab <schwab@suse.de>
10899
10900 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
10901 and insert missing empty argument.
10902 * configure: Regenerate.
10903
10904 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10905
10906 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
10907 (attr_length_millicode_call): Likewise.
10908 (attr_length_call): Likewise. Revise some maximum insn lengths.
10909 (attr_length_indirect_call): Likewise.
10910 (output_call): Fix thinko that added extra nop.
10911 * pa.h (IN_NAMED_SECTION_P): Define.
10912
10913 PR c++/11712
10914 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
10915 __STDC_EXT__ when using C++ dialect.
10916
10917 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
10918
10919 * sh.c (calc_live_regs): If the return address pointer is live,
10920 force pr live.
10921 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
10922 for saves / restores.
10923 (sh_expand_epilogue): If sh_media_register_for_return returns a
10924 register number, flag the instructions that restores PR_MEDIA_REG
10925 as possibly dead.
10926 Remove dead update of offset.
10927 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
10928 we can use the result of get_hard_reg_initial_val.
10929 * sh.md (UNSPEC_RA): New constant.
10930 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
10931 (load_ra). Handle UNSPEC_RA.
10932 (sibcall_media): Use PR_MEDIA_REG.
10933
10934 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
10935 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
10936 needs saving on SHmedia.
10937
10938 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
10939
10940 * config/s390/s390.md: Replace all occurrences of \\t with \t.
10941
10942 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
10943
10944 * local-alloc.c (combine_regs): Fix comment typo.
10945
10946 2003-08-06 Zack Weinberg <zack@codesourcery.com>
10947
10948 * c-decl.c (builtin_decls): Replace with first_builtin_decl
10949 and last_builtin_decl.
10950 (c_init_decl_processing): Initialize both.
10951 (c_reset_state): Iterate from first_builtin_decl to
10952 last_builtin_decl inclusive to reintroduce builtins.
10953
10954 2003-08-06 David Mosberger <davidm@hpl.hp.com>
10955
10956 * doc/extend.texi (Function Attributes): Document the IA-64 version
10957 of the "model" attribute.
10958
10959 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
10960 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
10961 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
10962
10963 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
10964 (ia64_encode_section_info): Likewise.
10965 (ia64_attribute_table): Add "model" attribute.
10966 (TARGET_ENCODE_SECTION_INFO): Define.
10967 (small_addr_symbolic_operand): New function.
10968 (got_symbolic_operand): Return 0 for a symbolref to an object
10969 in the small address area.
10970 (enum ia64_addr_area): New type.
10971 (small_ident1): New variable.
10972 (small_ident2): Likewise.
10973 (init_idents): New function.
10974 (ia64_get_addr_area): Likewise.
10975 (ia64_encode_addr_area): Likewise.
10976 (ia64_encode_section_info): Likewise.
10977 (ia64_expand_load_address): For symbolic references to objects in
10978 the small-address-area, load the address via gen_rtx_SET() (which,
10979 eventually, will expand into "addl").
10980
10981 2003-08-06 Per Bothner <pbothner@apple.com>
10982
10983 * line-map.h (fileline): New typedef.
10984 (struct line_map, linemap_add, linemap_lookup): Use it.
10985 * input.h (struct location_s): Comment notes that long-term we want
10986 to replace it by fileline.
10987
10988 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
10989
10990 Fix SHcompact exception handling:
10991 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
10992 by the prologue, return a MEM with return_address_pointer_rtx
10993 as address.
10994 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
10995 (RETURN_ADDR_OFFSET): Don't define.
10996 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
10997 registers that are visible in compact mode. Show that SHmedia
10998 registers still exist in compact mode, even if there are not
10999 readily accessible.
11000 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
11001 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
11002 and DW_EH_PE_pcrel for pic data.
11003 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
11004 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
11005 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
11006 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
11007 * sh.md (movsi_media-1): New splitter.
11008
11009 2003-08-06 Graeme Peterson <gp@qnx.com>
11010
11011 * config/i386/nto.h: New.
11012 * config/i386/t-nto: New.
11013 * config.gcc (i[34567]86-*-nto-qnx*): New.
11014
11015 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
11016
11017 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
11018
11019 2003-08-06 Alan Modra <amodra@bigpond.net.au>
11020
11021 * calls.c (load_register_parameters): Arrange for call_fusage to
11022 report the whole register as used when shifting to the msb.
11023
11024 2003-08-05 Roger Sayle <roger@eyesopen.com>
11025
11026 * builtins.c (expand_builtin): When not optimizing, call the library
11027 function for all builtins that have library functions (except alloca).
11028
11029 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
11030
11031 * c.opt: Introduce -fworking-directory.
11032 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
11033 * c-common.h (flag_working_directory): Declare.
11034 * c-common.c (flag_working_directory): Define.
11035 * c-opts.c (c_common_handle_options): Set it.
11036 (sanitize_cpp_opts): Set...
11037 * cpplib.h (struct cpp_options): ... working_directory option.
11038 (struct cpp_callbacks): Add dir_change.
11039 * cppinit.c (read_original_filename): Call...
11040 (read_original_directory): New. Look for # 1 "directory//"
11041 and process it.
11042 (cpp_read_main_file): Call dir_change callback if working_directory
11043 option is set.
11044 * gcc.c (cpp_unique_options): Pass -g*.
11045 * c-lex.c (cb_dir_change): New.
11046 (init_c_lex): Set dir_change callback.
11047 * toplev.c (src_pwd): New static variable.
11048 (set_src_pwd, get_src_pwd): New functions.
11049 * toplev.h (get_src_pwd, set_src_pwd): Declare.
11050 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
11051 * dwarf2out.c (gen_compile_unit_die): Likewise.
11052 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
11053
11054 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
11055
11056 * pretty-print.h (pp_set_line_maximum_length): Make macro.
11057 (pp_set_prefix): Likewise.
11058 (pp_destroy_prefix): Likewise.
11059 (pp_remaining_character_count_for_line): Likewise.
11060 (pp_clear_output_area): Likewise.
11061 (pp_formatted_text): Likewise.
11062 (pp_last_position_in_text): Likewise.
11063 (pp_emit_prefix): Likewise.
11064 (pp_append_text): Likewise.
11065 (pp_flush): Likewise.
11066 (pp_format_text): Likewise.
11067 (pp_format_verbatim): Likewise.
11068 (pp_tree_identifier): Tidy.
11069 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
11070 (pp_base_format_verbatim): Rename from pp_format_verbatim.
11071 (pp_base_flush): Rename from pp_flush.
11072 (pp_base_set_line_maximum_length): Rename from
11073 pp_set_line_maximum_length.
11074 (pp_base_clear_output_area): Rename from pp_clear_output_area.
11075 (pp_base_set_prefix): Rename from pp_set_prefix.
11076 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
11077 (pp_base_emit_prefix): Rename from pp_emit_prefix.
11078 (pp_base_append_text): Rename from pp_append_text.
11079 (pp_base_formatted_text): Rename from pp_formatted_text.
11080 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
11081 (pp_base_remaining_character_count_for_line): Rename from
11082 pp_remaining_character_count_for_line.
11083 * diagnostic.h (diagnostic_format_decoder): Tidy.
11084 (diagnostic_flush_buffer): Likewise.
11085 * c-pretty-print.h: (pp_c_string_literal): Declare.
11086 (pp_c_real_literal): Likewise.
11087 (pp_c_integer_literal): Likewise.
11088 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
11089 pp_identifier.
11090 (pp_c_character_literal): Tidy.
11091 (pp_c_string_literal): Make public.
11092 (pp_c_bool_literal): Likewise.
11093 (pp_c_integer_literal): Likewise.
11094 (pp_c_real_literal): Likewise.
11095
11096 * Makefile.in (C_PRETTY_PRINT_H): New variable.
11097 (c-pretty-print.o): Update dependence.
11098
11099 2003-08-05 Chris Demetriou <cgd@broadcom.com>
11100
11101 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
11102 ".set nomacro" state.
11103 (fix_truncsfsi2_macro): Likewise.
11104
11105 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
11106
11107 * tree.h (DID_INLINE_FUNC): Remove macro.
11108 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
11109 add tree check for FUNCTION_DECL.
11110 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
11111 (struct tree_decl): Rename inlined_function_flag to
11112 declared_inline_flag.
11113 * c-common.h (c_lang_decl): Remove.
11114 (DECL_ESTIMATED_INSNS): Remove.
11115 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
11116 (DECL_DECLARED_INLINE_P): Remove.
11117 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
11118 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
11119 (finish_function): Make uninlinable a bool. Fixup call to
11120 tree_inlinable_function_p() and fix some code style issues.
11121 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
11122 * cgraph.c (dump_cgraph): Likewise.
11123 * cgraphunit.c (cgraph_decide_inlining): Likewise
11124 (cgraph_finalize_compilation_unit): Likewise.
11125 Also update call to tree_inlinable_function_p().
11126 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
11127 look at DECL_DECLARED_INLINE and reverse logic.
11128 * print-tree.c (print_node): Likewise.
11129 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
11130 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
11131 prototype.
11132 * tree-inline.c (inlinable_function_p): Split up in this function to
11133 check for basic inlining inhibiting conditions, and new
11134 limits_allow_inlining() function. Warn if inlining is impossible
11135 because the inline candidate calls alloca or uses sjlj exceptions.
11136 (limits_allow_inlining): this new function to check if the inlining
11137 limits are satisfied. Throttle from currfn_max_inline_insns, not from
11138 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
11139 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
11140 Update prototypes.
11141 (tree_inlinable_function_p): Make a bool. Update call to
11142 inlinable_function_p
11143 (expand_call_inline): Use limits_allow_inlining() when not in
11144 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
11145 instead see if the function was declared `inline'.
11146
11147 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
11148
11149 * gcse.c (try_replace_reg): Fix updating of note.
11150
11151 2003-08-04 Roger Sayle <roger@eyesopen.com>
11152
11153 PR middle-end/11771
11154 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
11155 logic in negate_expr, i.e. we don't invert (A-B) for floating
11156 point types unless flag_unsafe_math_optimizations.
11157
11158 2003-08-04 Roger Sayle <roger@eyesopen.com>
11159
11160 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
11161 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
11162 for floating point expressions with -ffast-math.
11163 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
11164 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
11165
11166 2003-08-04 Roger Sayle <roger@eyesopen.com>
11167
11168 * c-common.c (flag_noniso_default_format_attributes): Delete.
11169 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
11170 (c_attrs_initialized): Delete.
11171 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
11172 always call c_init_attributes.
11173 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
11174 set c_attrs_initialized when done.
11175 (c_common_insert_default_attributes): Delete.
11176 * c-common.h (flag_noniso_default_format_attributes): Delete.
11177 (c_coomon_insert_default_attributes): Delete prototype.
11178 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
11179 flag_noniso_default_format_attributes.
11180
11181 * c-decl.c (c_insert_default_attributes): Delete.
11182 * c-tree.h (c_insert_default_attributes): Delete prototype.
11183
11184 * attribs.c (decl_attributes): Don't call insert_default_attributes
11185 langhook. Update function description comment.
11186 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
11187 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
11188 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
11189 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
11190
11191 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
11192 define.
11193
11194 2003-08-04 Richard Sandiford <rsandif@redhat.com>
11195
11196 * config/mips/mips.c (override_options): Disable -G on targets that
11197 have no .section support.
11198 (mips_select_section): Use default_select_section for such targets.
11199
11200 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
11201
11202 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
11203 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
11204 * fixinc/fixincl.x: Rebuild.
11205 * fixinc/tests/base/regexp.h: New test.
11206
11207 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
11208
11209 * c-ppoutput.c (cb_line_change): Don't skip line changing while
11210 parsing macro arguments in the top-level context.
11211
11212 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
11213
11214 * config.in: Remove HAVE_LSTAT.
11215 * configure, configure.in: Don't test for lstat.
11216
11217 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11218
11219 * opts.c (decode_options): Do language-specific initialization for
11220 the global diagnostic context.
11221 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
11222 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
11223 (LANG_HOOKS_INITIALIZER): Adjust.
11224 * langhooks.h (struct lang_hooks): Add new field
11225 initialize_diagnostics.
11226 * langhooks.c (lhd_initialize_diagnostics): Define.
11227
11228 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11229
11230 * pretty-print.h: Adjust macro definitions.
11231 * pretty-print.c (pp_newline): Rename to pp_base_newline.
11232 (pp_character): Rename to pp_base_character.
11233 (pp_string): Rename to pp_base_string.
11234 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
11235 (pp_newline): Likewise. Adjust.
11236 (pp_c_char): Adjust.
11237
11238 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11239
11240 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
11241 BUILT_IN_LLABS): Move to miscellaneous section.
11242
11243 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
11244
11245 PR preprocessor/11534
11246 * cppexp.c (parse_defined): Warn only if -pedantic.
11247
11248 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
11249
11250 * cppfiles.c (stack_file): Use file path.
11251
11252 2003-08-02 Roger Sayle <roger@eyesopen.com>
11253
11254 * builtin-types.def (BT_SSIZE): New primitive type.
11255 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
11256 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
11257 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
11258 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
11259 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
11260 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
11261 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
11262 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
11263 few functions that define default attributes using it.
11264 * c-common.c (c_common_insert_default_attributes): Do nothing.
11265
11266 * doc/extend.texi: Document these "new" builtins.
11267
11268 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
11269
11270 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
11271 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
11272 when -mieee-fp set and -shared not set.
11273 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
11274
11275 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
11276
11277 * cppfiles.c (struct _cpp_file): Rename once_only_next to
11278 next_file. Remove import and pragma_once, add once_only.
11279 (find_file): Add new file structures to the all_files list.
11280 (should_stack_file): Mark #import-ed files once-only, and
11281 don't stack them if the file has already been stacked.
11282 (_cp_mark_file_once_only): Simplify.
11283 * cpphash.h (struct cpp_reader): Rename once_only_files
11284 to all_files. Rename saw_pragma_once to seen_once_only.
11285 (_cpp_mark_file_once_only): Update prototype.
11286 * cpplib.c (do_pragma_once): Update.
11287
11288 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
11289
11290 * cppfiles.c (ENOTDIR): Remove.
11291 (open_file_in_dir): Rename find_file_in_dir. Handle errors
11292 other than ENOENT here.
11293 (once_only_file_p): Rename should_stack_file.
11294 (find_file, open_file_failed, read_file_guts): Report errors
11295 with full path name.
11296 (read_file): Move pch handling to should_stack_file.
11297 (should_stack_file): Handle PCH and once-only issues, and
11298 reading the file.
11299 (stack_file): Don't do file reads.
11300
11301 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11302
11303 * libgcov.c (gcov_exit): Cleanup and fix.
11304 * profile.c (compute_value_histograms): Don't try to read profiles
11305 that are not present.
11306
11307 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11308
11309 * builtins.def: Categorize.
11310
11311 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
11312 Mind fp rounding.
11313 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
11314
11315 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
11316
11317 * config.gcc: Enable posix threads by default on darwin.
11318
11319 2003-08-01 Jakub Jelinek <jakub@redhat.com>
11320
11321 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
11322 even if nehedges1 is 0.
11323
11324 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
11325
11326 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
11327 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
11328 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
11329 and defintions.
11330
11331 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
11332 * fixinc/fixincl.x: Regenerate.
11333 * fixinc/tests/base/math.h: Regenerate to match test_text change.
11334
11335 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11336
11337 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
11338
11339 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11340
11341 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
11342 for accesses to exc_ptr.
11343
11344 2003-08-01 Geoffrey Keating <geoffk@apple.com>
11345
11346 * doc/sourcebuild.texi (Front End Directory): Don't make references
11347 to libsubdir, it's not part of the interface to frontends.
11348 * doc/install.texi (Configuration): Help users read faster by saying
11349 that GCC's configure options are the standard autoconf ones.
11350 Mention --libdir. Update the default rules for finding the
11351 assembler. Don't use libsubdir since we haven't said what it means.
11352 (Specific): In the Solaris 7 notes, update the place to put the
11353 assembler.
11354 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
11355 * doc/cpp.texi (Search Path): Actually, the search path
11356 depends on libdir, which can relocate with cpp.
11357 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
11358 now a private interface between the Makefile and the driver.
11359
11360 2003-08-01 Richard Henderson <rth@redhat.com>
11361
11362 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
11363
11364 * varasm.c (lookup_constant_def): New function.
11365 * rtl.h (lookup_constant_def): Declare it.
11366 * dwarf2out.c (loc_descriptor_from_tree): Use it.
11367 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
11368
11369 2003-08-01 Zack Weinberg <zack@codesourcery.com>
11370
11371 * c-decl.c (gettags, pushdecl_function_level): Delete.
11372 (last_function_parm_vars): Rename last_function_parm_others.
11373 (current_function_parm_vars): Rename current_function_parm_others.
11374 (struct c_scope): Rewrite comment explaining this data structure.
11375 Add names_last, blocks_last, parms_last fields. Rename
11376 incomplete_list to incomplete.
11377 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
11378 (poplevel): Ignore second argument. No need to nreverse
11379 anything. Restructure such that each list is processed
11380 exactly once. Use 'const location_t *locus' syntactic sugar
11381 variable where useful. Issue unused variable warnings
11382 ourselves, do not rely on function.c.
11383 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
11384 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
11385 (implicitly_declare): decl cannot be error_mark_node.
11386 (undeclared_variable): Manipulate scope structure directly.
11387 (c_make_fname_decl): Likewise.
11388 (getdecls, c_init_decl_processing): Fix comment.
11389 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
11390 for 'last' variable.
11391 (grokparms): No need to nreverse parms list.
11392 (store_parm_decls_newstyle): Set up the parms_last and
11393 names_last fields of the new scope too.
11394 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
11395 on parms to begin with; check this under ENABLE_CHECKING. Set
11396 up parms_last.
11397 (check_for_loop_decls): Refer directly to current_scope->tags.
11398 Use consistent quote style in diagnostics.
11399 (c_write_global_declarations): The names list is not backward.
11400
11401 * c-common.h: Don't prototype gettags.
11402 * c-parse.in: Call poplevel with second argument 0 always.
11403
11404 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11405
11406 * builtins.def: Resort builtins.
11407
11408 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11409
11410 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
11411 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
11412 Prepend "__builtin_" onto NAME with string concatenation. Remove
11413 explicit "__builtin_" from each macro call.
11414
11415 Reformat entire file.
11416
11417 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11418
11419 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
11420 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
11421
11422 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
11423
11424 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
11425 CCL1, or CCL2 modes with floating point operations.
11426
11427 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
11428 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
11429 "*subdf3_cconly"): New insns.
11430 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
11431
11432 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
11433
11434 * Makefile.in: Refine dependencies.
11435 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
11436 * c.opt: Update help for -Wimport.
11437 * cppfiles.c: Include hashtab.h. Update comments.
11438 (stack_file): Read the file before updating dependencies.
11439 (once_only_file_p): Be smarter about marking once-only files.
11440 (_cpp_mark_file_once_only): Correct the check for existence on
11441 the list.
11442 (open_file_failed): Use name not path, which is NULL.
11443 * cpphash.h: Don't include hashtab.h.
11444 (struct _cpp_file): Remove.
11445 (struct cpp_reader): Update.
11446 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
11447 * cpplib.h (struct cpp_options): Remove warn_import.
11448 (cpp_simplify_path): Remove.
11449
11450 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
11451
11452 PR c++/11295
11453 * doc/extend.texi (Statement Expressions): Document C++ semantics.
11454
11455 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
11456
11457 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
11458
11459 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11460
11461 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
11462 throughout.
11463 * builtins.def: Likewise.
11464
11465 2003-07-31 Jason Merrill <jason@redhat.com>
11466
11467 * Makefile.in (bubblestrap): Don't require a previous full
11468 bootstrap.
11469
11470 * expr.c (mostly_zeros_p): No longer static.
11471 * tree.h: Declare it.
11472 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
11473 unless we need to do substitutions.
11474
11475 2003-07-31 Roger Sayle <roger@eyesopen.com>
11476
11477 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
11478 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
11479 as pow(x,2.0) when the latter will be expanded back into x*x.
11480 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
11481 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
11482 pow can never set errno when used with an integer exponent.
11483 Always use expand_powi when exponent is -1, 0, 1 or 2.
11484 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
11485 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
11486 the pow forms of these expressions.
11487
11488 2003-07-31 Geoffrey Keating <geoffk@apple.com>
11489
11490 * Makefile.in (libexecdir): New.
11491 (libsubdir): Use gcc instead of gcc-lib.
11492 (libexecsubdir): New.
11493 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
11494 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
11495 gcc-lib.
11496 (installdirs): Make libexecsubdir.
11497 (install-common): Put executables in libexecsubdir.
11498 (itoolsdir): Use libexecsubdir.
11499 (itoolsdatadir): New.
11500 (install-mkheaders): Separate data files and executables.
11501 (install-collect2): Put executables in libexecsubdir.
11502 (uninstall): Remove libexecsubdir.
11503 * mkheaders.in: Update for new arrangement of files.
11504 (libexecdir): New.
11505 (libexecsubdir): New.
11506 (itoolsdir): Use libexecsubdir.
11507 (itoolsdatadir): New.
11508 * gcc.c (gcc_libexec_prefix): New.
11509 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
11510 (standard_exec_prefix_1): Use libexec.
11511 (standard_exec_prefix_2): New.
11512 (standard_libexec_prefix): New.
11513 (process_command): Update for new arrangement of files. Compute
11514 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
11515
11516 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
11517
11518 * inclhack.def (stdio_va_list): Avoid bogus replacement which
11519 triggers on Interix.
11520 * fixincl.x: Regenerate.
11521
11522 2003-07-31 Jakub Jelinek <jakub@redhat.com>
11523
11524 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
11525 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
11526
11527 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11528
11529 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
11530
11531 2003-07-31 Per Bothner <pbothner@apple.com>
11532
11533 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
11534 (add_input_filename): New function.
11535 (handle_options): Call add_input_filename directly instead of
11536 with a lang hook.
11537 * opts.h (in_fnames, num_in_fnames): Moved here.
11538 (add_input_filename): Declare.
11539 * c-decl.c: Need to #include opts.h.
11540 * Makefile.in (c-decl.o): Also depends on opts.h.
11541 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
11542 (c_common_handle_filename): Replaced by add_input_filename.
11543 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
11544 Remove.
11545 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
11546 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
11547 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
11548 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
11549
11550 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11551
11552 * combine.c (try_combine): Set JUMP_LABEL for newly created
11553 unconditional jump.
11554
11555 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11556
11557 * fold-const.c (fold): Fold some comparisons of bit operations.
11558
11559 2003-07-31 Jan Hubicka <jh@suse.cz>
11560
11561 * cgraph.c (create_edge): Fix typo.
11562 * i386.c (pic_symbolic_operand): Reorder tests.
11563
11564 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
11565
11566 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
11567 more fully.
11568 (Gcov Data Files): Update.
11569
11570 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11571
11572 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
11573 default.
11574
11575 * gthr-posix.c: New file.
11576 * gthr-posix.h: Define _REENTRANT if missing.
11577 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
11578
11579 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
11580 by gthr-posix.o.
11581 * config/alpha/t-osf-pthread: New file.
11582
11583 * fixinc/inclhack.def (alpha_pthread): New fix.
11584 * fixinc/fixincl.x: Regenerate.
11585 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
11586
11587 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
11588 warning.
11589 Fixes PR bootstrap/9330.
11590
11591 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11592
11593 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
11594 without GNU ld.
11595 Update comment.
11596 * configure: Regenerate.
11597
11598 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
11599
11600 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
11601 setter.
11602
11603 2003-07-30 Roger Sayle <roger@eyesopen.com>
11604
11605 * builtins.def: Alphabetize.
11606
11607 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
11608
11609 * doc/c-tree.texi: Normalize spellings of "lowercase" and
11610 "uppercase".
11611 * doc/cpp.texi: Likewise.
11612 * doc/md.texi: Likewise.
11613 * doc/rtl.texi: Likewise.
11614 * doc/tm.texi: Likewise.
11615
11616 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
11617
11618 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
11619 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
11620 of cc1obj.
11621
11622 2003-07-30 Chris Demetriou <cgd@broadcom.com>
11623
11624 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
11625 macros before defining them.
11626
11627 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
11628
11629 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
11630 UNSPECV_BLOCKAGE): New constants.
11631 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
11632 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
11633 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
11634 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
11635
11636 (all insns and expanders): Write output control string as brace block
11637 where appropriate. Remove \-escapes for doublequote characters.
11638
11639 2003-07-31 Jan Hubicka <jh@suse.cz>
11640
11641 * gcse.c (insert_store): Fix typo in previous patch.
11642
11643 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
11644
11645 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
11646
11647 2003-07-30 Andi Kleen <ak@muc.de>
11648
11649 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
11650
11651 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11652
11653 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
11654 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
11655 GCOV_N_VALUE_COUNTERS): New.
11656 * profile.c (compute_value_histograms): New static function.
11657 (branch_prob): Read back the value histograms.
11658 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
11659 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
11660 * value-prof.c: Add comment on reading the profile.
11661 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
11662 * doc/invoke.texi (-fprofile-values): Document behavior with
11663 -fbranch-probabilities.
11664
11665 2003-07-30 David Edelsohn <edelsohn@gnu.org>
11666
11667 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
11668
11669 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
11670
11671 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
11672 symbolically.
11673
11674 2003-07-30 Jan Hubicka <jh@suse.cz>
11675
11676 * gcse.c (insert_store): Ignore fake edges.
11677
11678 * c-common.c (flag_vtable_gc): Kill.
11679 * c-common.g (flag_vtable_gc): Kill.
11680 * c-opts (c_common_handle_option): Kill.
11681 * c.opt (fvtable-gc): Kill.
11682 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
11683 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
11684 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
11685
11686 * invoke.texi (-ftable-gc): Kill documentation.
11687
11688 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
11689 just because function body is missing.
11690
11691 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
11692
11693 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
11694
11695 * unwind-sjlj.c: Fix typo in file description.
11696
11697 2003-07-30 Alan Modra <amodra@bigpond.net.au>
11698
11699 * calls.c (load_register_parameters): When shifting reg sized values
11700 to the msb, move the value to a reg first.
11701
11702 2003-07-29 Geoffrey Keating <geoffk@apple.com>
11703
11704 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
11705 * line-map.h (linemap_add): Update comments.
11706 * line-map.c (linemap_add): Update comments, interpret zero-length
11707 filename as "<stdin>".
11708
11709 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
11710
11711 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
11712
11713 2003-07-29 Zack Weinberg <zack@codesourcery.com>
11714
11715 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
11716 New static variables.
11717 (struct c_scope): Add parms and warned_forward_parm_decls
11718 fields; remove parm_order.
11719 (storedecls, storetags): Delete.
11720 (poplevel): Also clear bindings on the parms chain.
11721 (pushdecl): Handle forward declarations of parameters, and
11722 chain PARM_DECLs on the parms list, not the names list.
11723 (lookup_name_current_level): Check for PARM_DECLs on the parms
11724 list too.
11725 (push_parm_decl): Don't update parm_order.
11726 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
11727 warning, only once per parameter list, and set TREE_ASM_WRITTEN
11728 on the decls here. Then move the forward decls to the names list.
11729 (grokparms): Set last_function_parm_vars.
11730 (get_parm_info): Don't use gettags or getdecls. No need to
11731 extract non-parms from the parms list, or reorganize the parms
11732 list. Feed nonparms back in the TREE_TYPE of the list node
11733 returned. Issue only one error per parameter list for "void"
11734 appearing more than once in said parameter list. Collapse
11735 parmlist_tags_warning into this function to avoid double scan
11736 of tags list.
11737 (start_function): Set current_function_parm_vars.
11738 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
11739 directly. Get non-parms from current_function_parm_vars; no
11740 need to extract them from the parms chain. Properly bind tags
11741 in the new scope.
11742 (store_parm_decls_oldstyle): No need to extract non-parameters
11743 from the parms chain, nor to store them back afterward. Move
11744 declaration to top of function, restructure code reordering
11745 DECL_ARGUMENTS.
11746 (store_parm_decls): No need to save and restore warn_shadow.
11747 * c-parse.in: Don't call parmlist_tags_warning nor
11748 clear_parm_order. Call mark_forward_parm_decls when forward
11749 parm decls are encountered.
11750 * c-tree.h: Prototype mark_forward_parm_decls; not
11751 clear_parm_order or parmlist_tags_warning.
11752
11753 2003-07-29 Geoffrey Keating <geoffk@apple.com>
11754
11755 * c-common.c (allow_pch): Remove.
11756 * c-common.h (allow_pch): Remove.
11757 (c_common_no_more_pch): Declare.
11758 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
11759 * c-pch.c: Include hosthooks.h.
11760 (c_common_valid_pch): Don't check allow_pch.
11761 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
11762 (c_common_no_more_pch): New.
11763 * ggc-common.c: Include hosthooks.h.
11764 (gt_pch_save): Call gt_pch_get_address.
11765 (gt_pch_restore): Call gt_pch_use_address.
11766 * hooks.c (hook_voidp_size_t_null): New.
11767 (hook_bool_voidp_size_t_false): New.
11768 * hooks.h (hook_voidp_size_t_null): New.
11769 (hook_bool_voidp_size_t_false): New.
11770 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
11771 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
11772 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
11773 HOST_HOOKS_GT_PCH_USE_ADDRESS.
11774 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
11775 gt_pch_use_address.
11776 * doc/hostconfig.texi (Host Common): Document
11777 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
11778 * Makefile.in (c-pch.o): Depend on hosthooks.h.
11779 (ggc-common.o): Likewise.
11780
11781 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
11782 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
11783 (pch_address_space): New.
11784 (darwin_rs6000_gt_pch_get_address): New.
11785 (darwin_rs6000_gt_pch_use_address): New.
11786
11787 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
11788
11789 PR preprocessor/11569
11790 PR preprocessor/11649
11791 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
11792 * cppfiles.c: Completely rewritten.
11793 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
11794 struct cpp_path is now struct cpp_dir.
11795 (remove_duplicates): Don't simplify path names.
11796 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
11797 cpp_stack_file.
11798 * cpphash.h: Include hashtab.h.
11799 (_cpp_file): Declare.
11800 (struct cpp_buffer): struct include_file is now struct _cpp_file,
11801 and struct cpp_path is now struct cpp_dir. Rename members.
11802 (struct cpp_reader): Similarly. New members once_only_files,
11803 file_hash, file_hash_entries, quote_ignores_source_dir,
11804 no_search_path, saw_pragma_once. Remove all_include_files and
11805 max_include_len. Make some members bool.
11806 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
11807 (_cpp_stack_file): Renamed from _cpp_read_file.
11808 (_cpp_stack_include): Renamed from _cpp_execute_include.
11809 (_cpp_init_files): Renamed from _cpp_init_includes.
11810 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
11811 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
11812 (cpp_read_next_file): Rename and move to cppfiles.c.
11813 (cpp_read_main_file): Update.
11814 * cpplib.c (run_directive): Update for renamed members.
11815 (do_include_common, _cpp_pop_buffer): Update.
11816 (do_import): Undeprecate #import.
11817 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
11818 * cpplib.h: Remove file_name_map_list.
11819 (cpp_options): Remove map_list.
11820 (cpp_dir): Rename from cpp_path. New datatype for name_map.
11821 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
11822
11823 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
11824
11825 * Makefile.in: Make stamp-objdir safe for parallel builds.
11826
11827 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
11828
11829 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
11830 (info): Depend on stmp-docobjdir.
11831
11832 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11833
11834 * configure: Regenerate.
11835
11836 2003-07-29 Jan Hubicka <jh@suse.cz>
11837
11838 PR C++/11131
11839 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
11840 in !unit-at-a-time mode.
11841
11842 2003-07-28 Geoffrey Keating <geoffk@apple.com>
11843
11844 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
11845 main function.
11846
11847 2003-07-28 Mark Mitchell <mark@codesourcery.com>
11848
11849 PR c++/11667
11850 * c-common.c (shorten_compare): Take into account differences
11851 between C and C++ representation for enumeration types.
11852 * tree.h (set_min_and_max_values_for_integral_type): Declare.
11853 * stor-layout.c (set_min_and_max_values_for_integral_type): New
11854 function, broken out from ...
11855 (fixup_signed_type): ... here and ...
11856 (fixup_unsigned_type): ... here.
11857
11858 2003-07-28 Zack Weinberg <zack@codesourcery.com>
11859
11860 * c-decl.c: Update commentary, adjust blank lines throughout.
11861 (struct c_scope): Fix indentation. Reorder members so
11862 outer-context pointers come first, booleans last.
11863 (duplicate_decls, define_label): Use a 'locus' variable for
11864 diagnostic locations in a few more places.
11865 (warn_if_shadowing): Un-split a conditional that fits on one line.
11866 (c_init_decl_processing): No need to clear current_scope and
11867 current_function_scope.
11868 (start_decl): Merge if/else if statements with same action.
11869 (push_parm_decl): Rename old_immediate_size_expand to use
11870 save_foo convention; save/restore around entire function.
11871 (grokdeclarator): Remove unnecessary braces.
11872
11873 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
11874 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
11875
11876 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
11877 when warn_declaration_after_statement. Call pedwarn_c90, not
11878 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
11879 * c-common.c (warn_declaration_after_statement): Define.
11880 * c-common.h (warn_declaration_after_statement): Declare.
11881 * c.opt (Wdeclaration-after-statement): New.
11882 * c-errors.c (pedwarn_c90): New function.
11883 * c-opts.c (c_common_handle_option) <case
11884 OPT_Wdeclaration_after_statement>: New.
11885 * c-tree.h (pedwarn_c90): Declare.
11886 * doc/invoke.texi (Option Summary): Document
11887 -Wdeclaration-after-statement.
11888 (Warning Options): Ditto.
11889
11890 2003-07-28 Jan Hubicka <jh@suse.cz>
11891
11892 * i386.md (memory attribute) Avoid accessing uninitialized memory
11893 for ishift1 type instructions.
11894
11895 2003-07-28 Jakub Jelinek <jakub@redhat.com>
11896
11897 * configure.in (--enable-checking): Add fold category.
11898 (ENABLE_FOLD_CHECKING): Define if requested.
11899 * configure: Rebuilt.
11900 * config.in: Rebuilt.
11901 * doc/install.texi: Document it.
11902 * fold-const.c: Include md5.h.
11903 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
11904 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
11905 print_fold_checksum): New functions.
11906
11907 * fold-const.c (fold): Never modify argument passed to fold, instead
11908 change a copy and return it.
11909 * convert.c (convert_to_integer): Likewise.
11910
11911 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
11912
11913 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
11914 cleanup of junk after #else and #endif directives. Collapse repeated
11915 clauses into for statment.
11916
11917 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
11918
11919 2003-07-27 Zack Weinberg <zack@codesourcery.com>
11920
11921 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
11922 (keep_next_if_subblocks): Rename next_is_function_body.
11923 (pushlevel): Adjust commentary. Always set ->keep on the
11924 outermost level of a function. Don't set ->keep_if_subblocks.
11925 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
11926 (store_parm_decls): Adjust to match.
11927 (finish_function): Adjust to match.
11928 Call poplevel with all three arguments zero.
11929
11930 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
11931 New functions split out of store_parm_decls.
11932 Avoid unnecessary work. Use local variables consistently.
11933 (store_parm_decls): Likewise.
11934
11935 (finish_function): No need to set functionbody flag on call to
11936 poplevel.
11937 (struct language_function): Remove scope field.
11938 (c_push_function_context, c_pop_function_context): No need to
11939 save and restore current_scope.
11940
11941 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
11942
11943 * doc/extend.texi (Deprecated Features): Implicit typename is
11944 gone. Default args on types is going.
11945
11946 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
11947
11948 * Makefile.in (ifcvt.o): Depend on target.h
11949 * ifcvt.c (target.h): Include.
11950 (if_convert): Don't call mark_loop_exit_edges if we can't
11951 modify jumps.
11952
11953 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11954
11955 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
11956
11957 2003-07-26 Richard Henderson <rth@redhat.com>
11958
11959 PR inline-asm/11676
11960 * cse.c (count_reg_usage): Handle asm_operands properly.
11961
11962 2003-07-26 Roger Sayle <roger@eyesopen.com>
11963
11964 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
11965 (DEF_EXT_FALLBACK_BUILTIN): Delete.
11966 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
11967 the regular DEF_EXT_LIB_BUILTIN macro.
11968 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
11969 the regular DEF_LIB_BUILTIN macro.
11970 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
11971 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
11972 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
11973 DEF_EXT_LIB_BUILTIN macro.
11974
11975 * c-decl.c (duplicate_decls): Remove code to handle builtin
11976 functions prototyped without an argument list.
11977
11978 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
11979
11980 * config/i386/winnt.c: Revert 2003-07-08 change.
11981 (i386_pe_section_type_flags): Remove error_with_decl here too.
11982
11983 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
11984
11985 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
11986 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
11987 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
11988 (v850_handle_data_area_attribute): Likewise.
11989
11990 2003-07-26 Geoffrey Keating <geoffk@apple.com>
11991
11992 * varasm.c (output_constant_def_contents): Use
11993 ASM_DECLARE_CONSTANT_NAME if defined.
11994 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
11995 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
11996 objects get at least one byte to prevent assembler problems.
11997 (ASM_DECLARE_CONSTANT_NAME): New.
11998
11999 * Makefile.in (libbackend.o): Remove options_.h.
12000 (mostlyclean): Likewise.
12001
12002 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
12003 insert a label at the end of an function under Mach-O.
12004
12005 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
12006
12007 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
12008
12009 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
12010 equality.
12011 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
12012
12013 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
12014
12015 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
12016
12017 * doc/passes.texi (Passes): Mention pretty-printing and
12018 diagnostic files.
12019
12020 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
12021
12022 * doc/extend.texi (Function Attributes): GNU C++ does now allow
12023 unused parameter decls.
12024 (Attribute Syntax): GNU C++ does not allow label attributes to be
12025 after the ':'.
12026
12027 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
12028
12029 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
12030 (objc_declare_class): Likewise.
12031 (error_with_ivar): Likewise.
12032 (start_class): Likewise.
12033 (warn_with_method): Likewise.
12034
12035 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
12036
12037 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
12038 from GCC.
12039 * calls.c (try_to_integrate): Don't use xxx_with_decl.
12040 (expand_call): Likewise.
12041 * dwarfout.c (output_reg_number): Likewise.
12042 * expr.c (expand_expr): Likewise.
12043 * function.c (assign_temp): Likewise.
12044 (uninitialized_vars_warning): Likewise.
12045 (setjmp_args_warning): Likewise.
12046 (expand_function_end): Likewise.
12047 * stmt.c (fixup_gotos): Likewise.
12048 (warn_about_unused_variables): Likewise.
12049 (expand_end_bindings): Likewise.
12050 * stor-layout.c (layout_decl): Likewise.
12051 (place_field): Likewise.
12052 * toplev.c (check_global_declarations): Likewise.
12053 (rest_of_handle_inlining): Likewise.
12054 (default_tree_printer): New function.
12055 (general_init): Initialize diagnostic machinery before routing
12056 signals to the ICE machinery. Set default tree printer.
12057 * toplev.h (pedwarn_with_decl): Remove declaration.
12058 (warning_with_decl): Likewise.
12059 (error_with_decl): Likewise.
12060 (pedwarn): Remove attribute for the time being.
12061 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
12062 * varasm.c (named_section): Likewise.
12063 (make_decl_rtl): Likewise.
12064 (assemble_variable): Likewise.
12065 (merge_weak): Likewise.
12066 (declare_weak): Likewise.
12067
12068 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
12069 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
12070 (format_with_decl): Remove.
12071 (diagnostic_for_decl): Likewise.
12072 (pedwarn_with_decl): Likewise.
12073 (warning_with_decl): Likewise.
12074 (error_with_decl): Likewise.
12075 (diagnostic_initialize): Adjust.
12076 (diagnostic_count_diagnostic): Likewise.
12077 (announce_function): Likewise.
12078 (lhd_print_error_function): Likewise.
12079 (diagnostic_report_current_module): Likewise.
12080 (default_diagnostic_starter): Likewise.
12081 (diagnostic_report_diagnostic): Likewise.
12082 (default_diagnostic_finalizer): Likewise.
12083 (verbatim): Likewise.
12084 (error): Likewise.
12085 (warning): Likewise.
12086 * opts.c (common_handle_option): Likewise.
12087 * pretty-print.c: New file.
12088 * c-pretty-print.h (pp_base): Override.
12089 * c-pretty-print.c: Adjust use of macros throughout.
12090 (pp_buffer): New macro.
12091 (pp_newline): Likewise.
12092 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
12093 * Makefile.in (DIAGNOSTIC_H): New variable.
12094 (c-errors.o): Use it.
12095 (c-objc-common.o): Likewise.
12096 (c-common.o): Likewise.
12097 (c-opts.o): Likewise.
12098 (c-format.o): Likewise.
12099 (diagnostic.o): Likewise.
12100 (opts.o): Likewise.
12101 (toplev.o): Likewise.
12102 (rtl-error.o): Likewise.
12103 (dwarf2out.o): Likewise.
12104 (jump.o): Likewise.
12105 (pretty-print.o): New rule.
12106
12107 2003-07-24 Roger Sayle <roger@eyesopen.com>
12108
12109 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
12110 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
12111 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
12112 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
12113 (DEF_FRONT_END_LIB_BUILTIN): Delete.
12114 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
12115 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
12116
12117 * builtins.c (build_string_literal): New function to construct
12118 a char* pointer to a string literal.
12119 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
12120 "rtx target" to be consistent with other expand_builtin_* functions.
12121 Change 3rd argument from "int unlocked" to "bool unlocked".
12122 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
12123 c-common.c to avoid front-end dependencies. Optimize printf("")
12124 as a no-op when the result isn't required. Handle embedded NULs
12125 in format string.
12126 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
12127 from c-common.c to avoid front-end dependencies. Likewise, optimize
12128 fprintf(fp,"") as a no-op when the result isn't required, evaluating
12129 fp for side-effects. Handle embedded NULs in format string.
12130 (expand_builtin_sprintf): Fix typo.
12131 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
12132 optimizing. Adjust calls of expand_builtin_fputs to match the API
12133 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
12134 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
12135 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
12136
12137 * c-common.c (is_valid_printf_arglist): Delete.
12138 (c_expand_builtin): Delete.
12139 (c_expand_builtin_printf): Moved to builtins.c. Delete.
12140 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
12141 (c_expand_expr): No longer treat CALL_EXPRs specially.
12142 (CALLED_AS_BUILT_IN): Delete.
12143
12144 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12145
12146 PR optimization/11631
12147 * gcse.c (store_motion): Connect infinite loops to exit.
12148
12149 2003-07-24 Jason Merrill <jason@redhat.com>
12150
12151 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
12152 (boolean_true_node, boolean_false_node): Likewise.
12153 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
12154 * tree.c (build_common_tree_nodes): Init boolean_type_node.
12155 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
12156 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
12157 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
12158 (truthvalue_true_node): Renamed from boolean_true_node.
12159 (truthvalue_false_node): Renamed from boolean_false_node.
12160 * c-decl.c: Just set truthvalue_* to integer_*.
12161 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
12162
12163 2003-07-24 Roger Sayle <roger@eyesopen.com>
12164
12165 * c-decl.c (match_builtin_function_types): New subroutine of
12166 duplicate_decls to test whether a redeclaration of a builtin
12167 function is suitably close, i.e. the return type and all of
12168 the argument types have the same modes as the builtin expects.
12169 (duplicate_decls): Fuzzy type matching for builtin functions
12170 moved to match_builtin_function_types.
12171
12172 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12173
12174 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
12175 flag correctly.
12176
12177 2003-07-24 Zack Weinberg <zack@codesourcery.com>
12178
12179 * c-decl.c: Search-and-replace change 'binding level' to
12180 'scope' in commentary.
12181 (struct binding_level): Now struct c_scope.
12182 (current_binding_level): Now current_scope.
12183 (free_binding_level): Now scope_freelist.
12184 (current_function_level): Now current_function_scope.
12185 (global_binding_level): Now global_scope.
12186 (make_binding_level): Now make_scope.
12187 (pop_binding_level): Now pop_scope.
12188
12189 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12190
12191 * configure.in (libgcc_visibility): Add missing whitespace.
12192
12193 2003-07-24 Richard Henderson <rth@redhat.com>
12194
12195 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
12196 __gcc_personality_v0.
12197
12198 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12199
12200 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
12201
12202 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
12203
12204 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
12205 documentation missed from my 2003-07-09 patch.
12206
12207 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
12208
12209 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
12210 it's not provided.
12211 * configure: Rebuild.
12212
12213 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
12214
12215 PR c/10602
12216 * c-typeck.c (type_lists_compatible_p): Do not compare
12217 arguments if one of them is an error_mark_node
12218
12219 2003-07-24 Alan Modra <amodra@bigpond.net.au>
12220
12221 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
12222 if current_function_calls_eh_return.
12223
12224 2003-07-23 Mark Mitchell <mark@codesourcery.com>
12225
12226 * doc/c-tree.texi (OFFSET_TYPE): Update description.
12227
12228 2003-07-23 Bob Wilson <bob.wilson@acm.org>
12229
12230 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
12231 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
12232 __umodsi3, __modsi3): Increase frame size to 32.
12233
12234 2003-07-23 Geoffrey Keating <geoffk@apple.com>
12235
12236 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
12237 prototype.
12238
12239 2003-07-23 Mark Mitchell <mark@codesourcery.com>
12240
12241 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
12242
12243 PR optimization/10679
12244 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
12245
12246 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12247
12248 PR target/11607 and PR target/11516
12249 * pa.md (extzv, extv, insv): Revert latter half of last patch.
12250
12251 2003-07-22 Mark Mitchell <mark@codesourcery.com>
12252
12253 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
12254 * varasam.c (output_constant): Likewise.
12255
12256 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
12257
12258 * alias.c: Fix comment formatting.
12259 * c-common.c: Likewise.
12260 * c-decl.c: Likewise.
12261 * c-opts.c: Likewise.
12262 * combine.c: Likewise.
12263 * cpplib.c: Likewise.
12264 * diagnostic.c: Likewise.
12265 * dojump.c: Likewise.
12266 * final.c: Likewise.
12267 * fold-const.c: Likewise.
12268 * gcc.c: Likewise.
12269 * gcse.c: Likewise.
12270 * ggc-page.c: Likewise.
12271 * jump.c: Likewise.
12272 * loop.c: Likewise.
12273 * mips-tfile.c: Likewise.
12274 * recog.c: Likewise.
12275 * regclass.c: Likewise.
12276 * regmove.c: Likewise.
12277 * tree.c: Likewise.
12278 * tree.h: Likewise.
12279
12280 2003-07-22 Per Bothner <pbothner@apple.com>
12281
12282 * line-map.c (add_line_map): Handle invalid LEAVE request.
12283 Fixes PR preprocessor/11361.
12284
12285 2003-07-22 Per Bothner <pbothner@apple.com>
12286
12287 * diagnostic.c.(diagnostic_report_current_module): Update to match
12288 2003-06-05 changes to push_srcloc and pop_srcloc.
12289
12290 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
12291
12292 * doc/trouble.texi: Better document two-stage name lookup.
12293
12294 2003-07-22 Eric Christopher <echristo@redhat.com>
12295
12296 * config/s390.c (s390_valid_pointer_mode): New.
12297 (TARGET_VALID_POINTER_MODE): Use.
12298 (s390_emit_prologue): Add tpf profiling hooks.
12299 (s390_emit_epilogue): Ditto.
12300 * config/s390.h (MASK_TPF): New.
12301 (TARGET_TPF): Use.
12302 (POINTERS_EXTEND_UNSIGNED): Define.
12303 * config/s390.md (ptr_extend): New pattern.
12304
12305 2003-07-22 Zack Weinberg <zack@codesourcery.com>
12306
12307 * hashtable.c (approx_sqrt): Make static.
12308 * hashtable.h: Don't prototype approx_sqrt.
12309 * line-map.c (init_line_maps): Rename linemap_init.
12310 (free_line_maps): Rename linemap_free.
12311 (add_line_map): Rename linemap_add.
12312 (lookup_line): Rename linemap_lookup.
12313 (print_containing_files): Rename linemap_print_containing_files.
12314 * linemap.h: Update to match.
12315
12316 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
12317 linemap routines to use new names.
12318
12319 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
12320
12321 * c-common.c (handle_packed_attribute): Don't pack a struct via a
12322 typedef. Propagate packedness from a main variant.
12323
12324 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
12325
12326 * Makefile.in (install-common): Add dependency on installdirs.
12327
12328 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
12329
12330 * c-common.c (c_common_type_for_mode): Return integer types for
12331 pointer modes.
12332
12333 2003-07-22 Geoffrey Keating <geoffk@apple.com>
12334
12335 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
12336 (finish_decl): Call maybe_apply_pragma_weak here.
12337 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
12338 TREE_PUBLIC and TREE_STATIC are decided.
12339 (start_function): Move call to maybe_apply_pragma_weak. Check that
12340 DECL_ASSEMBLER_NAME isn't set too early.
12341
12342 * cpplex.c (_cpp_process_line_notes): Mention option name in
12343 trigraphs warning.
12344
12345 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
12346
12347 * combine.c (if_then_else_cond): Simplify the comparison of
12348 rtx against -1, 0, and 1.
12349 * loop.c (check_dbra_loop): Likewise.
12350 * optabs.c (emit_conditional_move): Likewise.
12351 (emit_conditional_add): Likewise.
12352 * config/i386/i386.md (*movsi_or): Likewise.
12353 (*movdi_or_rex6): Likewise.
12354
12355 2003-07-22 Jan Hubicka <jh@suse.cz>
12356
12357 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
12358
12359 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
12360
12361 * cppfiles.c (open_file_pch): Don't put unused entries in the
12362 splay tree. Remove dead code.
12363
12364 2003-07-21 Geoffrey Keating <geoffk@apple.com>
12365
12366 * c-common.h (num_in_fnames): Declare.
12367 (c_static_assembler_name): Move from here...
12368 * c-tree.h (c_static_assembler_name): ... to here.
12369 * c-opts.c: Don't include langhooks-def.h.
12370 (c_static_assembler_name): Move to c-decl.c.
12371 (num_in_fnames): Make externally visible.
12372 * c-decl.c: Include langhooks-def.h.
12373 (c_static_assembler_name): Move from c-opts.c.
12374 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
12375 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
12376
12377 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
12378 when it's not needed.
12379
12380 2003-07-21 Jakub Jelinek <jakub@redhat.com>
12381
12382 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
12383 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
12384 (rs6000_emit_prologue): Save FPRs inline if set.
12385
12386 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
12387
12388 * config/ia64/ia64.md (prefetch): Support predicate.
12389
12390 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
12391
12392 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
12393 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
12394 table.
12395
12396 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
12397
12398 PR optimization/11536
12399 * unroll.c (loop_iterations): Do not replace a register holding
12400 the final value by its equivalent before the loop if it is not
12401 invariant.
12402
12403 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
12404
12405 * doc/extend.texi: Fixes to spelling, grammar, and diction.
12406
12407 2003-07-21 Ben Elliston <bje@wasabisystems.com>
12408
12409 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
12410 (V850 Options): Spelling fixes.
12411
12412 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
12413
12414 * doc/invoke.texi: Fixes to style, grammar and diction.
12415
12416 2003-07-20 Roger Sayle <roger@eyesopen.com>
12417
12418 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
12419 * system.h (SMALL_STACK): Poison obsolete target macro.
12420 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
12421
12422 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
12423
12424 * configure.in: Cache the results of testing for cmp's capabilities.
12425 * configure: Regenerate.
12426
12427 2003-07-20 Mark Mitchell <mark@codesourcery.com>
12428
12429 PR debug/11279
12430 * dwarf2out.c (gen_enumeration_type_die): Remember that
12431 enumerators can be unsigned.
12432
12433 2003-07-19 Zack Weinberg <zack@codesourcery.com>
12434
12435 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
12436 (push_label_level, pop_label_level): Kill.
12437 (struct binding_level): Rename level_chain to outer.
12438 Add outer_function field. Change parm_flag, function_body,
12439 keep, keep_if_subblocks to 1-bit bitfields of type bool.
12440 (current_function_level): New variable.
12441 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
12442 (keep_next_level, declare_parm_level, warn_if_shadowing):
12443 Update to match.
12444 (struct language_function): Kill named_labels, shadowed_labels fields.
12445 (c_init_decl_processing, start_function, c_push__function_context)
12446 (c_pop_function_context): No need to muck with named_labels nor
12447 shadowed_labels.
12448
12449 (make_binding_level): No need to clear the structure here.
12450 (pop_binding_level): Always operate on current_binding_level.
12451 Update current_function_level if necessary.
12452 (pushlevel): Don't clear named_labels. Update current_function_level
12453 if necessary. Use "true" and "false" where appropriate.
12454 (poplevel): Diagnose labels defined but not used, or vice
12455 versa, and clear out label-meanings leaving scope, while
12456 walking down the decls list, for all binding levels.
12457 Handle LABEL_DECLs appearing in the shadowed list.
12458 pop_binding_level takes no arguments.
12459 (pushdecl_function_level): Use current_function_level.
12460
12461 (make_label, bind_label): New static functions.
12462 (declare_label): New exported function.
12463 (lookup_label, define_label): Rewritten for new data structure.
12464 (shadow_label): Kill.
12465
12466 * c-tree.h: Prototype declare_label; don't prototype
12467 push_label_level, pop_label_level, nor shadow_label.
12468 * c-parse.in: Remove all calls to push_label_level and
12469 pop_label_level. Use declare_label for __label__ decls.
12470
12471 * doc/extend.texi: Clarify that __label__ can be used to
12472 declare labels with local scope in any nested block, not
12473 just statement expressions. Cross-reference nested functions
12474 section from local labels section.
12475
12476 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12477
12478 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
12479
12480 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
12481
12482 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
12483
12484 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12485
12486 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
12487 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
12488
12489 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
12490
12491 * config/s390/s390.c (legitimize_pic_address): Access local symbols
12492 relative to the GOT instead of relative to the literal pool base.
12493 (s390_output_symbolic_const): Handle new GOT-relative accesses.
12494 * config/s390/s390.md ("call"): Access local functions and PLT stubs
12495 relative to the GOT instead of relative to the literal pool base.
12496 ("call_value"): Likewise.
12497 ("call_value_tls"): Likewise.
12498
12499 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
12500 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
12501 (s390_chunkify_finish): Likewise.
12502 (s390_chunkify_cancel): Likewise.
12503 (s390_reorg): Adapt caller.
12504 (find_base_register_in_addr,
12505 find_base_register_ref, replace_base_register_ref): Delete.
12506 (find_ltrel_base, replace_ltrel_base): New functions.
12507 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
12508 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
12509 base vs. index register usage.
12510 (struct constant_pool): Remove 'anchor'.
12511 (s390_add_anchor): Delete.
12512 (s390_dump_pool): Remove anchor handling.
12513 * config/s390/s390.md ("reload_anchor"): Remove.
12514
12515 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
12516 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
12517 (s390_emit_prologue): Use it.
12518 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
12519 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
12520 hard-code register 14.
12521 * config/s390/s390-protos.h (s390_load_got): Declare.
12522
12523 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
12524 Support TImode constants.
12525 * config/s390/s390.md ("consttable_ti"): New.
12526 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
12527
12528 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
12529 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
12530 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
12531 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
12532 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
12533 New symbolic constants.
12534 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
12535 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
12536 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
12537 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
12538 symbolic UNSPEC values.
12539 * config/s390/s390.c (larl_operand, s390_short_displacement,
12540 bras_sym_operand, s390_cannot_force_const_mem,
12541 s390_delegitimize_address, s390_decompose_address,
12542 legitimize_pic_address, s390_output_symbolic_const,
12543 s390_function_profiler): Use symbolic UNSPEC values.
12544
12545 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12546
12547 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
12548 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
12549 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
12550 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
12551 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
12552 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
12553 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
12554 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
12555 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
12556 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
12557 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
12558 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
12559 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
12560 postreload.c prefix.c print-tree.c protoize.c ra-build.c
12561 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
12562 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
12563 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
12564 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
12565 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
12566 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
12567 casts.
12568
12569 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
12570
12571 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
12572 * toplev.h (warning): Remove attribute.
12573
12574 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
12575
12576 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
12577 (pop_label_level): Likewise.
12578 (duplicate_decls): Likewise.
12579 (implicitly_declare): Likewise.
12580 (shadow_label): Likewise.
12581 (start_decl): Likewise.
12582 (finish_decl): Likewise.
12583 (grokdeclarator): Likewise.
12584 (get_parm_info): Likewise.
12585 (detect_field_duplicates): Likewise.
12586 (finish_struct): Likewise.
12587 (start_function): Likewise.
12588 (store_parm_decls): Likewise.
12589 (finish_function): Likewise.
12590 (c_expand_body_1): Likewise.
12591 (check_for_loop_decls): Likewise.
12592 (merge_translation_unit_decls): Likewise.
12593
12594 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
12595
12596 * common.opt: Document --param.
12597 * opts.c (columns, undocumented_msg): New.
12598 (print_help): Get number of columns from environment. Print
12599 --param help. Tweak newline handling.
12600 (print_param_help): New.
12601 (print_filtered_help): Better handling of duplicates. Complain
12602 about undocumented switches.
12603 (print_switch): New.
12604 (wrap_help): Improve wrapping, use COLUMNS.
12605 * opts.sh: Ignore comments in records.
12606 * params.def: Fix typos and remove trailing periods.
12607 * toplev.c (display_help): Don't dump --param help.
12608 * doc/sourcebuild.texi: Update.
12609
12610 2003-07-18 Richard Henderson <rth@redhat.com>
12611
12612 PR target/11556
12613 * optabs.c (prepare_operand): Fail gracefully instead of abort
12614 if the predicate doesn't satisfy.
12615 (gen_cond_trap): Allow prepare_operand to fail.
12616
12617 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
12618
12619 * c-common.c: Don't undefine GCC_DIAG_STYLE.
12620 (fname_decl): Don't use xxx_with_decl.
12621 (c_add_case_label): Likewise.
12622 (handle_section_attribute): Likewise.
12623 (handle_alias_attribute): Likewise.
12624 (handle_no_instrument_function_attribute): Likewise.
12625 (handle_no_limit_stack_attribute): Likewise.
12626 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
12627 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
12628
12629 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12630
12631 * Makefile.in (ifcvt.o): Add cfgloop.h.
12632 * basic-block.h (EDGE_LOOP_EXIT): New flag.
12633 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
12634 * ifcvt.c: Include cfgloop.h.
12635 (mark_loop_exit_edges): New static function.
12636 (if_convert): Call it.
12637 (find_if_header): Ignore branches out of loops.
12638
12639 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
12640
12641 * combine.c (simplify_comparison): Don't share rtx when converting
12642 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
12643
12644 2003-07-18 David Edelsohn <edelsohn@gnu.org>
12645
12646 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
12647 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
12648 (MUST_PASS_IN_STACK): Define.
12649 (BLOCK_REG_PADDING): Define.
12650
12651 2003-07-18 Richard Henderson <rth@redhat.com>
12652
12653 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
12654 to skip the addr_vec.
12655
12656 2003-07-18 Alexandre Oliva <aoliva@redhat.com>
12657
12658 * combine.c (combinable_i3pat): Don't forbid occurrences of
12659 i2dest or i1dest in inner_dest if inner_dest is a mem.
12660
12661 2003-07-18 Jan Hubicka <jh@suse.cz>
12662
12663 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
12664
12665 2003-07-17 Jakub Jelinek <jakub@redhat.com>
12666
12667 PR target/11087
12668 * loop.c (basic_induction_var): Check if convert_modes emitted any
12669 instructions. Remove them and return 0 if so.
12670
12671 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
12672
12673 PR optimization/11083
12674 * toplev.c (rest_of_handle_addresof): Rename into
12675 rest_of_handle_addressof. Delete unreachable blocks
12676 if dead edges were purged after the addressof pass.
12677
12678 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
12679
12680 * Makefile.in, configure, configure.in: Remove handling of
12681 lang-options.h and options_.h.
12682 * toplev.c (struct lang_opt, documented_lang_options): Remove.
12683 (display_help): Don't use documented_lang_options.
12684
12685 2003-07-17 Zack Weinberg <zack@codesourcery.com>
12686
12687 * c-decl.c (pushdecl_function_level): Make static, return nothing.
12688 (kept_level_p): Fold into poplevel.
12689 (undeclared_variable): Moved here from c-typeck.c. Export.
12690 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
12691 (undeclared_variable): Prototype here. Don't prototype
12692 kept_level_p nor pushdecl_function_level.
12693 * c-parse.in: Change first argument to poplevel from
12694 "kept_level_p()" to "KEEP_MAYBE".
12695 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
12696
12697 2003-07-17 Roger Sayle <roger@eyesopen.com>
12698
12699 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
12700 commutative operands instead of modifying the RTL in-place.
12701
12702 2003-07-17 Mark Mitchell <mark@codesourcery.com>
12703
12704 PR optimization/11557
12705 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
12706 unless we know which function is being called.
12707
12708 2003-07-17 Roger Sayle <roger@eyesopen.com>
12709
12710 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
12711 whether to reorder the operands of a commutative binary operator.
12712
12713 2003-07-17 Roger Sayle <roger@eyesopen.com>
12714
12715 * fold-const.c (const_binop): Avoid performing the FP operation at
12716 compile-time, if either operand is NaN and we honor signaling NaNs,
12717 or if we're dividing by zero and either flag_trapping_math is set
12718 or the desired mode doesn't support infinities.
12719 (fold_initializer): New function to fold an expression ignoring any
12720 potential run-time exceptions or traps.
12721 * tree.h (fold_initializer): Prototype here.
12722 * c-typeck.c (build_binary_op): Move to the end of the file so
12723 that intializer_stack is in scope. If constructing an initializer,
12724 i.e. when initializer_stack is not NULL, use fold_initializer to
12725 fold expressions.
12726 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
12727 performing FP operations at compile-time, if they would raise an
12728 exception at run-time.
12729
12730 2003-07-17 Geoffrey Keating <geoffk@apple.com>
12731
12732 PR 11498
12733 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
12734 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
12735 (GTFILES): Add langhooks.c.
12736 (gt-langhooks.h): New.
12737 * c-common.h (c_static_assembler_name): Prototype.
12738 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
12739 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
12740 * c-opts.c: Include langhooks-def.h.
12741 (c_static_assembler_name): New.
12742 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
12743 (var_labelno): New.
12744 (lhd_set_decl_assembler_name): Give static objects with context
12745 unique names.
12746 * varasm.c (var_labelno): Delete.
12747 (make_decl_rtl): Don't change the assembler name once it's set.
12748
12749 * c-opts.c (this_input_filename): New.
12750 (finish_options): Take new parameter, name of file being compiled.
12751 Update callers. Set this_input_filename.
12752 (push_command_line_include): Use this_input_filename not
12753 main_input_filename.
12754
12755 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
12756
12757 * Makefile.in: Depend .pot generation on options.c.
12758 * po/exgettext: Add an extra_files variable containing additional
12759 files to scan.
12760
12761 2003-07-17 Zack Weinberg <zack@codesourcery.com>
12762
12763 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
12764 c_write_global_declarations.
12765
12766 * c-decl.c: Fix typos in several comments. Remove all
12767 #if 0 blocks; reindent as needed. Remove unused argument
12768 to declare_parm_level; all callers changed.
12769 * c-parse.in: Update calls to declare_parm_level. Avoid
12770 issuing a double warning in some circumstances.
12771 * c-typeck.c: Update calls to declare_parm_level.
12772 * c-tree.h: Update prototype of declare_parm_level.
12773
12774 * c-pragma.c (apply_pragma_weak): Don't complain about a
12775 redundant #pragma weak.
12776
12777 * objc/objc-act.c (forward_declare_categories,
12778 build_selector_reference_decl, build_class_reference_decl,
12779 build_objc_string_decl, synth_forward_declarations,
12780 build_protocol_reference): Set TREE_PUBLIC on synthetic
12781 forward decl to 0, consistent with eventual definition.
12782 Correct comments to match.
12783
12784 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
12785 in regexp that don't form a range expression.
12786 * fixinc/fixincl.def: Regenerate.
12787
12788 2003-07-17 Richard Henderson <rth@redhat.com>
12789
12790 PR target/10907
12791 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
12792 even with !TARGET_CONST_GP.
12793 (ia64_function_ok_for_sibcall): Reject non-local functions.
12794
12795 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
12796
12797 * c-common.c (c_estimate_num_insns_1): Don't handle
12798 METHOD_CALL_EXPR.
12799 * expr.c (safe_from_p): Likewise.
12800 * gengtype.c (adjust_field_tree_exp): Likewise.
12801 * stmt.c (warn_if_unused_value): Likewise
12802 * tree.c (first_rtl_op): Likewise.
12803 * tree.def: Don't define METHOD_CALL_EXPR.
12804 * java/lang.c (java_estimate_num_insns_1): Don't handle
12805 METHOD_CALL_EXPR.
12806
12807 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
12808
12809 PR other/11466
12810 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
12811 and its restrictions for the SPARC64 port.
12812 Move the entry of "-mimpure-text" before that of "-mv8".
12813
12814 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
12815 Phil Edwards <phil@jaj.com>
12816
12817 * doc/install.texi (*-*-solaris2*): Document the step-by-step
12818 procedure to bootstrap and install.
12819 Document the preference for the legacy Sun tools in /usr/bin
12820 over the POSIX tools in /usr/xpg4/bin for the build process.
12821
12822 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
12823
12824 * c.opt: Document Uncodumented; use it. Document ObjC options.
12825 * opts.c (print_filtered_help): Skip undocumented switches.
12826 * opts.h (CL_UNDOCUMENTED): New.
12827 * opts.sh: Handle Undocumented.
12828 * toplev.c (documented_lang_options): Prevent its becoming empty.
12829 objc:
12830 * lang-options.h: Remove.
12831
12832 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
12833
12834 * loop.c (check_ext_dependent_givs): Pass const struct loop *
12835 instead of struct loop_info * as argument. Accept BIVs with
12836 increment +/- 1 provided there is a friendly exit test against
12837 a loop-invariant value.
12838 (strength_reduce): Adapt call to check_ext_dependent_givs.
12839
12840 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
12841 Con Bradley <con.bradley@superh.com>
12842
12843 * sh-protos.h (sh_get_pr_initial_val): Declare.
12844 * sh.c (regno_reg_class): Make its elements type enum reg_class.
12845 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
12846 and live_regs_mask arguments. Changed all callers.
12847 (save_schedule_s): New structure.
12848 (save_schedule): New typedef.
12849 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
12850 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
12851 In interrupts handlers, also save registers that are usually
12852 partially saved, and make sure there is at least one general purpose
12853 register saved if a target register needs saving.
12854 Add casts in comparisons to avoid warnings.
12855 (sh_media_register_for_return): return -1 for interrupt handlers.
12856 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
12857 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
12858 registers used are available.
12859 Set RTX_FRAME_RELATED_P where appropriate.
12860 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
12861 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
12862 (initial_elimination_offset): Likewise.
12863 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
12864 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
12865 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
12866 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
12867 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
12868 and for target registers.
12869 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
12870 (regno_reg_class): Make its elements type enum reg_class.
12871 (CONSTRAINT_LEN): Don't use isdigit.
12872 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
12873 (FUNCTION_ARG): Add parentheses to avoid warnings.
12874 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
12875 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
12876 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
12877 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
12878 * sh.md (xordi3+1): Remove unused variable regno.
12879 (return_media): Check that tr0 is available before using it.
12880
12881 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
12882
12883 * c.opt: Document more options.
12884
12885 2003-07-16 Roger Sayle <roger@eyesopen.com>
12886
12887 * combine.c (subst): Also handle (subreg (const_double ...)) case
12888 if created by a substitution, by using the original inner mode.
12889
12890 2003-07-16 Roger Sayle <roger@eyesopen.com>
12891
12892 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
12893 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
12894 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
12895
12896 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
12897
12898 * doc/install.texi (--without-headers): New.
12899
12900 Partial Fix PR/10129
12901 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
12902 (machopic_output_function_base_name): New; print the true pic label.
12903 (machopic_classify_ident): Pic Base is always a defined data.
12904 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
12905 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
12906
12907 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
12908 if they are not floating point registers.
12909
12910 PR c/10962
12911 * ggc.h: Add header guards.
12912 * c-decl.c (finish_struct): Sort fields if
12913 number greater than 15 and there are no
12914 anonymous structs/unions.
12915 * c-common.h: Include ggc.h.
12916 (sorted_fields_type): New struct.
12917 (field_decl_cmp): New prototype.
12918 (resort_sorted_fields): New prototype.
12919 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
12920 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
12921 as s, removing other fields.
12922 * c-typeck.c (lookup_field): Use s in lang_type.
12923 These were mostly moved from cp/class.c:
12924 * c-common.c (field_decl_cmp): New static function.
12925 (field_decl_cmp): New function.
12926 (resort_sorted_fields): New function.
12927
12928 2003-07-16 Geoffrey Keating <geoffk@apple.com>
12929
12930 * config/darwin.c (machopic_select_section): Use decl_readonly_section
12931 to do most of the work.
12932
12933 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
12934
12935 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
12936 * config/mmix/mmix.c: Convert functions to ISO C90.
12937 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
12938 formatting.
12939 (mmix_get_hard_reg_initial_val): Tweak section head comment.
12940
12941 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
12942
12943 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
12944
12945 2003-07-16 Jakub Jelinek <jakub@redhat.com>
12946
12947 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
12948 (uw_update_context_1): Use it.
12949 * config/rs6000/rs6000.c (insn_after_throw): Remove.
12950 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
12951 in parent frame if _Unwind_* called directly instead of through
12952 .plt.
12953 (rs6000_emit_eh_toc_restore): Remove.
12954 (rs6000_emit_prologue): Update stack pointer before doing any saving
12955 if current_function_calls_eh_return. Generate unwind info for $r2.
12956 (rs6000_emit_epilogue): Restore stack pointer after doing all
12957 restoring if current_function_calls_eh_return. Restore $r2.
12958 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
12959 * config/rs6000/rs6000.md (eh_return): Remove call to
12960 rs6000_emit_eh_toc_restore.
12961 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
12962 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
12963
12964 2003-07-15 Jakub Jelinek <jakub@redhat.com>
12965
12966 * expr.c (emit_block_move): Don't move anything if size is const 0.
12967 (clear_storage): Test against const0_rtx instead of comparing INTVAL
12968 against 0.
12969
12970 2003-07-15 David S. Miller <davem@redhat.com>
12971
12972 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
12973 emit nop if the last real insn is CALL_INSN.
12974
12975 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
12976
12977 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
12978 as "nul".
12979 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
12980
12981 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
12982
12983 * config/i386/winnt.c (associated_type): Artificial methods are not
12984 affected by the import/export status of their class unless they are
12985 COMDAT.
12986 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
12987
12988 * config/i386/winnt.c: Fix GCC copyright comment.
12989
12990 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
12991
12992 PR c++/11531
12993 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
12994 not recursing on hard error.
12995 (diagnostic_for_decl): Likewise.
12996 * diagnostic.def: Rearrange.
12997
12998 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
12999
13000 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
13001 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
13002
13003 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
13004 Richard Henderson <rth@redhat.com>
13005
13006 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
13007 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
13008 (_Unwind_SetGR): Likewise.
13009 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
13010 (Unwind_SpTmp): New typedef.
13011 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
13012 (uw_update_context): Use _Unwind_GetPtr.
13013 (init_dwarf_reg_size_table): Move above uw_init_context_1.
13014 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
13015 Use _Unwind_SetSpColumn.
13016 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
13017 Use _Unwind_GetPtr.
13018
13019 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
13020
13021 * c.opt: Document more options.
13022 * toplev.c (documented_lang_options): Remove all local help strings.
13023
13024 2003-07-15 Mark Mitchell <mark@codesourcery.com>
13025
13026 PR debug/11473
13027 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
13028 base classes.
13029
13030 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
13031
13032 PR target/10795
13033 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
13034 swap comparison operands if doing so would generate an
13035 unrecognizable insn.
13036
13037 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
13038
13039 PR optimization/11320
13040 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
13041 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
13042 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
13043 current_sched_info->compute_jump_reg_dependencies. Record which
13044 registers are used and which registers are set by the jump.
13045 Clear deps->reg_conditional_sets after a barrier.
13046 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
13047 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
13048 (init_deps): Initialize reg_conditional_sets.
13049 (free_deps): Clear reg_conditional_sets.
13050 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
13051 Mark registers live on entry of the fallthrough block and conditionally
13052 set as set by the jump. Mark registers live on entry of non-fallthrough
13053 blocks as used by the jump.
13054 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
13055 Mark new parameters as unused.
13056
13057 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
13058
13059 * doc/invoke.texi: Resync MIPS -march documentation.
13060
13061 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
13062
13063 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
13064 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
13065 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
13066 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
13067 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
13068 (mips_issue_rate): Handle PROCESSOR_R9000.
13069 (mips_use_dfa_pipeline_interface): Likewise.
13070 * config/mips/9000.md: New file.
13071 * config/mips/mips.md: Include it.
13072 (define_attr cpu): Add r9000.
13073 (mulsi3_mult3): Use "mul" for rm9000 code.
13074
13075 2003-07-15 Stan Cox <scox@redhat.com>
13076
13077 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
13078 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
13079 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
13080 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
13081 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
13082 (mips_issue_rate): Handle PROCESSOR_R7000.
13083 (mips_use_dfa_pipeline_interface): Likewise.
13084 * config/mips/7000.md: New file.
13085 * config/mips/mips.md: Include it.
13086 (define_attr cpu): Add r7000.
13087 (mulsi3_mult3): Use "mul" for rm7000 code.
13088
13089 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
13090
13091 * config/mips/mips.md (define_attr type): Add condmove. Use it for
13092 the conditional move patterns.
13093 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
13094 Check for condmove type.
13095 (ir_vr54_arith): Add move type.
13096 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
13097 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
13098
13099 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
13100
13101 * c-opts.c (print_help): Remove.
13102 (c_common_handle_option): Don't handle --help.
13103 * c.opt: Document some options.
13104 (--help): Remove.
13105 * opts.c (print_filtered_help): New.
13106 (print_help): Use it.
13107
13108 2003-07-14 Geoffrey Keating <geoffk@apple.com>
13109
13110 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
13111 * tree.c: (build_common_tree_nodes_2): Likewise.
13112 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
13113 (V4DF_type_node): New.
13114
13115 * c-opts.c (push_command_line_include): Don't free deferred_opts,
13116 we'll need it.
13117 (finish_options): Reset init_cursor.
13118
13119 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
13120
13121 * expr.c (expand_assignment): Remove an unused argument
13122 SUGGEST_REG.
13123 * expr.h: Update the prototype.
13124 * function.c: Update the callers.
13125 * stmt.c: Likewise.
13126
13127 2003-07-14 Mark Mitchell <mark@codesourcery.com>
13128
13129 PR debug/11098
13130 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
13131 as DECL_ABSTRACT.
13132
13133 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
13134
13135 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
13136 with __cplusplus, not "we must use the C++ compiler's type"
13137 * fixinc/inclhack.def (void_null): Note that Interix needs this.
13138 * fixinc/fixincl.x: Regenerate.
13139
13140 2003-07-14 Geoffrey Keating <geoffk@apple.com>
13141
13142 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
13143 and unseen_objects from the global data before calling
13144 __deregister_frame_info_bases.
13145 (examine_objects): Insert objects into the seen_objects list,
13146 not unseen_objects.
13147 (_Unwind_Find_FDE): Always unlock the global object lists, even if
13148 we couldn't allocate a data structure to put in it.
13149
13150 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
13151 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
13152 (SET_TYPE_PROTOCOL_LIST): New.
13153 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
13154 (get_object_reference): Likewise.
13155
13156 2003-07-14 Jan Hubicka <jh@suse.cz>
13157
13158 * cfglayout.c (locator_file): Break out from ....
13159 (insn_file): ... here.
13160 (locator_line): Break out from ....
13161 (insn_line): ... here.
13162 * rtl.h (locator_file, locator_line): Declare.
13163 (final_start_function): Set proper line/file info.
13164
13165 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
13166
13167 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
13168 handled by pp_c_cast_expression.
13169
13170 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
13171
13172 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
13173 allocate 32768 bytes of stack. Use addition rather than subtraction
13174 when a single insn is enough.
13175 * config/mips/mips.md: Remove insns and splitters for subtracting
13176 constants.
13177 (subsi3): Only accept register operands.
13178 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
13179 (subdi3_internal_3, subsi3_internal_2): Likewise.
13180 (casesi): Use expand_binop to subtract the lower bound.
13181
13182 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
13183
13184 * config/mips/mips.c (mips_in_small_data_p): Don't handle
13185 TARGET_MIPS16 specially.
13186
13187 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
13188
13189 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
13190 mips_output_aligned_bss.
13191 * config/mips/linux.h: Likewise.
13192 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
13193 * config/mips/mips.c (mips_output_aligned_bss): New function.
13194
13195 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
13196 * config/mips/elf64.h: Likewise.
13197
13198 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
13199 mips_declare_object_name.
13200 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
13201 * config/mips/elf64.h: As for elf.h.
13202 * config/mips/iris6.h: Likewise.
13203 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
13204 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
13205 do...while (0) block.
13206 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
13207 (mips_finish_declare_object): Declare.
13208 * config/mips/mips.c (mips_declare_object_name): New function.
13209 (mips_finish_declare_object): New function.
13210
13211 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
13212 * config/mips/linux.h: Likewise.
13213
13214 * config/mips/mips.c (inside_function): Delete.
13215 (file_in_function_warning, ignore_line_number): Delete.
13216 (mips_output_filename): Don't warn about changing filenames within
13217 a function.
13218 (mips_output_lineno): Update accordingly.
13219 (mips_output_function_prologue): Don't reset the deleted variables.
13220 * config/mips/mips.h (inside_function): Delete.
13221 (file_in_function_warning, ignore_line_number): Delete.
13222
13223 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
13224 * config/mips/elf64.h: Likewise.
13225 * config/mips/openbsd.h: Likewise.
13226 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
13227 * config/mips/linux.h: Likewise.
13228 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
13229 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
13230
13231 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
13232 to the list of include files when using gas.
13233 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
13234 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
13235 * config/mips/elf64.h: Likewise.
13236 * config/mips/iris5.h: Likewise.
13237 * config/mips/linux.h: Likewise.
13238 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
13239 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
13240 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
13241 * config/mips/sdb.h: ...this new file.
13242
13243 2003-07-14 Douglas Rupp <rupp@gnat.com>
13244
13245 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
13246 argument to getcwd; use fixed buffer instead.
13247
13248 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
13249
13250 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
13251 * fixinc/fixinc.wrap: Delete.
13252
13253 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
13254
13255 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
13256 don't have 2.
13257
13258 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
13259
13260 * ggc-page.c (struct globals): Add new fields to keep track of the
13261 total allocated memory and overhead.
13262 (ggc_print_statistics): Print them.
13263 (ggc_alloc): Keep track of the total allocated memory and the
13264 overhead.
13265
13266 * tree.c (dump_tree_statistics): Increase spacing.
13267 (enum tree_node_kind): Move to ...
13268 * tree.h (enum tree_node_kind): ... here.
13269 (tree_node_counts, tree_node_sizes): Declare.
13270
13271 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
13272
13273 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
13274
13275 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13276
13277 PR optimization/11440
13278 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
13279 SIGN_EXTRACT SETs.
13280
13281 2003-07-14 Alan Modra <amodra@bigpond.net.au>
13282
13283 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
13284 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
13285 (emit_group_load, emit_group_store): Adjust declarations.
13286 Remove most occurrences of #ifdef TREE_CODE.
13287 * expr.c (emit_group_load): Add "type" param, and use
13288 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
13289 aligned accesses if !SLOW_UNALIGNED_ACCESS.
13290 (emit_group_store): Likewise.
13291 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
13292 emit_group_load and emit_group_store calls.
13293 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
13294 BLOCK_REG_PADDING to determine whether we need endian_correction.
13295 (load_register_parameters): Localize vars. Handle shifting of
13296 small values to the correct end of regs. Adjust emit_group_load
13297 call.
13298 (expand_call, emit_library_call_value_1): Adjust emit_group_load
13299 and emit_group_store calls.
13300 * function.c (assign_parms): Set mem alignment for stack slots.
13301 Adjust emit_group_store call. Store values at the "wrong" end
13302 of regs to the stack. Use BLOCK_REG_PADDING.
13303 (locate_and_pad_parm): Save where_pad.
13304 (expand_function_end): Adjust emit_group_load call.
13305 * stmt.c (expand_value_return): Adjust emit_group_load call.
13306 * Makefile.in (calls.o): Depend on $(OPTABS_H).
13307 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
13308 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
13309 (MUST_PASS_IN_STACK): Define.
13310 (BLOCK_REG_PADDING): Define.
13311 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
13312 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
13313 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
13314 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
13315 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
13316
13317 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
13318
13319 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
13320
13321 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13322
13323 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
13324 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
13325
13326 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
13327
13328 PR other/11123
13329 * toplev.c: Don't cut off option names.
13330
13331 2003-07-13 Andreas Jaeger <aj@suse.de>
13332
13333 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
13334 to integer of different size.
13335
13336 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
13337
13338 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
13339 to (eq (and X 1) 0).
13340
13341 2003-07-13 Andreas Jaeger <aj@suse.de>
13342
13343 * config.gcc: Add pmmintrin.h for x86_64-*-*.
13344
13345 2003-07-13 Zack Weinberg <zack@codesourcery.com>
13346
13347 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
13348 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
13349 list. Move these all together down by cpplib.
13350
13351 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
13352 definition of CPPCHAR_SIGNED_T.
13353
13354 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
13355 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
13356 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
13357
13358 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
13359 * cppinit.c (cpp_create_reader): Likewise.
13360
13361 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
13362 * cpptrad.c: Likewise. All callers changed.
13363 * cpplib.c: All callers changed.
13364 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
13365 * hashtable.h: Define GTY(x) to nothing here too.
13366
13367 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13368
13369 * stor-layout.c (compute_record_mode): Remove very obsolete test
13370 that forces BLKmode for records with fields crossing word boundary.
13371
13372 2003-07-13 Zack Weinberg <zack@codesourcery.com>
13373
13374 * Makefile.in: Remove orphan reference to acconfig.h.
13375
13376 2003-07-13 Andreas Jaeger <aj@suse.de>
13377
13378 * cgraphunit.c: Convert prototypes to ISO C90.
13379
13380 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
13381
13382 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
13383 (for OpenBSD).
13384 * fixinc/fixincl.x: Rebuild.
13385
13386 2003-07-12 Zack Weinberg <zack@codesourcery.com>
13387
13388 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
13389 i?86-*-*. Use correct name of cache variable.
13390 * configure: Regenerate.
13391
13392 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
13393
13394 * config/alpha/alpha.c: Fix comment typos.
13395 * config/alpha/alpha.md: Likewise.
13396 * config/arm/arm.c: Likewise.
13397 * config/arm/arm.md: Likewise.
13398 * config/arm/lib1funcs.asm: Likewise.
13399 * config/avr/avr.md: Likewise.
13400 * config/arm/README-interworking: Fix typos.
13401
13402 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
13403
13404 * c-format.c: Fix comment formatting.
13405 * c-typeck.c: Likewise.
13406 * coverage.c: Likewise.
13407 * cppcharset.c: Likewise.
13408 * cpplib.c: Likewise.
13409 * dbxout.c: Likewise.
13410 * gcov-io.h: Likewise.
13411 * toplev.c: Likewise.
13412
13413 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
13414
13415 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
13416 fix.
13417
13418 2003-07-12 Zack Weinberg <zack@codesourcery.com>
13419
13420 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
13421 uses three-argument AC_DEFINE so no acconfig.h entries are
13422 needed.
13423 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
13424 which contains the GAS version number as a scaled integer.
13425 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
13426 ability to check for ELF assembler.
13427 (gcc_GAS_CHECK_FEATURE): New macro.
13428 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
13429 assembler feature checks using gcc_GAS_CHECK_FEATURE.
13430 Use three-argument AC_DEFINE everywhere.
13431 * acconfig.h: Deleted.
13432 * config.in, configure: Regenerate.
13433
13434 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
13435
13436 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
13437 (on OpenBSD).
13438 * fixinc/fixincl.x: Regenerate.
13439
13440 * fixinc/inclhack.def (gnu_types): Improve comment.
13441
13442 2003-07-12 Andreas Jaeger <aj@suse.de>
13443
13444 * fp-test.c (main): Use ISO C90 prototype.
13445
13446 * version.c: Remove unneded include of ansidecl.h.
13447
13448 * cgraph.h: Convert prototypes to ISO C90.
13449 * cgraph.c: Likewise.
13450 * fix-header.c: Likewise.
13451 * ra.h: Likewise.
13452 * protoize.c: Likewise.
13453
13454 2003-07-12 Jan Hubicka <jh@suse.cz>
13455
13456 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
13457 warning.
13458
13459 2003-07-12 Jan Hubicka <jh@suse.cz>
13460 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13461
13462 * cgraph.c (cgraph_max_uid): New global variable.
13463 (cgraph_node): Set uid field.
13464 (create_edge): Keep inline flags consistent.
13465 (dump_cgraph): Dump more info.
13466 * cgraph.h (struct cgraph_local_info): Remove inline_many and
13467 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
13468 (struct cgraph_global_info): Add insns, calls, cloned_times,
13469 will_be_output.
13470 (struct cgraph_node): Add uid.
13471 (struct cgraph_edge): Add inline_call.
13472 (cgraph_max_uid, cgraph_inline_p): Declare.
13473 * cgraph.c: Include params.h and fibheap.h
13474 (cgraph_mark_functions_to_inline_once): Kill.
13475 (INSNS_PER_CALL): New constant.
13476 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
13477 static variables.
13478 (cgraph_finalize_function): Do not analyze inlining.
13479 (cgraph_finalize_compilation_unit): Set inlining attributes.
13480 (cgraph_mark_functions_to_output): More consistency checks.
13481 (cgraph_optimize_function): Set current_function_decl to NULL.
13482 (cgraph_expand_function): Use new inline flags.
13483 (cgraph_postorder): Expand from cgraph_expand_functions.
13484 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
13485 (cgraph_inlined_into, cgraph_inlined_callees,
13486 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
13487 cgraph_mark_inline, cgraph_check_inline_limits,
13488 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
13489 cgraph_decide_inlining, cgraph_inline_p): New functions.
13490 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
13491 PARAM_INLINE_UNIT_GROWTH): New parameters.
13492 * tree-inline.c (struct inline_data): New field current_decl.
13493 (expand_call_inline): Avoid forward declarations; use
13494 inlinable_function_p.
13495 (optimize_inline_calls): Set id.current_decl.
13496
13497 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
13498
13499 * configure.in: Remove wrongly added definition of
13500 local_prefix.
13501 * configure: Regenerate.
13502
13503 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13504
13505 * rtl.def (NOTE): Do not use padding.
13506
13507 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
13508
13509 * doc/install.tex: Update required binutils for i?86-*-linux*
13510
13511 2003-07-11 Richard Henderson <rth@redhat.com>
13512
13513 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
13514
13515 2003-07-11 Mark Mitchell <mark@codesourcery.com>
13516
13517 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
13518 TRANSLATION_UNIT_DECL as top_level.
13519
13520 2003-07-11 Jakub Jelinek <jakub@redhat.com>
13521
13522 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
13523 then fall back to cmpstrM.
13524 * builtins.c (expand_builtin_memcmp): Likewise.
13525 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
13526 (s390_expand_cmpmem): ... this.
13527 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
13528 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
13529 from cmpstr* patterns. Rename call to s390_expand_cmpstr
13530 to s390_expand_cmpmem.
13531 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
13532 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
13533 to cmpmem*.
13534 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
13535 cmpstr* patterns.
13536 * doc/md.texi (cmpstrM): Describe as String compare insn, not
13537 Block compare insn.
13538 (cmpmemM): Add.
13539
13540 2003-07-11 Loren James Rittle <ljrittle@acm.org>
13541
13542 * config/i386/freebsd.h (SET_ASM_OP): Remove.
13543 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
13544 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
13545 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
13546
13547 2003-07-11 Richard Henderson <rth@redhat.com>
13548
13549 * function.c (assign_parms): Don't recombine complex args if
13550 fnargs is unchanged from orig_fnargs.
13551 (split_complex_args): Return args without complex before copying.
13552 Re-layout the modified parameters.
13553
13554 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
13555
13556 * regclass.c (choose_hard_reg_mode): Add third argument.
13557 Changed all callers.
13558 * rtl.h (choose_hard_reg_mode): Update declaration.
13559 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
13560 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
13561
13562 2003-07-11 Geoffrey Keating <geoffk@apple.com>
13563
13564 * c-decl.c (finish_decl): Handle 'used' here...
13565 * cgraphunit.c (cgraph_finalize_function): ... and here ...
13566 * c-common.c: (handle_used_attribute): ... not here.
13567
13568 * configure.in (onstep): Support --enable-intermodule.
13569 * Makefile.in (OBJS-common): New.
13570 (OBJS-md): New.
13571 (OBJS-archive): New.
13572 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
13573 (OBJS-onestep): New.
13574 (libbackend.a): Support @onestep@.
13575 (libbackend.o): New.
13576 * configure: Regenerate.
13577
13578 * c-common.h (c_reset_state): New prototype.
13579 (c_parse_file): New prototype.
13580 (finish_file): Move prototype from c-tree.h.
13581 * c-decl.c: Include <hashtab.h>.
13582 (builtin_decls): New.
13583 (current_file_decl): New.
13584 (duplicate_decls): Add extra parameter. Change all callers. Don't
13585 output duplicate common symbols.
13586 (link_hash_hash): New.
13587 (link_hash_eq): New.
13588 (poplevel): Handle popping of the top level.
13589 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
13590 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
13591 (pushdecl_top_level): Likewise.
13592 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
13593 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
13594 (finish_decl): Handle TRANSLATION_UNIT_DECL.
13595 (merge_translation_unit_decls): New.
13596 (c_write_global_declarations): New.
13597 (c_reset_state): New.
13598 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
13599 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
13600 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
13601 TRANSLATION_UNIT_DECL.
13602 (c_objc_common_finish_file): Call merge_translation_unit_decls.
13603 * c-opts.c (in_fnames): Rename from in_fname.
13604 (c_common_decode_option): Handle multiple input filenames.
13605 (c_common_post_options): Likewise.
13606 (c_common_parse_file): Likewise; also, call c_parse_file rather than
13607 yyparse.
13608 * c-parse.in: Move cleanup code to c_parse_file.
13609 (free_parser_stacks): Move contents to c_parse_file.
13610 (c_parse_file): New.
13611 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
13612 for integer types.
13613 (C_DECL_FILE_SCOPE): New.
13614 (finish_file): Move prototype to c-common.h.
13615 (merge_translation_unit_decls): New prototype.
13616 (comptypes): Add extra parameter to prototype.
13617 (c_write_global_declarations): New prototype.
13618 * c-typeck.c (tagged_types_tu_compatible_p): New.
13619 (function_types_compatible_p): Add extra parameter, change all callers.
13620 (type_lists_compatible_p): Likewise.
13621 (comptypes): Likewise.
13622 (struct tagged_tu_seen): New.
13623 (tagged_tu_seen_base): New.
13624 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
13625 (c_mark_addressable): Remove #if 0 code.
13626 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
13627 comment explaining why it shouldn't have to.
13628 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
13629 options.
13630 * cppinit.c (cpp_read_next_file): New.
13631 (cpp_read_main_file): Use it.
13632 * cpplib.c (undefine_macros): New.
13633 (cpp_undef_all): New.
13634 * cpplib.h (cpp_read_next_file): Prototype.
13635 (cpp_undef_all): Prototype.
13636 * langhooks-def.h (write_global_declarations): Remove prototype.
13637 * toplev.h (write_global_declarations): Add prototype.
13638 * tree.c (decl_type_context): Use switch statement, handle
13639 TRANSLATION_UNIT_DECL.
13640 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
13641 (TRANSLATION_UNIT_DECL): New kind of tree.
13642 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
13643 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
13644 * doc/invoke.texi: Make attempt to document new functionality.
13645
13646 2003-05-19 Per Bothner <bothner@apple.com>
13647
13648 * gcc.c (combine_inputs): New.
13649 (process_command): Set combine_inputs.
13650 (do_spec_1): Handle combine_inputs.
13651 (main): Likewise.
13652
13653 2003-07-10 James E Wilson <wilson@tuliptree.org>
13654
13655 PR optimization/9745
13656 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
13657 loop_insn_emit_before.
13658 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13659
13660 2003-07-10 Zack Weinberg <zack@codesourcery.com>
13661
13662 * cppcharset.c: Fix comment.
13663 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
13664 (EILSEQ): #define to EINVAL if not already defined.
13665 (convert_using_iconv): #if out when !HAVE_ICONV.
13666 (init_iconv_desc): Handle !HAVE_ICONV here...
13667 (cpp_init_iconv): ...not here.
13668
13669 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
13670
13671 * common.opt: More --help messages.
13672 * opts.c (print_help): Use puts().
13673 * toplev.c (f_options): Remove help text.
13674 (display_help): Don't dump f_options.
13675
13676 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
13677
13678 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
13679 Move i?86-*-interix* to the don't-fix list.
13680 * fixinc/fixinc.interix: Delete with extreme prejudice.
13681
13682 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
13683
13684 PR bootstrap/10758
13685 * doc/install.texi: Document requirements for ia64-*-hpux* target.
13686
13687 2003-07-10 Roger Sayle <roger@eyesopen.com>
13688
13689 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
13690
13691 2003-07-10 Zack Weinberg <zack@codesourcery.com>
13692
13693 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
13694 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
13695 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
13696 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
13697 convert_no_conversion, convert_using_iconv): New functions.
13698 (APPLY_CONVERSION): New macro.
13699 (struct conversion, conversion_tab): New data structure.
13700 (init_iconv_desc): Check conversion_tab for a custom conversion
13701 primitive before trying to use iconv.
13702 (convert_cset): Deleted.
13703 (cpp_init_iconv): Use UTF- terminology, not UCS-.
13704 (_cpp_destroy_iconv): Update to match.
13705 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
13706 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
13707 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
13708 (_cpp_interpret_string_notranslate): New function, moved here
13709 from cpplib.c.
13710
13711 * cpphash.h (convert_f, struct cset_converter): New types.
13712 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
13713 are now struct cset_converter, not bare iconv_t.
13714 Update prototypes.
13715 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
13716 all callers changed.
13717
13718 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
13719
13720 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
13721 to opts.sh command line.
13722 * opts.sh: Write to temporary files with a move-if-change at the end.
13723
13724 2003-07-10 Denis Chertykov <denisc@overta.ru>
13725 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13726
13727 * combine.c (gen_binary): Handle the CLOBBER rtx and
13728 don't build a binary operation with it.
13729
13730 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13731
13732 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
13733 store_killed_after, store_killed_before): Keep track of the correct
13734 dependency function to use.
13735
13736 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
13737 * toplev.c (do_compile): Don't try to open dump files before
13738 lang_dependent_init initializes dump_base_name.
13739
13740 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13741
13742 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
13743 Use ARRAY_SIZE.
13744 * config/frv/frv.c (frv_expand_builtin): Likewise.
13745 * config/sh/sh.c (sh_media_init_builtins): Likewise.
13746
13747 2003-07-09 Mark Mitchell <mark@codesourcery.com>
13748
13749 PR c++/10032
13750 * doc/invoke.texi (C++ Dialect Options): Change documentation of
13751 -fpermissive.
13752
13753 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
13754
13755 * tm.texi (RETURN_ADDR_OFFSET): Document.
13756
13757 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
13758
13759 * gcov-io.h: Update documentation.
13760 (GCOV_UNSIGNED2STRING): New.
13761 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
13762 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
13763 GCOV_TAG_SUMMARY_LENGTH): Adjust.
13764 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
13765 GCOV_TAG_COUNTER_NUM): New.
13766 (GCOV_BLOCK_SIZE): Number of words.
13767 (gcov_var): Adjust buffer type.
13768 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
13769 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
13770 count, not byte count.
13771 (gcov_open): Adjust overread init.
13772 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
13773 gcov_write_string, gcov_write_tag, gcov_write_length,
13774 gcov_write_tag_length): Adjust.
13775 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
13776 (gcov_sync, gcov_seek): Adjust.
13777 * gcov-dump.c (print_usage): Show gcc version only.
13778 (dump_file): Use GCOV_UNSIGNED2STRING.
13779 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
13780 * gcov.c (print_version): Show gcc version only.
13781 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
13782 GCOV_TAG_*_NUM macros.
13783 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
13784 GCOV_TAG_COUNTER_LENGTH.
13785 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
13786 Use GCOV_TAG_COUNTER_NUM.
13787 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
13788 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
13789
13790 2003-07-10 Andreas Schwab <schwab@suse.de>
13791
13792 * gcov-dump.c (dump_file): Fix missing address operator.
13793
13794 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
13795
13796 PR c/11449
13797 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
13798 of HOST_WIDE_INT.
13799 (fold_single_bit_test): If sign_bit_p() fails, assume that the
13800 bit being tested is not a sign bit.
13801
13802 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
13803
13804 * config/h8300/h8300.md (a peephole2): New.
13805
13806 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
13807
13808 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
13809 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
13810 from ld-linux.so.2 to ld.so.1.
13811 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
13812 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
13813 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
13814 nor -Wl,-rpath-link.
13815 (LIB_SPEC): Add -rpath-link if !static.
13816 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
13817 * config/mn10300/mn10300.c (mn10300_protect_label): New
13818 variable.
13819 * config/mn10300/linux.h (PRINT_OPERAND,
13820 PRINT_OPERAND_ADDRESS): Set it during their execution.
13821 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
13822 mn10300_protect_label is set.
13823 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
13824 -Wl,-rpath-link.
13825 (LIB_SPEC, STARTFILE_SPEC): Define.
13826 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
13827 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
13828 FLOAT_BIT_ORDER_MISMATCH.
13829 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
13830 * config.gcc (am33_2.0-*-linux*): Added.
13831 * config/mn10300/linux.h: New.
13832 * config/mn10300/t-linux: New.
13833
13834 2003-07-10 Andreas Jaeger <aj@suse.de>
13835
13836 * fold-const.c: Properly wrap prototypes.
13837
13838 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
13839
13840 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
13841 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
13842 Moved from...
13843 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
13844 * config/mn10300/mn10300.h: GTY-declare it.
13845 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
13846 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
13847 prototype. Use incoming RTL argument.
13848 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
13849 * config/mn10300/mn10300.md (int_label): Move C statements...
13850 (GOTaddr2picreg): ... here.
13851 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
13852 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
13853 * config/mn10300/mn10300.c (mn10300_encode_section_info):
13854 ... here. New function.
13855 (TARGET_ENCODE_SECTION_INFO): Define to it.
13856 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
13857 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
13858 pattern name.
13859 (mn10300_loadPC): Define as insn splittable after reload.
13860 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
13861 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
13862 be defined in .rodata even in PIC, now that the assembler
13863 supports that.
13864 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
13865 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
13866 symbol take an underscore prefix.
13867 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
13868 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
13869 legitimize_pic_address): Declare.
13870 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
13871 the PIC register as fixed.
13872 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
13873 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
13874 PIC.
13875 (LEGITIMATE_PIC_OPERAND_P): Define.
13876 (PIC_OFFSET_TABLE_REGNUM): Define.
13877 (GOT_SYMBOL_NAME): Define.
13878 (SYMBOLIC_CONST_P): Define.
13879 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
13880 symbols.
13881 (MN10300_GLOBAL_P): Test it.
13882 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
13883 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
13884 * config/mn10300/mn10300.c (print_operand): Handle unspec.
13885 (expand_prologue): Set PIC register.
13886 (call_address_operand): Don't match SYMBOL_REFs in PIC.
13887 (legitimize_address): Call legitimize_pic_address.
13888 (legitimize_pic_address): New fn.
13889 (legitimate_pic_operand_p): New fn.
13890 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
13891 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
13892 UNSPEC_PLT): New constants.
13893 (pop_pic_reg): New insn.
13894 (movsi): Adjust non-PIC addresses.
13895 (builtin_setjmp_receiver): Restore the PIC register.
13896 (casesi): New insn.
13897 (call): Adjust non-PIC addresses.
13898 (int_label, GOTaddr2picreg): New expands.
13899 (am33_loadPC): New insn.
13900 (mn10300_loadPC): New expand.
13901 (call_next_insn): New insn.
13902 (add_GOT_to_pic_reg): New expand.
13903 (symGOT2reg, symGOT2reg_i): New expands.
13904 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
13905 (sym2PIC, sym2PLT): New expands.
13906
13907 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
13908
13909 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
13910 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
13911 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
13912 to flag_unsafe_math_optimizations.
13913 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
13914 * config/mn10300/mn10300.c (expand_prologue): Mark
13915 FP-register-saving insns as frame-related.
13916 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
13917 * config/mn10300/mn10300.c
13918 (mn10300_get_live_callee_saved_regs): Don't search past
13919 LAST_EXTENDED_REGNUM.
13920 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
13921 * config/mn10300/mn10300.md: Remove excessive line breaks from
13922 `@' output patterns that were accounted as additional
13923 alternatives.
13924 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
13925 Re-introduce changes accidentally removed in Richard Sandiford's
13926 2000-12-05's patch.
13927 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
13928 Re-instate am33-2 lost in merge from net GCC.
13929 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
13930 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
13931 floating-point registers.
13932 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
13933 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
13934 pessimizations that had gone in on 2000-05-08.
13935 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
13936 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
13937 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
13938 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
13939 operand 0.
13940 * (movhi): Likewise.
13941 * (movsi): Likewise.
13942 * (movsf): Likewise.
13943 * (movdi): Likewise.
13944 * (movdf): Likewise.
13945 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
13946 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
13947 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
13948 (expand_prologue, expand_epilogue): Save and restore FP regs.
13949 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
13950 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
13951 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
13952 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
13953 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
13954 Do not clobber cc0.
13955 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
13956 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
13957 Discourage the two-argument, longer opcodes.
13958 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
13959 ones.
13960 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
13961 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
13962 * config/mn10300/mn10300.md (cmpsf): New pattern.
13963 (branch): Test mdep.fpCC and output fbCC.
13964 * config/mn10300/mn10300.c (print_operand): Output conditions.
13965 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
13966 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
13967 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
13968 mulsf3, divsf3): Use the `F' constraint for FP values.
13969 * config/mn10300/mn10300.c (const_1f_operand): New function.
13970 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
13971 * config/mn10300/mn10300.md (sqrtsf2): New expand.
13972 (rsqrtsf2): New insn.
13973 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
13974 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
13975 previous check-in.
13976 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
13977 * config/mn10300/mn10300.md (abssf2, negdf2): On
13978 TARGET_AM33_2, expand to...
13979 (abssf2_am33_2, negdf2_am33_2): New insns.
13980 (addsf3, subsf3, mulsf3, divsf3): Likewise.
13981 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
13982 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
13983 movdi, movdf): Added FP regs.
13984 * invoke.texi (-mam33-2, -mno-am33-2): Document.
13985 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
13986 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
13987 New macros.
13988 (REGNO_AM33_2_FP_P): Renamed to...
13989 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
13990 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
13991 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
13992 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
13993 regs from GENERAL_REGS.
13994 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
13995 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
13996 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
13997 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
13998 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
13999 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
14000 as FP_REGS.
14001 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
14002 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
14003 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
14004 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
14005 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
14006 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
14007 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
14008 AM33/2.0 floating-point registers.
14009 (CONDITIONAL_REGISTER_USAGE): Adjust.
14010 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
14011 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
14012 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
14013 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
14014 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
14015 (MULTILIB_DIRNAMES): Likewise.
14016 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
14017 `__AM33_2__' when `-mam33-2' is given.
14018 (TARGET_AM33_2): Define.
14019 (TARGET_SWITCHES): Adjust.
14020 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
14021 when appropriate.
14022
14023 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
14024
14025 * doc/install.texi: Add missing @.
14026
14027 2003-07-09 Bob Wilson <bob.wilson@acm.org>
14028
14029 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
14030
14031 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
14032
14033 PR/11144
14034 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
14035
14036 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
14037
14038 PR bootstrap/11043
14039 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
14040 "x-crtfini.o" with "crtinit.o", "crtfini.o".
14041
14042 * fixinc/inclhack.def (limits_ifndefs): Add select test.
14043 * fixinc/fixincl.x: Rebuild.
14044
14045 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
14046 * fixinc/fixincl.x: Rebuild.
14047
14048 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
14049
14050 * doc/install.texi (Configuration): Document the valgrind option
14051 to --enable-checking.
14052
14053 2003-07-09 Jan Hubicka <jh@suse.cz>
14054
14055 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
14056
14057 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14058
14059 * c-lex.c (cb_ident): Cast cstr.text to const char *.
14060
14061 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
14062
14063 * gcov-io.h: Update documentation.
14064 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
14065 GCOV_NOTE_MAGIC.
14066 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
14067 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
14068 (struct gcov_var): Change buffer's type. Add endian flag.
14069 (gcov_open): Remove mode in libgcov.
14070 (gcov_magic): Prototype.
14071 * gcov-io.c (from_file): New.
14072 (gcov_open): Clear endian flag.
14073 (gcov_magic): New.
14074 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
14075 pointers.
14076 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
14077 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
14078 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
14079 * gcov-iov.c (main): Correct cast.
14080 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
14081 conversion.
14082 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
14083 (coverage_init): Use GCOV_NOTE_SUFFIX.
14084 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
14085 Rename to gcov_version, and return flag.
14086 (gcov_exit): Use gcov_version.
14087 (__gcov_init): Use gcov_version.
14088 * Makefile.in (coverageexts): Update.
14089 * gcov.c (print_version): Remove endianness conversion.
14090 (create_file_names): Use GCOV_NOTE_SUFFIX.
14091 (read_graph_file): Use gcov_magic.
14092 (read_count_file): Likewise.
14093 * gcov-dump.c (dump_file): Remove endianness conversion, use
14094 gcov_magic.
14095
14096 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
14097
14098 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
14099 coverage is on.
14100 * configure: Regenerated.
14101 * Makefile.in (ALL_CFLAGS): Correct its comment.
14102
14103 2003-07-08 Mark Mitchell <mark@codesourcery.com>
14104
14105 * fold-const.c (make_range): Do not access operand 1 for a
14106 zero-operand operator.
14107
14108 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
14109
14110 * toplev.c (warn_dummy, W_options): Die.
14111 (display_help): Don't print W_options.
14112 * common.opt: Add W_options help from toplev.c.
14113
14114 2003-07-09 Andreas Jaeger <aj@suse.de>
14115
14116 * opts.c (wrap_help): Only pass int arguments as arguments to
14117 printf's '*' modifier. Change argument of function.
14118
14119 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
14120
14121 * doc/invoke.texi: Fix misspelling of "@item".
14122
14123 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
14124
14125 * config/i386/i386.md: Remove an old comment about
14126 NOTICE_UPDATE_CC.
14127
14128 2003-07-09 Jan Hubicka <jh@suse.cz>
14129
14130 * cgraph.c (cgraph_node_name): New function.
14131 (dump_cgraph): Use it.
14132 * cgraph.h (cgraph_dump_file): Declare.
14133 (cgraph_node_name): Declare.
14134 * cgraphunit.c: Include timevar.h
14135 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
14136 (cgraph_optimize_function): Use TV_INTEGRATION.
14137 (cgraph_mark_local_functions): reorganize dumps.
14138 (cgraph_mark_functions_to_inline_once): Likewise.
14139 (cgraph_optimize): Likewise; use timevar.
14140 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
14141 * toplev.c (dump_file_index): Add DFI_cgraph.
14142 (dump_file_info): Likewise.
14143 (cgraph_dump_file): New global variable.
14144 (do_compile): Open and close cgraph dump.
14145 * invoke.texi (-d): Document new flag; renumber.
14146
14147 2003-07-08 Roger Sayle <roger@eyesopen.com>
14148
14149 PR c/11370
14150 * calls.c (emit_call_1): Don't bother popping the arguments off of
14151 the stack after a noreturn function call; The adjustment is dead.
14152 (expand_call): Likewise.
14153
14154 2003-07-08 Geoffrey Keating <geoffk@apple.com>
14155
14156 * expr.c (MOVE_MAX_PIECES): Move from here...
14157 * defaults.h (MOVE_MAX_PIECES): ... to here.
14158
14159 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
14160
14161 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
14162
14163 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14164
14165 * genattr.c (internal_dfa_insn_code): Don't prototype.
14166 * genattrtab.c (attr_desc): Add `static_p' field.
14167 (expand_units): Make blockage range and ready cost functions
14168 static.
14169 (write_attr_get): Don't add extern prototypes in C file. Mark
14170 static functions as appropriate.
14171 (find_attr, make_internal_attr): Initialize static_p.
14172 * genattrtab.h (ATTR_STATIC): New macro.
14173 * genautomata.c (output_internal_reset_func): Mark output function
14174 as inline.
14175 (make_internal_dfa_insn_code_attr): Mark output function as static.
14176
14177 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14178
14179 * genattrtab.h: Add new macros for attr `special' flags.
14180 * genattrtab.c (attr_desc): Reorder/resize fields better.
14181 Use attr `special' macros in all calls to make_internal_attr.
14182 * genautomata.c: Likewise.
14183
14184 2003-07-09 Jan Hubicka <jh@suse.cz>
14185
14186 * c-common.c (c_estimate_num_insns_1): New static function.
14187 (c_estimate_num_insns): New global function.
14188 * c-common.h (DECL_NUM_STMTS): Rename to...
14189 (DECL_ESTIMATED_INSNS): ... this.
14190 (c_estimate_num_insns): Declare.
14191 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
14192 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
14193 * c-semantics.c (add_stmt): Do not account statements.
14194 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
14195 New.
14196 * langhooks.h (lang_hooks_for_tree_inlining): Add
14197 estimate_num_insns
14198 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
14199 to 100.
14200 (max-inline-insns): set to 300.
14201 (min-inline-insns): set to 10.
14202 * tree-inline.c (struct inline_data): Rename inlined_stmts to
14203 inlined-insns.
14204 (INSNS_PER_STMT): Kill.
14205 (inlinable_function_p): Compute and store body size.
14206 (expand_call_inline): Likewise.
14207 (optimize_inline_calls): Likewise.
14208
14209 2003-07-08 James E Wilson <wilson@tuliptree.org>
14210
14211 PR target/10021
14212 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
14213 loop over new variable t2 instead of t.
14214
14215 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
14216
14217 PR bootstrap/11455
14218 * config/i386/winnt.c: Replace use of error(), warning() with
14219 error_with_decl(), warning_with_decl(), throughout.
14220
14221 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
14222
14223 * opts.c (wrap_help): Use unsigned int, not size_t.
14224
14225 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
14226
14227 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
14228 as .file/.loc directives are incompatible with linker relaxation.
14229
14230 2003-07-08 Zack Weinberg <zack@codesourcery.com>
14231
14232 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
14233 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
14234 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
14235 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
14236 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
14237 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
14238 Escape { and } characters which are not part of range expressions.
14239 * fixinc/fixincl.x: Regenerate.
14240 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
14241
14242 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
14243
14244 PR c/1687
14245 * tree-inline.c (find_alloca_call): Use
14246 walk_tree_without_duplicates, instead of walk_tree.
14247 (find_builtin_longjmp_call): Likewise.
14248 * c-objc-common.c (c_cannot_inline_fn): Likewise.
14249 * c-semantics.c (find_reachable_label): Likewise.
14250
14251 2003-07-08 Jakub Jelinek <jakub@redhat.com>
14252
14253 PR c/11420
14254 * config/i386/i386.c (ix86_check_movabs): New function.
14255 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
14256 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
14257 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
14258
14259 2003-07-08 Chris Demetriou <cgd@broadcom.com>
14260
14261 * Makefile.in (install-po): Cope with empty CATALOGS.
14262
14263 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
14264
14265 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14266 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
14267 (SECTION_FUNCTION_TEMPLATE): Delete.
14268 * config/mips/elf.h: As for elf64.h.
14269 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
14270 * config/mips/linux.h: As for elf.h
14271 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14272 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
14273 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
14274 of in_sdata from current_section_name and current_section_flags.
14275 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14276 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
14277 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
14278 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
14279 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
14280 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
14281 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
14282 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
14283 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
14284 (override_options): Remove setting of MASK_GPOPT.
14285 (mips_output_external): Use mips_in_small_data_p to check whether a
14286 symbol needs an .extern directive. Don't emit such directives for
14287 TARGET_EXPLICIT_RELOCS.
14288 (mips_declare_object): Update accordingly.
14289 (mips_select_rtx_section): Call named_section rather than
14290 SMALL_DATA_SECTION.
14291 (mips_select_section): Use default_elf_section_section for everything
14292 except .text string constants.
14293 (mips_in_small_data_p): New function.
14294 (mips_encode_section_info): Remove small data handling.
14295 (mips_unique_section): Delete.
14296 (iris6_section_type_flags): New function.
14297 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
14298
14299 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14300
14301 PR Target/11453
14302 * pa.md: Disparage all mtsar constraints.
14303 (extzv, extv, insv): Don't fail on length of {32|64}.
14304
14305 2003-07-08 Zack Weinberg <zack@codesourcery.com>
14306
14307 * system.h: Poison MAP_CHARACTER.
14308 * config/i370/i370-protos.h (mvs_map_char): Delete.
14309 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
14310 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
14311 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
14312
14313 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
14314
14315 * toplev.c (randomize): Correct call to time().
14316
14317 2003-07-08 Jakub Jelinek <jakub@redhat.com>
14318
14319 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
14320 REG_EQUIV notes as well.
14321
14322 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
14323
14324 * doc/md.texi: Fix the description of addmodecc.
14325
14326 2003-07-07 Zack Weinberg <zack@codesourcery.com>
14327
14328 * Makefile.in (top_builddir): Set to "..", not ".".
14329 (INTLLIBS, INTLDEPS): Delete.
14330 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
14331 (LIBDEPS): Add $(LIBICONV_DEP).
14332 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
14333 (INCLUDES): Replace -I../intl with @INCINTL@.
14334 ($(top_builddir)/intl/libintl.a): Delete rule.
14335 (stage2-start, stage3-start, stage4-start, stageprofile-start,
14336 stagefeedback-start): Use $$ for variable to be evaluated by
14337 shell, not make.
14338 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
14339 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
14340 * aclocal.m4: sinclude ../config/progtest.m4. Add
14341 contents of lcmessage.m4 from gettext distro.
14342 * configure.in: Check for wchar.h and setlocale. Set
14343 LIBICONV_DEP to the empty string and substitute it.
14344 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
14345 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
14346 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
14347 in $LIBINTL, to avoid linking it twice.
14348 * configure, config.in: Regenerate.
14349
14350 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
14351
14352 * fixinc/mkfixinc.sh: Remove winnt support.
14353 * fixinc/fixinc.winnt: Delete with extreme prejudice.
14354
14355 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
14356
14357 * Makefile.in: Update.
14358 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
14359 * c.opt: Update documentation.
14360 * common.opt: Add some help text.
14361 * opts.c: Include intl.h.
14362 (wrap_help, print_help): New.
14363 (find_opt, handle_option, common_handle_option): opt_text now
14364 contains the '-'. Use print_help to output help.
14365 * opts.h (struct cl_option): New member "help".
14366 * opts.sh: Update to handle help text output and to prepend
14367 options with '-'.
14368 * toplev.c (display_help): Remove some help text.
14369
14370 2003-07-07 David Edelsohn <edelsohn@gnu.org>
14371 Fariborz Jahanian <fjahanian@apple.com>
14372
14373 * configure.in: Test for PowerPC mfcr field support in assembler.
14374 * config.in, configure: Regenderated.
14375
14376 * config/rs6000/power4.md: Add mfcrf reservation.
14377 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
14378 * config/rs6000/rs6000.c (mfcr_operation): Define.
14379 (print_operand): Add 'Q' case for mfcrf.
14380 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
14381 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
14382 (movcc_internal1): Emit optional field operand for mfcr and set
14383 "type" attribute appropriately.
14384 (mfcr SCC): Likewise.
14385 (movesi_from_cr_one): New.
14386
14387 2003-07-07 Roger Sayle <roger@eyesopen.com>
14388
14389 * config/i386/i386.md: Correct check-in of incorrect version.
14390
14391 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14392
14393 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
14394 adjacent stdio calls.
14395 * c-decl.c (c_print_identifier): Likewise.
14396 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
14397 * print-rtl.c (print_rtx): Likewise.
14398 * print-tree.c (print_node_brief, print_node): Likewise.
14399 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
14400
14401 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
14402 * config.in, configure: Regenerated.
14403
14404 2003-07-07 Roger Sayle <roger@eyesopen.com>
14405
14406 PR target/10979
14407 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
14408 Changed to define_expand patterns that copy operand[1] to prevent
14409 it from being clobbered before emitting an atan2?f3_1 insn.
14410 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
14411 patterns that actually specify the behaviour of x87's FPATAN.
14412
14413 2003-07-07 Jakub Jelinek <jakub@redhat.com>
14414
14415 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
14416 clearing of SYMBOL_FLAG_LOCAL bit.
14417 If vcall_offset fits into signed 16-bit immediate, use
14418 one instruction for both addition and load.
14419
14420 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
14421
14422 * opts.c (common_handle_option): Correct handling of the
14423 -falign- switches that do and don't take an argument.
14424
14425 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
14426
14427 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
14428 today.
14429 (pushhi1_h8300hs): Likewise.
14430
14431 2003-07-07 Andreas Jaeger <aj@suse.de>
14432
14433 * genextract.c: Convert remaining prototypes to ISO C90.
14434
14435 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
14436 * fold-const.c (fold_single_bit_test): Likewise.
14437 * diagnostic.c (default_diagnostic_finalizer): Likewise.
14438 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
14439
14440 * gengtype.c (write_array): Generate ISO C90 prototypes.
14441
14442 * genflags.c (gen_proto): Generate ISO C90 prototypes.
14443
14444 2003-07-07 Roger Sayle <roger@eyesopen.com>
14445
14446 PR optimization/11059
14447 * expr.c (can_store_by_pieces): Return true if length is zero.
14448 (store_by_pieces): If length is zero and endp is two, abort,
14449 othwerise, if length is zero and endp is not two, return "to".
14450 (clear_by_pieces): Do nothing if length is zero.
14451 (clear_storage): Do nothing if length is zero.
14452 (store_constructor): Simplify code when size is zero, or the
14453 target has already been cleared. This avoids emitting a
14454 blockage instruction when initializing empty structures.
14455
14456 2003-07-07 Andreas Jaeger <aj@suse.de>
14457
14458 * mips-tfile.c: Convert prototypes to ISO C90.
14459 * mips-tdump.c: Convert prototypes to ISO C90.
14460
14461 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
14462
14463 * rtl.h (emit_line_note): Take a location_t.
14464 (emit_line_note_force): Remove.
14465 (set_file_and_line_for_statement): Take a location_t.
14466 * tree.g (emit_line_note): Take a location_t.
14467 * emit-rtl.c (emit_line_note): Take a location_t.
14468 (emit_line_note_force): Remove.
14469 * function.c (init_function_start): Adjust emit_line_note call.
14470 (expand_function_end): Use force_next_line_note, not
14471 emit_line_note_force.
14472 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
14473 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
14474 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
14475 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
14476 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
14477 genrtl_continue_stmt, genrtl_switch_stmt,
14478 genrtl_asm_stmt): Likewise.
14479 * expr.c (expand_expr): Likewise.
14480 * integrate.c (expand_inline_function): Likewise.
14481 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
14482 (expand_decl_init): Adjust emit_line_note call.
14483
14484 2003-07-07 Dale Johannesen <dalej@apple.com>
14485
14486 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
14487
14488 2003-07-07 Andreas Jaeger <aj@suse.de>
14489
14490 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
14491 * config/i386/i386.c: Likewise.
14492
14493 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
14494
14495 * config/h8300/h8300.md: Use gen_int_mode instead of
14496 GEN_INT (trunc_int_for_mode (...)).
14497
14498 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
14499
14500 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
14501 2 bytes and then subtract 2 from the stack pointer.
14502 (pushhi1_h8300hs): Likewise.
14503
14504 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
14505
14506 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
14507 -frandom-seed.
14508 * configure: Regenerated.
14509 * Makefile.in: Remove extraneous comment.
14510 * toplev.c (randomize): Protect against potential multiple calls.
14511 * doc/invoke.texi (-frandom-seed): Document use for in coverage
14512 files.
14513
14514 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14515 Eric Botcazou <ebotcazou@libertysurf.fr>
14516
14517 PR optimization/11198
14518 * alias.c (objects_must_conflict_p): Return 1 if the types have
14519 the same alias set, not if the alias sets only conflict.
14520
14521 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
14522
14523 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
14524 (convert_cset): Change inbuf to type ICONV_CONST char.
14525 * Makefile.in (LIBS): Add LIBICONV.
14526
14527 * doc/invoke.texi (-falign-functions): Document that
14528 when n is zero then a machine-dependent default is used.
14529 (-falign-labels): Document that when n is zero then a
14530 machine-dependent default is used and that -falign-labels =1
14531 is equivalent to -fno-align-labels.
14532 (-falign-loops): Likewise.
14533 (-falign-jumps): Likewise.
14534
14535 2003-07-06 Art Haas <ahaas@airmail.net>
14536
14537 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
14538 initializer syntax.
14539
14540 2003-07-06 James E Wilson <wilson@tuliptree.org>
14541
14542 PR optimization/9812
14543 * rtl.h (mem_for_const_double): Delete prototype.
14544 * varasm.c (mem_for_const_double): Delete function.
14545 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
14546 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
14547 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
14548 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
14549 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
14550 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
14551 comment about confused support for XFmode constants.
14552
14553 2003-07-07 Jan Hubicka <jh@suse.cz>
14554
14555 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
14556
14557 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
14558
14559 * config/h8300/h8300.c: Fix comment typos.
14560 * config/h8300/h8300.md: Likewise.
14561 * config/i386/athlon.md: Likewise.
14562 * config/i386/i386.c: Likewise.
14563 * config/i386/pentium.md: Likewise.
14564 * config/ia64/ia64.c: Likewise.
14565 * config/ia64/itanium1.md: Likewise.
14566 * config/ia64/itanium2.md: Likewise.
14567 * config/m32r/m32r.md: Likewise.
14568 * config/m68hc11/m68hc11.c: Likewise.
14569 * config/mcore/mcore.c: Likewise.
14570 * config/mips/sr71k.md: Likewise.
14571 * config/mips/t-iris5-as: Likewise.
14572 * config/mmix/mmix.h: Likewise.
14573 * config/ns32k/ns32k.h: Likewise.
14574 * config/ns32k/NOTES: Fix a typo.
14575
14576 2003-07-06 Andreas Jaeger <aj@suse.de>
14577
14578 * stmt.c: Convert remaining prototypes to ISO C90.
14579 * cfglayout.c: Likewise.
14580 * dbxout.c: Likewise.
14581 * gcc.c: Likewise.
14582 * genemit.c: Likewise.
14583
14584 * basic-block.h: Convert prototypes to ISO C90.
14585 * c-parse.in: Likewise.
14586 * c-pragma.h: Likewise.
14587 * c-typeck.c: Likewise.
14588 * cfghooks.h: Likewise.
14589 * cfgloopanal.c: Likewise.
14590 * dbxout.h: Likewise.
14591 * debug.h: Likewise.
14592 * dwarf2asm.h: Likewise.
14593 * gcov.c: Likewise.
14594 * gengtype-lex.l: Likewise.
14595 * sched-int.h: Likewise.
14596 * timevar.c: Likewise.
14597
14598 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
14599
14600 * c-common.h (c_comon_handle_filename,
14601 c_common_missing_arguement): New.
14602 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
14603 LANG_HOOKS_MISSING_ARGUMENT): New.
14604 * c-opts.c (missing_arg): Rename c_common_missing_argument,
14605 update to be an appropriate langhook.
14606 (c_common_handle_option): Don't handle filenames.
14607 (c_common_handle_filename): New.
14608 * hooks.c (hook_void_constcharptr,
14609 hook_bool_constcharptr_size_t_false): New.
14610 * hooks.h (hook_void_constcharptr,
14611 hook_bool_constcharptr_size_t_false): New.
14612 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
14613 LANG_HOOKS_MISSING_ARGUMENT): New.
14614 (LANG_HOOKS_INITIALIZER): Update.
14615 * langhooks.h (struct lang_hooks): Add handle_filename and
14616 missing_argument.
14617 * opts.c (handle_option): Don't handle filenames here, but ...
14618 (handle_options): ... here.
14619 (common_handle_option): Don't handle missing arguments here.
14620 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
14621 LANG_HOOKS_MISSING_ARGUMENT): New.
14622
14623 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
14624
14625 * Makfile.in: Remove traces of mbchar.
14626 * c-parse.in (MULTIBYTE_CHARS): Remove.
14627 * config.in (MULTIBYTE_CHARS): Remove.
14628 * configure: Remove --enable-mbchar.
14629 * configure.in: Remove --enable-mbchar.
14630 * mbchar.c, mbchar.h: Remove.
14631 * system.h: Poison MULTIBYTE_CHARS.
14632 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
14633 * config/linux.h (MULTIBYTE_CHARS): Remove.
14634 * config/svr4.h (MULTIBYTE_CHARS): Remove.
14635 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
14636
14637 2003-07-06 Andreas Jaeger <aj@suse.de>
14638
14639 * varray.c (varray_check_failed): Fix typo.
14640
14641 * unroll.c: Convert prototypes to ISO C90.
14642 * varasm.c: Likewise.
14643 * varray.c: Likewise.
14644 * varray.h: Likewise.
14645 * vmsdbgout.c: Likewise.
14646 * xcoffout.c: Likewise.
14647 * xcoffout.h: Likewise.
14648
14649 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
14650
14651 * gcov-io.h: Add a local time stamp.
14652 (struct gcov_info): Add stamp field.
14653 (gcov_truncate): New.
14654 * coverage.c (read_counts_file): Skip the stamp.
14655 (coverage_begin_output): Write the stamp.
14656 (build_gcov_info): Declare and init the stamp.
14657 (coverage_finish): Only unlink data file, if stamp is zero.
14658 * gcov-dump.c (dump_file): Dump the stamp.
14659 * gcov.c (bbg_stamp): New.
14660 (release_structures): Clear bbg_stamp.
14661 (read_graph_file): Read stamp.
14662 (read_count_file): Check stamp.
14663 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
14664
14665 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
14666
14667 * tree.h (default_flag_random_seed): Remove.
14668 * toplev.h (local_tick): Declare.
14669 * tree.c (flag_random_seed, default_flag_random_seed): Move to
14670 toplev.c.
14671 (append_random_chars): Don't call default_flag_random_seed.
14672 * toplev.c (flag_random_seed): Define here. Set local_tick.
14673 (local_tick): Define.
14674 (randomize): New, moved from tree.c.
14675 (print_switch_values): Adjust.
14676 (toplev_main): Call randomize.
14677
14678 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
14679
14680 * tree.h (crc32_string): Declare.
14681 * tree.c (append_random_chars): Remove.
14682 (crc32_string): New.
14683 (get_file_function_name_long): Use crc32_string here.
14684
14685 2003-07-06 Andreas Jaeger <aj@suse.de>
14686
14687 * gcc.c: Convert prototypes to ISO C90.
14688 * gcc.h: Likewise.
14689 * gcov-dump.c: Likewise.
14690 * gcov-iov.c: Likewise.
14691 * gcse.c: Likewise.
14692 * genattrtab.h: Likewise.
14693 * ggc.h: Likewise.
14694 * global.c: Likewise.
14695 * graph.c: Likewise.
14696 * graph.h: Likewise.
14697 * hosthooks.h: Likewise.
14698 * hooks.h: Likewise.
14699 * hooks.c: Likewise.
14700 * hashtable.h: Likewise.
14701 * hashtable.c: Likewise.
14702 * haifa-sched.c: Likewise.
14703 * integrate.h: Likewise.
14704 * integrate.c: Likewise.
14705 * input.h: Likewise.
14706 * ifcvt.c: Likewise.
14707 * jump.c: Likewise.
14708 * langhooks-def.h: Likewise. Add extern to prototypes.
14709 * langhooks.c: Likewise.
14710 * langhooks.h: Likewise.
14711 * lcm.c: Likewise.
14712 * local-alloc.c: Likewise.
14713 * loop-init.c: Likewise.
14714 * loop-unroll.c: Likewise.
14715 * loop-unswitch.c: Likewise.
14716 * loop.c: Likewise.
14717 * loop.h: Likewise. Add extern to prototypes.
14718 * machmode.h: Likewise.
14719 * main.c: Likewise.
14720 * mbchar.c: Likewise.
14721 * mbchar.h: Likewise.
14722 * mkdeps.c: Likewise.
14723 * mkdeps.h: Likewise.
14724 * optabs.c: Likewise.
14725 * optabs.h: Likewise.
14726 * output.h: Likewise.
14727 * gccspec.c: Likwise.
14728 * postreload.c: Likewise.
14729 * prefix.c: Likewise.
14730 * prefix.h: Likewise.
14731 * print-rtl.c: Likewise.
14732 * print-tree.c: Likewise.
14733 * profile.c: Likewise.
14734 * read-rtl.c: Likewise.
14735 * real.c: Likewise.
14736 * real.h: Likewise.
14737 * recog.c: Likewise.
14738 * recog.h: Likewise.
14739 * reg-stack.c: Likewise.
14740 * regclass.c: Likewise.
14741 * regmove.c: Likewise.
14742 * regrename.c: Likewise.
14743 * regs.h: Likewise.
14744 * reload.c: Likewise.
14745 * reload.h: Likewise.
14746 * reload1.c: Likewise.
14747 * reorg.c: Likewise.
14748 * resource.c: Likewise.
14749 * resource.h: Likewise.
14750 * rtl-error.c: Likewise.
14751 * rtl.c: Likewise.
14752 * rtl.h: Likewise.
14753 * rtlanal.c: Likewise.
14754 * sbitmap.c: Likewise.
14755 * sbitmap.h: Likewise.
14756 * scan-decls.c: Likewise.
14757 * scan.c: Likewise.
14758 * sched-deps.c: Likewise.
14759 * sched-ebb.c: Likewise.
14760 * sched-int.h: Likewise.
14761 * sched-rgn.c: Likewise.
14762 * sched-vis.c: Likewise.
14763 * sibcall.c: Likewise.
14764 * simplify-rtx.c: Likewise.
14765 * sreal.c: Likewise.
14766 * sreal.h: Likewise.
14767 * ssa-ccp.c: Likewise.
14768 * ssa-dce.c: Likewise.
14769 * ssa.c: Likewise.
14770 * ssa.h: Likewise.
14771 * stack.h: Likewise.
14772 * stmt.c: Likewise.
14773 * stor-layout.c: Likewise.
14774 * stringpool.c: Likewise.
14775 * target.h: Likewise.
14776 * timevar.c: Likewise.
14777 * timevar.h: Likewise.
14778 * tlink.c: Likewise.
14779 * tracer.c: Likewise.
14780 * tree-inline.c: Likewise.
14781 * tree-inline.h: Likewise.
14782 * tree.c: Likewise.
14783 * tree.h: Likewise.
14784
14785 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14786
14787 * combine.c (nonzero_bits1): Fix a warning.
14788
14789 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14790
14791 * config/h8300/h8300.c (compute_mov_length): Correct the
14792 length of loading CONST0_RTX (SFmode).
14793
14794 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
14795
14796 * toplev.c (output_clean_symbol_name): Remove.
14797 * toplev.h (output_clean_symbol_name): Remove.
14798 * config/alpha/alpha.c (unicosmk_output_module_name): Use
14799 lbasename & clean_symbol_name.
14800
14801 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14802
14803 * ggc.h: Follow spelling conventions.
14804 * config/i386/i386.c: Likewise.
14805 * config/i386/winnt.c: Likewise.
14806 * config/rs6000/rs6000.c: Likewise.
14807
14808 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14809
14810 * bt-load.c: Fix comment typos.
14811 * c-incpath.c: Likewise.
14812 * cfg.c: Likewise.
14813 * cfgcleanup.c: Likewise.
14814 * cfgloop.h: Likewise.
14815 * cfgloopmanip.c: Likewise.
14816 * cfgrtl.c: Likewise.
14817 * diagnostic.h: Likewise.
14818 * dwarfout.c: Likewise.
14819 * emit-rtl.c: Likewise.
14820 * et-forest.c: Likewise.
14821 * et-forest.h: Likewise.
14822 * expr.c: Likewise.
14823 * gcse.c: Likewise.
14824 * genattr.c: Likewise.
14825 * jump.c: Likewise.
14826 * langhooks.h: Likewise.
14827 * local-alloc.c: Likewise.
14828 * loop-unroll.c: Likewise.
14829 * loop-unswitch.c: Likewise.
14830 * ra-build.c: Likewise.
14831 * regclass.c: Likewise.
14832 * regmove.c: Likewise.
14833 * rtl.def: Likewise.
14834 * rtlanal.c: Likewise.
14835 * sched-ebb.c: Likewise.
14836 * sched-rgn.c: Likewise.
14837 * simplify-rtx.c: Likewise.
14838 * ssa.c: Likewise.
14839 * tracer.c: Likewise.
14840 * tree.c: Likewise.
14841
14842 2003-07-05 Zack Weinberg <zack@codesourcery.com>
14843
14844 * cppcharset.c: Use the correct return type for the fallback iconv
14845 macro.
14846
14847 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14848
14849 Blame to Jan Hubicka <jh@suse.cz>
14850 * cfglayout.c (record_effective_endpoints): Split insns before
14851 first basic block correctly.
14852
14853 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14854
14855 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
14856 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
14857 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
14858
14859 2003-07-05 Andreas Jaeger <aj@suse.de>
14860
14861 * genattrtab.c (write_attr_get): Revert part of last patch to
14862 always write out a prototype.
14863
14864 * genemit.c (gen_split): Readd lost unused attributes in last
14865 patch.
14866
14867 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14868
14869 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
14870 different from header.
14871
14872 2003-07-05 Andreas Schwab <schwab@suse.de>
14873
14874 * config/m68k/m68k.c: Remove code protected by CRDS.
14875 * config/m68k/m68k.md: Likewise.
14876
14877 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
14878
14879 PR driver/11417
14880 * c-opts.c (permit_fortran_options): New.
14881 (c_common_init_options): Accept fortran front end options if
14882 it looks like we might be preprocessing Fortran.
14883 (c_common_handle_option): Don't reject switch if permit_fotran_options.
14884
14885 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14886
14887 * genattr.c (internal_dfa_insn_code): Output prototype.
14888 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
14889 * genautomata.c: Likewise.
14890 * genconditions.c: Likewise.
14891 * genemit.c: Likewise.
14892 * genextract.c: Likewise.
14893 * gengenrtl.c: Likewise.
14894 * gengtype.c: Likewise.
14895 * genopinit.c: Likewise.
14896 * genoutput.c: Likewise.
14897 * genpeep.c: Likewise.
14898 * genrecog.c: Likewise.
14899
14900 2003-07-04 Zack Weinberg <zack@codesourcery.com>
14901
14902 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
14903 (struct cpp_options): Add narrow_charset, wide_charset,
14904 bytes_big_endian fields. Remove EBCDIC field.
14905 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
14906
14907 * cpphash.h: Include <iconv.h> if we have it, otherwise
14908 provide a dummy definition of iconv_t.
14909 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
14910 (_cpp_valid_ucn): Update prototype.
14911 (_cpp_destroy_iconv): New prototype.
14912
14913 * doc/cpp.texi: Document character set handling.
14914 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
14915 * doc/extend.texi: Delete entire section on multiline strings.
14916 Rewrite section on __FUNCTION__ etc now that these are
14917 variables in C.
14918
14919 * cppucnid.tab, cppucnid.pl: New files.
14920 * cppucnid.h: New generated file.
14921 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
14922 (iconv_open, iconv, iconv_close): Provide dummy definitions
14923 if !HAVE_ICONV.
14924 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
14925 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
14926 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
14927 cpp_interpret_string, narrow_str_to_charconst,
14928 wide_str_to_charconst): New.
14929 (ucn_valid_in_identifier): Use a binary search through the
14930 ucnranges table defined in cppucnid.h, not a long chain of if
14931 statements.
14932 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
14933 character names are only valid in C++ and C99" to a warning.
14934 Issue the "meaning of \[uU] is different in traditional C"
14935 warning here. Take care not to let iconv see an invalid UCS
14936 value if we get a malformed UCN. Issue an error if we don't
14937 have iconv.
14938 (cpp_interpret_charconst): Moved here from cpplex.c. Use
14939 cpp_interpret_string to do the heavy lifting.
14940
14941 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
14942 narrow_charset, wide_charset fields of options structure.
14943 (cpp_destroy): Call _cpp_destroy_iconv.
14944 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
14945 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
14946 (cpp_interpret_charconst): Moved to cppcharset.c.
14947 * cpplib.c (dequote_string): Delete.
14948 (interpret_string_notranslate): New.
14949 (do_line, do_linemarker): Use interpret_string_notranslate.
14950
14951 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
14952
14953 * c-common.c (fname_string, combine_strings): Delete.
14954 * c-common.h (fname_string, combine_strings): Delete prototypes.
14955 * c-lex.c (ignore_escape_flag): Delete.
14956 (cb_ident): Use cpp_interpret_string, not lex_string.
14957 (get_nonpadding_token): New function.
14958 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
14959 Adjust calls to lex_string. Don't write *value twice.
14960 (lex_string): Now handles string constant concatenation.
14961 Most of the work handed off to cpp_interpret_string.
14962 Call fix_string_type here.
14963 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
14964 FUNC_NAME, throughout.
14965 (OBJC_STRING): New token type.
14966 (primary:STRING): No need to call fix_string_type here.
14967 (primary:objc_string): Make that OBJC_STRING.
14968 (objc_string nonterminal): Delete.
14969 (yylexname): Delete code to handle fake string constants.
14970 (yylexstring): Delete entirely.
14971 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
14972 to handle CPP_ATSIGN.
14973
14974 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
14975 * c-opts.c (missing_arg, c_common_handle_option): Handle
14976 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
14977 (c_common_init): Set cpp_opts->bytes_big_endian, not
14978 cpp_opts->EBCDIC. Call cpp_init_iconv.
14979 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
14980 (TARGET_EBCDIC): Delete default definition.
14981
14982 * objc/objc-act.c (build_objc_string_object): No need to
14983 handle string constant concatenation.
14984
14985 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
14986
14987 * doc/install.texi: Fix typos.
14988 * doc/invoke.texi: Likewise.
14989 * doc/tm.texi: Likewise.
14990
14991 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
14992
14993 * config/pa/fptr.c: Fix comment typos.
14994 * config/pa/pa-64.h: Likewise.
14995 * config/pa/pa.c: Likewise.
14996 * config/pa/pa.h: Likewise.
14997 * config/rs6000/603.md: Likewise.
14998 * config/rs6000/7xx.md: Likewise.
14999 * config/rs6000/darwin.h: Likewise.
15000 * config/rs6000/freebsd.h: Likewise.
15001 * config/rs6000/rs6000.c: Likewise.
15002 * config/rs6000/rs6000.md: Likewise.
15003 * config/rs6000/spe.h: Likewise.
15004
15005 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
15006
15007 * config/s390/2064.md: Change GNU CC to GCC.
15008 * config/s390/2084.md: Likewise.
15009 * config/s390/fixdfdi.h: Likewise.
15010 * config/s390/linux.h: Likewise.
15011 * config/s390/s390-modes.def: Likewise.
15012 * config/s390/s390-protos.h: Likewise.
15013 * config/s390/s390.c: Likewise.
15014 * config/s390/s390.h: Likewise.
15015 * config/s390/s390.md: Likewise.
15016 * config/s390/s390x.h: Likewise.
15017
15018 2003-07-04 Jeff Law <law@redhat.com>
15019
15020 PR c/11428
15021 * expr.c (do_store_flag): Pass in the correct result type
15022 when calling fold_single_bit_test.
15023 * fold-const.c (fold_single_bit_test): Use result_type for the
15024 result when folding a sign bit test.
15025
15026 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
15027
15028 * opts.c (common_handle_options): Negate sense of -falign- switches.
15029
15030 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
15031
15032 * Makefile.in: Replace PWD with PWD_COMMAND.
15033
15034 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15035
15036 * cfgloopanal.c (count_strange_loop_iterations): New static function.
15037 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
15038 Handle strange loops.
15039
15040 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
15041
15042 * install.texi: Even the g77 manpage is derived from
15043 the full g77 manual.
15044
15045 2003-07-04 Zack Weinberg <zack@codesourcery.com>
15046
15047 * ABOUT-NLS: Delete.
15048 * intl: Delete entire directory.
15049 * aclocal.m4: Include ../config/gettext.m4. Delete
15050 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
15051 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
15052 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
15053 Remove intl/Makefile from all_outputs.
15054 * configure, config.in: Regenerate.
15055 * Makefile.in: Expunge all references to intl subdirectory.
15056 Add -I../intl to INCLUDES.
15057 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
15058
15059 2003-07-04 Roger Sayle <roger@eyesopen.com>
15060
15061 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
15062 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
15063
15064 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
15065
15066 PR c++/5287, PR c++/7910, PR c++/11021
15067 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
15068 dllimport attribute if function is defined at declaration, but
15069 report error instead. Likewise for dllimport'd variable
15070 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
15071 declared within functions, Report error if dllimport or dllexport
15072 symbol is not global.
15073 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
15074 if defined after declaration or if inlined. Don't allow definition
15075 of static data members of C++ classes. Don't dllimport virtual
15076 methods.
15077 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
15078 (i386_pe_mark_dllimport): Remove unnecessary checks.
15079 (i386_pe_encode_section_info): Warn if the dllimport attribute
15080 and symbol prefix have been instantiated and then overridden.
15081
15082 * doc/extend.texi: Document dllimport and dllexport attributes.
15083
15084 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
15085
15086 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
15087
15088 * config/kaos.h (CPP_PREDEFINES): Delete.
15089 (TARGET_OS_CPP_BUILTINS): New.
15090
15091 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15092
15093 * c-aux-info.c: Include toplev.h after c-tree.h.
15094 * c-common.c: Likewise.
15095 (GCC_DIAG_STYLE): Undef.
15096 * c-semantics.c (GCC_DIAG_STYLE): Define.
15097 * c-tree.h (GCC_DIAG_STYLE): Likewise.
15098 * diagnostic.h (inform): Move prototype to toplev.h.
15099 * jump.c: Include diagnostic.h before toplev.h.
15100 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
15101 (warning, error, fatal_error, pedwarn, sorry, inform,
15102 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
15103
15104 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15105
15106 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
15107 at all if edge is not specified.
15108 (can_copy_bbs_p, copy_bbs): New.
15109 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
15110 * cfgloop.c (get_loop_body): Comment more precisely.
15111 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
15112 (scale_bbs_frequencies): Fix comment typo.
15113 (can_duplicate_loop_p): Use can_copy_bbs_p.
15114 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
15115
15116 2003-07-03 Devang Patel <dpatel@apple.com>
15117
15118 * c-opts.c (c_common_parse_file): Remove extra
15119 debug_hooks->start_source_file call.
15120
15121 2003-07-03 Roger Sayle <roger@eyesopen.com>
15122
15123 * real.c (real_trunc, real_floor, real_ceil): New functions
15124 to implement trunc, floor and ceil respectively.
15125 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
15126 * builtins.c (integer_valued_real_p): New function to test if
15127 a floating point expression has an integer valued result.
15128 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
15129 foo(x) where foo is an integer rounding function. Similarly,
15130 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
15131 (double)(int)x when both foo and bar are integer rounding
15132 functions and we don't need to honor errno.
15133 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
15134 New functions to fold trunc, floor and ceil.
15135 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
15136 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
15137 to fold BUILT_IN_CEIL*.
15138 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
15139 the remaining integer rounding functions.
15140
15141 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
15142
15143 * config/sparc/sparc.c (function_arg_partial_nregs): Use
15144 SPARC_INT_ARG_MAX to determine where to split unnamed
15145 complex FP arguments.
15146
15147 2003-07-03 Jan Hubicka <jh@suse.cz>
15148
15149 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
15150 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
15151 (merge_blocks_move_predecessor_nojumps,
15152 merge_blocks_move_successor_nojumps): Use merge_blocks.
15153 (try_optimize_cfg): Use merge_blocks_move.
15154 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
15155 (merge_blocks_nomove): Rename to rtl_merge_blocks.
15156 (cfg_layout_create_basic_block): New.
15157 (rtl_can_merge_blocks): New.
15158 (cfg_layout_split_block): Do not alloc aux by hand.
15159 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
15160 merge_blocks.
15161 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
15162 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
15163 * cfgloopmanip.c (loop_split_edge_with): Likewise.
15164 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
15165
15166 * basic-block.h (basic_block_def): Add field 'rbi'.
15167 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
15168 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
15169 * cfg.c (entry_exit_blocks): Add new field.
15170 * cfglayout.c: Include alloc-pool.h;
15171 (cfg_layout_pool): New.
15172 (record_effective_endpoints, fixup_reorder_chain,
15173 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
15174 of rbi.
15175 (cfg_layout_initialize_rbi): New function.
15176 (cfg_layout_initialize): Use it.
15177 (cfg_layout_finalize): Clear rbi fields.
15178 * cfglayout.h (RBI): Kill.
15179 (cfg_layout_initialize_rbi): Declare.
15180 * cfgloopmanip.c (copy_bbs): Use rbi.
15181 (record_exit_edges): Likewise.
15182 (duplicate_loop_to_header_edge): Likewise.
15183 * cfgrtl.c (cfg_layout_create_basic_block): Use
15184 cfg_layout_initialize_rbi.
15185 (cfg_layout_split_block): Use rbi.
15186 (cfg_layout_delete_block): Likewise.
15187 * loop-init.c (loop_optimizer_finalize): Likewise.
15188 * loop-unswitch.c (unswitch_loop): Likewise.
15189 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
15190
15191 * cfgrtl.c: Update comments.
15192 (try_redirect_by_replacing_jump): New argument.
15193 (redirect_branch_edge): Break out from ...
15194 (rtl_redirect_edge_and_branch): ... this one.
15195 (update_cfg_after_block_merging): Break out from ...
15196 (rtl_merge_blocks): ... this one.
15197 (cfg_layout_split_edge): New.
15198 (cfg_layout_merge_blocks): New.
15199 (cfg_layout_can_merge_blocks_p): New.
15200 (cfg_layout_redirect_edge_and_branch): Reorganize.
15201 (cfg_layout_rtl_cfg_hooks): Fill in.
15202 (cfg_layout_delete_block): Kill barriers.
15203 * cfganal.c (can_fallthru): Deal with exit blocks
15204 * cfglayout.c (cfg_layout_function_header): New function
15205 (record_effective_endpoints): Record function header.
15206 (fixup_reorder_chain): Fixup dead jumptables; place header
15207
15208 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
15209 * bb-reorder.c (cfg_layout_initialize): Update call.
15210 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
15211 edges in cfglayout mode.
15212 * cfglayout.c (cleanup_unconditional_jumps): Kill.
15213 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
15214 * cfglayout.h (cfg_layout_initialize): Update prototype.
15215 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
15216 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
15217 * flow.c (propagate_block): Do not crash when basic block ends
15218 by first insn in the chain.
15219 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
15220 do loop discovery.
15221 * tracer.c (tracer): Update call of cfg_layout_initialize.
15222
15223 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15224
15225 * Makefile.in: Use dependency variables in lieu of explicit
15226 files throughout.
15227
15228 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
15229
15230 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
15231 * tree.h: ...to here.
15232
15233 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
15234
15235 * config/s390/2064.md: Fix comment typos.
15236 * config/s390/2084.md: Likewise.
15237 * config/s390/s390.c: Likewise.
15238 * config/s390/s390.md: Likewise.
15239 * config/sh/sh.c: Likewise.
15240 * config/sh/sh.h: Likewise.
15241 * config/sh/sh.md: Likewise.
15242 * config/sparc/sparc.c: Likewise.
15243 * config/sparc/sparc.h: Likewise.
15244 * config/sparc/sparc.md: Likewise.
15245 * config/stormy16/stormy16.c: Likewise.
15246 * config/stormy16/stormy16.h: Likewise.
15247 * config/stormy16/stormy-abi: Fix a typo.
15248
15249 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
15250
15251 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
15252
15253 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15254
15255 * config/mips/mips.h (save_argv): Delete.
15256
15257 2003-07-03 Roger Sayle <roger@eyesopen.com>
15258
15259 PR target/10700
15260 * fold-const.c (extract_muldiv_1): There's nothing that can be done
15261 if the expression is a SAVE_EXPR.
15262
15263 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
15264
15265 * config/m32r/m32r.c: Fix comment typos.
15266 * config/m68hc11/m68hc11.c: Likewise.
15267 * config/m68hc11/m68hc11.h: Likewise.
15268 * config/m68k/m68k.c: Likewise.
15269 * config/mcore/mcore.c: Likewise.
15270 * config/mcore/mcore.h: Likewise.
15271 * config/mcore/mcore.md: Likewise.
15272 * config/mips/mips.c: Likewise.
15273 * config/mips/mips.h: Likewise.
15274 * config/mips/mips.md: Likewise.
15275 * config/mips/netbsd.h: Likewise.
15276 * config/mn10300/mn10300.c: Likewise.
15277
15278 2003-07-03 Andreas Schwab <schwab@suse.de>
15279
15280 * dbxout.c (pending_bincls): Move decl down inside
15281 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
15282
15283 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
15284
15285 * rtl.h (NOTE_DATA): Refer to whole union.
15286 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
15287
15288 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
15289
15290 PR optimization/11381
15291 * simplify-rtx.c (simplify_relational_operation): Check that
15292 two equal operands have no side-effects before simplifying
15293 the comparison.
15294
15295 2003-07-02 Jeff Law <law@redhat.com>
15296
15297 * expr.c (do_store_flag): Remove special case folding for
15298 single bit tests. Instead call back into the commonized folder
15299 routine.
15300 * fold-const.c (fold_single_bit_test): New function, mostly
15301 extracted from do_store_flag, with an additional case extracted
15302 from fold.
15303 (fold): Call fold_single_bit_test appropriately.
15304 * tree.h (fold_single_bit_test): Prototype.
15305
15306 2003-07-02 Zack Weinberg <zack@codesourcery.com>
15307
15308 * system.h: Include filenames.h.
15309 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
15310 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
15311 define based on HAVE_DOS_BASED_FILE_SYSTEM.
15312 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
15313 * config/i386/xm-mingw32.h: Don't define
15314 HAVE_DOS_BASED_FILE_SYSTEM,
15315 DIR_SEPARATOR, or DIR_SEPARATOR_2.
15316 * doc/hostconfig.texi: Update to match.
15317
15318 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
15319 config/i386/cygwin.h:
15320 Use IS_ABSOLUTE_PATH throughout.
15321 * gcc.c (DIR_UP): Delete, unused.
15322 * protoize.c (IS_SAME_PATH): Define in terms of
15323 FILENAME_CMP.
15324 (is_abspath): Delete.
15325
15326 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
15327
15328 * config/i386/emmintrin.h: Fix comment typos.
15329 * config/i386/i386.c: Likewise.
15330 * config/i386/i386.h: Likewise.
15331 * config/i386/sco5.h: Likewise.
15332 * config/ia64/ia64.c: Likewise.
15333 * config/ia64/itanium2.md: Likewise.
15334
15335 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
15336
15337 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
15338 DBX_USE_BINCL.
15339 (emit_bincl_stab): Same.
15340 (emit_pending_bincls): Same.
15341
15342 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
15343
15344 * config/h8300/h8300.c (compute_mov_length): Fix the length of
15345 loading CONST0_RTX (SFmode).
15346 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
15347 'G' to CONST0_RTX (SFmode).
15348 * config/h8300/h8300.md (movsf_h8300): Change the first
15349 constraint to 'G'.
15350 (movsf_h8300h): Likewise.
15351
15352 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
15353
15354 * c-common.h (c_common_init_options): New prototype.
15355 * c-opts.c (deferred_size): Remove.
15356 (defer_opt): Array is now pre-allocated.
15357 (c_common_init_options): Pre-allocate deferred_opts. Make
15358 lang_flags unsigned.
15359 (push_command_line_options): Free deferred_opts.
15360 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
15361 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
15362 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
15363 * langhooks.h (struct lang_hooks): New prototype for init_options.
15364 * main.c (main): Cast argv.
15365 * opts.c (handle_option, handle_options): Update prototypes.
15366 (decode_options): save_argc, save_argv are not global. Constify.
15367 * opts.h (decode_options): New prototype.
15368 * toplev.c (general_init): New protoype.
15369 (save_argv): Make static.
15370 (save_argc): Remove.
15371 (print_switch_values, general_init): Constify.
15372 (toplev_main): Save argv.
15373 * toplev.h (toplev_main): Update prototype.
15374 (save_argc, save_argv): Remove.
15375
15376 2003-07-02 David Edelsohn <edelsohn@gnu.org>
15377
15378 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
15379 (emit_bincl_stab): Same.
15380 (emit_pending_bincls): Same.
15381
15382 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
15383
15384 PR c++/11072
15385 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
15386
15387 2003-07-02 Andreas Schwab <schwab@suse.de>
15388
15389 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
15390
15391 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15392
15393 PR optimization/11210
15394 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
15395 about the behaviour with regard to bitfields.
15396 * fold-const (decode_field_reference): Record outermost type in
15397 case the expression is a NOP. Strip all NOPs. Set the signedness
15398 to that of the outermost type (if any) when the bitsize is equal
15399 to the size of the type.
15400
15401 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
15402
15403 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
15404 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
15405 (adddi3_internal_3, addsi3_internal_2): Likewise.
15406
15407 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
15408
15409 * config/mips/mips.c (machine_function): Add new fields:
15410 ignore_hazard_length_p and all_noreorder_p.
15411 (mips_flag_delayed_branch): New variable.
15412 (override_options): Treat '/' as an operand punctuation character.
15413 Set up mips_flag_delayed_branch.
15414 (print_operand): Handle '/'.
15415 (mips_output_function_prologue): Put the whole function in
15416 .set noreorder and .set nomacro if all_noreorder_p is true.
15417 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
15418 (mips16_optimize_gp): Remove "first insn" parameter.
15419 (mips16_lay_out_constants): New function, split out from mips_reorg.
15420 (mips_avoid_hazard, mips_avoid_hazards): New functions.
15421 (mips_reorg): For mips16 code, call mips16_lay_out_constant
15422 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
15423 do delayed-branch scheduling followed by hazard detection.
15424 (mips_adjust_insn_length): Only account for hazards if
15425 !ignore_hazard_length_p.
15426 (mips_output_load_label): Add a nop to the o32 sequence if
15427 the target suffers from load delays.
15428 (mips_output_conditional_branch): Add %/ to the end of branches.
15429 (mips_output_division): Fill the branch delay slot with %#.
15430 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
15431 instructions. End all other %* branches with %/.
15432 (ffssi2, ffsdi2): Fix lengths.
15433 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
15434 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
15435 (fix_truncsfsi2_macro): Likewise.
15436 (mov_lwl): Set hazard to "none".
15437 (ashldi3_internal): Fill the branch delay slot with %#.
15438 (ashrdi3_internal, lshrdi3_internal): Likewise.
15439 (exception_receiver): Explicitly set $28.
15440 (hazard_nop): New pattern.
15441
15442 2003-07-02 Jan Hubicka <jh@suse.cz>
15443
15444 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
15445 before calling tree_inlinable_function_p.
15446
15447 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15448
15449 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
15450 <internal/stdio_core.h> too.
15451 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
15452 <internal/wchar_core.h> too.
15453 Substitute va_list uses in inline definition.
15454 * fixinc/fixincl.x: Regenerate.
15455
15456 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15457
15458 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
15459 Undef before redefinition.
15460 (LABEL_AFTER_LOC): Likewise.
15461 (DEFAULT_SIGNED_CHAR): Likewise.
15462 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
15463 Fix IRIX spelling.
15464
15465 * config/mips/iris3.h: Remove, unused.
15466 * config/mips/iris4.h: Likewise.
15467
15468 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
15469
15470 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
15471 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
15472 target_cpu_default.
15473
15474 * config/mips/iris5.h: Move explicit includes ...
15475 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
15476
15477 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
15478 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
15479 tm_defines.
15480
15481 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
15482 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
15483 target_cpu_default.
15484
15485 * config/mips/iris6.h: Fix IRIX spelling.
15486 (MULTILIB_DEFAULTS): Undef before redefinition.
15487
15488 * config/mips/iris6.h: Move explicit includes ...
15489 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
15490
15491 2003-07-02 Jan Hubicka <jh@suse.cz>
15492
15493 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
15494 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
15495 Use next_needed field instead of aux to maintain the queue.
15496 * cgraph.h (cgraph_node): Add next_needed.
15497 (cgraph_varpool_node): Add next_needed; remove aux.
15498 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
15499
15500 2003-07-02 Jan Hubicka <jh@suse.cz>
15501
15502 * cgraphunit.c (cgraph_finalize_function): Set finalized.
15503 (cgraph_finalize_function): Do not examine inlinablility.
15504 (cgraph_finalize_compilation_unit): Do it here.
15505 * cgraph.h (cgraph_local_info): Add finalized field.
15506
15507 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15508
15509 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
15510 (gt_pch_restore): Likewise.
15511
15512 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
15513
15514 * config/alpha/alpha.c: Fix comment typos.
15515 * config/alpha/elf.h: Likewise.
15516 * config/arm/arm.c: Likewise.
15517 * config/arm/arm.h: Likewise.
15518 * config/arm/arm.md: Likewise.
15519 * config/arm/t-arm-coff: Likewise.
15520 * config/arm/t-strongarm-pe: Likewise.
15521 * config/arm/xscale-elf.h: Likewise.
15522 * config/avr/avr.h: Likewise.
15523
15524 2003-07-01 Jeff Law <law@redhat.com>
15525
15526 * stmt.c (any_pending_cleanups): Remove another redundant test.
15527
15528 2003-07-01 David Edelsohn <edelsohn@gnu.org>
15529 J"orn Rennecke <joern.rennecke@superh.com>
15530
15531 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
15532 for MEM case.
15533
15534 2003-07-01 Devang Patel <dpatel@apple.com>
15535
15536 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
15537 (binclstatus): New.
15538 (struct dbx_file): New members - bincl_status, pending_bincl_name and
15539 prev.
15540 (pending_bincls): New.
15541 (dbxout_init): Initialize new dbx_file members.
15542 (dbxout_start_source_file): Same.
15543 (emit_bincl_stab): New function.
15544 (emit_pending_bincls): Same.
15545 (emit_pending_bincls_if_required): Same.
15546 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
15547 processed.
15548 (dbxout_begin_block): Emit pending BINCL stabs.
15549 (dbxout_end_block): Same.
15550 (dbxout_function_decl): Same.
15551 (dbxout_continue): Same.
15552 (dbxout_type): Same.
15553 (dbxout_class_name_qualifiers): Same.
15554 (dbxout_symbol): Same.
15555 (dbxout_symbol_location): Same.
15556 (dbxout_parms): Same.
15557
15558 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15559
15560 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
15561 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
15562
15563 2003-07-01 Andreas Jaeger <aj@suse.de>
15564
15565 * fold-const.c: Convert prototypes to ISO C90.
15566 * function.c: Likewise.
15567 * function.h: Likewise.
15568
15569 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
15570
15571 * doc/contrib.texi: Fix typos.
15572 * doc/invoke.texi: Likewise.
15573 * doc/passes.texi: Likewise.
15574 * doc/sourcebuild.texi: Likewise.
15575 * doc/tm.texi: Likewise.
15576
15577 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
15578
15579 * basic-block.h: Fix comment typos.
15580 * bb-reorder.c: Likewise.
15581 * c-format.c: Likewise.
15582 * cfgcleanup.c: Likewise.
15583 * cfghooks.h: Likewise.
15584 * cfgloop.c: Likewise.
15585 * cfgloopmanip.c: Likewise.
15586 * cfgrtl.c: Likewise.
15587 * cgraph.h: Likewise.
15588 * cgraphunit.c: Likewise.
15589 * combine.c: Likewise.
15590 * convert.c: Likewise.
15591 * dbxout.c: Likewise.
15592 * df.c: Likewise.
15593 * df.h: Likewise.
15594 * diagnostic.c: Likewise.
15595 * dwarf2out.c: Likewise.
15596 * et-forest.h: Likewise.
15597 * flow.c: Likewise.
15598 * fold-const.c: Likewise.
15599 * function.h: Likewise.
15600 * gcov-io.h: Likewise.
15601 * gcov.c: Likewise.
15602 * gcse.c: Likewise.
15603 * genautomata.c: Likewise.
15604 * ggc-common.c: Likewise.
15605 * ggc-page.c: Likewise.
15606 * loop-unroll.c: Likewise.
15607 * loop-unswitch.c: Likewise.
15608 * loop.c: Likewise.
15609 * mips-tfile.c: Likewise.
15610 * optabs.c: Likewise.
15611 * ra-build.c: Likewise.
15612 * ra-colorize.c: Likewise.
15613 * ra-rewrite.c: Likewise.
15614 * ra.h: Likewise.
15615 * regmove.c: Likewise.
15616 * reload.c: Likewise.
15617 * rtlanal.c: Likewise.
15618 * sched-ebb.c: Likewise.
15619 * sched-int.h: Likewise.
15620 * sched-vis.c: Likewise.
15621 * sreal.c: Likewise.
15622 * ssa-ccp.c: Likewise.
15623 * ssa.c: Likewise.
15624 * toplev.c: Likewise.
15625 * tree-inline.c: Likewise.
15626 * value-prof.c: Likewise.
15627 * value-prof.h: Likewise.
15628
15629 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
15630
15631 * rtl.h (emit_line_note_after): Remove.
15632 (emit_note_copy_after, emit_note_copy): New.
15633 * emit-rtl.c (reorder_insns_with_line_notes): Replace
15634 emit_line_note_after with emit_note_copy_after.
15635 (emit_insn_after_with_line_notes): Likewise.
15636 (emit_line_note_after): Kill.
15637 (emit_note_copy_after): New.
15638 (emit_note_copy): New.
15639 * function.c (emit_return_into_block): Use emit_note_copy_after.
15640 (thread_prologue_and_epilogue_insns): Likewise.
15641 * integrate.c (expand_inline_function): Use emit_note_copy.
15642 (copy_insn_list): Likewise.
15643 * unroll.c (copy_loop_body): Likewise.
15644 * cfglayout.c (duplicate_insn_chain): Likewise.
15645
15646 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
15647
15648 * c-tree.h (define_label): Replace filename and lineno arguments
15649 with a location_t.
15650 * c-decl.c (poplevel): Adjust define_label call.
15651 (pop_label_level): Likewise.
15652 (define_label): Replace filename and lineno arguments with a
15653 location_t.
15654 (store_parm_decls): Use DECL_SOURCE_LOCATION.
15655 * c-parse.in (label): Adjust define_label call.
15656
15657 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
15658
15659 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
15660 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
15661 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
15662 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
15663 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
15664
15665 2003-07-01 Andreas Jaeger <aj@suse.de>
15666
15667 * final.c: Convert prototypes to ISO C90.
15668 * flow.c: Likewise.
15669 * flags.h: Likewise.
15670 * gcov-io.c: Likewise.
15671 * gcov-io.h: Likewise.
15672
15673 See ChangeLog.9 for earlier changes.