s390.md ("muldf3", [...]): Do not clobber CC.
[gcc.git] / gcc / ChangeLog
1 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
4 "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
5 ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
6 "*divsf3_ibm"): Likewise.
7
8 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
9
10 * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
11 target_alias with target_noncanonical.
12
13 2003-10-14 Geoffrey Keating <geoffk@apple.com>
14
15 * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
16 and add case for machines where outgoing register parameters
17 get stack space.
18
19 * config/darwin.c (machopic_indirect_data_reference): Use a scratch
20 register when generating indirect address.
21
22 2003-10-14 Richard Earnshaw <rearnsha@arm.com>
23
24 * arm.c (arm_addimm_operand): MODE arguemnt is unused.
25 * arm.md (cbranchne_decr1): Fix bootstrap warning.
26
27 2003-10-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28
29 * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
30 * fixinc/fixincl.x: Regenerate.
31 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
32 testcase.
33 Fixes PR bootstrap/9330.
34
35 2003-10-13 Eric Christopher <echristo@redhat.com>
36
37 * config/frv/frv.c (frv_adjust_field_align): Redo check for
38 too wide bitfields.
39 (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
40 * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
41 (SBSS_SECTION_ASM_OP): Remove.
42 (EXTRA_SECTIONS): Remove in_sbss.
43 (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
44 (SBSS_SECTION_FUNCTION, sbss_section): Remove.
45 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
46 named_section.
47
48 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
49
50 * Makefile.in, configure.in, config.host, mkheaders.in: Replace
51 uses of ${target_alias} for directory names (and other places which
52 won't like the empty string) with ${target_noncanonical}. Introduce
53 call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
54 available.
55 * configure: Regenerate.
56
57 2003-10-13 Ian Lance Taylor <ian@wasabisystems.com>
58
59 * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
60 * config/arm/arm.md: For splits which rely on conditional moves,
61 remove ! TARGET_IWMMXT condition.
62
63 2003-10-13 David S. Miller <davem@redhat.com>
64
65 * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
66 (find_cond_trap): Always increment if we emit a conditional
67 trap insn.
68
69 2003-10-13 Zack Weinberg <zack@codesourcery.com>
70
71 * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
72 with min-insn-modes.o.
73 (STAGESTUFF): Add min-insn-modes.c.
74 (genobjs): Add genmodes.o.
75 (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
76 (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
77 (min-insn-modes.c, min-insn-modes.o): New rules.
78 (s-modes): Also generate min-insn-modes.c.
79 ($(BUILD_PREFIX_1)insn-modes.o): Kill.
80 * genmodes.c (struct mode_data): Add format field.
81 (blank_mode, validate_mode, complete_mode): Update to match.
82 (make_scalar_mode): Separate into make_int_mode and make_float_mode.
83 (_SCALAR_MODE): Kill.
84 (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
85 (emit_insn_modes_c_header): Adjust.
86 (emit_min_insn_modes_c_header, emit_real_format_for_mode)
87 (emit_min_insn_modes_c): New functions.
88 (emit_insn_modes_c): Call emit_real_format_for_mode.
89 (main): Add -m option to generate min-insn-modes.c.
90 * machmode.h: Update documentation. Add format argument to
91 all uses of FLOAT_MODE.
92 * real.c: Don't define real_format_for_mode here.
93
94 * dwarfout.c: Move default definition of PRINT_REG...
95 * defaults.h: ...here.
96 * print-rtl.c: Include tm_p.h.
97 (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
98 Kill.
99 (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG. But surround
100 this entire block with #ifndef GENERATOR_FILE.
101 * regclass.c: Unconditionally define reg_names.
102 * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
103 Don't define DEBUG_REGISTER_NAMES.
104 * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
105 redefinition of REGISTER_NAMES.
106 * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
107
108 * combine.c: Change all preprocessor conditionals on
109 EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
110 for clarity.
111 * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
112 * configure.in: Don't define EXTRA_CC_MODES.
113 * configure, config.in: Regenerate.
114 * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
115
116 * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
117 May assume that GET_MODE_CLASS is accurate for extra CC modes
118 at all times.
119
120 * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
121 number of arguments to aggregate_value_p.
122
123 * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
124 * machmode.def: Explain ARCH-modes.def. Document
125 RESET_FLOAT_FORMAT. Improve commentary on various mode
126 clusters. Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
127 XF, or TF modes here. Remove backward-compatibility
128 definition of CC.
129
130 * config/alpha/alpha-modes.def: New file; define TF mode.
131 * config/arc/arm-modes.def: Define XF mode.
132 * config/c4x/c4x-modes.def: Define QF and HF modes. Unset
133 float format for SF and DF modes.
134 * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
135 * config/i386/i386-modes.def: Define XF and TF modes.
136 * config/i960/i960-modes.def: Define TF mode.
137 * config/ia64/ia64-modes.def: Define TF and OI modes.
138 * config/m68k/m68k-modes.def: New file; define XF mode.
139 * config/mips/mips-modes.def: New file; define TF mode, reset
140 formats for SF and DF modes.
141 * config/pa/pa-modes.def: Define TF mode.
142 * config/rs6000/rs6000.c: Define TF and PSI modes.
143 * config/s390/s390-modes.def: Define OI mode.
144 * config/sh/sh-modes.def: New file; define PSI mode.
145 * config/sparc/sparc-modes.def: Define TF mode.
146 * config/vax/vax-modes.def: New file; reset formats for SF and
147 DF modes.
148
149 * config/c4x/c4x.c (c4x_override_options): No need to mess
150 with real_format_for_mode or set REAL_MODE_FORMATs.
151 (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
152 variable.
153 * config/i386/i386.c (override_options): No need to set
154 REAL_MODE_FORMATs here.
155 * config/i960/i960.c (i960_initialize): Likewise.
156 * config/m68k/m68k.c (m68k_override_options): Likewise.
157 * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
158 for TFmode only if not the default.
159 * config/mips/mips.c (override_options): Likewise.
160 * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
161 DFmode only if not the default.
162
163 * config/i370/i370.h (RET_REG): Don't consider TFmode.
164 * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
165 * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
166 of modes that don't appear anywhere in the machine description.
167
168 * config/arc/arc-modes.def, config/arm/arm-modes.def
169 * config/c4x/c4x-modes.def, config/frv/frv-modes.def
170 * config/i386/i386-modes.def, config/i960/i960-modes.def
171 * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
172 * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
173 * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
174 * config/sparc/sparc-modes.def: Convert to new style for
175 declaring extra CC modes.
176
177 2003-10-13 Zack Weinberg <zack@codesourcery.com>
178
179 * cpplex.c (_cpp_clean_line): In the common case of a line
180 with no trigraphs and no \-newline, avoid writing to memory.
181 (_cpp_skip_block_comment): Use a local 'cur' pointer instead
182 of the buffer member. Make c an uchar to avoid unnecessary
183 sign extensions.
184
185 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
186
187 * configure.in: Remove unnecessary test.
188 * configure: Regenerate.
189
190 * configure.in: Fix grammatical error. Move UWIN host error to...
191 * config.host: Here.
192 * configure: Regenerate.
193
194 2003-10-13 Andreas Krebbel <krebbel1@de.ibm.com>
195
196 * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
197 "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
198 of flag_unsafe_math_optimizations.
199 * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
200 "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
201 fused-madd and no-fused-madd.
202 * doc/invoke.texi: Documented the new options fused-madd and
203 no-fused-madd for S/390.
204
205 2003-10-14 Alan Modra <amodra@bigpond.net.au>
206
207 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
208 MASK_ALIGN_NATURAL if rs6000_alignment_string not given. Don't
209 assign DEFAULT_ABI.
210 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
211 * config/rs6000/rs6000.c: Formatting.
212 (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
213 when rs6000_alignment_string given.
214
215 2003-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
216
217 PR target/12538
218 * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
219 (sparc_flat_must_save_register_p): New function to decide whether
220 a register must be saved/restored in the function prologue/epilogue.
221 (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
222
223 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
224
225 * config/avr/avr.c, config/avr/avr-protos.h: Convert to
226 ISO C90 function declarations and definitions.
227 * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
228
229 2003-10-12 Nathanael Nerode <neroden@gcc.gnu.org>
230
231 * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
232 config files which do the same thing.
233 * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
234 config/freebsd6.h: Remove now unnecessary files.
235
236 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
237
238 * c-common.c (c_common_truthvalue_conversion): Warn if the
239 address of a non-weak function is used as a truth value.
240
241 2003-10-12 Kazu Hirata <kazu@cs.umass.edu>
242
243 * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
244 a literal.
245 * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
246 instead of a literal.
247
248 2003-10-12 Hans-Peter Nilsson <hp@bitrange.com>
249
250 * doc/extend.texi (Function Attributes): Mention the exceptional
251 path for noreturn-marked functions.
252
253 2003-10-12 Jan Hubicka <jh@suse.cz>
254
255 * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
256 warning.
257
258 2003-10-12 Danny Smith <dannysmith@users.sourceforge.net>
259
260 * config/i386/i386.c (x86_this_parameter): Fix typo.
261
262 2003-10-11 Jan Hubicka <jh@suse.cz>
263
264 * Makefile.in (web.o): New.
265 * web.c: New file.
266 * rtl.h (web_main): Declare.
267 * timervar.def (TV_WEB): New.
268 * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
269 (rest_of_hanle_web): New.
270 (flag_web): New static variable.
271 (lang_independent_options): Add "web".
272 (rest_of_compilation): Call rest_of_handle_web.
273 * invoke.texi (-fweb): Document.
274 * common.opt (fweb): New.
275 * flags.h (flag_web): New.
276 * opts.c (decode_options): Set flag_web at -O3.
277
278 * passes.texi (web construction): Document.
279 * invoke.texi (-O3): Document that -fweb is enabled.
280
281 * regrename.c (regrename_optimize): Deal better with situation when
282 replacement failed.
283
284 * sched-ebb.c: Include params.h and profile.h
285 (schedule_ebbs): Use tracer parameters to discover superblocks
286 * Makefile.in (sched-ebb.o): Add dependencies.
287
288 2003-10-11 Roger Sayle <roger@eyesopen.com>
289
290 * fold-const.c (negate_mathfn_p): New function to determine whether
291 a built-in mathematical function is sign preserving, f(-x) == -f(x).
292 Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
293 (tree_swap_operands_p): Change API to take an additional argument
294 indicating that the swapped operands evaluate in reverse order.
295 Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
296 operand side-effects or we don't care about flag_evaluation_order.
297 (reorder_operands_p): New function to check whether its safe to
298 evaluate the given operands in reverse order.
299 (negate_expr_p): We can always negate integer constants unless
300 we honor -ftrapv and the signed type would overflow. Only allow
301 -(A-B) into B-A if reorder_operands_p says that its OK. Allow
302 negation of COMPLEX_CST if both real and imaginary parts can be
303 negated. Allow negation through floating point extensions and
304 sign-preserving built-in functions.
305 (negate_expr): Move the code to negate integers from "fold" to
306 here. Always negate integer constants unless we honor -ftrapv
307 and the signed type would overflow. Always negate real constants
308 unless we honor -ftrapping-math. Only convert -(A-B) into B-A
309 if allowed by reorder_operands_p. Add support for COMPLEX_CST.
310 Optimize negation through floating point extensions and
311 sign-preserving built-in functions (as defined by negate_mathfn_p).
312 (fold): Adjust calls to tree_swap_operands_p.
313 (fold <NEGATE_EXPR>): Move the remaining negation optimizations
314 to negate_expr_p/negate_expr.
315 (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
316 allowed to convert (-A) - B into (-B) - A.
317
318 2003-10-11 Roger Sayle <roger@eyesopen.com>
319
320 * builtins.c (expand_builtin_strcmp): Defend against the possibility
321 that gen_cmpstrsi may fail: Stabilize the argument list against
322 re-evaluation and expand the library call directly using this saved
323 argument list if a cmpstrsi sequence can't be generated.
324 (expand_builtin_strncmp): Likewise.
325
326 * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
327
328 2003-10-11 Roger Sayle <roger@eyesopen.com>
329
330 PR optimization/12260
331 * simplify-rtx.c (simplify_unary_operation): Simplify all unary
332 operations through CONST nodes. Optimize (neg (plus X C)) as
333 (minus -C X) for constant values C.
334 (simplify_binary_operation): Optimize (minus (neg X) C) as
335 (minus -C X) for constant values C.
336 (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
337 instead create (minus -C X).
338
339 2003-10-11 Roger Sayle <roger@eyesopen.com>
340
341 * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
342 safe_from_p for us, once it chooses an evaluation order.
343 (expand_expr <MULT_EXPR>): Likewise.
344 (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise. If expand_operands
345 places the second operand in "target", swap the operands.
346 (do_store_flag): Let expand_operands call safe_from_p for us.
347
348 2003-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
349
350 PR optimization/12544
351 * function.c (put_var_into_stack): Don't generate ADDRESSOFs
352 for DECL_NONLOCAL decls.
353
354 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
355
356 * expr.c: Follow spelling conventions.
357 * final.c: Likewise.
358 * optabs.c: Likewise.
359 * sched-deps.c: Likewise.
360 * sdbout.c: Likewise.
361
362 Sat Oct 11 12:24:23 CEST 2003 Jan Hubicka <jh@suse.cz>
363
364 * varasm.c (notice_global_symbol): Fix handling of variables; avoid
365 re-computing of variable.
366
367 2003-10-11 Richard Henderson <rth@redhat.com>
368
369 * config/alpha/alpha.c (alpha_return_in_memory): Rename from
370 return_in_memory, make static, change signature to match target hook.
371 (alpha_setup_incoming_varargs): Make static, change signature to
372 match target hook, add code for vms and unicos.
373 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
374 TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
375 TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
376 TARGET_STRICT_ARGUMENT_NAMING,
377 TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
378 * config/alpha/alpha-protos.h: Update.
379 * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
380 PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
381 SETUP_INCOMING_VARARGS): Remove.
382 * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
383 * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
384
385 2003-10-11 Ian Lance Taylor <ian@wasabisystems.com>
386
387 * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
388
389 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
390
391 * config/m68k/lb1sf68.asm: Follow spelling conventions.
392 * config/m68k/m68k.c: Likewise.
393 * config/m68k/m68k.h: Likewise.
394 * config/m68k/m68k.md: Likewise.
395
396 2003-10-11 Roger Sayle <roger@eyesopen.com>
397
398 * builtins.c (expand_builtin_memcpy): Optimize case when the two
399 pointer arguments are the equal, non-volatile and side-effect free.
400 (expand_builtin_mempcpy): Likewise.
401 (expand_builtin_memmove): Likewise.
402 (expand_builtin_strcpy): Likewise.
403 (expand_builtin_memcmp): Likewise.
404 (expand_builtin_strcmp): Likewise.
405 (expand_builtin_strncmp): Likewise.
406
407 2003-10-11 Roger Sayle <roger@eyesopen.com>
408
409 * combine.c (apply_distributive_law): Enable "distributive" floating
410 point optimizations with -funsafe-math-optimizations.
411
412 2003-10-11 Andrew Pinski <pinskia@physics.uc.edu>
413
414 * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
415
416 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
417
418 * config/m68k/m68k-protos.h: Remove the prototype for
419 finalize_pic.
420
421 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
422
423 * config/m68k/m68k.c: Fix comment typos.
424
425 2003-10-11 Bernardo Innocenti <bernie@develer.com>
426
427 * config/m68k/m68k-protos.h (use_return_insn): Change return type from
428 int to bool.
429 * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
430 (current_frame): New global var.
431 (m68k_compute_frame_layout): Cache computations in current_frame.
432 (m68k_initial_elimination_offset): Use values from current_frame
433 instead of recomputing them.
434 (use_return_insn): Likewise.
435 (m68k_output_function_prologue): Likewise.
436 (m68k_output_function_epilogue): Likewise.
437 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
438 inside the block for __pic__.
439
440 2003-10-11 Peter Barada <peter@baradas.org>
441 Bernardo Innocenti <bernie@develer.com>
442
443 * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
444 (m68k_save_reg): Add boolean parameter `interrupt_handler'.
445 (m68k_interrupt_function_p): New function.
446 (m68k_handle_fndecl_attribute): Ditto.
447 (m68k_compute_frame_layout): Ditto.
448 (m68k_attribute_table): Define back-end specific attributes.
449 (m68k_output_function_epilogue): Emit RTE instruction for interrupt
450 functions.
451
452 2003-10-11 Bernardo Innocenti <bernie@develer.com>
453
454 * config/m68k/t-uclinux: New target Makefile fragment.
455 * config/m68k/uclinux.h: New target macro file.
456 * config.gcc (m68k-*-uclinux): New target definition.
457
458 2003-10-10 Roger Sayle <roger@eyesopen.com>
459
460 * builtins.c (builtin_mathfn_code): Generalize to check whether
461 the call is to any built-in function by comparing the call's
462 argument list against the builtin decl's function type.
463
464 2003-10-10 Roger Sayle <roger@eyesopen.com>
465
466 * cse.c (constant_pool_entries_regcost): New global variable to
467 hold the register cost component of constant_pool_entries_cost.
468 (fold_rtx): Calculate constant_pool_entries_regcost at the same
469 time as constant_pool_entries_cost.
470 (cse_insn): Set both src_folded_cost and src_folded_regcost from
471 constant_pool_entries_cost and constant_pool_entries_regcost.
472 (cse_main): Initialize constant_pool_entries_regcost to zero.
473
474 * optabs.c (expand_unop): Attach a REG_EQUAL note describing
475 the semantics of the sequence of bit operations used to negate
476 a floating-point value.
477 (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
478 the semantics of the bit operations used to abs a floating point
479 value.
480
481 2003-10-11 Bernardo Innocenti <bernie@develer.com>
482 Paul Dale <pauli@snapgear.com>
483
484 * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
485 support.
486 * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
487 -fpic, -fPIC, -msep-data and -mid-shared-library.
488 * config/m68k/m68k.c (m68k_library_id_string): New global variable.
489 (override_options): Add -msep-data and -mshared-library-id support.
490 (m68k_output_function_prologue): Generate code to load A5 for
491 TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
492 (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
493 (m68k_output_pic_call): New function.
494 * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
495 (TARGET_ID_SHARED_LIBRARY): Ditto.
496 (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
497 * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
498 (call_value): Likewise.
499
500 2003-10-10 Zack Weinberg <zack@codesourcery.com>
501
502 * gengenrtl.c (find_formats, genheader): Make i an unsigned
503 int, remove cast of NUM_RTX_CODE.
504 * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
505 entire file. Remove the #ifs on GET_MODE_MASK etc and
506 GET_MODE_WIDER_MODE etc.
507
508 2003-10-10 Eric Christopher <echristo@redhat.com>
509
510 * lcm.c (optimize_mode_switching): Change NORMAL_MODE
511 to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
512 that set mode.
513 * config/sh/sh.h (MODE_ENTRY): New macro.
514 (MODE_EXIT): Ditto.
515 (MODE_AFTER): Ditto.
516 * config/sh/sh.md: Change for MODE_AFTER. Add
517 fp_set attribute.
518 * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
519
520 2003-10-10 Zack Weinberg <zack@codesourcery.com>
521
522 * genmodes.c, mode-classes.def: New files.
523 * machmode.def: Rewritten to genmodes.c interface.
524 * Makefile.in (extra_modes_file): New substitution variable.
525 (MACHMODE_H): No longer includes machmode.def or
526 @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
527 (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
528 (OBJS-common): Add insn-modes.o.
529 (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
530 genmodes$(build_exeext).
531 (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
532 genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
533 (s-genrtl): Don't depend on $(RTL_BASE_H).
534 (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
535 or $(RTL_BASE_H); just rtl.def.
536 * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
537 real.h. Give fake definition of CONST_DOUBLE_FORMAT and
538 substitute definition of NUM_RTX_CODE. Add casts to avoid
539 warnings.
540 * machmode.h: Include insn-modes.h, not machmode.def. Include
541 mode-classes.def to define enum mode_class. Tweak definitions
542 of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
543 GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
544 (inner_mode_array): Renamed mode_inner.
545 (mode_base_align): New.
546 * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
547 mode_unit_size, mode_wider_mode, mode_mask_array,
548 inner_mode_array, class_narrowest_mode): Delete definitions.
549 * stor-layout.c (get_mode_alignment): Use mode_base_align.
550 * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
551 and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
552
553 * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
554 No need to define BITS_PER_UNIT.
555
556 2003-10-10 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
557
558 * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
559 (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
560 (ia64_initialize_trampoline): If not using GAS, declare trampoline
561 as global.
562 * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
563 (ASM_OUTPUT_DEBUG_LABEL): Likewise.
564
565 * stor-layout.c (compute_record_mode): Don't force BLKmode if
566 field is zero-length BLKmode.
567 * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
568 zero-size references.
569
570 * combine.c (distribute_links): Properly test for REG being set.
571
572 * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
573 gen_lowpart and company except for REG.
574
575 2003-10-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
576
577 * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
578
579 2003-10-10 Nathanael Nerode <neroden@gcc.gnu.org>
580
581 * config.gcc (mips*-*-netbsd*): Remove content-free line.
582
583 2003-10-10 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
584
585 * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
586 gcov_position_t and gcov_type.
587
588 2003-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
589
590 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
591 * configure: Regenerate.
592
593 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
594
595 * config/h8300/h8300.md (define_asm_attributes): Specify
596 the length of an asm insn more precisely.
597
598 2003-10-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
599
600 * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
601
602 2003-10-09 Bob Wilson <bob.wilson@acm.org>
603
604 * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
605 FP register number to 48 and MAC16 accumulator to 0x210.
606
607 2003-10-09 Nathanael Nerode <neroden@gcc.gnu.org>
608
609 * config.gcc: Remove redundant thread_file setting clauses for
610 various *-*-linux* targets.
611
612 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
613
614 * config/h8300/h8300.md (define_asm_attributes): New.
615
616 2003-10-09 Roger Sayle <roger@eyesopen.com>
617
618 * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
619 to the comparison, as emit_libcall_block calls copy_rtx on equiv.
620
621 2003-10-09 Dorit Naishlos <dorit@il.ibm.com>
622
623 * haifa-sched.c (ok_for_early_schedule): New function.
624 (early_queue_to_ready): New function.
625 (schedule_block): Allow early removal of insns from Q.
626 (schedule_insn): Update INSN_TICK in case of premature
627 issue.
628 * common.opt (sched_stalled_insns): New flag.
629 (sched_stalled_insns_dep): New flag.
630 * flags.h: Same above flags.
631 * opts.c: Same as above.
632 * toplev.c: Same as above.
633 * target.h (targetm.sched.is_costly_dependence): New
634 hook.
635 * target-def.h: Same as above.
636 * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
637 Support new flag -msched-costly-dep.
638 (DEFAULT_SCHED_COSTLY_DEP): Define.
639 * config/rs6000/rs6000.c:
640 (rs6000_is_costly_dependence): New function.
641 (is_load_insn, is_store_insn): New functions.
642 (is_load_insn1, is_store_insn1, is_mem_ref): New
643 functions.
644 * doc/invoke.texi (-fsched-stalled-insns-dep)
645 (-fsched-stalled-insns, -msched-costly-dep): Document
646 options.
647 * doc/tm.texi (is_costly_dependence): Define new
648 scheduler target hook.
649
650 2003-10-09 Jason Merrill <jason@redhat.com>
651
652 PR c++/6392
653 * c-common.c (c_build_qualified_type): Look through arrays first.
654 (c_apply_type_quals_to_decl): Look through arrays.
655
656 * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
657 types with constructors.
658
659 * coverage.c (build_ctr_info_value): Use build_decl to make a
660 VAR_DECL.
661 (create_coverage): Likewise.
662
663 * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
664 here.
665 (expand_asm_operands): Not here.
666 (parse_input_constraint): No longer static.
667 * tree.h: Declare it.
668
669 2003-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
670
671 * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
672 libgcc_s.so.
673 (SHLIB_INSTALL): Likewise.
674
675 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
676
677 * doc/install.texi: Remove reference to removed 'pthreads' thread
678 option.
679
680 2003-10-08 Aldy Hernandez <aldyh@redhat.com>
681
682 * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
683 operand 2.
684
685 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
686
687 * config.gcc: Don't accept --enable-threads=pthreads. Clean
688 up related case statements.
689 * configure.in: Don't accept --enable-threads=pthreads,
690 decosf1, mach, or os2 (none of which work anyway). Alphabetize
691 supported thread files in case clause.
692 * configure: Regenerate.
693
694 2003-10-08 Geoffrey Keating <geoffk@apple.com>
695
696 * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
697 definition to above SPARC_STACK_BOUNDARY_HACK.
698
699 2003-10-08 Jason Merrill <jason@redhat.com>
700
701 * c-pretty-print.c (pp_c_postfix_expression)
702 <COMPOUND_LITERAL_EXPR>: Fix thinko.
703
704 2003-10-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
705
706 * mklibgcc.in: Don't hide undefined or typeless symbols.
707
708 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
709
710 PR optimization/12142
711 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
712 uses of the register in the SET_SRC. Remove unnecessary argument.
713 * pa.c (legitimize_pic_address): Before reload, use a scratch register
714 for the intermediate result in loading the address of a SYMBOL_REF.
715 Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn
716 which loads the SYMBOL_REF address.
717
718 2003-10-08 Timo Kokkonen <tjko@iki.fi>
719 Eric Botcazou <ebotcazou@libertysurf.fr>
720
721 PR bootstrap/12490
722 * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
723 to define the size of the extern_C_braces array. Set it to 200.
724 (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
725
726 2003-10-08 Carlo Wood <carlo@alinoe.com>
727
728 * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
729 a space after the -o option. flex 2.5.31 understands both, with
730 and without the space. Removed that space.
731
732 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
733
734 * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
735 (compute_frame_size): Initialize it. Remove the .cprestore slot
736 from args_size.
737 (mips_output_function_prologue): Simplify accordingly.
738 (mips_debugger_offset): Change the mips16 frame pointer offset from
739 current_function_outgoing_args to cfun->machine->frame.args_size.
740 (mips_initial_elimination_offset): Likewise.
741 (mips_expand_prologue): Likewise.
742 (mips_expand_epilogue): Likewise.
743
744 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
745
746 * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
747 (EXTRA_MEMORY_CONSTRAINT): Define.
748 (CAN_ELIMINATE): Remove lwu workaround.
749 * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
750 Use a 'W' constraint for the source operand.
751
752 2003-10-08 Kazu Hirata <kazu@cs.umass.edu>
753
754 * genopinit.c (main): Output code to declare undefined
755 variables.
756
757 2003-10-07 Kelley Cook <kcook@gcc.gnu.org>
758
759 * gengtype-lex.l: Remove -Wtraditional cruft.
760 * Makefile.in (gengtype-lex.c): Likewise.
761
762 2003-10-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
763
764 * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
765
766 2003-10-07 Jason Merrill <jason@redhat.com>
767
768 PR c++/12519
769 * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
770 it isn't a decl.
771
772 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
773
774 * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
775 not overridden.
776 Fixes PR bootstrap/12173.
777
778 2003-10-07 Zack Weinberg <zack@codesourcery.com>
779
780 * errors.c: Don't include coretypes.h or tm.h.
781 (trim_filename): Use IS_DIR_SEPARATOR.
782 * Makefile.in: Update dependencies of errors.o and
783 $(BUILD_PREFIX_1)errors.o.
784
785 2003-10-07 Geoffrey Keating <geoffk@apple.com>
786
787 * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
788 account when aligning arguments.
789 * calls.c (STACK_POINTER_OFFSET): Move default from here ...
790 * defaults.h (STACK_POINTER_OFFSET): ... to here.
791 * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
792 it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
793 (SPARC_STACK_BOUNDARY_HACK): Define.
794 * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
795 arrange for vector parameters to varargs functions to be passed
796 in both memory and GPRs when appropriate.
797 (rs6000_va_arg): Vector arguments passed in memory are 16-byte
798 aligned.
799
800 * hooks.c (hook_bool_tree_true): New.
801 (hook_rtx_tree_int_null): New.
802 (hook_rtx_rtx_null): Use NULL, not 0.
803 * hooks.h: Add 'extern' to everything.
804 (hook_bool_tree_true): New.
805 (hook_rtx_tree_int_null): New.
806 * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
807 * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
808 * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
809 prototype.
810 * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
811 (setup_incoming_varargs): Prototype.
812 (TARGET_PROMOTE_FUNCTION_ARGS): Define.
813 (TARGET_PROMOTE_FUNCTION_RETURN): Define.
814 (TARGET_STRUCT_VALUE_RTX): Define.
815 (TARGET_RETURN_IN_MEMORY): Define.
816 (TARGET_SETUP_INCOMING_VARARGS): Define.
817 (TARGET_STRICT_ARGUMENT_NAMING): Define.
818 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
819 (init_cumulative_args): Use rs6000_return_in_memory.
820 (setup_incoming_varargs): Make 'static'.
821 * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
822 (PROMOTE_FUNCTION_RETURN): Delete.
823 (STRUCT_VALUE): Delete.
824 (RETURN_IN_MEMORY): Delete.
825 (SETUP_INCOMING_VARARGS): Delete.
826
827 2003-10-07 Gerald Pfeifer <gerald@pfeifer.com>
828
829 * doc/invoke.texi (Warning Options): Simplify and clarify the
830 descriptions of -Wnonnull and -Winit-self.
831
832 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
833
834 * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
835 indicees for floating-point conversersion libcalls.
836
837 2003-10-07 Nathanael Nerode <neroden@gcc.gnu.org>
838
839 * Makefile.in: Add more comments separating large conceptually
840 separate sections.
841
842 * configure.in: Clean up thread file logic.
843 * configure: Regenerate.
844
845 2003-10-07 Danny Smith <dannysmith@users.sourceforge.net>
846
847 * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
848 (switch_to_section): Handle in_readonly_data.
849 * config/i386/winnt.c (i386_pe_asm_named_section): Handle
850 readonly data.
851
852 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
853
854 * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
855 it.
856 (cbranchne_decr1): New Thumb pattern.
857 * arm.c (arm_addimm_operand): New insn predicate.
858 * arm-protos.h: Add a prototype for it.
859 * arm.h (PREDICATE_CODES): Add it.
860
861 2003-10-07 Dorit Naishlos <dorit@il.ibm.com>
862
863 * sched-int.h (sched_info): New field
864 sched_max_insns_priority.
865 * sched-rgn.c (init_ready_list): Add invocations to
866 targetm.sched.adjust_priority.
867 (sched_max_insns_priority): Init new field.
868 * sched-ebb.c (sched_max_insns_priority): Init new field.
869 * haifa-sched.c (set_priorities): Set
870 sched_info->sched_max_insns_priority.
871 * config/rs6000/rs6000.h:
872 (rs6000_sched_restricted_insns_priority_str): Support new
873 flag -mprioritize-restricted-insns.
874 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
875 * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
876 function.
877 (rs6000_adjust_priority): Change priority of restricted
878 insns, using above new function and new flag.
879 * doc/invoke.texi (-mprioritize-restricted-insns): Document
880 new option.
881
882 2003-10-07 Zack Weinberg <zack@codesourcery.com>
883
884 * expr.c (cmpstr_optab, cmpmem_optab): New.
885 * genopinit.c: Initialize them.
886 * optabs.h: Declare them.
887 * optabs.c (init_optabs): Clear them.
888 (prepare_cmp_insn): Use cmpstr_optab and cmpmem_optab to find
889 block memory compare insns, not conditional chains. Restructure
890 the fallback generation of a call to memcmp/bcmp for better
891 readability.
892
893 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
894
895 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
896 (mips_save_restore_fn): New typedef.
897 (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
898 (mips_set_frame_expr, mips_frame_set): Move above prologue code.
899 (save_restore_insns): Remove, replacing with...
900 (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
901 (mips_save_reg, mips_restore_reg): New function.
902 (mips_expand_prologue, mips_expand_epilogue): Rework.
903 * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
904 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
905 (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
906
907 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
908
909 * config/mips/mips.c (mips_expand_prologue): Remove unused
910 traversal of function arguments.
911
912 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
913
914 * doc/invoke.texi: Remove documentation of -mentry.
915 * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
916 (override_options, mips_save_reg_p): Remove handling.
917 (compute_frame_size, mips_output_function_prologue): Likewise.
918 (mips_expand_prologue, mips_expand_epilogue): Likewise.
919 * config/mips/mips.h (mips_entry_string): Remove declaration.
920 (TARGET_OPTIONS): Remove -mentry.
921 * config/mips/mips16.S: Remove mention of -mentry.
922
923 2003-10-06 Zack Weinberg <zack@codesourcery.com>
924
925 * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
926 (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
927 (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
928 (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
929 (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
930 (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
931 (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
932 (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
933 (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
934 (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
935 (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
936 (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
937 (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
938 (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
939 (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
940 (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
941 (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
942 (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
943 (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
944 (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
945 (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
946 (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
947 (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
948 (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
949 (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
950 (fixunstfti_libfunc): Delete.
951 * optabs.h (struct optab_handlers): Break out of struct optab.
952 (struct convert_optab, convert_optab, enum convert_optab_index,
953 convert_optab_table, sext_optab, zext_optab, trunc_optab,
954 sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
955 sfloat_optab, ufloat_optab): New.
956 (set_conv_libfunc): Prototype.
957 (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
958 (trunc_optab): Renamed btrunc_optab.
959 * builtins.c (expand_builtin_mathfn): Update to match.
960 * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
961 (convert_optab_table, new_convert_optab, init_convert_optab)
962 (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
963 (set_conv_libfunc): New.
964 (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
965 (expand_float, expand_fix): Use new conversion optabs,
966 not old insn code tables or long chains of ifs.
967 (init_optabs): No need to clear old insn code tables.
968 Initialize the new optabs, not the old libfunc array entries.
969 Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
970 * genopinit.c: Initialize conversion optabs, not the
971 former insn code tables. Remove unnecessary casts.
972 Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
973 * expr.c (convert_move): Remove redundant check that
974 to_real==from_real. Use the conversion optabs instead
975 of long chains of tests of modes. Move partial-integer-mode
976 interconversion above all integer conversion. Do not recurse
977 on a value forced into a register in the original mode.
978
979 * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
980 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
981 * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
982 in new conversion optabs; do not reference the old libfunc
983 array entries. No need to include libfuncs.h.
984
985 2003-10-06 Roger Sayle <roger@eyesopen.com>
986
987 * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
988 point comparison sequence with a REG_EQUAL note that describes
989 the comparison's semantics.
990
991 2003-10-06 Roger Sayle <roger@eyesopen.com>
992
993 * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
994 of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
995
996 2003-10-06 Roger Sayle <roger@eyesopen.com>
997 Zack Weinberg <zack@codesourcery.com>
998
999 * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
1000 instruction by using LCT_CONST and then calling emit_libcall_block
1001 ourselves.
1002
1003 2003-10-06 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1004
1005 PR optimization/11974
1006 * optabs.c (expand_unop): Promote libcall outmode according to
1007 hard_libcall_value.
1008
1009 2003-10-06 Zack Weinberg <zack@codesourcery.com>
1010
1011 * real.h (REAL_MODE_FORMAT): New macro.
1012 * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
1013 * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
1014 * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
1015 * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
1016 * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
1017 directly to real_format_for_mode array, wherever possible.
1018
1019 2003-10-06 Devang Patel <dpatel@apple.com>
1020
1021 * dwarf2out.c (is_main_source): Remove variable.
1022 (dwarf2out_start_source_file): Do not check is_main_source.
1023 Do not reset is_main_source.
1024 (dwarf2out_init): Do not initialize is_main_source.
1025
1026 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1027
1028 * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
1029 (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
1030 introduced some multi-line prototypes.
1031 * fixinc/fixincl.x: Regenerate.
1032
1033 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1034
1035 * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
1036 * config/mips/mips.c (stack_operand): New predicate.
1037 * config/mips/mips.md: Use it for the destination of mips16 insns
1038 that store $31.
1039
1040 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1041
1042 * config/mips/mips.md (*lowsi): Renamed from lowsi.
1043 (*lowdi): Likewise lowdi.
1044 (*lowsi_mips16, *lowdi_mips16): New patterns.
1045 * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
1046 mips16 CONSTANT_RELOC handling.
1047 (mips_delegitimize_address): Adjust for new sdata representation.
1048
1049 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1050
1051 * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
1052 skip any remaining register arguments.
1053
1054 2003-10-06 Ulrich Weigand <uweigand@de.ibm.com>
1055
1056 * reload.c (find_reloads_subreg_address): Use correct offset for
1057 paradoxical MEM subregs on big-endian targets.
1058
1059 2003-10-06 Andrew Haley <aph@redhat.com>
1060
1061 * tree.c (get_callee_fndecl): Call
1062 lang_hooks.lang_get_callee_fndecl.
1063 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
1064 (lhd_get_callee_fndecl): New.
1065
1066 2003-10-06 Andrew Pinski <apinski@apple.com>
1067
1068 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
1069 error in calculating the length of the string.
1070 (machopic_stub_name): Likewise.
1071
1072 2003-10-06 Roger Sayle <roger@eyesopen.com>
1073
1074 * optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
1075 describing the return value of the comparison libcall to the
1076 REG_RETVAL instruction of the emitted sequence.
1077
1078 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1079
1080 PR optimization/12215
1081 * cse.c (cse_set_around_loop): Emit the move at the beginning
1082 of the next basic block for trapping sets.
1083
1084 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1085
1086 PR optimization/11637
1087 * combine.c (adjust_for_new_dest): New function to adjust the
1088 notes and LOG_LINKS when the dest of an insn has changed.
1089 (try_combine): Use it when deleting the first insn of a two-insn
1090 parallel or splitting a two-load parallel.
1091
1092 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1093
1094 * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
1095 if TARGET_EXPLICIT_RELOCS.
1096
1097 2003-10-06 Mark Mitchell <mark@codesourcery.com>
1098
1099 PR bootstrap/12512
1100 * Makefile.in (info): Use double-colon rules.
1101 (dvi): Likewise.
1102 (generated-manpages): Likewise.
1103 * configure.in: Do not create lang.info, lang.dvi, or
1104 lang.generated-manpages hooks.
1105 * configure: Regenerated.
1106 * objc/Make-lang.in (objc.info): Remove.
1107 (objc.dvi): Remove.
1108 (objc.generated-manpages): Remove.
1109 * doc/sourcebuild.texi: Update description of info, dvi, and
1110 generated-manpages hooks.
1111
1112 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1113
1114 * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
1115
1116 2003-10-05 Andrew Pinski <apinski@apple.com>
1117
1118 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
1119 errors in memcpy destinations.
1120 (machopic_stub_name): Likewise.
1121
1122 2003-10-05 Andrew Pinski <apinski@apple.com>
1123
1124 * config/darwin.c (machopic_non_lazy_ptr_name):
1125 Change strcat to memcpy and add length together.
1126 (machopic_stub_name): Likewise.
1127
1128 2003-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
1129
1130 * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
1131 signal trampoline codes.
1132
1133 2003-10-05 Chris Demetriou <cgd@broadcom.com>
1134
1135 * config/mips/mips.md (*divsf3): Move description of
1136 SB-1 F2 erratum from here to...
1137 (divsf3): Here. Disable if TARGET_FIX_SB1 is set and
1138 flag_unsafe_math_optimizations is not.
1139
1140 2003-10-05 Aldy Hernandez <aldyh@redhat.com>
1141
1142 * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
1143 TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
1144
1145 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1146
1147 * c-pretty-print.c: Fix comment typos.
1148 * c-pretty-print.h: Likewise.
1149 * calls.c: Likewise.
1150 * cfgloopmanip.c: Likewise.
1151 * cgraphunit.c: Likewise.
1152 * cppfiles.c: Likewise.
1153 * final.c: Likewise.
1154 * function.c: Likewise.
1155 * gcov-io.h: Likewise.
1156 * gcse.c: Likewise.
1157 * genoutput.c: Likewise.
1158 * loop.c: Likewise.
1159 * postreload.c: Likewise.
1160 * reg-stack.c: Likewise.
1161 * regmove.c: Likewise.
1162 * sched-int.h: Likewise.
1163 * sched-rgn.c: Likewise.
1164 * simplify-rtx.c: Likewise.
1165 * tree-inline.c: Likewise.
1166 * config/m68hc11/m68hc11.h: Likewise.
1167 * config/mmix/mmix.c: Likewise.
1168 * config/mn10300/mn10300.md: Likewise.
1169 * config/sh/sh.h: Likewise.
1170
1171 2003-10-05 Richard Henderson <rth@redhat.com>
1172
1173 * tree-inline.c (remap_type): New.
1174 (remap_decl): Use it. Remap DECL_SIZE*.
1175 (copy_body_r): Use it.
1176 (walk_tree): Walk TREE_TYPE too.
1177 (copy_tree_r): Don't walk subtrees of types.
1178 * tree.c (variably_modified_type_p): Restructure. Consider integer
1179 types with non-const bounds variably modified.
1180
1181 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1182
1183 * doc/invoke.texi: Fix typos.
1184
1185 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1186
1187 * fold-const.c: Follow spelling conventions.
1188 * function.c: Likewise.
1189 * config/c4x/c4x.h: Likewise.
1190 * config/c4x/c4x.md: Likewise.
1191 * config/frv/frv.md: Likewise.
1192 * config/rs6000/aix.h: Likewise.
1193 * config/rs6000/linux64.h: Likewise.
1194 * config/xtensa/xtensa.c: Likewise.
1195
1196 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1197
1198 * c-pretty-print.c: Fix comment formatting.
1199 * cfglayout.c: Likewise.
1200 * cfgloopanal.c: Likewise.
1201 * cppcharset.c: Likewise.
1202 * dbxout.c: Likewise.
1203 * ggc-page.c: Likewise.
1204 * ggc.h: Likewise.
1205 * target.h: Likewise.
1206
1207 2003-10-04 Kelley Cook <kelleycook@wideopenwest.com>
1208
1209 * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
1210
1211 2003-10-04 Nathanael Nerode <neroden@gcc.gnu.org>
1212
1213 * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
1214 Convert to ISO C90 function declarations and definitions.
1215
1216 2003-10-04 Zack Weinberg <zack@codesourcery.com>
1217
1218 * libfuncs.h
1219 (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
1220 (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
1221 (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
1222 (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
1223 (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
1224 (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
1225 (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
1226 (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
1227 (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
1228 (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
1229 (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
1230 (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
1231 (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
1232 (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
1233 (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
1234 (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
1235 Delete.
1236 * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
1237 (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
1238 (le_optab, unord_optab): New.
1239
1240 * optabs.c (prepare_float_lib_cmp): Rewrite. Get the libfuncs
1241 from the code_to_optab table, not a giant switch; use
1242 swap_condition; do widening only if a comparison function that
1243 we can call exists in a wider mode, not if a cmp_optab insn or
1244 libfunc exists in a wider mode; call protect_from_queue
1245 exactly once on each operand.
1246 (init_optabs): Initialize the new optabs, not the deleted libfuncs.
1247
1248 * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
1249 * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
1250 Set floating point comparison libfuncs using set_optab_libfunc
1251 on the appropriate optab.
1252
1253 * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
1254 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
1255 selector conditionals.
1256
1257 2003-10-04 Stephane Carrez <stcarrez@nerim.fr>
1258
1259 * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
1260 identical to m68hc12 as far as libraries are concerned.
1261
1262 2003-10-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1263
1264 PR c/12446
1265 * c-typeck.c (convert_for_assignment): Issue an error for
1266 array to pointer assignment after default conversion.
1267 (digest_init): Likewise.
1268
1269 2003-10-04 Fariborz Jahanian <fjahanian@apple.com>
1270
1271 * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
1272
1273 2003-10-03 Gerald Pfeifer <gerald@pfeifer.com>
1274
1275 * doc/extend.texi (Function Attributes): Fix title of GNU C
1276 Preprocessor manual.
1277 (C++ Extensions): Fix reference to "Predefined Macros" in the
1278 GNU C Preprocessor manual.
1279
1280 2003-10-04 Richard Earnshaw <reanrsha@arm.com>
1281
1282 * doc/extend.texi: Document how GCC estimates and relies on the size
1283 of an asm.
1284
1285 2003-10-04 Richard Sandiford <rsandifo@redhat.com>
1286
1287 * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
1288 arguments downward for big-endian o64.
1289
1290 2003-10-03 Robert Bowdidge <bowdidge@apple.com>
1291
1292 * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
1293 PCH generation, avoiding too-frequent flushes when writing to NFS
1294 file system.
1295
1296 2003-10-03 Ziemowit Laski <zlaski@apple.com>
1297
1298 * objc/objc-act.c (lookup_category): Mark as 'inline'.
1299
1300 2003-10-03 Alexander Malmberg <alexander@malmberg.org>
1301 Ziemowit Laski <zlaski@apple.com>
1302
1303 * objc/objc-act.c (add_method_to_hash_list, lookup_category):
1304 New functions.
1305 (lookup_method_in_hash_lists): New parameter indicating whether
1306 we are messaging 'Class' or 'id'.
1307 (check_duplicates): Likewise; do not assume all methods will
1308 be either class or instance methods.
1309 (generate_category, finish_class): Use lookup_category().
1310 (add_method): Use add_method_to_hash_list(); insert instance
1311 methods of root classes into the global class method hash table.
1312 (add_category): Use lookup_category(); avoid constructing
1313 duplicate categories.
1314 (really_start_method): Add method to corresponding @interface,
1315 if not already there (and if the @interface exists).
1316 (finish_message_expr, finish_objc): Adjust calls to
1317 check_duplicates().
1318
1319 2003-10-03 Roger Sayle <roger@eyesopen.com>
1320
1321 PR optimization/9325, PR java/6391
1322 * fold-const.c (fold_convert): For floating point to integer
1323 conversions, return the maximum/minimum representable integer
1324 value if the real constant overflows the destination type.
1325 * tree.c (real_value_from_int_cst): Allow the type to be NULL,
1326 meaning don't truncate the result to a floating point mode.
1327 Simplify the logic by calling real_from_integer directly.
1328 * simplify-rtx.c (simplify_unary_operation): Implement the
1329 same semantics for folding floating point to integer conversions
1330 in RTL.
1331
1332 2003-10-03 Chris Demetriou <cgd@broadcom.com>
1333
1334 * config/mips/mips.c (mips_emit_prefetch): Restructure
1335 to avoid use of arrays, handle indexed prefetch.
1336 * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
1337 (ISA_HAS_PREFETCHX): New deffine.
1338 * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
1339 update comments.
1340 (prefetch_indexed_di, prefetch_indexed_si): New insns.
1341
1342 2003-10-03 Jeff Sturm <jsturm@one-point.com>
1343 Roger Sayle <roger@eyesopen.com>
1344
1345 PR optimization/12289
1346 * calls.c (emit_call_1): Pretend to have popped the arguments
1347 to noreturn and longjmp functions instead of ignoring them.
1348 (expand_call): Don't adjust stack_pointer_dela while
1349 inhibit_defer_pop is set.
1350
1351 2003-10-03 Andreas Schwab <schwab@suse.de>
1352
1353 PR bootstrap/12276
1354 * configure.in: Check for libunwind on the host only if building
1355 a native compiler.
1356 * configure: Regenerated.
1357
1358 2003-10-03 Paolo Carlini <pcarlini@unitus.it>
1359
1360 * unwind-pe.h (read_encoded_value_with_base): Constify u and
1361 its inizialization cast.
1362
1363 2003-10-03 Richard Sandiford <rsandifo@redhat.com>
1364
1365 PR target/12485
1366 * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
1367
1368 2003-10-02 Mark Mitchell <mark@codesourcery.com>
1369
1370 PR optimization/12180
1371 * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
1372 functions containing calls to __builtin_next_arg.
1373
1374 2003-10-02 Chris Demetriou <cgd@broadcom.com>
1375
1376 * config/mips/mips.c (mips_emit_prefetch): Use operand 3
1377 in instructions being output.
1378 * config/mips/mips.md (prefetch_si_address): Change third
1379 operand's constraint letter to 'I'.
1380 (prefetch_di_address): Likewise.
1381 (prefetch_si, prefetch_di): Set third operand to const0_rtx.
1382
1383 2003-10-02 Zack Weinberg <zack@codesourcery.com>
1384
1385 * system.h: Poison macros obsoleted by earlier patch.
1386 * config/cris/cris.c: C90-ify a function definition.
1387
1388 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
1389
1390 PR/12292
1391 * combine.c (make_field_assignment): Check whether rtx's code
1392 is CONST_INT before using INTVAL.
1393
1394 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
1395
1396 * cgraph.c (cgraph_node): Use INSERT instead of 1 in
1397 htab_find_slot_with_hash.
1398 (cgraph_node_for_identifier): Use NO_INSERT.
1399 (cgraph_remove_node): Use NO_INSERT.
1400 (cgraph_varpool_node): Use INSERT.
1401 (cgraph_varpool_node_for_identifier): Use NO_INSERT.
1402
1403 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
1404
1405 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1406 PR/12072
1407 * varasm.c (compare_constant): Fix thinko.
1408
1409 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
1410
1411 * config/frv/frv.c (frv_issue_rate): New function.
1412 (frv_pack_insns): Use it.
1413 (TARGET_SCHED_ISSUE_RATE): Define.
1414
1415 2003-10-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
1416
1417 * config/mcore/mcore.c: Convert to ISO C90 function declarations
1418 and definitions.
1419 * config/mcore/mcore.h: Likewise.
1420 * config/mcore/mcore-protos.h: Likewise.
1421
1422 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
1423
1424 * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
1425 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
1426
1427 2003-10-01 Per Bothner <pbothner@apple.com>
1428
1429 * c-lex.c (src_line): Remove unneeded static variable.
1430 (cb_line_change): Set input_line directly, instead of src_line.
1431 (get_non_padding_token): We no longer need to compensate for the
1432 "horrible things" the C++ front-end does with the current line number,
1433
1434 * cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
1435 callback even when popping the main file.
1436 * c-lex.c (fe_file_change): Handle a NULL new_map.
1437 * fix-header.c (cb_file_change): Likewise.
1438 * c-ppoutput.c (pp_file_change): Likewise.
1439
1440 * cppinit.c (cpp_read_main_file): Split into two functions:
1441 Distribute _cpp_stack_file call over the two functions.
1442 (cpp_find_main_file): New function.
1443 Don't call _cpp_do_file_change even if working_directory flag set.
1444 (cpp_push_main_file): New function.
1445 * cppfiles.c (_cpp_find_failed): New helper function.
1446 (find_file): Made non-static and renamed to _cpp_find_file.
1447 (_cpp_stack_file): No longer needed. But note the following.
1448 (stack_file): Made non-static and renamed to _cpp_stack_file.
1449 * fix-header.c (cpp_read_main_file): Replace cpp_read_main_file
1450 call with calls to cpp_find_main_file and cpp_push_main_file.
1451 (search_path_head): If there is no current buffer, use main_file.
1452 * cpphash.h: Update function declarations.
1453 * cpplib.h: Update function declarations.
1454
1455 * c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
1456 (c_common_parse_file): No longer need to call cpp_read_main_file
1457 when file_index > 0 (as in multi-file or server compiation).
1458 (finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME
1459 as this now happens before cpp_push_main_file.
1460 (push_command_line_include): When done with options, pass LC_LEAVE
1461 instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
1462 (fe_file_change): Handle NULL new_map, and simplify.
1463 * cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed
1464 08-28 change, since we're never called with a NULL buffer.
1465 (_cpp_lex_direct): Likewise.
1466 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
1467 Return false if buffer is NULL at end.
1468
1469 * cpplex.c (_cpp_get_fresh_line): Return value now just depends on
1470 whether pfile->buffer is NULL after pop, ignoring return_at_eof.
1471 * cpphash.h (struct cpp_buffer): Remove unused return_at_eof field.
1472 * cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof,
1473 remove the unused return_at_eof parameter.
1474 * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
1475 Update callers of cpp_push_buffer.
1476
1477 2003-10-01 Zack Weinberg <zack@codesourcery.com>
1478
1479 * target.h (init_libfuncs): New hook.
1480 * target-def.h: Default TARGET_INIT_BUILTINS and
1481 TARGET_INIT_LIBFUNCS to hook_void_void. Add
1482 TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
1483 * builtins.c (default_init_builtins): Delete.
1484 * expr.h (default_init_builtins): Delete prototype.
1485 * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
1486 Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
1487 Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
1488 DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
1489 MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
1490 and UMODDI3_LIBCALL,
1491
1492 * Makefile.in (optabs.o): Depends on target.h.
1493 * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
1494 * optabs.c: Include target.h.
1495 (prepare_float_lib_cmp): No need for #ifdef around use of
1496 FLOAT_LIB_COMPARE_RETURNS_BOOL.
1497 (set_optab_libfunc): New function.
1498 (init_optabs): Delete use of all *_LIBCALL defines.
1499 Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
1500 * optabs.h: Prototype set_optab_libfunc.
1501
1502 * config.gcc: Remove all references to pa/long_double.h,
1503 ia64/hpux_longdouble.h, and gofast.h.
1504 (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
1505 to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
1506
1507 * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
1508 * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
1509 * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
1510 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
1511 * config/sparc/sparc.c, config/vax/vax.c:
1512 Provide a definition for TARGET_INIT_LIBFUNCS. Where
1513 necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
1514
1515 * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
1516 * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
1517 * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
1518 * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
1519 * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
1520 * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
1521 * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
1522 * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
1523 INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
1524
1525 * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
1526 Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
1527 * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
1528 HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
1529 * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
1530
1531 * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
1532 * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
1533 SUN_INTEGER_MULTIPLY_64 to 0.
1534 * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
1535 SUN_INTEGER_MULTIPLY_64 to 1.
1536 * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
1537 SUN_INTEGER_MULTIPLY_64 to 0.
1538 * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
1539 Define US_SOFTWARE_GOFAST.
1540 * config/vax/vax.h: Default TARGET_ELF to 0.
1541 * config/vax/elf.h: Redefine TARGET_ELF to 1.
1542
1543 * config/gofast.h: Don't define any macros here. Provide one
1544 static function, gofast_maybe_init_libfuncs, which does what
1545 INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
1546 is already defined. Do not clear negation libfuncs. Do
1547 not mess with HFmode, XFmode, or TFmode libfuncs.
1548
1549 * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
1550
1551 2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
1552
1553 PR C/12466
1554 * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
1555
1556 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1557
1558 * config/mips/xm-iris5.h: Remove, unnecessary.
1559 * config.build (mips-sgi-irix5*): Remove.
1560 (mips-sgi-irix6*o32): Likewise.
1561 * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
1562 (mips-sgi-irix5cross64): Likewise.
1563 (mips-sgi-irix5*): Likewise.
1564 * config.host (mips-sgi-irix5*): Remove.
1565 (mips-sgi-irix6*o32): Likewise.
1566
1567 2003-10-01 Zack Weinberg <zack@codesourcery.com>
1568
1569 * dbxout.c (dbxout_fptype_value): Delete.
1570 (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
1571
1572 2003-10-01 Alexandre Oliva <aoliva@redhat.com>
1573
1574 * output.h (compute_reloc_for_constant): Declare.
1575 * varasm.c (compute_reloc_for_constant): Extract from...
1576 (output_addressed_constants): ... here. Adjust all callers.
1577
1578 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1579
1580 * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
1581 * configure: Rebuilt.
1582
1583 2003-10-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1584
1585 * fold-const.c (make_range): When handling unsigned, don't reverse
1586 range if high bound is zero.
1587
1588 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1589
1590 * config/frv/frv.h (PREDICATE_CODES): Added
1591 condexec_si_media_operator, condexec_sf_add_operator and
1592 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
1593 and condexec_sf_unary_operator.
1594
1595 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1596
1597 * aclocal.m4: Add ultrix* to /dev/zero blacklist.
1598 * configure: Rebuilt.
1599
1600 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1601
1602 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
1603 Allow override.
1604 * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
1605
1606 2003-09-23 David S. Miller <davem@redhat.com>
1607
1608 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
1609 before redefining.
1610 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
1611
1612 2003-10-01 Steven Bosscher <steven@gcc.gnu.org>
1613
1614 * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
1615 C90 function declarations and definitions.
1616
1617 2003-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
1618
1619 * config.gcc (cris-*-linux*): Revert mistaken commit.
1620
1621 2003-10-01 Eric Botcazou <ebotcazou@libertysurf.fr>
1622
1623 PR optimization/11753
1624 * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
1625 the length in the non-V9 case.
1626
1627 2003-09-30 Richard Henderson <rth@redhat.com>
1628
1629 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
1630 DWARF_ALT_FRAME_RETURN_COLUMN.
1631 * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
1632 (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
1633 (uw_frame_state_for): Return end-of-stack for null return address.
1634 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
1635
1636 * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
1637 (alpha_expand_prologue): Store a zero for it.
1638 (alpha_expand_epilogue): Don't reload it.
1639 * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
1640 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
1641 for the sigframe return address.
1642
1643 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
1644
1645 * sdbout.c: Convert to ISO C90 prototypes.
1646 * objc/objc-act.c: Likewise.
1647
1648 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
1649
1650 * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
1651 * config/i386/winnt.c: Likewise.
1652 * config/i386/cygming.h: Likewise.
1653
1654 2003-09-30 Kazu Hirata <kazu@cs.umass.edu>
1655
1656 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
1657 (A ^ B) - B for any B.
1658
1659 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
1660
1661 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
1662 powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
1663
1664 2003-09-30 Richard Earnshaw <rearnsha@arm.com>
1665
1666 * arm/ieee754-sf.S: Tidy formatting.
1667
1668 2003-09-30 Nicolas Pitre <nico@cam.org>
1669
1670 * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
1671 and ARM_MOD_BODY.
1672 (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
1673 (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
1674 added better divisor alignment in the other case.
1675 (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
1676 (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
1677 macros above, add fast exits for divisor >= dividend, etc.
1678
1679 2003-09-30 Nicolas Pitre <nico@cam.org>
1680
1681 * arm/ieee754-df.S: Split compilation of fixunsdfsi from
1682 L_fixdfsi target.
1683 * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
1684
1685 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
1686
1687 * config.gcc: Default use_fixproto to 'no'.
1688
1689 2003-09-30 Richard Sandiford <rsandifo@redhat.com>
1690
1691 PR optimization/12345
1692 * config/mips/mips-protos.h (mips_restore_gp): Remove.
1693 (mips_gp_save_slot): Declare.
1694 * config/mips/mips.c (mips_restore_gp): Remove in favor of...
1695 (mips_gp_save_slot): ...this new function.
1696 * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
1697 and mips_output_move to generate the output template.
1698 (call_internal): Force splitting if TARGET_SPLIT_CALLS. Don't emit
1699 a gp load after a noreturn call. Load the gp using a move rather
1700 than an exception_receiver pattern.
1701 (call_value_internal, call_value_multiple_internal): Likewise.
1702 (call_split, call_value_split, call_value_multiple_split): Clobber $28.
1703
1704 2003-09-30 Carlo Wood <carlo@alinoe.com>
1705
1706 PR debug/12319
1707 * cfglayout.c (insn_scope): Use prologue_locator and
1708 epilogue_locator; return the outer function scope for
1709 pro- and epilogue insns.
1710
1711 2003-09-29 Zack Weinberg <zack@codesourcery.com>
1712
1713 * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
1714 REAL_TYPEs based on the bitsize of the type's mode, not the
1715 mode directly.
1716
1717 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1718
1719 * dwarf2out.c (default_eh_frame_section): Split into ...
1720 (named_section_eh_frame_section, collect2_eh_frame_section): ... new
1721 functions.
1722 * output.h (named_section_eh_frame_section): Declare.
1723 (collect2_eh_frame_section): Likewise.
1724
1725 2003-09-29 Zack Weinberg <zack@codesourcery.com>
1726
1727 * real.c (real_sqrt): Use get_canonical_qnan directly.
1728
1729 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
1730
1731 * varasm.c (assemble_real): Use real_to_target directly,
1732 calculate the number of significant elements of the result
1733 array and write them out in a loop, instead of using a giant
1734 switch statement to pick the correct REAL_VALUE_TO_TARGET_*
1735 macro.
1736
1737 2003-09-29 Jan Hubicka <jh@suse.cz>
1738
1739 PR c++/12175
1740 * varasm.c (notice_global_symbol): Discard external symbols.
1741
1742 PR optimization/12286
1743 * gcov-io.c (gcov_read_words): Fix memmove call.
1744 * profile.c (compute_branch_probabilities): Add extra sanity checks.
1745
1746 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1747
1748 * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
1749 Solaris 7-9.
1750
1751 * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
1752 wildcards which explicitly match micro versions.
1753 * fixinc/fixincl.x: Regenerate.
1754
1755 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
1756
1757 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
1758 (A ^ B) - B, where B is any power of 2 minus 1.
1759
1760 2003-09-29 Jan Hubicka <jh@suse.cz>
1761
1762 * libgcov.c (gcov_exit): Fix two pastos.
1763
1764 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
1765
1766 * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
1767 define_split immediately below to form define_insn_and_split.
1768
1769 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
1770
1771 * config/h8300/h8300.md (*tstsi_variable_bit): New.
1772 (*tstsi_variable_bit_qi): Likewise.
1773
1774 2003-09-28 Phil Edwards <phil@codesourcery.com>
1775
1776 * doc/cppopts.texi: Use 'dashMP' instead of '-MP' as a cross-
1777 reference name.
1778
1779 2003-09-28 Richard Henderson <rth@redhat.com>
1780
1781 * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
1782 file and line separately.
1783
1784 2003-09-28 Ulrich Weigand <uweigand@de.ibm.com>
1785
1786 * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
1787 "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
1788 "*subdi3_borrow_cconly"): New insns.
1789 ("*addsi3_sub", "*subsi3_sub"): Remove.
1790 ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
1791 ("*subsi3_cc"): Fix op_type attribute.
1792
1793 2003-09-28 Richard Henderson <rth@redhat.com>
1794
1795 * stmt.c (expand_asm_operands): Take a location_t, instead of
1796 individual file and line.
1797 * c-typeck.c (c_expand_asm_operands): Likewise.
1798 * tree.h (expand_asm_operands): Update decl.
1799 * c-common.h (c_expand_asm_operands): Likewise.
1800 * c-semantics (genrtl_asm_stmt): Update call.
1801
1802 2003-09-28 Philip Blundell <philb@gnu.org>
1803
1804 * config/arm/arm.c (legitimize_pic_address): Check
1805 SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
1806 (arm_assemble_integer): Likewise.
1807
1808 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
1809
1810 * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
1811 config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
1812 config/c4x/c4x.h:
1813 Convert to ISO C90 function declarations and definitions.
1814
1815 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
1816
1817 * config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
1818 Convert to ISO C90 function declarations and definitions.
1819
1820 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
1821
1822 * config/mips/mips.c (mips_constant_info): Add reloc field.
1823 (mips_classify_constant): Initialize it. Always set SYMBOL to the
1824 underlying symbol, not to an unspec.
1825 (mips_delegitimize_address, print_operand): Clean up accordingly.
1826
1827 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
1828
1829 * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
1830 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
1831 * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
1832 (mips_classify_constant): Use it.
1833 (mips_splittable_symbol_p): Add an offset argument.
1834 (mips_classify_address): Adjust call accordingly.
1835 (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
1836 than a relocation unspec. Update call to mips_splittable_symbol_p.
1837 Generalize the code that copes with symbols + invalid offsets.
1838 (print_operand): Allow '%R' to be applied to small data addresses.
1839 (mips_reloc_string): Remove RELOC_GPREL16.
1840 (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg. Return $gp
1841 for TARGET_EXPLICIT_RELOCS. Return null if we can't use gp-relative
1842 relocation operators.
1843 * config/mips/mips.md (RELOC_GPREL16): Remove. Shuffle other reloc
1844 constants accordingly.
1845
1846 2003-09-27 Roger Sayle <roger@eyesopen.com>
1847
1848 * toplev.c (flag_evaluation_order): New global variable.
1849 * flags.h (flag_evaluation_order): Prototype here.
1850 * expr.c (expand_operands): If we need to preserve observable
1851 evaluation order, protect exp1 from clobbering exp0's result.
1852
1853 2003-09-28 Andreas Jaeger <aj@suse.de>
1854
1855 * c-decl.c (finish_function): Convert definition to ISO C90.
1856 * ifcvt.c (mark_loop_exit_edges): Likewise.
1857 * ra-rewrite.c (emit_colors): Likewise.
1858
1859 2003-09-27 Nathanael Nerode <neroden@gcc.gnu.org>
1860
1861 * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
1862 * config.gcc (arm*-*-uclinux*): Disable fixproto.
1863 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
1864 powerpc-*-eabialtivec*): Disable fixproto.
1865
1866 2003-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1867
1868 PR optimization/12340
1869 * loop.h (struct induction): Document the new semantics
1870 of the 'same' field for bivs.
1871 * unroll.c (biv_total_increment): Don't count the same
1872 biv increment several times.
1873 (loop_iterations) [GENERAL_INDUCT]: Likewise.
1874
1875 2003-09-27 Graham Stott <graham.stott@btinternet.com>
1876
1877 * unroll.c (loop_interations)[GT]: Add missing break.
1878
1879 2003-09-27 Kelley Cook <kcook@gcc.gnu.org>
1880
1881 * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
1882 config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
1883 config/dbxelf.h, config/elfos.h, config/fp-bit.h,
1884 config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
1885 config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
1886 config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
1887 config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
1888 config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
1889 config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
1890 config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
1891 config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
1892 config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
1893 config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
1894 config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
1895 config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
1896 config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
1897 config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
1898 config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
1899 config/alpha/xm-vms.h, config/arc/arc-modes.def,
1900 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
1901 config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
1902 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
1903 config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
1904 config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
1905 config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
1906 config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
1907 config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
1908 config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
1909 config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
1910 config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
1911 config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
1912 config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
1913 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
1914 config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
1915 config/i960/i960-c.c, config/i960/i960-coff.h,
1916 config/i960/i960-modes.def, config/i960/i960-protos.h,
1917 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
1918 config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
1919 config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
1920 config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
1921 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
1922 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
1923 config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
1924 config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
1925 config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
1926 config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
1927 config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
1928 config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
1929 config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
1930 config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
1931 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
1932 config/mcore/mcore-protos.h, config/mcore/mcore.c,
1933 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
1934 config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
1935 config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
1936 config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
1937 config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
1938 config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
1939 config/mips/vr.h, config/mn10300/linux.h,
1940 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
1941 config/mn10300/mn10300.h, config/mn10300/mn10300.md,
1942 config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
1943 config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
1944 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
1945 config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
1946 config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
1947 config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
1948 config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
1949 config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
1950 config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
1951 config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
1952 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
1953 config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
1954 config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
1955 config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
1956 fixinc/fixinc.svr4: GNU CC -> GCC.
1957
1958 2003-09-26 Loren James Rittle <ljrittle@acm.org>
1959
1960 * objc/objc-act.c (tm_p.h): Tweak order.
1961 * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
1962
1963 2003-09-26 Nathanael Nerode <neroden@gcc.gnu.org>
1964
1965 * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
1966 Include t-slibgcc-elf-ver and t-linux in tmake_file.
1967 * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
1968 Disable fixproto.
1969 * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
1970 Disable fixproto.
1971 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
1972 sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
1973
1974 * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
1975
1976 2003-09-26 Loren James Rittle <ljrittle@acm.org>
1977
1978 * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
1979 * objc/objc-act.c (tm_p.h): Include.
1980
1981 2003-09-26 Per Bothner <pbothner@apple.com>
1982
1983 * dbxout.c (dbxout_typedefs): Output typedefs in forward order.
1984 No longer any need to reverse by recursion.
1985
1986 2003-09-26 Roger Sayle <roger@eyesopen.com>
1987 Richard Henderson <rth@redhat.com>
1988
1989 PR optimization/11741
1990 * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
1991 appropriate set to match that in hash_scan_insn. Fall back to
1992 the original copy method, if we can't validate changing insn.
1993 (pre_delete): Only delete instructions that have a single_set,
1994 instead of aborting when we encounter an PARALLEL insn with more
1995 then one SET.
1996
1997 2003-09-26 Andreas Krebbel <krebbel1@de.ibm.com>
1998
1999 * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
2000 ("builtin_longjmp"): Insn deleted.
2001 ("save_stack_nonlocal"): Save literal pool base pointer behind
2002 backchain and stack pointer.
2003 ("restore_stack_nonlocal"): Restore literal pool base pointer.
2004 * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
2005 the stack save area for the nonlocal goto case.
2006
2007 2003-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2008
2009 PR bootstrap/12358
2010 * pa.c (output_bvb): Fix typo.
2011
2012 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
2013
2014 * expmed.c (store_bit_field): Don't search for an integer mode
2015 unless we need the result.
2016
2017 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
2018
2019 * expr.c (emit_move_insn_1): If there is no move pattern for the
2020 original mode, try using a pattern for the corresponding integer mode.
2021
2022 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
2023
2024 PR middle-end/9200
2025 * combine.c (if_then_else_cond): Tighten mode check.
2026
2027 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2028
2029 * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
2030 'struct _cpp_strbuf'.
2031
2032 * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2033 config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
2034 config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
2035 config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
2036 config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
2037 config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
2038 config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
2039 config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
2040 config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
2041 "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
2042 * config/i386/i386-aout.h, config/i386/i386-coff.h,
2043 config/i386/i386-interix.h, config/i386/i386-interix3.h,
2044 config/i386/i386-modes.def, config/i386/i386-protos.h,
2045 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
2046 config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
2047 config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
2048 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
2049 config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
2050 "GNU compiler" -> GCC.
2051 * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
2052 config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
2053 config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
2054 config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
2055 config/i386/freebsd-aout.h, config/i386/freebsd.h,
2056 config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
2057
2058 2003-09-25 Kelley Cook <kelleycook@wideopenwest.com>
2059
2060 * cgraph.c (dump_cgraph): Don't output newline before dump. Add in
2061 "local" to the callgraph dump. Output "after inlining" earlier.
2062 * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
2063 callgraph dumps. Correct misspellings.
2064 (cgraph_decide_inlining): Output number of insns before inlining.
2065 Output the calling function into which a function is inlined.
2066 (cgraph_decide_small_functions): Format dump file like always_inline.
2067
2068 2003-09-25 Loren James Rittle <ljrittle@acm.org>
2069
2070 * config/i386/i386.h (ix86_return_in_memory): Add prototype.
2071
2072 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
2073
2074 * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
2075 FPR slots in the save area.
2076 (s390_emit_epilogue): Likewise.
2077
2078 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
2079
2080 * cgraph.h (cgraph_remove_edge): Declare.
2081 * cgraph.c (cgraph_remove_edge): Make extern.
2082 * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
2083 instead of cgraph_remove_call.
2084
2085 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
2086
2087 * objc/objc-act.c (gen_declaration_1): Fix printf format.
2088
2089 2003-09-25 Richard Earnshaw <rearnsha@arm.com>
2090
2091 * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
2092 arm7tdmi core.
2093
2094 2003-09-25 Ziemowit Laski <zlaski@apple.com>
2095
2096 * config/darwin-protos.h (objc_image_info_section):
2097 New prototype.
2098
2099 2003-09-25 Ziemowit Laski <zlaski@apple.com>
2100
2101 * Makefile.in (stub-objc.o): Depend on $(GGC_H).
2102
2103 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2104
2105 * config.gcc: Get rid of more gratuitious 'x'es. Actually allow
2106 tsc701 as a --with-cpu, --with-tune setting for sparc.
2107
2108 2003-09-25 Ziemowit Laski <zlaski@apple.com>
2109
2110 * c-parse.in (objc_try_stmt): Do not specify a %type.
2111
2112 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2113
2114 * config.gcc: New 'widely ported system' clause for rtems.
2115 Set thread file there, not in individual clauses.
2116
2117 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
2118
2119 PR target/6222
2120 * config/mips/mips.c (mips_va_arg): Handle arguments that must be
2121 passed on the stack.
2122
2123 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2124
2125 * config.gcc (widely ported systems section): Mostly alphabetize
2126 by system. Comment the case where we can't.
2127 * config.gcc (widely ported systems section): Reindent and clean up.
2128
2129 * config.gcc: Remove some unnecessary uses of 'x' in case statements.
2130 Actually allow ep9312 as an arm --with-arch setting.
2131
2132 * config.gcc (*-hpux11): Disable fixproto.
2133
2134 2003-09-24 Phil Edwards <phil@codesourcery.com>
2135
2136 PR pch/12112
2137 * gcc/cppfiles.c (pch_open_file): Return based on combined
2138 result of all files.
2139 (validate_pch): Return validate flag for current file.
2140
2141 2003-09-24 Roger Sayle <roger@eyesopen.com>
2142
2143 PR bootstrap/12358
2144 * fold-const.c (tree_swap_operands_p): Only reorder operands when
2145 one of the operands is constant.
2146
2147 2003-09-24 Ziemowit Laski <zlaski@apple.com>
2148
2149 MERGE OF objc-improvements-branch into MAINLINE:
2150 * Makefile.in (C_OBJS): Add in stub-objc.o.
2151 (c-parse.y): Change sed demarcations to begin with '@@'.
2152 (stub-objc.o): New rule.
2153 * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
2154 flag_replace_objc_classes): New flags.
2155 * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
2156 RID_AT_SYNCHRONIZED): New keywords.
2157 (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
2158 flag_replace_objc_classes): New flags.
2159 (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
2160 objc_comptypes, objc_message_selector, lookup_objc_ivar,
2161 get_current_scope, objc_mark_locals_volatile): New prototypes,
2162 some moved from c-tree.h.
2163 * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
2164 (finish_decl): Adjust where objc_check_decl() gets called.
2165 * c-lang.c (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
2166 objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
2167 * c-opts.c (c_common_handle_option): Add handling for flag_nil_receivers,
2168 flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
2169 * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
2170 '@@end_ifc', respectively.
2171 (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
2172 (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
2173 objc_finally_block): New rules.
2174 (component_decl_list2): Clean up semantic action for @defs construct.
2175 (component_decl, c99_block_start): Remove call to add_objc_decls().
2176 (poplevel): Add call to objc_clear_super_receiver().
2177 (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
2178 constructs.
2179 (classdef, methodprotolist): Clean up/simplify.
2180 (methodprotolist2): Eliminate.
2181 (methodproto): Call add_method() instead of add_class_method() and
2182 add_instance_method().
2183 (receiver): Add TYPENAME production.
2184 (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
2185 (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
2186 AT_SYNCHRONIZED.
2187 * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
2188 objc_comptypes, objc_message_selector)
2189 * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
2190 struct and pointer types.
2191 (build_c_cast): Do not discard ObjC protocol qualifiers.
2192 (convert_for_assignment): Cache result of comp_target_types() instead
2193 of calling it more than once.
2194 * c.opt (fnext-runtime): Update description string.
2195 (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
2196 New ObjC/ObjC++-specific flags.
2197 * function.h (GCC_FUNCTION_H): Header guard.
2198 * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
2199 * stub-objc.c: New file, to be used to satisfy references to ObjC
2200 functions by the C and C++ front-ends.
2201 * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
2202 * config/darwin.h (FUNCTION): Add in_objc_image_info.
2203 (SECTION_FUNCTION): Add objc_image_info_section.
2204 * doc/invoke.texi: Link to GCC web site for Objective-C information.
2205 (-fconstant-string-class): Update documentation.
2206 (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
2207 -fzero-link): New documentation.
2208 * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
2209 with '@@'.
2210 * objc/lang-specs.h (@objective-c-header): Fix -E spec.
2211 * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
2212 throughout; provide casts for return values from memory allocation
2213 functions (xmalloc, alloca, ggc_alloc, etc.).
2214 (OBJC_VOID_AT_END): New macro.
2215 (rtl.h): Do not #include any more.
2216 (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
2217 (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
2218 TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
2219 TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
2220 TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
2221 (struct val_stack, catch_count_stack, exc_binding_stack, val_stack_push,
2222 val_stack_pop): New.
2223 (objc_check_decl): Fix precondition for error message, along with
2224 the message itself.
2225 (lookup_and_install_protocols): Remove nonexistent protocols from
2226 protocol list instead of returning error_mark_node.
2227 (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
2228 (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
2229 (synth_module_prologue): General clean-up; construct NeXT-specific
2230 runtime API prototypes if needed.
2231 (build_string_class_template): Remove.
2232 (check_string_class_template, string_layout_checked): New.
2233 (build_objc_string_object): Generalize to work with
2234 -fconstant-string-class.
2235 (build_objc_symtab_template): Fix layout for the NeXT runtime.
2236 (build_metadata_decl): New.
2237 (forward_declare_categories): Call build_metadata_decl() instead of
2238 create_builtin_decl() et al.
2239 (build_module_descriptor): Use OBJC_VOID_AT_END instead of
2240 void_list_node_1.
2241 (build_selector_reference_decl, build_class_reference_decl,
2242 build_objc_string_decl): Do not set TREE_READONLY.
2243 (get_proto_encoding): Do not call hack_method_prototype().
2244 (get_class_reference): Add failure mode for invalid class names;
2245 support -fzero-link; defer if in an ObjC++ template declaration.
2246 (objc_declare_alias, objc_declare_class): Fix up duplicate name
2247 lookup; check for global scope if in ObjC++.
2248 (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
2249 RECORD_TYPE, IDENTIFIER_NODE, etc.)
2250 (objc_is_id): Removed.
2251 (objc_is_object_ptr): New function.
2252 (get_class_ivars_from_name): New function, used for @defs construct.
2253 (get_class_ivars): Add option to return raw ivars; create a
2254 ClASS_OWN_IVARS list for each class as needed.
2255 (objc_enter_block, objc_exit_block, objc_declare_variable,
2256 objc_build_throw_stmt, val_stack_push, val_stack_pop,
2257 objc_build_try_enter_fragment, objc_build_extract_expr,
2258 objc_build_try_exit_fragment, objc_build_extract_fragment,
2259 objc_build_try_prologue, objc_build_try_epilogue,
2260 objc_build_catch_stmt, objc_build_catch_epilogue,
2261 objc_build_finally_prologue, objc_build_finally_epilogue,
2262 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
2263 objc_build_synchronized_epilogue, build_objc_exception_stuff):
2264 New functions.
2265 (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
2266 the future).
2267 (build_private_template): Fix up calls to get_class_ivars().
2268 (offset_is_register, forwarding_offset): Remove.
2269 (objc_method_parm_type, objc_encoded_type_size): New functions.
2270 (encode_method_prototype): Simplify to no longer depend on
2271 back-end information.
2272 (build_tmp_function_decl_xxx, build_tmp_function_decl,
2273 hack_method_prototype): Removed.
2274 (generate_protocol_references): Remove calls to
2275 build_tmp_function_decl().
2276 (generate_protocols): Adjust calls to encode_method_prototype().
2277 (build_class_template): Generate sel_id' and 'gc_object_type' fields
2278 for the NeXT runtime.
2279 (synth_forward_declarations): Call build_metadata_decl().
2280 (check_ivars): Check that the number of ivars matches also.
2281 (build_super_template): Modify super_type directly; disable debugging
2282 output while generating decl.
2283 (build_ivar_list_initializer): Skip list elements that are not
2284 FIELD_DECLs.
2285 (ivar_list_length): New function.
2286 (generate_ivar_lists): Call ivar_list_length() instead of list_length()
2287 and encode_method_prototype() instead of encode_method_def().
2288 (build_shared_structure_initializer): Generate 'sel_id' field for
2289 the NeXT runtime.
2290 (generate_category): Do not set TREE_USED.
2291 (build_keyword_selector): Ditto; transform into a function argument
2292 chain.
2293 (get_arg_type_list): If there are no user-specified arguments, use
2294 '...'; use OBJC_VOID_AT_END.
2295 (check_duplicates): Add a parameter indicating whether methods or
2296 selectors are being checked.
2297 (receiver_is_class_object): Add parameters indicating whether
2298 receiver is 'self' or 'super'; robustify.
2299 (build_message_expr): Defer call to finish_message_expr() if
2300 inside an ObjC++ template.
2301 (lookup_method_in_hash_lists): New function.
2302 (finish_message_expr): Complete rewrite/fix.
2303 (build_objc_method_call): Ditto; factor out commonalities between
2304 the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
2305 messenger variants on the NeXT.
2306 (lookup_instance_method_static, lookup_class_method_static):
2307 Fold into a single lookup_method_static() function with an
2308 additional parameter.
2309 (add_class_method, add_instance_method): Fold into a single
2310 add_method() function with an additional parameter.
2311 (add_category): Make duplicate categories a hard error in ObjC++.
2312 (add_instance_variable): Properly handle unnamed ivars, arrays of
2313 zero or no size and bitfields. In ObjC++, check for nontrivial
2314 C++ class instances.
2315 (is_public): Allow C functions to access non-@public ivars, with
2316 a warning.
2317 (start_class): Move common initializations to
2318 synth_module_prologue(); check for global scope if in ObjC++.
2319 (continue_class): Fix calls to finish_struct().
2320 (objc_declare_protocols, start_protocol): Check for global scope
2321 if in ObjC++.
2322 (encode_pointer): Encode 'BOOL *' specially on the NeXT.
2323 (encode_aggregate_within): Rewrite to properly distinguish
2324 struct tags from typedefs in both ObjC and ObjC++.
2325 (encode_bitfield, encode_complete_bitfield): Remove.
2326 (encode_next_bitfield, encode_gnu_bitfield): New functions.
2327 (encode_field_decl): Call encode_next_bitfield() or
2328 encode_gnu_bitfield() as needed.
2329 (synth_self_and_ucmd_args): New function.
2330 (start_method_def): Use it.
2331 (objc_types_are_equivalent): New function.
2332 (comp_proto_with_proto): Use it instead of comptypes(), since
2333 we need symmetry.
2334 (really_start_method): Use lookup_method_static() instead of
2335 lookup_class_method_static() and lookup_instance_method_static();
2336 Emit 'extern "C"' if in ObjC++ mode.
2337 (add_objc_decls): Removed.
2338 (UOBJC_SUPER_scope): New variable.
2339 (get_super_receiver): Move construction of 'super' from
2340 add_objc_decls(); remove dependency on struct objc_class.
2341 (encode_method_def): Removed; encode_method_prototype() is
2342 used instead.
2343 (objc_clear_super_receiver): New function.
2344 (objc_expand_function_end): Do not do anything for ordinary
2345 C functions.
2346 (finish_method_def): Mark ObjC methods as un-inlinable.
2347 (gen_declaration_1): Emit widths of bitfields.
2348 (finish_objc): Call generate_objc_image_info() if needed;
2349 use check_duplicates() when checking for selector duplicates.
2350 (generate_objc_image_info): New function.
2351 * objc/objc-act.h (add_instance_method, add_class_method,
2352 get_class_ivars): Remove prototypes.
2353 (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
2354 objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
2355 objc_build_catch_stmt, objc_build_catch_epilogue,
2356 objc_build_finally_prologue, objc_build_finally_epilogue,
2357 add_method, get_class_ivars_from_name): New prototypes.
2358 (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
2359 (TYPE_PROTOCOL_LIST): Robustify to distinguish from
2360 TRANSLATION_UNIT_DECLs.
2361 (OBJC_TYPE_NAME): New.
2362 (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
2363 got included.
2364 (IS_SUPER): Robustify.
2365 (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
2366 umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
2367 objc_exception_try_enter_decl, objc_exception_try_exit_decl,
2368 objc_exception_match_decl, objc_exception_throw_decl,
2369 objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
2370 objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
2371 objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
2372 objc_catch_type): New ObjC/ObjC++ roots.
2373 * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
2374 ObjC/ObjC++ tree node codes.
2375
2376 2003-09-24 Alexandre Oliva <aoliva@redhat.com>
2377
2378 * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
2379 code path that calls a handler.
2380
2381 2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
2382
2383 * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
2384 Disable fixproto.
2385
2386 * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
2387 the section giving $with_cpu defaults by target.
2388
2389 * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
2390 arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
2391 rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
2392 rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
2393 rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
2394 i[34567]86-pc-msdosdjgpp*): Disable fixproto.
2395
2396 2003-09-24 David Edelsohn <edelsohn@gnu.org>
2397
2398 * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
2399 together. Protect load string instruction with TARGET_STRING.
2400 (movti_string): Collapse case 1 and 2 together.
2401
2402 2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
2403
2404 * c-common.c (c_common_type_for_mode): Check for VOIDmode.
2405
2406 2003-09-24 Richard Earnshaw <rearnsha@arm.com>
2407
2408 * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
2409 do...while(0)
2410
2411 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
2412
2413 * config.gcc: Move use_fixproto=no from generic vxworks clause to
2414 specific one.
2415
2416 * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
2417 (accidentally missed in last pass).
2418
2419 2003-09-23 Andrew Pinski <apinski@apple.com>
2420
2421 PR bootstrap/12383
2422 * configure: Regenerate.
2423
2424 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
2425
2426 * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
2427 missed in last pass).
2428
2429 2003-09-23 Alexandre Oliva <aoliva@redhat.com>
2430
2431 * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
2432 constant.
2433
2434 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
2435
2436 * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
2437
2438 * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
2439 powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
2440 powerpcle-*-eabi*): Disable fixproto.
2441
2442 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
2443 specific FreeBSD clauses.
2444 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
2445 specific NetBSD clauses.
2446 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
2447 to specific OpenBSD clauses.
2448
2449 2003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2450
2451 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
2452 without adding a frame note.
2453 * pa.md (allocate_stack): Save pic register in new frame marker when
2454 generating pic code.
2455
2456 2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
2457
2458 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
2459 cgraph_expand_functions.
2460
2461 2003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2462
2463 * Makefile.in (gnucompare*): Merge into ...
2464 (slowcompare*): ... here.
2465 (fastcompare*): New targets.
2466 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
2467 other "fast" cmp programs.
2468 * configure: Regenerate.
2469
2470 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2471
2472 * targhooks.c: Include output.h.
2473 * Makefile.in (targhooks.o): Add output.h to dependency list.
2474
2475 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2476
2477 * config.host: Removed superfluous newline.
2478
2479 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
2480
2481 * config.gcc: Use ${target}, not $machine.
2482 * configure.in: Don't set $machine.
2483 * configure: Regenerate.
2484
2485 2003-09-23 Geoffrey Keating <geoffk@apple.com>
2486
2487 * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
2488
2489 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
2490 pass zero-size arrays by reference.
2491 (rs6000_va_arg): Likewise.
2492
2493 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
2494
2495 * config.gcc: Set use_fixproto=no in each specific *-gnu*
2496 configuration, rather than the generic one.
2497
2498 2003-09-23 Richard Henderson <rth@redhat.com>
2499
2500 * tree-inline.c (remap_save_expr): Map new save_expr to identity
2501 rather than to error_mark_node.
2502
2503 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2504
2505 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
2506 Update description.
2507 * configure: Regenerate.
2508 * config.in: Likewise.
2509 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
2510 HAVE_GAS_SHF_MERGE value.
2511 * varasm.c (mergeable_string_section): Likewise.
2512 (mergeable_constant_section): Likewise.
2513
2514 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2515
2516 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
2517 value.
2518
2519 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2520
2521 * target.h (struct gcc_target): New member external_libcall.
2522 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
2523 (TARGET_ASM_OUT): Use it.
2524 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
2525 * targhooks.c: Convert to ISO C 90.
2526 (default_external_libcall): New function.
2527 * targhooks.h (default_external_libcall): Declare.
2528 * varasm.c (assemble_external_libcall): Use
2529 targetm.asm_out.external_libcall instead of
2530 ASM_OUTPUT_EXTERNAL_LIBCALL.
2531 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
2532 (mips_output_external_libcall): Declare.
2533 * config/mips/mips.c (mips_output_external_libcall): Change
2534 definition guard.
2535 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
2536 Only operate for O32 ABI.
2537 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
2538 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
2539 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
2540 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
2541
2542 2003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
2543
2544 * config.gcc: Do per-target disabling of fixproto here in clauses,
2545 not in t- fragments.
2546 * configure.in: Adjust to set STMP_FIXPROTO correctly.
2547 * configure: Regenerate.
2548 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
2549 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
2550 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
2551 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
2552 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
2553 t-interix, t-linux-aout: Delete files consisting only of
2554 setting of STMP_FIXPROTO.
2555
2556 * config.host: Allow unknown hosts (not targets). Allow
2557 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
2558 empty clauses. Remove useless obsolete-configuration clause.
2559 Prune unsupported configuration list. Collapse identical
2560 clauses for closely related systems. Rewrite comment for
2561 unsupported hosts list. Reorganize a little.
2562
2563 2003-09-22 Richard Henderson <rth@redhat.com>
2564
2565 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
2566 not precision.
2567
2568 2003-09-22 David Edelsohn <edelsohn@gnu.org>
2569 Hartmut Penner <hpenner@de.ibm.com>
2570 Segher Boessenkool <boessen@de.ibm.com>
2571
2572 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
2573 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
2574 (rs6000_split_altivec_in_gprs): Rename to ...
2575 (rs6000_split_multireg_move): Add support for update addressing.
2576 * config/rs6000/rs6000-protos.h: Same.
2577 * config/rs6000/altivec.md: Same.
2578 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
2579 multiple GPRs.
2580 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
2581 (movti_power): Use new splitter for multiple GPRs.
2582 (movti_string): Same.
2583 (movti_ppc64): Same.
2584
2585 2003-09-22 Bob Wilson <bob.wilson@acm.org>
2586
2587 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
2588 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
2589
2590 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
2591
2592 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
2593 (andsi3): Set attr cc to set_zn when using shifts or adds.
2594
2595 2003-09-22 Bernardo Innocenti <bernie@develer.com>
2596
2597 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
2598
2599 2003-09-22 Bernardo Innocenti <bernie@develer.com>
2600
2601 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
2602 Resurrect -mrtd option.
2603
2604 2003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
2605
2606 PR target/12281
2607 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
2608 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
2609
2610 2003-09-22 Olivier Hainque <hainque@act-europe.fr>
2611
2612 PR target/9786
2613 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
2614 after potential deletion of trapping insn. Avoids later ICE
2615 from call to fixup_abnormal_edges.
2616 (convert_regs_2): Stack the current block successors before
2617 processing this block, that is, before the potential deletion of
2618 dead edges by convert_regs_1, because these edges have been used
2619 to initialize the predecessors count.
2620
2621 2003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2622
2623 * real.c: Fix several nits in the head comment.
2624
2625 2003-09-21 Richard Henderson <rth@redhat.com>
2626
2627 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
2628 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
2629 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
2630 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
2631 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
2632
2633 2003-09-21 Richard Henderson <rth@redhat.com>
2634
2635 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
2636 (TREE_FILENAME, TREE_LINENO): Likewise.
2637 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
2638 (TREE_LOCUS_SET_P): New.
2639 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
2640 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
2641 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
2642 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
2643 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
2644
2645 2003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
2646
2647 * config/vax/vax-protos.h: Convert to ISO C90.
2648 * config/vax/vax.c: Convert to ISO C90.
2649
2650 2003-09-21 Graham Stott <grahams@btinternet.com>
2651
2652 PR target/12353
2653 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
2654
2655 2003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
2656
2657 PR target/12301
2658 * reorg.c (stop_search_p): Return 1 for insns that can
2659 throw internally.
2660
2661 2003-09-20 Richard Henderson <rth@redhat.com>
2662
2663 * c-format.c (gcc_diag_char_table): Add %J.
2664 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
2665 (check_format_types): Fix wanted_type name lookup.
2666 (init_dynamic_diag_info): Setup %J.
2667 * diagnostic.c (text_specifies_location): Implement %J.
2668 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
2669 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
2670 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
2671 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
2672 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
2673
2674 * tree-inline.c: Include intl.h
2675 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
2676 * Makefile.in (tree-inline.o): Update.
2677
2678 2003-09-20 Roger Sayle <roger@eyesopen.com>
2679
2680 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
2681 transformation of a>=0 into (unsigned)a<0x80000000.
2682
2683 2003-09-20 Andrew Pinski <apinski@apple.com>
2684
2685 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
2686
2687 2003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
2688
2689 * Makefile.in: Don't set (unused) DLLTOOL.
2690
2691 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
2692 Remove obsolete references to ENQUIRE.
2693
2694 2003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
2695
2696 * configure.in: Remove --with-elf, which doesn't work.
2697 * configure: Regenerate.
2698 * config.gcc: Remove references to $elf, which does nothing.
2699
2700 * config/i386/xm-vsta.h: Remove xm-file believed useless.
2701 * config.build (i386-vsta): Remove reference to it.
2702 * config.host (i386-vsta): Remove reference to it.
2703
2704 2003-09-19 Phil Edwards <phil@codesourcery.com>
2705
2706 * doc/install.texi: Document the multiple testsuite options.
2707
2708 2003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
2709
2710 * doc/install.texi (Specific): Add the specific versions of GCC
2711 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
2712 version 3 and older was discontinued.
2713
2714 2003-09-19 Joel Sherrill <joel@oarcorp.com>
2715
2716 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
2717 68881.
2718
2719 2003-09-19 Bernardo Innocenti <bernie@develer.com>
2720
2721 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
2722 for -m68030, -m68020-60 and -m68020-40.
2723 * config/m68k/m68k.h (TARGET_68030): New target flag.
2724 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
2725 TARGET_REGPARM): Remove.
2726 * config/m68k/m68k.h: Regroup and renumber target flags.
2727 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
2728 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
2729 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
2730 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
2731 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
2732
2733 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2734
2735 * config/m68k/t-rtems (m68k-*-rtems*): New.
2736 * config.gcc: Use config/m68k/t-rtems.
2737
2738 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2739
2740 * config/mips/t-rtems: New.
2741 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
2742
2743 2003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
2744
2745 * cgraph.c: Fix typo in debugging output.
2746
2747 2003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
2748 Eric Botcazou <ebotcazou@libertysurf.fr>
2749
2750 PR target/12166
2751 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
2752
2753 2003-09-18 Mike Stump <mrs@apple.com>
2754
2755 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
2756 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
2757 cb_ident, cb_def_pragma): Use fileline typedef.
2758 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
2759
2760 2003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
2761
2762 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
2763 total parm size if a parm has incomplete type.
2764 (gen_fastcall_suffix): Likewise.
2765
2766 2003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2767
2768 * except.c (output_function_exception_table): Adjust last change
2769 to handle TYPE of INTEGER_CST.
2770
2771 2003-09-18 Mark Mitchell <mark@codesourcery.com>
2772
2773 PR target/11184
2774 * builtins.c (expand_builtin_apply): Use convert_memory_address
2775 before returning the value.
2776
2777 * alias.c (find_base_value): Simplify use of
2778 convert_memory_address.
2779 (find_base_term): Likewise.
2780 * builtins.c (expand_builtin_stejmp_setup): Likewise.
2781 (expand_builtin_longjmp): Likewise.
2782 (expand_builtin_prefetch): Likewise.
2783 (get_memory_rtx): Likewise.
2784 (expand_builtin_return): Likewise.
2785 (expand_builtin_memcpy): Likewise.
2786 (expand_builtin_strncpy): Likewise.
2787 (expand_builtin_memset): Likewise.
2788 (expand_builtin_va_arg): Likewise.
2789 (expand_builtin_va_copy): Likewise.
2790 (expand_builtin_alloca): Likewise.
2791 * calls.c (expand_call): Likewise.
2792 * except.c (expand_builtin_extract_return_addr): Likewise.
2793 (expand_builtin_eh_return): Likewise.
2794 * explow.c (convert_memory_address): Define even when
2795 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
2796 is already in the right mode.
2797 * explow.c (memory_address): Simplify use of convert_memory_address.
2798 (probe_stack_range): Likewise.
2799 * expmed.c (make_tree): Likewise.
2800 * expr.c (emit_block_move_in_libcall): Likewise.
2801 (expand_assignment): Likewise.
2802 (expand_expr): Likewise.
2803 * function.c (assign_parms): Likewise.
2804 (expand_function_end): Likewise.
2805 * integrate.c (copy_rtx_and_substitute): Likewise.
2806 * stmt.c (expand_computed_goto): Likewise.
2807
2808 2003-09-18 Roger Sayle <roger@eyesopen.com>
2809
2810 * simplify-rtx.c (simplify_unary_operation): Only transform
2811 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
2812 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
2813
2814 2003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2815
2816 PR target/11674
2817 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
2818
2819 2003-09-18 Roger Sayle <roger@eyesopen.com>
2820
2821 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
2822 PARITY_EXPR): Delete unused tree codes.
2823 * c-common.c (c_common_truthvalue_conversion): Delete references
2824 to FFS_EXPR and POPCOUNT_EXPR.
2825 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
2826 (pp_c_expression): Likewise.
2827 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
2828 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
2829 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
2830 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
2831 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
2832 and long long variants.
2833
2834 2003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
2835
2836 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
2837 * c-pretty-print.c: Fix formatting.
2838 (pp_c_integer_constant): Append type annotation to literals. Tidy.
2839 (pp_c_type_specifier): Tidy.
2840 (pp_c_compound_literal): New function.
2841 (pp_c_initializer): Simplify..
2842 (pp_c_initializer_list): Likewise.
2843 (pp_c_brace_enclosed_initializer_list): New function.
2844 (pp_c_postfix_expression): Simplify.
2845
2846 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
2847
2848 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
2849 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
2850
2851 2003-09-17 Richard Henderson <rth@redhat.com>
2852
2853 * tree-optimize.c (tree_rest_of_compilation): Save and restore
2854 input_location.
2855
2856 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
2857
2858 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
2859
2860 2003-09-17 Richard Henderson <rth@redhat.com>
2861
2862 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
2863
2864 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2865
2866 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
2867 * configure: Regenerate.
2868
2869 2003-09-17 Mark Mitchell <mark@codesourcery.com>
2870
2871 PR debug/12066
2872 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
2873 * langhooks-def.h (lhd_return_null_tree_v): New function.
2874 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
2875 (LANG_HOOKS_DECLS): Add it to the intializer.
2876 * langhooks.c (lhd_return_null_tree_v): New function.
2877 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
2878
2879 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
2880
2881 * configure.in: Quote gcc_config_arguments for configargs.h.
2882 * configure: Regenerated.
2883 * gccbug.in: Don't shell-expand gcc_config_arguments.
2884
2885 2003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
2886
2887 PR c++/11357
2888 * c-pretty-print.c (pp_c_floating_constant): Append
2889 type-annotation to floating constants.
2890
2891 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2892
2893 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
2894 Define _ABIO32.
2895 Use it for _MIPS_SIM.
2896 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
2897
2898 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
2899 Moved ...
2900 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
2901 updating comment.
2902 Fixes PR target/10190.
2903
2904 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
2905
2906 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
2907 to shared libraries.
2908
2909 2003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2910
2911 PR optimization/11646
2912 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
2913 EDGE_ABNORMAL flag for EH edges.
2914 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
2915 if dead edges were purged.
2916
2917 2003-09-16 Bernardo Innocenti <bernie@develer.com>
2918
2919 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
2920 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
2921 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
2922 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
2923
2924 2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
2925
2926 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
2927 returned by tablejump_p.
2928
2929 2003-09-16 Joel Brobecker <brobecker@gnat.com>
2930
2931 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
2932
2933 2003-09-16 Roger Sayle <roger@eyesopen.com>
2934
2935 PR bootstrap/12269
2936 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
2937 argument to be VOIDmode, taking the mode of the comparison from
2938 the operands. Only call simplify_relational_operation if we
2939 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
2940 if comparison has a floating point result. Ensure that the
2941 result is always of the specified mode.
2942 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
2943 (simplify_unary_operation): Ensure the correct mode and cmp_mode
2944 are always passed to simplify_gen_relational. Simplify NOT of
2945 comparison operator in any mode, not just BImode.
2946 (simplify_ternary_operation): Correct tests on the return value
2947 of simplify_relational_operation to use const_true_rtx, not
2948 const1_rtx. Abort if it ever returns a non-constant result.
2949
2950 * cfgloopanal.c (count_strange_loop_iterations): Use the function
2951 simplify_relational_operation, not simplify_gen_relational, if
2952 we're only interested in constant comparisons and will ignore
2953 non-constant results.
2954
2955 2003-09-16 Roger Sayle <roger@eyesopen.com>
2956
2957 * fold-const.c (tree_swap_operands_p): New function to determine
2958 the prefered ordering of operands.
2959 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
2960 operands to commutative, comparison or ternary operators. Replace
2961 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
2962 transformation of A ? B : C into !A ? C : B.
2963
2964 2003-09-16 Jakub Jelinek <jakub@redhat.com>
2965
2966 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2967 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2968 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2969 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2970 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2971 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2972 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2973 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2974
2975 2003-09-16 Jason Merrill <jason@redhat.com>
2976 Jakub Jelinek <jakub@redhat.com>
2977
2978 * c-common.c (handle_warn_unused_result_attribute): New function.
2979 (c_common_attribute_table): Add warn_unused_result.
2980 (c_expand_expr): Issue warning when result of inlined function
2981 with warn_unused_result attribute is ignored.
2982 * calls.c (expand_call): Issue warning when result of function
2983 with warn_unused_result attribute is ignored.
2984 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
2985 * expr.c (expr_wfl_stack): Define.
2986 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
2987 pass const0_rtx as target. Chain locations into expr_wfl_stack.
2988 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
2989 bit if inlined function has warn_unused_result attribute.
2990 * input.h (expr_wfl_stack): Declare.
2991 * doc/extend.texi: Document warn_unused_result attribute.
2992
2993 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2994
2995 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
2996
2997 2003-09-15 Bob Wilson <bob.wilson@acm.org>
2998
2999 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
3000 ATTRIBUTE_UNUSED.
3001 (call_insn_operand): For PIC, don't allow a direct call to a
3002 function in a different section than the current one.
3003
3004 2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3005
3006 * doc/invoke.texi (Warning Options): Add missing hyphen before
3007 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
3008 Move "-Wold-style-definition" to the C-only section.
3009 Fix the ordering of the warning options.
3010
3011 2003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3012 Jeff Law <law@redhat.com>
3013
3014 * gcse.c (remove_reachable_equiv_notes): New.
3015 replace_store_insn): Call it. Update antic list.
3016 (store_killed_in_insn): Take REG_EQUAL notes into account.
3017 (build_store_vectors, delete_store): Add parameter to
3018 replace_store_insn call.
3019
3020 2003-09-15 Bob Wilson <bob.wilson@acm.org>
3021
3022 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
3023 SYMBOL_REF_LOCAL_P.
3024
3025 2003-09-15 Kazu Hirata <kazu@cs.umass.edu>
3026
3027 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
3028 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
3029 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
3030 Likewise.
3031 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
3032 Likewise.
3033 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
3034 * config/sparc/sparc.c (function_arg_padding): Likewise.
3035
3036 2003-09-15 Vladimir Makarov <vmakarov@redhat.com>
3037
3038 * haifa-sched.c (schedule_block): Use ready_remove_first instead
3039 of choose_ready for non-dfa insn scheduling.
3040
3041 2003-09-15 Andreas Jaeger <aj@suse.de>
3042 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3043
3044 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
3045 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
3046 * c-parse.in: Warn about old-style parameter definition.
3047 * c-common.c: Define warn_old_style_defintion.
3048 * c-common.h: Declare it.
3049 * c.opt: Add Wold-style-defintion.
3050
3051 2003-09-15 Andreas Jaeger <aj@suse.de>
3052
3053 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
3054 * config/rs6000/rs6000.c: Likewise.
3055
3056 2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3057
3058 PR optimization/10914
3059 * expr.h (get_condition, canonicalize_condition): Declaration changed.
3060 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
3061 and canonicalize_condition calls.
3062 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
3063 delete_null_pointer_checks): Ditto.
3064 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
3065 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
3066 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
3067 (canonicalize_condition, get_condition): Allow to return comparisons
3068 of cc mode registers.
3069 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
3070 cc mode registers comparison in condition.
3071
3072 2003-09-12 Mark Mitchell <mark@codesourcery.com>
3073
3074 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
3075 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
3076 function.
3077 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
3078
3079 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
3080
3081 * combine.c (simplify_comparison): Convert
3082 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
3083 (eq (and (lshiftrt X Y) 1) 0).
3084
3085 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
3086
3087 * alias.c: Follow spelling conventions.
3088 * cpphash.h: Likewise.
3089 * fold-const.c: Likewise.
3090
3091 2003-09-14 Alexandre Oliva <aoliva@redhat.com>
3092
3093 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
3094 * c-lex.c (cb_line_change): Skip line changing whenever
3095 c-ppoutput.c would.
3096
3097 2003-09-14 Steven Bosscher <steven@gcc.gnu.org>
3098
3099 * ra.c: Convert to ISO C90 prototypes.
3100 * ra-build.c: Likewise.
3101 * ra-colorize.c: Likewise.
3102 * ra-debug.c: Likewise.
3103 * ra-rewrite.c: Likewise.
3104
3105 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
3106
3107 * Makefile.in (%.dvi): Remove excess $(docdir).
3108
3109 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
3110
3111 * function.c (STACK_BYTES): Move definition to head of file.
3112 (assign_parms): Don't pass current_function_pretend_args_size
3113 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
3114 round current_function_pretend_args_size up to STACK_BYTES. Skip any
3115 excess before laying out the argument.
3116
3117 2003-09-14 Andreas Jaeger <aj@suse.de>
3118
3119 * objc/objc-act.c: Convert to ISO C90 prototypes.
3120 * objc/objc-act.h: Likewise.
3121
3122 2003-09-14 Olaf Hering <olh@suse.de>
3123
3124 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
3125
3126 2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
3127
3128 PR target/12021
3129 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
3130 as they already are done in config/m68k/m68k.h.
3131 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
3132
3133 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
3134 (machopic_output_stub): Only generate pic base symbols when using pic
3135 and generate them in the form L00000000$spb.
3136
3137 2003-09-13 Richard Henderson <rth@redhat.com>
3138
3139 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
3140 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
3141 * cgraph.h: Update.
3142
3143 2003-09-12 Dale Johannesen <dalej@apple.com>
3144
3145 * config/rs6000/rs6000.c: Fix typos in previous.
3146
3147 2003-09-12 Ziemowit Laski <zlaski@apple.com>
3148
3149 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
3150 when allocating pp->buffer.
3151
3152 2003-09-12 Geoffrey Keating <geoffk@apple.com>
3153
3154 * config/darwin.c (machopic_select_rtx_section): Use
3155 const_data_section for things that might require relocation.
3156
3157 2003-09-12 H.J. Lu <hongjiu.lu@intel.com>
3158
3159 PR bootstrap/12264
3160 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
3161
3162 2003-09-12 Bob Wilson <bob.wilson@acm.org>
3163
3164 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
3165 * config/xtensa/linux.h (ASM_SPEC): Likewise.
3166 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
3167 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
3168 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
3169 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
3170 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
3171 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
3172 and redefine corresponding TARGET_* macros with constants from the
3173 xtensa-config.h header.
3174 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
3175 for the options listed above.
3176
3177 2003-09-12 Dale Johannesen <dalej@apple.com>
3178
3179 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
3180 * config/rs6000/rs6000-c.c: Ditto.
3181 * config/rs6000/rs6000.c: Ditto.
3182 * config/rs6000/ sysv4.h: Ditto.
3183
3184 2003-09-12 Chris Lattner <sabre@nondot.org>
3185
3186 * loop.c: Move comments describing BIV's and GIV's to top of file
3187
3188 2003-09-12 Roger Sayle <roger@eyesopen.com>
3189
3190 PR optimization/8967
3191 * alias.c (write_dependence_p): Modify to take an additional constp
3192 argument that controls whether the UNCHANGING_RTX_P flags are used.
3193 (anti_dependence, output_dependence): Adjust write_dependence_p
3194 callers to pass this additional argument, to return the same result.
3195 (unchanging_anti_dependence): New variant of anti_dependence that
3196 ignores the UNCHANGING_RTX_P property on memory references.
3197 * rtl.h (unchaning_anti_dependence): Prototype here.
3198 * flow.c (init_propagate_block): Place fake constant mem writes on
3199 the mem_set_list so that dead writes to const variables are deleted.
3200 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
3201 (mark_used_regs): Likewise.
3202
3203 2003-09-12 Richard Sandiford <rsandifo@redhat.com>
3204
3205 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
3206 (mcore_secondary_reload_class): Declare.
3207 (mcore_output_inline_const_forced): Remove.
3208 * config/mcore/mcore.md (movsi): Remove the code that forced
3209 non-inlineable constants into a register if the target was r15
3210 or the stack pointer. Remove constant restrictions from the main
3211 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
3212 of an r <- P alternative. Remove fallback define_insn for reload.
3213 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
3214 define_insn. Use mcore_output_move in the remaining define_insn.
3215 Adjust condition and constraints in the way as for movsi.
3216 (movdi): Always split unacceptable constants into two. Use
3217 simplify_gen_subreg instead of operand_subword{,_force}.
3218 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
3219 (mcore_output_move): Support HImode and QImode moves as well.
3220 (mcore_m15_operand_p): New function.
3221 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
3222 (mcore_secondary_reload_class): New function.
3223 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
3224 terms of mcore_secondary_reload_class.
3225
3226 2003-09-11 Mike Stump <mrs@apple.com>
3227
3228 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
3229
3230 2003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3231
3232 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
3233 MODE exactly, then only convert logN(N) -> 1.0 if
3234 flag_unsafe_math_optimizations is set.
3235
3236 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
3237 init_builtin_dconsts): Delete.
3238 * emit-rtl.c (dconstpi, dconste): Define.
3239 (init_emit_once): Initialize dconstpi & dconste.
3240 * real.h (dconstpi, dconste): Declare.
3241
3242 2003-09-11 Alexandre Oliva <aoliva@redhat.com>
3243
3244 PR fortran/11522
3245 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
3246 for ultimate origin even if block is abstract.
3247
3248 2003-09-11 Roger Sayle <roger@eyesopen.com>
3249
3250 * combine.c (combine_simplify_rtx): Move several NOT and NEG
3251 optimizations from here...
3252 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
3253 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
3254
3255 2003-09-11 Richard Henderson <rth@redhat.com>
3256
3257 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
3258 Tweek tests for function already generated.
3259 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
3260 * cgraph.h (cgraph_finalize_function): Update for extra arg.
3261 * c-decl.c (finish_function): Likewise.
3262
3263 2003-09-10 Joe Buck <jbuck@welsh-buck.org>
3264
3265 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
3266
3267 2003-09-10 Jerry Quinn <jlquinn@optonline.net>
3268
3269 * real.c: Update URL to VAX floating point docs.
3270 (decode_vax_d): Extract 8 exponent bits instead of 7.
3271
3272 2003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
3273
3274 * combine.c (force_to_mode): Set fuller_mask based only on mask,
3275 not op_mode.
3276
3277 2003-09-11 Jan Hubicka <jh@suse.cz>
3278
3279 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
3280 on why function is not inlinable; do not check
3281 the body.
3282 (inline_forbidden_p): Move to...
3283 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
3284 deal with alloca, longjmp.
3285 (inline_forbidden_p): New static function.
3286 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
3287 find_builtin_longjmp_call): Kill.
3288
3289 2003-09-10 Richard Henderson <rth@redhat.com>
3290
3291 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
3292 * cgraphunit.c: Update to match.
3293 (record_call_1): Rearrange. Call lang hook for language nodes.
3294 (cgraph_analyze_function): Don't call lower_function.
3295 * langhooks.h (struct lang_hooks_for_callgraph): Replace
3296 lower_function with analyze_expr.
3297 * langhooks-def.h: Update to match.
3298 * langhooks.c (lhd_callgraph_analyze_expr): New.
3299
3300 2003-09-10 Martin Husemann <martin@duskware.de>
3301
3302 PR target/11965
3303 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
3304 constants greater than 63.
3305 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
3306 against constants greater than 31.
3307 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
3308 constants greater than 63.
3309
3310 2003-09-09 Richard Henderson <rth@redhat.com>
3311
3312 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
3313 * cgraph.h (cgraph_finalize_function): Update.
3314 * c-decl.c (finish_function): Update.
3315
3316 2003-09-09 Devang Patel <dpatel@apple.com>
3317
3318 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
3319 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
3320
3321 2003-09-09 Eric Christopher <echristo@redhat.com>
3322
3323 * configure.in: Change usage of 'head' to 'sed 1q'.
3324 * configure: Regenerate.
3325
3326 2003-09-09 Richard Henderson <rth@redhat.com>
3327
3328 * except.c: Include cgraph.h.
3329 (output_function_exception_table): Invoke
3330 cgraph_varpool_mark_needed_node.
3331 * Makefile.in (except.o): Update.
3332
3333 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
3334
3335 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
3336 and use it throughout.
3337
3338 2003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3339
3340 * builtins.c (real_dconstp, fold_builtin_logarithm,
3341 fold_builtin_exponent): New, split out from fold_builtin. Also
3342 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
3343 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
3344 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
3345 of hardcoded array size.
3346 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
3347 (tree_expr_nonnegative_p): Likewise.
3348 * real.h (dconst3, dconst10, dconstthird): New.
3349
3350 2003-09-09 Jan Hubicka <jh@suse.cz>
3351
3352 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
3353 inline functions.
3354 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
3355 DECL_SAVED_TREE.
3356
3357 2003-09-09 Roger Sayle <roger@eyesopen.com>
3358
3359 * builtins.c (fold_builtin_cabs): Protect the complex argument
3360 against multiple evaluation when optimizing cabs* into sqrt*.
3361
3362 2003-09-09 Jan Hubicka <jh@suse.cz>
3363
3364 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
3365
3366 2003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
3367
3368 * Makefile.in: Revert yesterday's change.
3369
3370 2003-09-08 Bernardo Innocenti <bernie@develer.com>
3371 Peter Barada <peter@baradas.org>
3372
3373 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
3374 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
3375 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
3376 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
3377 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
3378 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
3379 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
3380 (m68k_compute_frame_layout): New function.
3381 (m68k_initial_elimination_offset): New function.
3382 (m68k_output_function_prologue): ColdFire-specific movem handling.
3383 (m68k_output_function_epilogue): Likewise.
3384 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
3385 (ARG_POINTER_REGNUM): Add new definition.
3386 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
3387 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
3388 (CAN_ELIMINATE): Likewise.
3389 (INITIAL_ELIMINATION_OFFSET): Likewise.
3390
3391 2003-09-08 Bernardo Innocenti <bernie@develer.com>
3392
3393 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
3394 by removing redundant variable cfa_store_offset.
3395
3396 2003-09-08 Mark Mitchell <mark@codesourcery.com>
3397
3398 * langhooks-def.h (lhd_register_builtin_type): New function.
3399 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
3400 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3401 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
3402 * langhooks.c (lhd_register_builtin_type): New function.
3403 * c-common.h (c_register_builtin_type): Declare.
3404 * c-common.c (c_register_builtin_type): New function.
3405 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
3406 c_register_builtin_type.
3407 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
3408 __float80, and __float128 macros.
3409 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
3410 __float80, and __float128 types.
3411
3412 2003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3413
3414 * builtin-types.def
3415 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
3416 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
3417 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
3418 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
3419 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
3420 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
3421 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
3422 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
3423 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
3424 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
3425 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
3426 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
3427 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
3428 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
3429 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
3430 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
3431 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
3432 New.
3433 * doc/extend.texi: Document new builtins.
3434
3435 2003-09-09 Jan Hubicka <jh@suse.cz>
3436
3437 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
3438 finalization.
3439 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
3440 functions, check for COMDAT.
3441 (cgraph_assemble_pending_functions): Break out from...
3442 (cgraph_finalize_function): ... here; allow redefinig of extern inline
3443 functions.
3444 (record_call_1): Record function references only in non-unit-at-a-time
3445 mode.
3446 (cgraph_analyze_function): Reset current_function_decl.
3447 (cgraph_finalize_compilation_unit): Assemble pending functions.
3448
3449 2003-09-08 Mark Mitchell <mark@codesourcery.com>
3450
3451 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
3452 (libgov.a): Likewise.
3453 (libgcc_eh.a): Likewise.
3454
3455 2003-09-08 Roger Sayle <roger@eyesopen.com>
3456
3457 * fold-const.c (operand_equal_p): Clarify documentation.
3458
3459 2003-09-08 Richard Henderson <rth@redhat.com>
3460
3461 * c-decl.c (c_expand_body_1): Push and pop function context here.
3462 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
3463 nested argument instead of computing nesting ourselves.
3464
3465 2003-09-08 Jakub Jelinek <jakub@redhat.com>
3466
3467 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
3468 regstack if optimizing but not scheduling after reload.
3469
3470 2003-09-08 Jakub Jelinek <jakub@redhat.com>
3471
3472 * config/sparc/sparc.c (struct machine_function): New type.
3473 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
3474 (sparc_override_options): Initialize init_machine_status.
3475 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
3476 tie_symbolic_operand, tle_symbolic_operand): New functions.
3477 (symbolic_operand): Disallow tls_symbolic_operand.
3478 (symbolic_memory_operand): Likewise.
3479 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
3480 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
3481 New functions.
3482 (sparc_tls_symbol): New variable.
3483 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
3484 legitimize_address): New functions.
3485 (print_operand): Handle %&.
3486 (sparc_init_machine_status, get_some_local_dynamic_name,
3487 get_some_local_dynamic_name_1): New functions.
3488 (sparc_output_dwarf_dtprel): New function.
3489 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
3490 constant_address_p.
3491 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
3492 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
3493 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
3494 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
3495 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
3496 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
3497 (ASM_OUTPUT_DWARF_DTPREL): Define.
3498 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
3499 tie_symbolic_operand, tle_symbolic_operand.
3500 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
3501 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
3502 (tls_call_delay): New attribute.
3503 (in_call_delay): Use it.
3504 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
3505 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
3506 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
3507 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
3508 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
3509 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
3510 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
3511 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
3512 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
3513 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
3514 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
3515 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
3516 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
3517 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
3518 insns.
3519 * config/sparc/sparc-protos.h (legitimate_constant_p,
3520 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
3521 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
3522 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
3523 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
3524 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
3525 * configure.in (sparc*-*-*): Add TLS check.
3526 * configure: Rebuilt.
3527
3528 2003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3529
3530 PR target/11689
3531 * config/i386/i386.c (memory_address_length): Fix computation when
3532 the base is esp or ebp.
3533
3534 2003-09-07 Mark Mitchell <mark@codesourcery.com>
3535
3536 PR c++/11852
3537 * varasm.c (initializer_constant_valid_p): Correct logic for
3538 CONSTRUCTORs.
3539
3540 2003-09-07 Roger Sayle <roger@eyesopen.com>
3541
3542 * expr.c (expand_operands): New function to expand an operand pair.
3543 (expand_expr): Call expand_operands whenever we need to expand both
3544 operands of a binary operator.
3545 (do_store_flag): Likewise for operands of comparison operations.
3546
3547 2003-09-07 Roger Sayle <roger@eyesopen.com>
3548
3549 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
3550 (-A)*B if we care about sign-dependent rounding.
3551
3552 2003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
3553
3554 * c-pretty-print.h (pp_c_left_brace): Declare.
3555 (pp_c_right_brace): Likewise.
3556 * c-pretty-print.c (pp_c_left_brace): Now a function
3557 (pp_c_right_brace): Likewise.
3558
3559 2003-09-07 Jan Hubicka <jh@suse.cz>
3560
3561 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
3562
3563 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
3564
3565 * diagnostic.c (warn_deprecated_use): Move to toplev.c
3566
3567 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
3568
3569 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
3570 * Makefile.in (langhooks.o): Depend on diagnostic.h
3571
3572 2003-09-06 James E Wilson <wilson@tuliptree.org>
3573
3574 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
3575 simplify.
3576
3577 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
3578
3579 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
3580 and use it throughout.
3581
3582 2003-09-07 Jan Hubicka <jh@suse.cz>
3583
3584 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
3585
3586 * toplev.c (rest_of_decl_compilation): Do not finalize external
3587 virables.
3588
3589 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
3590 functions.
3591 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
3592
3593 2003-09-06 Jan Hubicka <jh@suse.cz>
3594
3595 PR target/12070
3596 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
3597
3598 PR opt/12082
3599 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
3600
3601 2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
3602
3603 * diagnostic.c (announce_function): Move to toplev.c.
3604
3605 2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3606
3607 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
3608 volatile mem.
3609
3610 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3611
3612 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
3613 when gc checking is enabled.
3614
3615 2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
3616
3617 PR c/9862
3618 * c-decl.c (c_expand_body_1): Move return warning from here...
3619 (finish_function): ...to here.
3620
3621 2003-09-05 Geoffrey Keating <geoffk@apple.com>
3622
3623 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
3624 a subset of the input class.
3625
3626 2003-09-05 Kazu Hirata <kazu@cs.umass.edu>
3627
3628 * config/i860/i860.c: Follow spelling conventions.
3629 * config/i860/i860.h: Likewise.
3630 * config/sh/sh.h: Likewise.
3631
3632 2003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
3633
3634 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
3635 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
3636 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
3637
3638 2003-09-05 Roger Sayle <roger@eyesopen.com>
3639 Richard Henderson <rth@redhat.com>
3640
3641 PR optimization/1823
3642 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
3643 multiplication to implement division by constant integer.
3644
3645 2003-09-05 Jan Hubicka <jh@suse.cz>
3646
3647 * opts.c (decode_options): Enable unit-at-a-time at -O2.
3648 * params.def (max-inline-insns-single): Set to 500
3649 (max-inline-insns-auto): Set to 150
3650 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
3651
3652 2003-09-04 Richard Henderson <rth@redhat.com>
3653
3654 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
3655 (cgraph_mark_needed_node): Remove needed argument.
3656 * cgraph.h: Update to match.
3657 * cgraphunit.c (decide_is_function_needed): Split out from ...
3658 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
3659 if we generated the function.
3660 (record_call_1): Update for cgraph_mark_reachable_node.
3661 * varasm.c (mark_referenced): Likewise.
3662 * objc/objc-act.c (mark_referenced_methods): Likewise.
3663
3664 2003-09-04 DJ Delorie <dj@redhat.com>
3665
3666 * targhooks.c: Add comment explaining the migration process.
3667
3668 2003-09-04 Eric Christopher <echristo@redhat.com>
3669
3670 * config/frv/t-frv: Fix path for frv-abi.h.
3671 * config/frv/frv-asm.h: Fix string concatenation.
3672
3673 2003-09-04 DJ Delorie <dj@redhat.com>
3674
3675 * builtins.c (apply_args_size): Guard against a NULL cfun.
3676 (expand_builtin_apply_args_1): Likewise.
3677 (expand_builtin_apply): Likewise.
3678 Fixes PR bootstrap/12172.
3679
3680 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3681
3682 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
3683 assembler supports Sun syntax for cmov.
3684 * configure: Regenerate.
3685 * config.in: Likewise.
3686 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
3687 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
3688 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
3689 Fixes PR target/12101.
3690
3691 2003-09-04 Matt Austern <austern@apple.com>
3692
3693 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
3694 with verbosity 0, instead of DECL_NAME, for human-readable string.
3695
3696 2003-09-04 Eric Christopher <echristo@redhat.com>
3697
3698 * targhooks.c (default_return_in_memory): Allow
3699 unconverted ports.
3700
3701 2003-09-04 Eric Christopher <echristo@redhat.com>
3702
3703 * targhooks.c (default_return_in_memory): Fix typo
3704 in last checkin.
3705
3706 2003-09-04 Eric Christopher <echristo@redhat.com>
3707
3708 * targhooks.c (default_return_in_memory): Fix default
3709 definition.
3710
3711 2003-09-04 Bernardo Innocenti <bernie@develer.com>
3712
3713 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
3714 deleted function.
3715 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
3716 enable coff-only code in m68k.c.
3717
3718 2003-09-04 Nick Clifton <nickc@redhat.com>
3719
3720 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
3721 v850e1.
3722 * config/v850/v850.h: Accept v850e1 as a default CPU.
3723 Accept -mv850e1 as a command line option.
3724 * doc/invoke.texi: Document new -mv850e1 command line switch.
3725 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
3726 -mv850e.
3727
3728 2003-09-04 Nick Clifton <nickc@redhat.com>
3729
3730 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
3731 * config/v850/t-v850: Only produce one extra multilib - for
3732 the v850e.
3733 * config/v850/t-v850e: New file: Only produce one extra
3734 multilib - for the v850.
3735
3736 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3737
3738 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
3739 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
3740 * unwind.h (_Unwind_GetBSP): New prototype.
3741 * libgcc-std.ver: Add empty GCC_3.3.2 version.
3742 * mkmap-symver.awk: For symbol versions with no exported symbols,
3743 don't put anything into version script, just change all symbol
3744 versions which inherit from it to inherit from its ancestor.
3745
3746 2003-09-04 Eric Christopher <echristo@redhat.com>
3747
3748 * config/mips/mips.c (mips_expand_prologue): Convert to
3749 calls.struct_value_rtx hook.
3750 (reg_or_const_float_1_operand): New.
3751 * config/mips/mips.h: Update Comments.
3752 (mips_arg): Add reg_or_const_float_1_operand.
3753 * config/mips/mips.md (divdf3); Convert to expander.
3754 (divsf3): Ditto.
3755 (*divdf3): New pattern.
3756 (*divsf3): Ditto.
3757
3758 2003-09-04 Jan Hubicka <jh@suse.cz>
3759
3760 * toplev.c (wrapup_global_declarations): Fix final pass in
3761 unit-at-atime mode.
3762
3763 2003-09-04 Mark Mitchell <mark@codesourcery.com>
3764
3765 * doc/extend.texi: Document removal of cast-as-lvalue extension in
3766 C++.
3767
3768 2003-09-04 Nicolas Roche <roche@act-europe.fr>
3769
3770 * gcc.c (process_command): Fix typo.
3771
3772 2003-09-03 David O'Brien <obrien@FreeBSD.org>
3773
3774 optimization/11980
3775 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
3776 (PTRDIFF_TYPE): Likewise.
3777 (WCHAR_TYPE_SIZE): Likewise.
3778
3779 2003-09-03 DJ Delorie <dj@redhat.com>
3780
3781 * targhooks.c: New file.
3782 * targhooks.h: New file.
3783 * Makefile.in: Add targhooks.o support.
3784 (function.o): Depend on$(TARGET_H).
3785 (stmt.o): Likewise.
3786 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
3787 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
3788 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
3789 (expand_builtin_saveregs): Convert to
3790 calls.expand_builtin_saveregs hook.
3791 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
3792 here, instead of ...
3793 (get_parm_info) ... here.
3794 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
3795 hook.
3796 (finish_function): Handle calls.promote_prototypes hook here too.
3797 * c-typeck.c (convert_arguments): Convert to
3798 calls.promote_prototypes hook.
3799 (c_convert_parm_for_inlining): Likewise.
3800 * calls.c (initialize_argument_information): Convert to
3801 calls.promote_function_args hook.
3802 (expand_call): Convert to calls.struct_value_rtx,
3803 calls.strict_argument_naming,
3804 calls.pretend_outgoing_varargs_named, and
3805 calls.promote_function_return hooks. Pass fndecl to
3806 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
3807 hooks, so they can use that.
3808 (emit_library_call_value_1): Likewise.
3809 * combine.c (setup_incoming_promotions): Convert to
3810 calls.promote_function_args hook.
3811 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
3812 * expr.c (expand_assignment): Pass call to aggregate_value_p.
3813 (expand_expr): Likewise.
3814 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
3815 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
3816 RETURN_IN_MEMORY macro defaults.
3817 * final.c (profile_function): Convert to calls.struct_value_rtx
3818 hook.
3819 * function.c (aggregate_value_p): Accept function type tree as
3820 second parameter; try to deduce fntype from it. Convert to
3821 calls.return_in_memory hook.
3822 (assign_parms): Convert to calls.setup_incoming_varargs,
3823 calls.strict_argument_naming, calls.promote_function_args,
3824 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
3825 aggregate_value_p.
3826 (expand_function_start): Likewise. Convert to
3827 calls.struct_value_rtx hook.
3828 (expand_function_end): Convert to calls.promote_function_return hook.
3829 (allocate_struct_function): Pass fndecl to aggregate_value_p.
3830 * hard-reg-set.h: Update comments to new hook names.
3831 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
3832 * reg-stack.c (stack_result): Likewise.
3833 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
3834 * stmt.c (expand_value_return): Convert to
3835 calls.promote_function_return hook.
3836 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
3837 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
3838 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
3839 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
3840 TARGET_STRICT_ARGUMENT_NAMING,
3841 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
3842 * target.h: Likewise.
3843 * tree.h (aggregate_value_p): Also takes a tree to deduce function
3844 attributes from (for target hooks).
3845 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
3846 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
3847 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
3848 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
3849 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
3850 to hooks.
3851
3852 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
3853 to aggregate_value_p.
3854 * config/arm/arm.c (arm_init_cumulative_args,
3855 arm_output_mi_thunk): Likewise.
3856 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
3857 Likewise.
3858 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
3859 mips_can_use_return_insn): Likewise.
3860 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3861 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
3862 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
3863 aggregate_value_p.
3864 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
3865 function to aggregate_value_p.
3866 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
3867 aggregate_value_p.
3868
3869 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
3870 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
3871 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
3872 (sh_handle_renesas_attribute, sh_promote_prototypes,
3873 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
3874 sh_setup_incoming_varargs, sh_strict_argument_naming,
3875 sh_pretend_outgoing_varargs_named): New decls.
3876 (targetm): Add new hooks.
3877 (calc_live_regs): Save MACL and MACH if the function has the
3878 renesas attribute.
3879 (sh_expand_prologue): Support renesas attribute.
3880 (sh_builtin_saveregs): Make static.
3881 (sh_build_va_list): Support renesas attribute.
3882 (sh_va_start): Likewise.
3883 (sh_va_arg): Likewise.
3884 (sh_promote_prototypes): New.
3885 (sh_function_arg): New, moved from sh.h. Support renesas
3886 attribute.
3887 (sh_function_arg_advance): Likewise.
3888 (sh_return_in_memory): Likewise.
3889 (sh_strict_argument_naming): Likewise.
3890 (sh_pretend_outgoing_varargs_named): Likewise.
3891 (sh_struct_value_rtx): New.
3892 (sh_attribute): Add renesas attribute.
3893 (sh_handle_renesas_attribute): New.
3894 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
3895 (sh_ms_bitfield_layout_p): Support renesas attribute also.
3896 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
3897 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
3898 -mhitachi.
3899 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
3900 target hooks.
3901 (sh_args): Add renesas_abi flag.
3902 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
3903 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
3904 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
3905 stack for the renesas abi.
3906 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
3907 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
3908 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
3909 call cookie to indicate renesas calls.
3910
3911 2003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
3912
3913 * gcse.c (replace_one_set): New function.
3914 (pre_insert_copy_insn): Change the order of copying
3915 to make copy propagation discover additional PRE opportunities.
3916
3917 2003-09-03 Roger Sayle <roger@eyesopen.com>
3918
3919 PR optimization/11700.
3920 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
3921 of a hard register is representable before trying to simplify it
3922 using subreg_hard_regno.
3923
3924 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3925
3926 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
3927 * configure: Regenerate.
3928
3929 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3930
3931 * intl.h (N_): Remove parentheses.
3932
3933 2003-09-03 Bernardo Innocenti <bernie@develer.com>
3934
3935 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
3936 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
3937 definition and code blocks compiled when not defined.
3938 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
3939 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
3940 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
3941 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
3942
3943 2003-09-03 Jeff Sturm <jsturm@one-point.com>
3944
3945 * cgraphunit.c (visited_nodes): New static variable.
3946 (record_call_1): Use walk_tree with visited_nodes.
3947 (cgraph_create_edges): Use walk_tree with visited_nodes.
3948 Setup/teardown visited_nodes hashtable.
3949
3950 2003-09-03 Roger Sayle <roger@eyesopen.com>
3951
3952 * toplev.c (flag_rounding_math): New global variable.
3953 (f_options): Add to the list of language independent options.
3954 * flags.h (flag_rounding_math): Prototype here.
3955 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
3956 * common.opt (frounding-math): New common command line option.
3957 * opts.c (common_handle_option): Handle OPT_frounding_math.
3958 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
3959
3960 * doc/invoke.texi: Document this new command line option.
3961
3962 2003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3963
3964 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
3965
3966 2003-09-03 Jan Hubicka <jh@suse.cz>
3967
3968 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
3969 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
3970 * c-objc-common.c: Kill include of gt-c-objc-common.h
3971 (expand_deferred_fns, deffer_fn): Kill function.
3972 (deferred_fns): Kill variable.
3973 (finish_cdtor): Update finish_function call.
3974 (c_objc_common_finish_file): Always call cgraph code.
3975 * c-parse.c: Regenerate.
3976 * c-parse.y: Regenerate.
3977 * c-tree.h (finish_function): Update prototype.
3978 * objc-acct.c (build_module_descriptor, finish_method_def):
3979 Update call of finish_function.
3980 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
3981 forward prototype.
3982 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
3983 function and assemble it if needed.
3984 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
3985 mode.
3986 (cgraph_optimize): Likewise.
3987 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
3988 even when it has no inline callees.
3989 * c-parse.in: Update calls to finish_function.
3990
3991 2003-09-03 Nick Clifton <nickc@redhat.com>
3992
3993 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
3994 Use #error to generate the message if TARGET_DEFAULT is not
3995 recognised.
3996
3997 2003-09-03 Richard Sandiford <rsandifo@redhat.com>
3998
3999 * config/mips/mips.h (MASK_UNUSED1): Remove.
4000 (MASK_XGOT, TARGET_XGOT): Define.
4001 (TARGET_SWITCHES): Add an entry for -mxgot.
4002 (ASM_SPEC): Map -mxgot to -xgot.
4003 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
4004 whether we're using a big-GOT sequences.
4005 (mips_legitimize_const_move, mips_expand_call): Likewise.
4006 (override_options): Revert 2003-01-09 change.
4007 * doc/invoke.texi: Document -mxgot.
4008
4009 2003-09-02 Jason Merrill <jason@redhat.com>
4010
4011 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
4012 * config/sparc/sol2.h: Not here.
4013
4014 2003-09-02 Roger Sayle <roger@eyesopen.com>
4015
4016 * expr.c (expand_expr): The code following both_summands performs
4017 the same task as simplify_gen_binary. Replace all gotos to
4018 both_summands with a call to simplify_gen_binary and delete the
4019 now unused label.
4020
4021 2003-09-02 Jason Merrill <jason@redhat.com>
4022
4023 PR c++/7327
4024 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
4025
4026 2003-09-02 Jeff Sturm <jsturm@one-point.com>
4027
4028 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
4029 (cgraph_optimize_function): Set current_function_decl to the
4030 fndecl we're integrating from.
4031
4032 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4033
4034 * builtins.def: Break out _Complex math functions into their
4035 own category.
4036
4037 2003-09-02 Andreas Jaeger <aj@suse.de>
4038
4039 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
4040
4041 2003-09-02 Josef Zlomek <zlomekj@suse.cz>
4042
4043 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
4044 finding the note again.
4045
4046 2003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
4047
4048 * config.gcc: Remove host-specific rewrites of target_alias.
4049
4050 2003-09-01 Mark Mitchell <mark@codesourcery.com>
4051
4052 * Makefile.in (genprogs): Fix typo.
4053
4054 * Makefile.in (gencheck.o): Remove build commands.
4055 (dummy-conditions.o): Likewise.
4056 (read-rtl.o): Likewise.
4057 (gensupport.o): Likewise.
4058 (genconfig$(build_exeext)): Remove rule.
4059 (genconfig.o): Remove build commands.
4060 (genflags$(build_exeext)): Remove rule.
4061 (genflags.o): Remove build commands.
4062 (gencodes$(build_exeext)): Remove rule.
4063 (gencodes.o): Remove build commands.
4064 (genconstants.o): Remove build commands.
4065 (genemit$(build_exeext)): Remove rule.
4066 (genemit.o): Remove build commands.
4067 (genrecog$(build_exeext)): Remove rule.
4068 (genrecog.o): Remove build commands.
4069 (genextract$(build_exeext)): Remove rule.
4070 (genextract.o): Remove build commands.
4071 (genpeep$(build_exeext)): Remove rule.
4072 (genpeep.o): Remove build commands.
4073 (genattr$(build_exeext)): Remove rule.
4074 (genattr.o): Remove build commands.
4075 (genprognames): New variable.
4076 (genprogs): Likewise.
4077 (genobjs): Likewise.
4078 (genprogs): New rule.
4079 (genobjs): Likewise.
4080 (genattrtab.o): Remove build commands.
4081 (genautomata.o): Likewise.
4082 (genoutput$(build_exeext)): Remove rule.
4083 (genoutput.o): Remove build commands.
4084 (gengenrtl.o): Likewise.
4085 (genpreds.o): Likewise.
4086 (gengtype.o): Likewise.
4087 (genconditions.o): Likewise.
4088 (gen-protos.o): Likewise.
4089 (scan.o): Likewise.
4090 (fix-header.o): Likewise.
4091 (scan-decls.o): Likewise.
4092 (check-g++): Combine with other check targets.
4093 (check-gcc): Likewise.
4094 (check-g77): Likewise.
4095 (check-objc): Likewise.
4096
4097 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
4098
4099 * config.gcc: Remove host-specific stuff which is unused here
4100 since the introduction of config.host.
4101
4102 * doc/fragments.texi: Mention config.host.
4103 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
4104 of config.build, config.host, and config.gcc.
4105
4106 2003-09-01 Zack Weinberg <zack@codesourcery.com>
4107
4108 * c-decl.c (pushdecl): Don't put variables on
4109 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
4110 incomplete.
4111
4112 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
4113
4114 * config.host: New file.
4115 * config.gcc: Remove some host-specific stuff and some
4116 logic needed only for repeated invocation.
4117 * configure.in: Use config.host.
4118 * configure: Regenerate.
4119
4120 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
4121
4122 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
4123 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
4124 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
4125 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
4126 * tree.def (BIT_ANDTC_EXPR): Kill.
4127
4128 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
4129
4130 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
4131 * configure: Regenerate.
4132
4133 * config.gcc: Remove references to install_headers_dir, now unused
4134 since introduction of config.build.
4135 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
4136
4137 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
4138 config.build.
4139
4140 * config.build: New file.
4141 * config.gcc: Remove some build-specific stuff.
4142 * configure.in: Use config.build.
4143 * configure: Regnerate.
4144
4145 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
4146 Roger Sayle <roger@eyesopen.com>
4147
4148 PR middle-end/11823
4149 * stmt.c (expand_end_case_type): Only use jump tables for dense
4150 switch statements when optimizing for size.
4151
4152 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
4153
4154 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
4155 the != 0 case, which ensures pending stack adjustments are flushed.
4156
4157 2003-08-30 Zack Weinberg <zack@codesourcery.com>
4158
4159 * configure.frag: Delete file.
4160 * configure.in: Rename the substitution variables
4161 dep_host_xmake_file and dep_tmake_file to xmake_file and
4162 tmake_file respectively. Do not expand $srcdir in the
4163 value of these; leave that for Make. Introduce a new
4164 substitution varaible, all_lang_makefrags, which lists
4165 subdirectory Make-lang.in files; exclude these from
4166 all_lang_makefiles, which is now only for subdirectory
4167 outputs. Do not invoke configure.frag. Do not set nor
4168 AC_SUBST_FILE target_overrides, host_overrides, or
4169 language_fragments. Create build subdirectories in
4170 config.status extra commands.
4171 * configure: Regenerate.
4172 * Makefile.in: Update substitutions to match changes to
4173 configure. Use include directives instead of @-insertions
4174 to read in host, target, and language fragments.
4175 (Makefile rule): Do not invoke configure.frag. Do not copy
4176 config.status to config.run before executing it. Set
4177 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
4178 regenerated.
4179 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
4180
4181 2003-08-30 Zack Weinberg <zack@codesourcery.com>
4182
4183 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
4184 * c-typeck.c (same_translation_unit_p): New function.
4185 (comptypes): Use it instead of flags parameter to identify
4186 structure types from different translation units.
4187 * c-decl.c (duplicate_decls): Always call comptypes with
4188 COMPTYPE_STRICT flags argument.
4189 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
4190 to file_scope_decl.
4191
4192 2003-08-30 Zack Weinberg <zack@codesourcery.com>
4193
4194 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
4195 * c-decl.c (struct c_scope): Remove "incomplete" field.
4196 (pushdecl): Attach variables with incomplete types to
4197 the TYPE_MAIN_VARIANT of the incomplete type in question.
4198 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
4199 to complete, not at current_scope->incomplete. All such
4200 variables do need completion.
4201
4202 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
4203 Nicolas Pitre <nico@cam.org>
4204
4205 * arm/lib1funcs.asm (RETCOND): Delete.
4206 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
4207 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
4208 (__ARM_ARCH__): Move here from ieee754-?f.S.
4209 (RET, RETc): Clean up definitions.
4210 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
4211 (FUNC_END): New macro that marks the end of any function.
4212 (ARM_FUNC_START): New macro that allows an assembler routine to be
4213 implemented in ARM code even if a Thumb-only build.
4214 Unconditionally include ieee754-?f.S.
4215 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
4216 Mark ends of functions.
4217 Split into separate conditionally-compiled units.
4218 Use RETLDM to return from routines.
4219 * arm/ieee754-sf.S: Similarly.
4220 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
4221 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
4222 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
4223 _fixsfsi and _fixunssfsi.
4224
4225 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
4226 multiplication underflows to zero.
4227 (__adddf3): Fix bug when using VFP ordering on little-endian
4228 processors.
4229 (__fixdfsi): Use rrx to extract the carry into a register instead of
4230 MRS instruction. Optimize later use of result.
4231 * arm/ieee754-sf.S (__fixsfsi): Likewise.
4232 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
4233
4234 2003-08-29 Richard Henderson <rth@redhat.com>
4235
4236 * tree-optimize.c: New file.
4237 * Makefile.in (OBJS-archive): Add tree-optimize.o.
4238 (tree-optimize.o): New.
4239 * c-decl.c (store_parm_decls): Use allocate_struct_function.
4240 (finish_function): Don't free_after_parsing or free_after_compilation.
4241 (set_save_expr_context): Move to tree-optimize.c.
4242 (c_expand_body_1): Use tree_rest_of_compilation.
4243 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
4244 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
4245 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
4246 iterate until closure.
4247 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
4248 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
4249 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
4250 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
4251 * toplev.h (tree_rest_of_compilation): Declare it.
4252
4253 2003-08-29 Richard Henderson <rth@redhat.com>
4254
4255 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
4256 * integrate.c (save_for_inline): Set saved_for_inline.
4257 * c-semantics.c (genrtl_scope_stmt): Check it.
4258 * toplev.c (wrapup_global_declarations): Check it.
4259 (rest_of_handle_inlining): Set and check rtl_inline_init.
4260 (rest_of_compilation): Remove out of date comment.
4261
4262 2003-08-29 Richard Henderson <rth@redhat.com>
4263
4264 * function.c (allocate_struct_function): New, split out of ...
4265 (prepare_function_start, init_function_start): ... here.
4266 * expr.c (init_expr): Use ggc_alloc_cleared.
4267 * stmt.c (init_stmt_for_function): Likewise.
4268 * tree.h (allocate_struct_function): Declare.
4269
4270 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
4271
4272 * config.gcc: Don't use negated character class in shell case
4273 clause.
4274
4275 2003-08-29 Richard Henderson <rth@redhat.com>
4276
4277 * function.h (struct function): Move function_frequency and
4278 max_jumptable_ents before start of bit field members.
4279
4280 2003-08-29 Richard Henderson <rth@redhat.com>
4281
4282 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
4283 (fold_builtin_constant_p) ... not here.
4284
4285 2003-08-29 Richard Henderson <rth@redhat.com>
4286
4287 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
4288 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
4289 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
4290
4291 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4292
4293 * builtins.def: Fix typos.
4294 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
4295 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
4296 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
4297 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
4298 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
4299
4300 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
4301 Use ATTR_MATHFN_FPROUNDING_ERRNO.
4302
4303 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
4304
4305 * config.gcc (i386-*-vsta): Fix obvious bogosity.
4306
4307 * fixinc/inclhack.def: Remove special cases for unsupported
4308 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
4309 * fixinc/fixincl.x: Regenerate.
4310
4311 2003-08-29 Mark Mitchell <mark@codesourcery.com>
4312
4313 * Makefile.in (cpp.info): Just state dependencies.
4314 (gcc.info): Likewise.
4315 (gccint.info): Likewise.
4316 (gccinstall.info): Likewise.
4317 (cppinternals.info): Likewise.
4318 (cpp.dvi): Likewise.
4319 (gcc.dvi): Likewise.
4320 (gccint.dvi): Likewise.
4321 (gccinstall.dvi): Likewise.
4322 (cppinternals.dvi): Likewise.
4323 (gcov.1): Likewise.
4324 (cpp.1): Likewise.
4325 (gcc.1): Likewise.
4326 (gfdl.7): Likewise.
4327 (gpl.7): Likewise.
4328 (fsf-funding.7): Likewise.
4329 ($(objdir)/%.info): New pattern rule.
4330 (%.dvi): Likewise.
4331
4332 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
4333
4334 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
4335 (restage2): Likewise.
4336 (restage3): Likewise.
4337 (restage4): Likewise.
4338 (restageprofile): Likewise.
4339 (restagefeedback): Likewise.
4340 (bubblestrap): Likewise.
4341
4342 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
4343
4344 * config.gcc: Narrow unsupported target match to avoid clobbering
4345 i?86-sequent-sysv4*.
4346
4347 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4348
4349 * builtins.c (mathfn_built_in): Handle new math builtins.
4350
4351 2003-08-28 Per Bothner <per@bothner.com>
4352
4353 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
4354 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
4355 (_cpp_lex_buffer): Likewise.
4356 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
4357
4358 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
4359
4360 * config/s390/s390.md ("*mulsi3_sign"): New insn.
4361 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
4362 ("mulsidi3"): ... this new insn.
4363 ("umulsidi3"): New insn.
4364 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
4365 mixed-mode matching constraints.
4366 ("udivmodsi4", "udivmoddisi3"): New insns.
4367 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
4368
4369 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4370
4371 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
4372 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
4373 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
4374 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
4375 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
4376 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
4377 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
4378 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
4379 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
4380 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
4381 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
4382 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
4383 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
4384 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
4385 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
4386 * tree.c: Assign new type_nodes.
4387 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
4388 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
4389 (float_ptr_type_node, double_ptr_type_node,
4390 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
4391
4392 * doc/extend.texi: Document new builtins.
4393
4394 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4395
4396 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
4397 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
4398
4399 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
4400 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
4401 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
4402 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
4403 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
4404 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
4405 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
4406 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
4407 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
4408 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
4409
4410 * doc/extend.texi: Document new builtins.
4411
4412 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
4413
4414 * fixinc/mkfixinc.sh: Remove special case code for unsupported
4415 variants of i?86, powerpcle, and thumb.
4416 * fixinc/mkfixinc.sh: Remove special case code for unsupported
4417 arm and hppa variants.
4418
4419 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4420
4421 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
4422 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
4423 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
4424 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
4425 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
4426 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
4427 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
4428 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
4429 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
4430 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
4431
4432 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
4433 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
4434 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
4435 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
4436 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
4437 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
4438 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
4439 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
4440 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
4441 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
4442 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
4443 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
4444 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
4445 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
4446 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
4447 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
4448 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
4449 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
4450 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
4451 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
4452 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
4453 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
4454 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
4455 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
4456 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
4457 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
4458 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
4459 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
4460 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
4461 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
4462 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
4463
4464 * doc/extend.texi: Document new builtins.
4465
4466 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
4467
4468 * config/s390/s390.c (legitmate_constant_p): Use LARL on
4469 zSeries machines even in 31-bit addressing mode.
4470 (legitimate_reload_constant_p): Likewise.
4471 (legitimize_pic_address): Likewise.
4472 (legitimize_tls_address): Likewise.
4473 (s390_split_branches): Likewise.
4474 (s390_dump_pool): Likewise.
4475 (s390_mainpool_finish): Likewise.
4476 (s390_chunkify_start): Likewise.
4477 (s390_select_rtx_section): Likewise.
4478 * config/s390/s390.md ("doloop_si"): Likewise.
4479 ("pool_start_31", "pool_end_31"): Likewise.
4480 ("pool_start_64", "pool_end_64"): Likewise.
4481 ("main_base_31_small", "main_base_31_large"): Likewise.
4482 ("main_base_64"): Likewise.
4483 ("reload_base_31", "reload_base_64"): Likewise.
4484 ("*movsi_larl"): New insn.
4485 ("cjump", "icjump"): Use long branches on zSeries machines.
4486 ("jump"): Likewise.
4487 ("call"): Use BRASL on zSeries machines.
4488 ("call_value", "call_value_tls"): Likewise.
4489 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
4490 and replace by ...
4491 ("*bras", "*brasl", "*basr") ... these new insns.
4492 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
4493 "bas_31_r"): Remove and replace by ...
4494 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
4495 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
4496 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
4497 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
4498 ("*return_si", "*return_di"): Remove and replace by ...
4499 ("*return"): ... this new insn.
4500 ("rotlsi3"): Allow on zSeries machines.
4501
4502 * config/s390/s390.c (legitimize_reload_constant_p): Use
4503 LL/LH type instructions in z/Architecture mode.
4504 * config/s390/s390.md ("*movsi_lli"): Likewise.
4505 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
4506 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
4507 ("*extendqisi2"): Use LB in z/Architecture mode.
4508 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
4509 z/Architecture mode.
4510 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
4511 Likewise.
4512
4513 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
4514 and 31-bit mode.
4515 ("ptr_extend"): Allow only in 64-bit mode.
4516
4517 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
4518
4519 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
4520 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
4521 definitions.
4522 (main): Only use standard_startfile_prefix if native.
4523 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
4524
4525 2003-08-27 Per Bothner <pbothner@apple.com>
4526
4527 * cpperror.c (print_location): Don't check for !pfile->buffer. That
4528 test fails following my 08-21 change, and it seems unnecessary anyway.
4529 (cpp_error): Likewise.
4530
4531 2003-08-27 Jason Merrill <jason@redhat.com>
4532
4533 * real.c (do_multiply): Initialize with memset.
4534
4535 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4536
4537 * gcov.c (typedef struct arc_info): New field cs_count.
4538 (accumulate_line_counts): Find cycles correctly.
4539
4540 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
4541
4542 * config/s390/s390.c (struct machine_function): Remove member
4543 literal_pool_label.
4544 (s390_optimize_prolog): Replace TEMP_REG argument with
4545 TEMP_USED and BASE_USED. Do not check get_pool_size ().
4546 (general_s_operand): Accept all immediates before reload if
4547 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
4548 references.
4549 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
4550 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
4551 (s390_alloc_pool): New function.
4552 (s390_new_pool): Call it.
4553 (s390_dump_pool): Add REMOTE_LABEL argument.
4554 (s390_chunkify_start): Add BASE_REG argument. Do not check
4555 get_pool_size ().
4556 (s390_chunkify_finish): Add BASE_REG argument. Adapt
4557 s390_dump_pool call.
4558 (s390_pool_count, s390_nr_constants): Remove.
4559 (s390_output_constant_pool): Remove.
4560 (s390_mainpool_start): New function.
4561 (s390_mainpool_finish): New function.
4562 (s390_mainpool_cancel): New function.
4563 (s390_reorg): Implement main literal pool handling.
4564 (s390_emit_prologue): Emit main_pool placeholder instead of
4565 literal_pool_31 / literal_pool_64 insns.
4566 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
4567 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
4568 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
4569 ("main_base_31_small", "main_base_31_large"): New insns.
4570 ("main_base_64", "main_pool"): New insns.
4571 ("literal_pool_31", "literal_pool_64"): Remove.
4572
4573 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
4574
4575 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
4576 fixinc.ptx.
4577 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
4578 Prettify a little.
4579 * fixinc/fixincl.x: Regenerate.
4580
4581 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
4582
4583 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
4584 (L_ieee754_dp): New. Include ieee754-df.S.
4585 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
4586 and compilation in apcs-26 mode.
4587 * arm/ieee754-df.S: Likewise.
4588 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
4589 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
4590
4591 2003-08-27 Nicolas Pitre <nico@cam.org>
4592
4593 * arm/ieee754-sf.S: New.
4594 * arm/ieee754-df.S: New.
4595
4596 2003-08-27 Jakub Jelinek <jakub@redhat.com>
4597
4598 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
4599 and restore it if returning NULL.
4600
4601 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
4602
4603 * calls.c (initialize_argument_information): If an argument has no
4604 stack space associated with it, and BLOCK_REG_PADDING is defined,
4605 use it to decide at which end the argument should be padded.
4606 * function.c (assign_parms): Allocate BLKmode stack slots.
4607 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
4608 (mips_pad_reg_upward): Declare.
4609 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
4610 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
4611 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
4612 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
4613 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
4614 (mips_expand_call): Remove code for generating structure shifts.
4615 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
4616 types unless using the EABI.
4617 (function_arg_advance): Don't generate shift instructions.
4618 (function_arg): Don't return them. Don't short-circuit the
4619 check for double structure chunks for DFmode arguments.
4620 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
4621 (mips_expand_prologue): Remove code to emit structure shifts.
4622 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
4623 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
4624 comments to say that only structure returns are a problem.
4625
4626 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
4627
4628 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
4629 Fix to match produced versions.
4630 * fixinc/inclhack.def (longlong_t): New disabled test, ported
4631 from fixinc.svr4.
4632 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
4633 from fixinc.ptx.
4634 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
4635 ported from fixinc.ptx.
4636
4637 2003-08-26 Per Bothner <pbothner@apple.com>
4638
4639 * cpplib.h (struct cpp_token): Change type of field line to fileline.
4640 (cpp_error_with_line): Use fileline for appropriate parameter.
4641 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
4642 (struct cpp_reader): Likewise for fields line and directive_line.
4643 (_cpp_begin_message): Use fileline for appropriate parameter.
4644 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
4645 cpp_error): Use fileline for appropriate parameters and variables.
4646 (print_location): New local lin, since it is not a fileline.
4647
4648 2003-08-26 Roger Sayle <roger@eyesopen.com>
4649
4650 PR middle-end/12002
4651 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
4652 (FLOAT_TYPE_P): Define in terms of these two new macros.
4653 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
4654 for complex floating point types.
4655
4656 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
4657
4658 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
4659 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
4660 s390_output_pool_entry.
4661
4662 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
4663
4664 * fixinc/inclhack.def (svr4_preproc_lint_on,
4665 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
4666 fixes, ported from fixinc.svr4.
4667
4668 2003-08-26 Mark Mitchell <mark@codesourcery.com>
4669
4670 * doc/install.texi (Prerequisites): Mention GNU make requirement.
4671
4672 * Makefile.in (AR_FOR_TARGET): Export it.
4673 (AR_CREATE_FOR_TARGET): Likewise.
4674 (AR_FLAGS_FOR_TARGET): Likewise.
4675 (AR_EXTRACT_FOR_TARGET): Likewise.
4676 (AWK): Likewise.
4677 (BUILD_PREFIX): Likewise.
4678 (BUILD_PREFIX_1): Likewise.
4679 (DESTDIR): Likewise.
4680 (GCC_FOR_TARGET): Likewise.
4681 (INCLUDES): Likewise.
4682 (INSTALL_DATA): Likewise.
4683 (LIB1ASMSRC): Likewise.
4684 (LIBGCC2_CFLAGS): Likewise.
4685 (MACHMODE_H): Likewise.
4686 (NM_FOR_TARGET): Likewise.
4687 (RANLIB_FOR_TARGET): Likewise.
4688 (libsubdir): Likewise.
4689 (slibdir): Likewise.
4690 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
4691 exporting.
4692 (libgcc.a): Don't pass them here.
4693 (stmp-multilib): Or here.
4694 (install-libgcc): Or here.
4695 (install-multilib): Or here.
4696 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
4697 (stage1_build): Or here.
4698
4699 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
4700
4701 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
4702 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
4703
4704 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
4705
4706 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
4707 "*fmaddsf", "*fmsubsf"): New insns.
4708
4709 2003-08-26 Roger Sayle <roger@eyesopen.com>
4710
4711 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
4712 (C1*C2)/X when unsafe math optimizations are allowed.
4713 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
4714 math optimizations. Minor code clean-ups. Recursively call
4715 fold when constructing sub-expressions.
4716
4717 2003-08-26 Roger Sayle <roger@eyesopen.com>
4718
4719 * builtins.c (fold_builtin_bitop): New function to perform constant
4720 folding of ffs, clz, ctz, popcount and parity builtin functions
4721 and their long and long long variants (such as ffsl and ffsll).
4722 (fold_builtin): fold_builtin_bitop when appropriate.
4723 * simplify-rtx.c (simplify_unary_operation): Honor both
4724 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
4725 evaluating clz and ctz at compile-time, for operands wider
4726 than HOST_WIDE_INT.
4727
4728 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
4729
4730 * builtins.c (build_function_call_expr): Don't set
4731 TREE_SIDE_EFFECTS here.
4732 * expr.c (emit_block_move_via_libcall): Likewise.
4733 (clear_storage_via_libcall): Likewise.
4734 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
4735 CALL_EXPRs.
4736
4737 * gcse.c (is_too_expensive): New function.
4738 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
4739
4740 2003-08-25 Zack Weinberg <zack@codesourcery.com>
4741
4742 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
4743 commented-out logic to use DCE threads (if present), add
4744 support for POSIX threads.
4745 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
4746 #defines for -pthread. Add -lpthread to LIB_SPEC when
4747 -pthread. In both cases take -mt as a synonym for -pthread
4748 for acc compatibility.
4749 Define GTHREAD_USE_WEAK to 0.
4750 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
4751 Remove old logic for DCE threads from LIB_SPEC.
4752 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
4753
4754 2003-08-25 Roger Sayle <roger@eyesopen.com>
4755
4756 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
4757 return 0 for invalid argument types. Instead drop through to a
4758 call of expand_call at the bottom of function. If op is SQRT,
4759 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
4760
4761 2003-08-25 Richard Henderson <rth@redhat.com>
4762
4763 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
4764 result when op0 is SImode.
4765
4766 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
4767
4768 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
4769 from fixinc.svr4.
4770 * fixinc/fixincl.x: Regenerate.
4771 * fixinc/tests/base/sys/signal.h: Regenerate.
4772
4773 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
4774
4775 * combine.c (simplify_comparison): Re-enable widening of comparisons
4776 with non-paradoxical subregs of non-REG expressions.
4777
4778 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
4779
4780 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
4781
4782 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
4783
4784 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
4785
4786 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4787
4788 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
4789 * c-pretty-print.h (c_pretty_printer): Now typedef to the
4790 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
4791 (struct c_pretty_print_info): Document. Add new fields.
4792 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
4793 (pp_direct_abstract_declarator): New macro.
4794 (pp_ptr_operator): Likewise.
4795 (pp_simple_type_specifier): Likewise.
4796 (pp_expression): Likewise.
4797 (pp_parameter_list): Rename from pp_parameter_declaration.
4798 * c-pretty-print.c (pp_c_whitespace): Now a function.
4799 (pp_c_left_paren): Likewise.
4800 (pp_c_right_paren): Likewise.
4801 (pp_c_dot): Likewise.
4802 (pp_c_ampersand): Likewise.
4803 (pp_c_arrow): Likewise.
4804 (pp_c_semicolon): Likewise.
4805 (pp_c_type_cast): New function.
4806 (pp_c_space_for_pointer_operator): Likewise.
4807 (pp_c_call_argument_list): Likewise.
4808 (pp_c_cv_qualifier): Adjust prototype.
4809 (pp_c_type_qualifier_list): Likewise.
4810 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
4811 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
4812 Adjust to follow standard grammar.
4813 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
4814 REFERENCE_TYPE. Tidy.
4815 (pp_c_parameter_type_list): Adjust prototype. Tidy.
4816 (pp_c_parameter_declaration): Remove.
4817 (pp_c_abstract_declarator): Adjust prototype.
4818 (pp_c_direct_abstract_declarator): Likewise.
4819 (pp_c_type_id): Likewise.
4820 (pp_c_storage_class_specifier): Likewise.
4821 (pp_c_function_specifier): Likewise.
4822 (pp_c_declaration_specifiers): Likewise.
4823 (pp_c_direct_declarator): Likewise.
4824 (pp_c_declarator): Likewise.
4825 (pp_c_declarator): Likewise.
4826 (pp_c_declaration): Likewise.
4827 (pp_c_attributes): Likewise. Tidy.
4828 (pp_c_function_definition): Adjust prototype.
4829 (pp_c_char): Likewise.
4830 (pp_c_string_literal): Likewise.
4831 (pp_c_integer_constant): Likewise.
4832 (pp_c_character_constant): Likewise.
4833 (pp_c_bool_constant): Likewise.
4834 (pp_c_enumeration_constant): Likewise.
4835 (pp_c_floating_constant): Likewise.
4836 (pp_c_constant): Likewise.
4837 (pp_c_identifier): Likewise.
4838 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
4839 (pp_c_initializer): Adjust prototype.
4840 (pp_c_init_declarator): Likewise.
4841 (pp_c_initializer_list): Likewise.
4842 (pp_c_id_expression): Likewise.
4843 (pp_c_postfix_expression): Likewise.
4844 (pp_c_expression_list): Likewise.
4845 (pp_c_unary_expression): Likewise.
4846 (pp_c_cast_expression): Likewise.
4847 (pp_c_multiplicative_expression): Likewise.
4848 (pp_c_additive_expression): Likewise.
4849 (pp_c_shift_expression): Likewise.
4850 (pp_c_relational_expression): Likewise.
4851 (pp_c_equality_expression): Likewise.
4852 (pp_c_and_expression): Likewise.
4853 (pp_c_exclusive_or_expression): Likewise.
4854 (pp_c_inclusive_or_expression): Likewise.
4855 (pp_c_logical_and_expression): Likewise.
4856 (pp_c_logical_or_expression): Likewise.
4857 (pp_c_conditional_expression): Likewise.
4858 (pp_c_assignment_expression): Likewise.
4859 (pp_c_expression): Likewise. Tidy.
4860 (pp_c_statement): Likewise. Document.
4861 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
4862
4863 * c-lang.c (c_initialize_diagnostics): Update.
4864 * c-common.h (strip_pointer_operator): Declare.
4865 * c-common.c (strip_pointer_operator): Define.
4866
4867 2003-08-25 Mark Mitchell <mark@codesourcery.com>
4868
4869 PR c++/8795
4870 * tree.h (build_method_type_directly): Declare.
4871 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
4872 (vector_size_helper): Likewise.
4873 * tree.c (build_method_type_directly): New function.
4874 (build_method_type): Use it.
4875
4876 2003-08-24 Richard Henderson <rth@redhat.com>
4877
4878 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
4879 for 16-byte vector modes if sse not enabled; warn for abi change.
4880 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
4881
4882 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
4883
4884 * rtlanal.c (may_trap_p): Simplify an integer comparison.
4885
4886 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
4887
4888 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
4889 comment. Enable for DYNIX/ptx systems (when they switch to
4890 regular fixincludes).
4891 * fixinc/fixincl.x: Regenerate.
4892
4893 2003-08-23 Jason Eckhardt <jle@rice.edu>
4894
4895 * config/i860/t-i860: New.
4896 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
4897
4898 2003-08-23 Jakub Jelinek <jakub@redhat.com>
4899
4900 * c-decl.c (pushdecl): Only put decls which finish_struct will do
4901 something about onto incomplete chain.
4902 (finish_struct): If not removing type from incomplete
4903 list, update prev.
4904
4905 2003-08-20 Jan Hubicka <jh@suse.cz>
4906
4907 PR target/11369
4908 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
4909
4910 PR target/11031
4911 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
4912 const_0_to_15_operand, const_0_to_255_operand): New predicates.
4913 * i386.h (PREDICATE_CODES): Add these.
4914 * i386.c (pinsrw and pextrw patterns): Use them.
4915
4916 PR target/10984
4917 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
4918
4919 PR target/8869
4920 * expr.c (convert_modes): Deal properly with integer to vector
4921 constant conversion.
4922
4923 PR target/8871
4924 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
4925
4926 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
4927
4928 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
4929 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
4930 ("*movhi"): ... this.
4931 ("movqi", "*movqi"): Likewise.
4932 ("movqi_64"): Remove.
4933 ("*zero_extendhisi2_31"): Change predicate to s_operand.
4934
4935 2003-08-23 Dale Johannesen <dalej@apple.com>
4936 * calls.c (emit_library_call_value_1): Fix obvious errors in
4937 arguments to emit_group_store.
4938
4939 2003-08-23 Jason Eckhardt <jle@rice.edu>
4940
4941 * calls.c (emit_library_call_value_1): Remove code related
4942 to LIBGCC_NEEDS_DOUBLE.
4943 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
4944 * doc/tm.texi: Likewise.
4945 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
4946
4947 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
4948
4949 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
4950
4951 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
4952
4953 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
4954 as well. Put memory references in the varargs alias set.
4955 (mips_expand_prologue): Remove varargs handling from here.
4956
4957 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
4958
4959 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
4960 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
4961 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
4962 for function pointer calls.
4963 * config/s390/s390.md ("*negdi2_31"): Likewise.
4964
4965 2003-08-23 Roger Sayle <roger@eyesopen.com>
4966
4967 * combine.c (apply_distributive_law): Correct comment.
4968
4969 2003-08-23 Jason Eckhardt <jle@rice.edu>
4970
4971 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
4972
4973 2003-08-22 Jason Eckhardt <jle@rice.edu>
4974
4975 * config/i860/i860.c (i860_build_va_list): Create the va_decl
4976 declaration. Document the va_list structure.
4977 (i860_va_start): Initialize the va_list structure.
4978 (i860_va_arg): Rewrite completely.
4979 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
4980 * config/i860/varargs.asm: Do not allocate or initialize
4981 a va_list. Return the address of the register save area.
4982
4983 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
4984
4985 * config/iq2000/iq2000.c: Fix comment typos.
4986 * config/iq2000/iq2000.md: Likewise.
4987
4988 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
4989
4990 * config/iq2000/iq2000.c: Follow spelling conventions.
4991 * config/iq2000/iq2000.h: Likewise.
4992 * config/mn10300/mn10300.c: Likewise.
4993
4994 2003-08-22 Jason Eckhardt <jle@rice.edu>
4995
4996 * config/i860/i860.c (output_move_double): Don't set latehalf
4997 to zero for CONST_INT (since it could be, e.g., -1).
4998
4999 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
5000 (MODSI3_LIBCALL): ...with this one.
5001 (UREMSI3_LIBCALL): Replace this macro...
5002 (UMODSI3_LIBCALL): ...with this one.
5003
5004 2003-08-22 Jason Eckhardt <jle@rice.edu>
5005
5006 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
5007 (output_delayed_branch): Remove prototype.
5008 (single_insn_src_p): Remove prototype.
5009 * config/i860/i860.c (single_insn_src_p): Remove function.
5010 (output_delayed_branch): Remove function.
5011 (output_delay_insn): Remove function.
5012 (va_start): Remove unconditional test and dead code, re-format.
5013 Fix coding style and spelling problems in various comments.
5014 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
5015 (blockage pattern): ...and use it here.
5016 (all define_peephole patterns related to delayed branches): Remove.
5017 Fix coding style and spelling problems in various comments.
5018
5019 2003-08-22 Jason Eckhardt <jle@rice.edu>
5020
5021 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
5022 Remove all uses of the PARAMS macro. Remove superflous prototypes.
5023 Convert all function definitions from traditional to ISO C90 syntax.
5024 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
5025 with 'GCC'. Remove all uses of the PARAMS macro.
5026 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
5027 * config/i860/i860.md: Likewise.
5028 * config/i860/sysv4.h: Likewise.
5029 * config/i860/varargs.asm: Likewise.
5030
5031 2003-08-22 Jason Eckhardt <jle@rice.edu>
5032
5033 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
5034 argument.
5035 (tdesc_section): Add prototype.
5036 Update copyright dates.
5037 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
5038 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
5039 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
5040 (targetm): Likewise.
5041 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
5042 for '%d' where necessary.
5043 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
5044 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
5045 by UNITS_PER_WORD when referencing (likewise for .floats).
5046 (I860_SVR4_VARARGS): Rename...
5047 (I860_SVR4_VA_LIST): ...to this.
5048 Call build() with 't' rather than 'field'.
5049 (i860_rtx_costs): New function.
5050 (TARGET_RTX_COSTS): Define.
5051 (i860_internal_label): New function.
5052 (TARGET_ASM_INTERNAL_LABEL): Define.
5053 (i860_file_start): New function.
5054 Update copyright dates.
5055 * config/i860/i860.h (CPP_PREDEFINES): Remove.
5056 (TARGET_CPU_CPP_BUILTINS): Define.
5057 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
5058 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
5059 (ASM_FILE_START): Remove.
5060 (ASM_FILE_START_1): Remove.
5061 (ASM_GLOBALIZE_LABEL): Remove.
5062 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
5063 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
5064 with targetm.asm_out.internal_label.
5065 Update copyright dates.
5066 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
5067 (CPP_PREDEFINES): Remove.
5068 (TARGET_OS_CPP_BUILTINS): Define.
5069 (GLOBAL_ASM_OP): Define.
5070 (ASM_FILE_START): Remove.
5071 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
5072 (TARGET_ASM_FILE_START): Define.
5073 Update copyright dates.
5074
5075 2003-08-22 Jason Eckhardt <jle@rice.edu>
5076
5077 * gcc/config.gcc (i860-*-sysv4*): Add target.
5078 * config/i860/i860-protos.h: New.
5079 * config/i860/i860.c: New.
5080 * config/i860/i860.h: New.
5081 * config/i860/i860.md: New.
5082 * config/i860/sysv4.h: New.
5083 * config/i860/varargs.asm: New.
5084 * config/i860/x-sysv4: New.
5085
5086 2003-08-22 Jason Eckhardt <jle@rice.edu>
5087
5088 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
5089 Remove all uses of PARAMS macro.
5090 Convert all function definitions to ISO C90 syntax.
5091 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
5092 * config/pa/fptr.c: Likewise.
5093 * config/pa/lib2funcs.asm: Likewise.
5094 * config/pa/long_double.h: Likewise.
5095 * config/pa/milli64.S: Likewise.
5096 * config/pa/pa-64.h: Likewise.
5097 * config/pa/pa-hpux.h: Likewise.
5098 * config/pa/pa-hpux10.h: Likewise.
5099 * config/pa/pa-hpux11.h: Likewise.
5100 * config/pa/pa-linux.h: Likewise.
5101 * config/pa/pa-modes.def: Likewise.
5102 * config/pa/pa-osf.h: Likewise.
5103 * config/pa/pa-pro-end.h: Likewise.
5104 * config/pa/pa.md: Likewise.
5105 * config/pa/pa32-linux.h: Likewise.
5106 * config/pa/pa64-linux.h: Likewise.
5107 * config/pa/pa64-hpux.h: Likewise.
5108 * config/pa/pa64-regs.h: Likewise.
5109 * config/pa/quadlib.c: Likewise.
5110 * config/pa/rtems.h: Likewise.
5111 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
5112 all uses of the PARAMS macro.
5113 * config/pa/pa.h: Likewise.
5114 * config/pa/som.h: Likewise.
5115
5116 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
5117 Remove all uses of PARAMS macro.
5118 Convert all function definitions to ISO C90 syntax.
5119 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
5120 Remove all uses of PARAMS macro.
5121 * config/iq2000.h: Remove all uses of PARAMS macro.
5122 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
5123
5124 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
5125
5126 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
5127 * config/s390/s390.c (gen_consttable): Remove.
5128 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
5129 (s390_output_pool_entry): New function.
5130 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
5131 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
5132 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
5133 (UNSPECV_POOL_ENTRY): ... this new constant.
5134 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
5135 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
5136 ("*pool_entry"): ... and replace by this new insn.
5137 ("literal_pool_31"): Do not emit anchor label if pool empty.
5138
5139 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
5140 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
5141 (s390_fixup_clobbered_return_reg): Remove.
5142 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
5143 (s390_return_addr_rtx): Always retrieve return address from save area
5144 slot. Use save_return_addr_p to force slot to be filled.
5145 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
5146
5147 2003-08-22 Chris Demetriou <cgd@broadcom.com>
5148
5149 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
5150 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
5151 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
5152 around SB-1 errata if TARGET_FIX_SB1 is set.
5153 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
5154 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
5155
5156 2003-08-22 Roger Sayle <roger@eyesopen.com>
5157
5158 * hashtable.c (ht_expand): Avoid calculating rehash for the common
5159 case that the first probe hits an empty hash table slot.
5160
5161 2003-08-22 Mark Mitchell <mark@codesourcery.com>
5162
5163 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
5164
5165 2003-08-22 Mark Mitchell <mark@codesourcery.com>
5166
5167 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
5168 (ptr_extend_plus_imm): ... this.
5169 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
5170 optimization in C++.
5171 (ia64_output_mi_thunk): Support ILP32 mode.
5172
5173 2003-08-22 Bernardo Innocenti <bernie@develer.com>
5174
5175 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
5176 function.
5177 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
5178
5179 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5180
5181 * config/i386/i386.c (const_int_1_operand): Simplify an
5182 integer comparison.
5183
5184 2003-08-22 Alan Modra <amodra@bigpond.net.au>
5185
5186 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
5187 * config/rs6000/ppc64-fp.c: Likewise.
5188
5189 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5190
5191 * cfgcleanup.c: Fix comment typos.
5192 * emit-rtl.c: Likewise.
5193 * optabs.c: Likewise.
5194 * ra-build.c: Likewise.
5195 * rtlanal.c: Likewise.
5196 * tree.h: Likewise.
5197
5198 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5199
5200 * c-decl.c: Fix comment formatting.
5201 * cfgrtl.c: Likewise.
5202 * combine.c: Likewise.
5203 * convert.c: Likewise.
5204 * dominance.c: Likewise.
5205 * dwarf2out.c: Likewise.
5206 * dwarfout.c: Likewise.
5207 * expmed.c: Likewise.
5208 * fold-const.c: Likewise.
5209 * gcov.c: Likewise.
5210 * genattrtab.c: Likewise.
5211 * ggc-common.c: Likewise.
5212 * mips-tfile.c: Likewise.
5213 * regmove.c: Likewise.
5214
5215 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5216
5217 * builtin-attrs.def: Fix comment formatting.
5218 * c-pretty-print.c: Likewise.
5219 * diagnostic.h: Likewise.
5220 * langhooks.h: Likewise.
5221 * recog.c: Likewise.
5222 * simplify-rtx.c: Likewise.
5223 * tree.def: Likewise.
5224
5225 2003-08-22 Bernardo Innocenti <bernie@develer.com>
5226
5227 * config/m68k/m68k-protos.h: Convert to ISO C90.
5228 * config/m68k/m68k.c: Likewise.
5229
5230 2003-08-21 Bernardo Innocenti <bernie@develer.com>
5231 Paul Dale <pauli@snapgear.com>
5232 Peter Barada <peter@baradas.org>
5233
5234 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
5235 ColdFire cores.
5236
5237 2003-08-21 Zack Weinberg <zack@codesourcery.com>
5238
5239 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
5240 * config.gcc (*-*-openbsd): Don't set tm_file.
5241 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
5242 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
5243 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
5244 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
5245 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
5246 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
5247 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
5248 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
5249 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
5250 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
5251 xscale-*-coff): Use explicit and complete lists of target headers
5252 to include. Move definitions to tm_defines where appropriate.
5253 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
5254 not-yet-contributed configuration.
5255
5256 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
5257 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
5258 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
5259 * config/i386/nto.h, config/iq2000/iq2000.h,
5260 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
5261 * config/m68k/linux.h, config/m68k/m68k-aout.h
5262 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
5263 * config/m68k/netbsd.h, config/m68k/openbsd.h
5264 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
5265 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
5266 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
5267 Remove includes of other target config headers, and
5268 definitions of macros moved to tm_defines lists. Add #undefs
5269 where now necessary to prevent redefinition warnings.
5270
5271 * config/h8300/coff.h: New file split out of...
5272 * config/h8300/elf.h: ...here.
5273 * config/m68k/hp320base.h: New file split out of...
5274 * config/m68k/hp320.h: ...here.
5275 * config/rs6000/lynxbase.h: New file split out of...
5276 * config/rs6000/lynx.h: ...here.
5277
5278 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
5279 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
5280
5281 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
5282 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
5283 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
5284 Remove unnecessary #ifndef.
5285 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
5286 [under IN_LIBGCC2] with config/.
5287
5288 2003-08-21 Per Bothner <pbothner@apple.com>
5289
5290 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
5291 to cpp_push_buffer.
5292 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
5293 by return_at_eof check. Always call _cpp_pop_buffer at end.
5294
5295 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
5296
5297 PR target/11805
5298 * config/h8300/h8300.md (two anonymous patterns): Remove.
5299
5300 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
5301
5302 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
5303 * config/mips/mips.c (function_arg_pass_by_reference): Never return
5304 true for n32 & n64.
5305
5306 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
5307
5308 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
5309 and similarly in (A | C) == D where C & ~D != 0.
5310
5311 2003-08-20 Geoffrey Keating <geoffk@apple.com>
5312
5313 PR 8180
5314 * configure.in: When testing with_libs and with_headers, treat
5315 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
5316 * configure: Regenerate.
5317
5318 2003-08-20 Peter Barada <peter@baradas.org>
5319
5320 * longlong.h (umul_ppmm): Add ColdFire support.
5321
5322 2003-08-20 Peter Barada <peter@baradas.org>
5323 Bernardo Innocenti <bernie@develer.com>
5324
5325 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
5326 * config/m68k/m68k.h: Likewise.
5327 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
5328 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
5329 * config/m68k/linux.h: Likewise.
5330 * config/m68k/m68k.c: Likewise.
5331 * config/m68k/m68k.md: Likewise.
5332 * config/m68k/m68kelf.h: Likewise.
5333 * config/m68k/netbsd-elf.h: Likewise.
5334 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
5335
5336 2003-08-20 Bernardo Innocenti <bernie@develer.com>
5337
5338 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
5339 * config/m68k/m68k.md: Likewise.
5340
5341 2003-08-20 Mark Mitchell <mark@codesourcery.com>
5342
5343 PR java/11996
5344 Revert this change:
5345 2003-08-19 Mark Mitchell <mark@codesourcery.com>
5346 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
5347 types with precisions other than those given by native machine
5348 modes.
5349
5350 2003-08-20 Gunther Nikl <gni@gecko.de>
5351
5352 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
5353 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
5354 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
5355 * config/m68k/m68k.md (anonymous define_insn): Likewise
5356 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
5357 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
5358 code selected by NO_ASM_FMOVECR
5359
5360 2003-08-20 Gunther Nikl <gni@gecko.de>
5361
5362 * config/m68k/m68k.c (output_move_const_into_data_reg,
5363 output_move_himode): unify MOTOROLA/MIT handling of moveq
5364 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
5365 Likewise
5366
5367 2003-08-20 Gunther Nikl <gni@gecko.de>
5368
5369 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
5370 label name
5371 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
5372 HOST_WIDE_INT_PRINT_DEC with %wd
5373
5374 2003-08-20 Loren James Rittle <ljrittle@acm.org>
5375
5376 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
5377 redefine warning.
5378
5379 2003-08-20 Roger Sayle <roger@eyesopen.com>
5380
5381 PR middle-end/11984
5382 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
5383 operands before calling tree_int_cst_lt when performing associative
5384 transformations.
5385
5386 2003-08-20 Jason Merrill <jason@redhat.com>
5387
5388 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
5389 (EXPR_CHECK): Don't check for 'r' or 's' if we're
5390 checking IS_EXPR_CODE_CLASS.
5391 * calls.c (calls_function_1): Likewise.
5392 * fold-const.c (fold): Likewise.
5393 * tree.c (iterative_hash_expr): Likewise.
5394 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
5395
5396 2003-08-20 Gunther Nikl <gni@gecko.de>
5397
5398 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
5399 depending on MOTOROLA_BSR
5400 * config/m68k/m68k.md (anonymous define_insn): Likewise
5401
5402 2003-08-20 Jason Merrill <jason@redhat.com>
5403
5404 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
5405 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
5406 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
5407 * dojump.c (do_jump): Likewise.
5408 * fold-const.c (operand_equal_p, fold): Likewise.
5409 (tree_expr_nonnegative_p): Likewise.
5410
5411 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
5412 TYPE_USER_ALIGN for FIELD_DECLs.
5413
5414 * attribs.c (decl_attributes): Rebuild the function pointer type after
5415 changing the target type.
5416 * tree.c (get_qualified_type): Also check that the attributes match.
5417
5418 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
5419
5420 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
5421 * objc/config-lang.in (stagestuff): ... to here.
5422
5423 2003-08-19 Mark Mitchell <mark@codesourcery.com>
5424
5425 PR c++/11946
5426 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
5427 NOP_EXPR) when necessary.
5428 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
5429 types with precisions other than those given by native machine
5430 modes.
5431
5432 2003-08-19 Geoffrey Keating <geoffk@apple.com>
5433
5434 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
5435 because some macro is defined.
5436
5437 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
5438 options.
5439 * config/i386/darwin.h (ASM_SPEC): New.
5440 (SUBTARGET_EXTRA_SPECS): New.
5441 * config/rs6000/darwin.h (ASM_SPEC): New.
5442 (SUBTARGET_EXTRA_SPECS): New.
5443 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
5444 a cross-compiler between two different processors on Darwin.
5445 * configure: Regenerate.
5446
5447 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
5448
5449 * builtins.c: Fix comment typos.
5450 * c-common.c: Likewise.
5451 * c-decl.c: Likewise.
5452 * c-pretty-print.c: Likewise.
5453 * cfgbuild.c: Likewise.
5454 * cfglayout.c: Likewise.
5455 * cfgloopanal.c: Likewise.
5456 * cgraphunit.c: Likewise.
5457 * cppfiles.c: Likewise.
5458 * dwarfout.c: Likewise.
5459 * expr.c: Likewise.
5460 * fold-const.c: Likewise.
5461 * gcse.c: Likewise.
5462 * ggc-page.c: Likewise.
5463 * haifa-sched.c: Likewise.
5464 * pretty-print.c: Likewise.
5465 * tree.c: Likewise.
5466 * tree.h: Likewise.
5467 * value-prof.c: Likewise.
5468
5469 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
5470
5471 * c-decl.c: Follow spelling conventions.
5472 * cppfiles.c: Likewise.
5473
5474 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
5475
5476 * c-common.c: Fix comment formatting.
5477 * c-common.h: Likewise.
5478 * c-decl.c: Likewise.
5479 * cppinit.c: Likewise.
5480 * cpplib.h: Likewise.
5481 * emit-rtl.c: Likewise.
5482 * input.h: Likewise.
5483 * line-map.h: Likewise.
5484 * opts.c: Likewise.
5485 * opts.h: Likewise.
5486 * simplify-rtx.c: Likewise.
5487
5488 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
5489
5490 * unwind-c.c: Add libgcc-style exception.
5491 * unwind-dw2.c: Likewise.
5492 * unwind-pe.h: Likewise.
5493 * unwind-sjlj.c: Likewise.
5494 * unwind.inc: Likewise.
5495
5496 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
5497
5498 PR c/5582 PR c++/10538
5499 * langhooks-def.h (lhd_decl_uninit): Declare.
5500 (LANG_HOOKS_DECL_UNINIT): New macro.
5501 (LANG_HOOKS_INITIALIZER): Adjust.
5502 * langhooks.h (struct lang_hooks): Add new field
5503 decl_uninit.
5504 * langhooks.c (lhd_decl_uninit): Define.
5505 * c-common.c (c_decl_uninit_1): New function.
5506 (c_decl_uninit): New function.
5507 (warn_init_self): Define.
5508 * c-common.h (c_decl_uninit): Declare.
5509 (warn_init_self): Declare.
5510 * c.opt: Introduce -Winit-self.
5511 * c-opts.c (c_common_handle_options): Set warn_init_self.
5512 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
5513 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
5514 * function.c (uninitialized_vars_warning): Call the language hook.
5515 * doc/invoke.texi: Document -Winit-self.
5516
5517 2003-08-19 Chris Demetriou <cgd@broadcom.com>
5518
5519 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
5520 to use better predicates and constraints. Define new
5521 instruction to handle "trap_if" with DI-mode arguments.
5522 (conditional_trap): FAIL if trap code is not 0.
5523
5524 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
5525
5526 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
5527 strstr with $pb to a strcompare with "<pic base>"
5528 (ix86_output_addr_diff_elt): Output the real pic base.
5529
5530 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
5531
5532 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
5533 (LANG_HOOKS_INITIALIZER): Correct.
5534 * c-lang.c: Likewise.
5535
5536 2003-08-19 Jan Hubicka <jh@suse.cz>
5537
5538 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
5539 (cgraph_varpool_mark_needed_node): Likewise.
5540 * cgraph.h (notice_global_symbol): Declare
5541 * varasm.c (notice_global_symbol): Break out from ...
5542 (assemble_start_function): ... here; update for variables.
5543 (assemble_variable): Use notice_global_symbol.
5544
5545 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
5546
5547 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
5548 expect SFmode and DFmode arguments to be passed in FPRs,
5549 regardless of the underlying type.
5550
5551 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
5552
5553 PR target/11924
5554 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
5555 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
5556
5557 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
5558
5559 PR c/11207
5560 * c-typeck.c (set_init_index): Check for negative index.
5561
5562 2003-08-18 Bob Wilson <bob.wilson@acm.org>
5563
5564 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
5565 call0 ABI.
5566 * config/xtensa/crtn.asm (_init, _fini): Likewise.
5567 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
5568 __umodsi3, __modsi3): Likewise.
5569 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
5570 $(INCLUDES).
5571
5572 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
5573
5574 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
5575
5576 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
5577
5578 * config/mips/mips.md: Quote C code in braces. Remove use of
5579 fake const0_rtx operands. Remove double backslashes. Use \;.
5580 Remove workarounds for bogus warnings.
5581
5582 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
5583
5584 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
5585 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
5586 rather than TARGET_MIPS4300.
5587 (mulsf3_internal, mulsf3_r4300): Likewise.
5588
5589 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
5590
5591 * config/mips/mips.md: Renumber unspecs. Clean up comments.
5592
5593 2003-08-17 Roger Sayle <roger@eyesopen.com>
5594
5595 * simplify-rtx.c (associative_constant_p): New function to test
5596 whether an RTX expression is an immediate constant.
5597 (simplify_associative_operation): New function to perform some
5598 reassociation optimizations of associative binary expressions.
5599 (simplify_binary_operation): Use simplify_associative_operation
5600 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
5601 Floating point expressions are only reassociated when unsafe
5602 math optimizations are permitted.
5603
5604 2003-08-17 Andreas Jaeger <aj@suse.de>
5605
5606 * config/alpha/alpha.md: Remove usage of PARAMS.
5607
5608 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
5609 * config/i386/i386-interix.h: Likewise.
5610 * config/i386/winnt.c: Likewise.
5611 * config/i386/cygming.h: Likewise.
5612 * config/i386/cygwin2.c: Likewise.
5613 * config/darwin.c: Likewise.
5614 * config/darwin-c.c: Likewise.
5615 * config/darwin-protos.h: Likewise.
5616 * config/darwin.h: Likewise.
5617 * config/s390/s390-protos.h: Likewise.
5618 * config/s390/s390.c: Likewise.
5619 * config/ia64/ia64.c: Likewse
5620 * config/ia64/ia64-protos.h: Likewise.
5621 * config/ia64/ia64-c.c: Likewise.
5622
5623 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5624
5625 * config/sparc/sparc.c: Convert to ISO C.
5626
5627 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
5628 * config/sparc/sparc.c: Likewise.
5629
5630 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
5631
5632 PR c++/11512
5633 * stmt.c (expand_expr_stmt_value): Don't warn about any void
5634 typed expression.
5635
5636 2003-08-16 Jan Hubicka <jh@suse.cz>
5637
5638 * i386.c (ix86_fntype_regparm): Rename from ...
5639 (ix86_function_regparm): ... this one; add fastcall and local
5640 functions.
5641 (ix86_function_ok_for_sibcall): Update.
5642 (ix86_return_pops_args): Likewise.
5643 (init_cumulative_args): Likewise.
5644 (x86_can_output_mi_thunk): Likewise.
5645 (function_arg): Fix formating.
5646 (x86_this_parameter): Fix fastcall.
5647 (x86_output_mi_thunk): Likewise.
5648
5649 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
5650 body as reachable; mark nested functions as needed too.
5651 (dump_cgraph): Do not output global.calls.
5652 * cgraph.h (cgraph_global_info): Kill.
5653 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
5654 (record_call_1): Speedup.
5655 (cgraph_analyze_function): Break out from ...; compute inlining
5656 parameters.
5657 (cgraph_finalize_compilation_unit): ... here.
5658 (cgraph_mark_inline): Kill computation of calls.
5659 (cgraph_decide_inlining): Do not compute most of initial values.
5660
5661 2003-08-14 Roger Sayle <roger@eyesopen.com>
5662
5663 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
5664 to negate if either operand is easy to negate, if we don't care
5665 about sign-dependent rounding.
5666 (negate_expr): Make the logic to negate a REAL_CST explicit.
5667 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
5668 that's easy to negate, if we don't honor sign-dependent rounding.
5669 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
5670 negate, and the symmetric A * -B as -A * B if A is easy to negate.
5671 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
5672 -C/D if B and C are cheap to negate. Add an explicit rule to
5673 optimize X/-1.0 as -X when we don't care about signaling NaNs.
5674
5675 2003-08-14 Zack Weinberg <zack@codesourcery.com>
5676
5677 * Makefile.in (tm_file): Rename tm_include_list.
5678 (tm_p_file): Rename tm_p_include_list.
5679 (build_xm_file): Rename build_xm_include_list.
5680 (host_xm_file): Rename host_xm_include_list.
5681 (xm_file): Rename xm_include_list.
5682 (xm_file_list): Add to be substituted.
5683 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
5684 Update to match.
5685 (bt-load.o): Add missing dependency on $(TM_H).
5686 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
5687 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
5688 build_xm_file, generate both *_file_list and *_include_list
5689 values from it. (xm_file_list was formerly not being generated.)
5690 In *_include_list, prefix the names of all headers found in
5691 $(srcdir)/config with config/. In each loop, consider only
5692 the special case files that can actually appear in that list.
5693 AC_SUBST all *_file_list and all *_include_list variables; do
5694 not AC_SUBST the plain *_file variables.
5695 * configure: Regenerate.
5696
5697 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5698
5699 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
5700
5701 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5702
5703 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
5704 direct calls.
5705 (attr_length_call): Include it here. Improve length estimate for
5706 local calls.
5707 (output_call): Use targetm.binds_local_p.
5708
5709 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5710
5711 * builtins.c (CASE_MATHFN): New helper macro.
5712 (mathfn_built_in): Simplify and sort.
5713
5714 * protoize.c (substr): Delete, callers changed to `strstr'.
5715
5716 2003-08-13 Zack Weinberg <zack@codesourcery.com>
5717
5718 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
5719 * config/iq2000/xm-iq2000.h: Delete file.
5720
5721 2003-08-13 Geoffrey Keating <geoffk@apple.com>
5722
5723 * gengtype.c (walk_type): Process a subobject before processing
5724 the pointer that points to the subobject.
5725
5726 2003-08-13 Per Bothner <pbothner@apple.com>
5727
5728 * regclass.c (init_reg_modes): Make non-static.
5729 Rename to init_reg_modes_once per new naming convention.
5730 (init_regs): Don't call init_reg_modes here.
5731 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
5732 * rtl.h (init_reg_modes_once): New declaration.
5733 * toplev.c (backend_init): Call init_regs after init_emit_once.
5734
5735 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
5736
5737 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
5738 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
5739
5740 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
5741
5742 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
5743 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
5744
5745 2003-08-13 Dale Johannesen <dalej@apple.com>
5746
5747 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
5748 handling of decrement-and-branch farther than 32 bits.
5749
5750 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
5751
5752 * configure.in (make_compare_target): Move test to ...
5753 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
5754 * configure: Regenerate.
5755
5756 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
5757
5758 * config/mips/iris6.h: Convert to C90 prototypes.
5759 * config/mips/irix6-libc-compat.c: Likewise.
5760 * config/mips/mips-protos.h: Likewise.
5761 * config/mips/mips.c: Likewise.
5762
5763 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
5764
5765 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
5766 for selected machines. Comment heavily.
5767 fixinc/fixincl.x: Rebuild.
5768 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
5769
5770 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
5771
5772 * config/mips/mips.h: Tweak various comments.
5773 * config/mips/mips.c: Likewise.
5774
5775 2003-08-11 James E Wilson <wilson@tuliptree.org>
5776
5777 PR optimization/11319
5778 PR target/10021
5779 * alias.c (find_base_value, case REG): Return 0 not src if no base
5780 found.
5781
5782 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5783
5784 * gcse.c (gmalloc): Fix last change.
5785
5786 2003-08-11 Roger Sayle <roger@eyesopen.com>
5787
5788 * simplify-rtx.c (simplify_binary_operation): Replace calls to
5789 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
5790 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
5791 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
5792
5793 2003-08-11 Roger Sayle <roger@eyesopen.com>
5794
5795 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
5796 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
5797 typecode for an ABS_EXPR.
5798
5799 * doc/c-tree.texi: Document ABS_EXPR.
5800
5801 2003-08-11 Roger Sayle <roger@eyesopen.com>
5802
5803 * fold-const.c (fold): Optimize any associative floating point
5804 operator with -funsafe-math-optimizations, not just MULT_EXPR.
5805
5806 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
5807
5808 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
5809 information in SHmedia case too.
5810 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
5811 Likewise.
5812 (__set_fpscr): Use an access via GOT for PIC case.
5813
5814 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
5815
5816 * configure.in (intermodule): Make switch test more portable.
5817 * configure: Regenerate.
5818
5819 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
5820
5821 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
5822 (restrap): Likewise.
5823
5824 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5825
5826 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
5827 (grealloc): Size argument is a size_t.
5828 (gcalloc): New function. Use throughout in lieu of
5829 gmalloc/memset.
5830
5831 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
5832 xmalloc/memset.
5833 * config/ia64/ia64.c (ia64_reorg): Likewise.
5834 * conflict.c (conflict_graph_new): Likewise.
5835 * fixinc/fixincl.c (run_compiles): Likewise.
5836 * genattrtab.c (optimize_attrs): Likewise.
5837 * genrecog.c (new_decision): Likewise.
5838 * haifa-sched.c (schedule_block): Likewise.
5839 * hashtable.c (ht_create): Likewise.
5840
5841 2003-08-11 Bob Wilson <bob.wilson@acm.org>
5842
5843 * config/xtensa/lib2funcs.S: Fix whitespace.
5844 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
5845 syntax where appropriate. Remove unnecessary backslash escapes.
5846 Reformat comments and fix some code formatting.
5847 (extendqisi2): Rearrange conditional.
5848 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
5849 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
5850 of fatal_insn.
5851
5852 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
5853
5854 * config/mips/mips.c: Various formatting fixes.
5855 (override_options): Resync -mtune handling with gas.
5856 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
5857 * config/mips/mips.h: More formatting fixes.
5858 (mips_abi): Move declaration.
5859 * config/mips/mips.md (exception_receiver): Add mode to
5860 unspec_volatile.
5861
5862 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
5863
5864 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
5865 evsplatfi here.
5866 (bdesc_1arg): Remove evsplati and evsplatfi.
5867
5868 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
5869
5870 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
5871 into account.
5872
5873 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5874
5875 * builtins.c (expand_builtin_strcat): Optimize constant strings.
5876
5877 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
5878
5879 * pretty-print.c (pp_base_indent): Rename from pp_indent.
5880 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
5881 (struct c_pretty_print_info): Add more fields.
5882 (pp_c_left_paren): Move to c-pretty-print.c.
5883 (pp_c_right_paren): Likewise.
5884 (pp_c_left_brace): Likewise.
5885 (pp_c_right_brace): Likewise.
5886 (pp_c_left_bracket): Likewise.
5887 (pp_c_right_bracket): Likewise.
5888 (pp_c_declarator): Declare.
5889 (pp_c_direct_declarator): Likewise.
5890 (pp_c_specifier_qualifier_list): Likewise.
5891 (pp_c_type_id): Likewise.
5892 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
5893 (pp_c_type_qualifier_list): New.
5894 (pp_c_pointer): Likewise.
5895 (pp_c_parameter_type_list): Likewise.
5896 (pp_c_function_definition): Likewise.
5897 (pp_c_id_expression): Likewise.
5898 (pp_c_simple_type_specifier): Tidy.
5899 (pp_c_unary_expression): Likewise.
5900 (pp_c_expression): Likewise.
5901 (pp_c_pretty_printer_init): Likewise.
5902 (pp_c_specifier_qualifier_list): Rework..
5903 (pp_c_abstract_declarator): Likewise.
5904 (pp_c_postfix_expression): Likewise.
5905 (pp_c_primary_expression): Likewise.
5906 (pp_c_cast_expression): Likewise.
5907 (pp_c_direct_abstract_declarator): Likewise.
5908 (pp_c_storage_class_specifier): Likewise.
5909 (pp_c_function_specifier): Likewise.
5910 (pp_c_declaration_specifiers): Likewise.
5911 (pp_c_direct_declarator): Likewise.
5912 (pp_c_declarator): Likewise.
5913 (pp_c_declaration): Likewise.
5914 (pp_c_statement): Likewise.
5915 (pp_c_integer_constant): Rename from pp_c_integer_literal.
5916 (pp_c_character_constant): Rename from pp_c_character_literal.
5917 (pp_c_bool_constant): Rename from pp_c_bool_literal.
5918 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
5919 (pp_c_floating_constant): Rename from pp_c_real_literal.
5920 (pp_c_constant): Rename from pp_c_literal.
5921 * c-lang.c: Include diagnostic.h and c-pretty-print.h
5922 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
5923 (c_initialize_diagnostics): New.
5924 * Makefile.in (c-lang.o): Update dependency.
5925
5926 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
5927
5928 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
5929
5930 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
5931
5932 * config/mips/mips.c (mips_no_mips16_string): Remove.
5933 (override_options): Don't handle -mips16 as part of -mipsN.
5934 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
5935 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
5936 (TARGET_OPTIONS): Remove -mno-mips16.
5937
5938 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
5939
5940 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
5941 (coprocessor2_operand): Likewise.
5942 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
5943 (lookup_name): Remove declaration.
5944 (abort_with_insn): Remove. Replace all uses with fatal_insn.
5945 (mips16, mips_abicalls): Remove.
5946 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
5947 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
5948 (coprocessor_operand, coprocessor2_operand): Remove.
5949 (override_options): Don't set mips16 or mips_abicalls.
5950 (print_operand): Don't expect SIGN_EXTEND operands.
5951 (mips_secondary_reload_class): Likewise.
5952 (mips_output_conditional_branch): Remove disabled long-branch code.
5953 * config/mips/mips.h (call_used_regs): Remove declaration.
5954 (may_call_alloca): Likewise.
5955 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
5956 (mips_abicalls, mips16): Remove declarations.
5957 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
5958 (CC1_SPEC): Remove outdated comment.
5959 (MIPS_VERSION, MACHINE_TYPE): Remove.
5960 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5961 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
5962 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
5963 (PUSH_ROUNDING): Likewise.
5964 (ASSEMBLER_SCRATCH_REGNUM): Remove.
5965 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
5966 and mips16 with TARGET_MIPS16.
5967
5968 2003-08-09 Per Bothner <pbothner@apple.com>
5969
5970 * cppinit.c (cpp_read_main_file): Split out source-independent
5971 initialization to separate function ...
5972 (cpp_post_options): New function.
5973 * cppfiles.c (cpp_stack_file): Rename public name to ...
5974 (_cpp_stack_file): New internal function name.
5975 * cpplib.h: Update accordingly.
5976 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
5977 (cpp_read_main_file): Don't initialize line here.
5978 * c-opts.c (c_common_post_options): Call cpp_post_options.
5979 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
5980 * fix-header.c (read_scan_file): Call cpp_post_options.
5981
5982 2003-08-09 Per Bothner <per@bothner.com>
5983
5984 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
5985
5986 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5987
5988 * pa.c (pa_asm_output_mi_thunk): Fix typo.
5989
5990 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
5991
5992 PR preprocessor/11839
5993 * cppfiles.c (open_file): Handle ENOTDIR.
5994
5995 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
5996
5997 PR target/11699
5998 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
5999
6000 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6001
6002 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
6003 source/destination is not a register operand.
6004
6005 2003-08-08 Richard Henderson <rth@redhat.com>
6006
6007 PR target/11535
6008 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
6009 RETURN_ADDRESS_POINTER_REGNUM.
6010 (ia64_expand_prologue): Don't frob it.
6011 (ia64_output_function_epilogue): Likewise.
6012 (ia64_return_addr_rtx): New.
6013 (ia64_split_return_addr_rtx): New.
6014 * config/ia64/ia64-protos.h: Update.
6015 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
6016 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
6017 (GENERAL_REGNO_P): Don't check it.
6018 (AR_*_REGNUM): Renumber.
6019 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
6020 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
6021 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
6022 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
6023 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
6024 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
6025 (movdi_ret_addr): New.
6026
6027 2003-08-08 Geoffrey Keating <geoffk@apple.com>
6028
6029 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
6030
6031 2003-08-08 Roger Sayle <roger@eyesopen.com>
6032
6033 * tree.h (get_identifier) Define a macro form of get_identifier
6034 that calls get_identifier_with_length when the string is constant.
6035 (get_identifier_with_length): Change type of second argument to
6036 size_t in prototype.
6037 * stringpool.c (get_identifier): Undefine the macro before giving
6038 the function definition.
6039 (get_identifier_with_length): Change type of second argument to
6040 size_t in function definition.
6041 * hashtable.c (calc_hash): Change type of second argument to size_t.
6042 (ht_lookup): Change type of third argument to size_t. Reorganize
6043 to speed-up the cases where the hash table slot is empty, or the
6044 first probe matches (i.e. there isn't a collision).
6045 * hashtable.h (ht_lookup): Adjust function prototype.
6046
6047 2003-08-08 Bernardo Innocenti <bernie@develer.com>
6048
6049 PR target/9697
6050 PR target/11777
6051 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
6052
6053 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
6054
6055 * common.opt: Add debug switches.
6056 * flags.h (use_gnu_debug_info_extensions): Boolify.
6057 * opts.c (write_symbols, debug_info_level,
6058 use_gnu_debug_info_extensions): Move from toplev.c.
6059 (set_debug_level): New.
6060 (common_handle_options): Handle debug switches.
6061 (print_help): Display target options directly.
6062 * toplev.c (debug_hooks): Don't initialize.
6063 (write_symbols, debug_info_level,
6064 use_gnu_debug_info_extensions): Move to opts.c.
6065 (debug_args, display_help, decode_g_option): Remove.
6066 (process_options): Set no debug if level zero here,
6067 and no-debug-hooks. Error here if impossible debug format selected.
6068 * toplev.h (display_help, decode_g_option): Remove.
6069
6070 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
6071
6072 * tree.c (get_file_function_name_long): Fix size of alloca() area.
6073
6074 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
6075
6076 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
6077 and gcc_cv_prog_cmp_skip.
6078 * configure: Regenerate.
6079
6080 2003-08-08 Stan Cox <scox@redhat.com>
6081
6082 * config/iq2000: New port.
6083 * config.gcc (iq2000-*-elf): Added.
6084 * doc/install.texi (Specific): Add iq2000 description.
6085
6086 2003-08-08 Andreas Schwab <schwab@suse.de>
6087
6088 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
6089 and insert missing empty argument.
6090 * configure: Regenerate.
6091
6092 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6093
6094 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
6095 (attr_length_millicode_call): Likewise.
6096 (attr_length_call): Likewise. Revise some maximum insn lengths.
6097 (attr_length_indirect_call): Likewise.
6098 (output_call): Fix thinko that added extra nop.
6099 * pa.h (IN_NAMED_SECTION_P): Define.
6100
6101 PR c++/11712
6102 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
6103 __STDC_EXT__ when using C++ dialect.
6104
6105 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
6106
6107 * sh.c (calc_live_regs): If the return address pointer is live,
6108 force pr live.
6109 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
6110 for saves / restores.
6111 (sh_expand_epilogue): If sh_media_register_for_return returns a
6112 register number, flag the instructions that restores PR_MEDIA_REG
6113 as possibly dead.
6114 Remove dead update of offset.
6115 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
6116 we can use the result of get_hard_reg_initial_val.
6117 * sh.md (UNSPEC_RA): New constant.
6118 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
6119 (load_ra). Handle UNSPEC_RA.
6120 (sibcall_media): Use PR_MEDIA_REG.
6121
6122 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
6123 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
6124 needs saving on SHmedia.
6125
6126 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
6127
6128 * config/s390/s390.md: Replace all occurrences of \\t with \t.
6129
6130 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
6131
6132 * local-alloc.c (combine_regs): Fix comment typo.
6133
6134 2003-08-06 Zack Weinberg <zack@codesourcery.com>
6135
6136 * c-decl.c (builtin_decls): Replace with first_builtin_decl
6137 and last_builtin_decl.
6138 (c_init_decl_processing): Initialize both.
6139 (c_reset_state): Iterate from first_builtin_decl to
6140 last_builtin_decl inclusive to reintroduce builtins.
6141
6142 2003-08-06 David Mosberger <davidm@hpl.hp.com>
6143
6144 * doc/extend.texi (Function Attributes): Document the IA-64 version
6145 of the "model" attribute.
6146
6147 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
6148 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
6149 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
6150
6151 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
6152 (ia64_encode_section_info): Likewise.
6153 (ia64_attribute_table): Add "model" attribute.
6154 (TARGET_ENCODE_SECTION_INFO): Define.
6155 (small_addr_symbolic_operand): New function.
6156 (got_symbolic_operand): Return 0 for a symbolref to an object
6157 in the small address area.
6158 (enum ia64_addr_area): New type.
6159 (small_ident1): New variable.
6160 (small_ident2): Likewise.
6161 (init_idents): New function.
6162 (ia64_get_addr_area): Likewise.
6163 (ia64_encode_addr_area): Likewise.
6164 (ia64_encode_section_info): Likewise.
6165 (ia64_expand_load_address): For symbolic references to objects in
6166 the small-address-area, load the address via gen_rtx_SET() (which,
6167 eventually, will expand into "addl").
6168
6169 2003-08-06 Per Bothner <pbothner@apple.com>
6170
6171 * line-map.h (fileline): New typedef.
6172 (struct line_map, linemap_add, linemap_lookup): Use it.
6173 * input.h (struct location_s): Comment notes that long-term we want
6174 to replace it by fileline.
6175
6176 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
6177
6178 Fix SHcompact exception handling:
6179 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
6180 by the prologue, return a MEM with return_address_pointer_rtx
6181 as address.
6182 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
6183 (RETURN_ADDR_OFFSET): Don't define.
6184 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
6185 registers that are visible in compact mode. Show that SHmedia
6186 registers still exist in compact mode, even if there are not
6187 readily accessible.
6188 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
6189 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
6190 and DW_EH_PE_pcrel for pic data.
6191 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
6192 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
6193 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
6194 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
6195 * sh.md (movsi_media-1): New splitter.
6196
6197 2003-08-06 Graeme Peterson <gp@qnx.com>
6198
6199 * config/i386/nto.h: New.
6200 * config/i386/t-nto: New.
6201 * config.gcc (i[34567]86-*-nto-qnx*): New.
6202
6203 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
6204
6205 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
6206
6207 2003-08-06 Alan Modra <amodra@bigpond.net.au>
6208
6209 * calls.c (load_register_parameters): Arrange for call_fusage to
6210 report the whole register as used when shifting to the msb.
6211
6212 2003-08-05 Roger Sayle <roger@eyesopen.com>
6213
6214 * builtins.c (expand_builtin): When not optimizing, call the library
6215 function for all builtins that have library functions (except alloca).
6216
6217 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
6218
6219 * c.opt: Introduce -fworking-directory.
6220 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
6221 * c-common.h (flag_working_directory): Declare.
6222 * c-common.c (flag_working_directory): Define.
6223 * c-opts.c (c_common_handle_options): Set it.
6224 (sanitize_cpp_opts): Set...
6225 * cpplib.h (struct cpp_options): ... working_directory option.
6226 (struct cpp_callbacks): Add dir_change.
6227 * cppinit.c (read_original_filename): Call...
6228 (read_original_directory): New. Look for # 1 "directory//"
6229 and process it.
6230 (cpp_read_main_file): Call dir_change callback if working_directory
6231 option is set.
6232 * gcc.c (cpp_unique_options): Pass -g*.
6233 * c-lex.c (cb_dir_change): New.
6234 (init_c_lex): Set dir_change callback.
6235 * toplev.c (src_pwd): New static variable.
6236 (set_src_pwd, get_src_pwd): New functions.
6237 * toplev.h (get_src_pwd, set_src_pwd): Declare.
6238 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
6239 * dwarf2out.c (gen_compile_unit_die): Likewise.
6240 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
6241
6242 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
6243
6244 * pretty-print.h (pp_set_line_maximum_length): Make macro.
6245 (pp_set_prefix): Likewise.
6246 (pp_destroy_prefix): Likewise.
6247 (pp_remaining_character_count_for_line): Likewise.
6248 (pp_clear_output_area): Likewise.
6249 (pp_formatted_text): Likewise.
6250 (pp_last_position_in_text): Likewise.
6251 (pp_emit_prefix): Likewise.
6252 (pp_append_text): Likewise.
6253 (pp_flush): Likewise.
6254 (pp_format_text): Likewise.
6255 (pp_format_verbatim): Likewise.
6256 (pp_tree_identifier): Tidy.
6257 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
6258 (pp_base_format_verbatim): Rename from pp_format_verbatim.
6259 (pp_base_flush): Rename from pp_flush.
6260 (pp_base_set_line_maximum_length): Rename from
6261 pp_set_line_maximum_length.
6262 (pp_base_clear_output_area): Rename from pp_clear_output_area.
6263 (pp_base_set_prefix): Rename from pp_set_prefix.
6264 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
6265 (pp_base_emit_prefix): Rename from pp_emit_prefix.
6266 (pp_base_append_text): Rename from pp_append_text.
6267 (pp_base_formatted_text): Rename from pp_formatted_text.
6268 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
6269 (pp_base_remaining_character_count_for_line): Rename from
6270 pp_remaining_character_count_for_line.
6271 * diagnostic.h (diagnostic_format_decoder): Tidy.
6272 (diagnostic_flush_buffer): Likewise.
6273 * c-pretty-print.h: (pp_c_string_literal): Declare.
6274 (pp_c_real_literal): Likewise.
6275 (pp_c_integer_literal): Likewise.
6276 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
6277 pp_identifier.
6278 (pp_c_character_literal): Tidy.
6279 (pp_c_string_literal): Make public.
6280 (pp_c_bool_literal): Likewise.
6281 (pp_c_integer_literal): Likewise.
6282 (pp_c_real_literal): Likewise.
6283
6284 * Makefile.in (C_PRETTY_PRINT_H): New variable.
6285 (c-pretty-print.o): Update dependence.
6286
6287 2003-08-05 Chris Demetriou <cgd@broadcom.com>
6288
6289 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
6290 ".set nomacro" state.
6291 (fix_truncsfsi2_macro): Likewise.
6292
6293 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
6294
6295 * tree.h (DID_INLINE_FUNC): Remove macro.
6296 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
6297 add tree check for FUNCTION_DECL.
6298 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
6299 (struct tree_decl): Rename inlined_function_flag to
6300 declared_inline_flag.
6301 * c-common.h (c_lang_decl): Remove.
6302 (DECL_ESTIMATED_INSNS): Remove.
6303 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
6304 (DECL_DECLARED_INLINE_P): Remove.
6305 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
6306 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
6307 (finish_function): Make uninlinable a bool. Fixup call to
6308 tree_inlinable_function_p() and fix some code style issues.
6309 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
6310 * cgraph.c (dump_cgraph): Likewise.
6311 * cgraphunit.c (cgraph_decide_inlining): Likewise
6312 (cgraph_finalize_compilation_unit): Likewise.
6313 Also update call to tree_inlinable_function_p().
6314 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
6315 look at DECL_DECLARED_INLINE and reverse logic.
6316 * print-tree.c (print_node): Likewise.
6317 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
6318 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
6319 prototype.
6320 * tree-inline.c (inlinable_function_p): Split up in this function to
6321 check for basic inlining inhibiting conditions, and new
6322 limits_allow_inlining() function. Warn if inlining is impossible
6323 because the inline candidate calls alloca or uses sjlj exceptions.
6324 (limits_allow_inlining): this new function to check if the inlining
6325 limits are satisfied. Throttle from currfn_max_inline_insns, not from
6326 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
6327 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
6328 Update prototypes.
6329 (tree_inlinable_function_p): Make a bool. Update call to
6330 inlinable_function_p
6331 (expand_call_inline): Use limits_allow_inlining() when not in
6332 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
6333 instead see if the function was declared `inline'.
6334
6335 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
6336
6337 * gcse.c (try_replace_reg): Fix updating of note.
6338
6339 2003-08-04 Roger Sayle <roger@eyesopen.com>
6340
6341 PR middle-end/11771
6342 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
6343 logic in negate_expr, i.e. we don't invert (A-B) for floating
6344 point types unless flag_unsafe_math_optimizations.
6345
6346 2003-08-04 Roger Sayle <roger@eyesopen.com>
6347
6348 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
6349 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
6350 for floating point expressions with -ffast-math.
6351 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
6352 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
6353
6354 2003-08-04 Roger Sayle <roger@eyesopen.com>
6355
6356 * c-common.c (flag_noniso_default_format_attributes): Delete.
6357 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
6358 (c_attrs_initialized): Delete.
6359 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
6360 always call c_init_attributes.
6361 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
6362 set c_attrs_initialized when done.
6363 (c_common_insert_default_attributes): Delete.
6364 * c-common.h (flag_noniso_default_format_attributes): Delete.
6365 (c_coomon_insert_default_attributes): Delete prototype.
6366 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
6367 flag_noniso_default_format_attributes.
6368
6369 * c-decl.c (c_insert_default_attributes): Delete.
6370 * c-tree.h (c_insert_default_attributes): Delete prototype.
6371
6372 * attribs.c (decl_attributes): Don't call insert_default_attributes
6373 langhook. Update function description comment.
6374 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
6375 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
6376 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
6377 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
6378
6379 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
6380 define.
6381
6382 2003-08-04 Richard Sandiford <rsandif@redhat.com>
6383
6384 * config/mips/mips.c (override_options): Disable -G on targets that
6385 have no .section support.
6386 (mips_select_section): Use default_select_section for such targets.
6387
6388 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
6389
6390 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
6391 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
6392 * fixinc/fixincl.x: Rebuild.
6393 * fixinc/tests/base/regexp.h: New test.
6394
6395 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
6396
6397 * c-ppoutput.c (cb_line_change): Don't skip line changing while
6398 parsing macro arguments in the top-level context.
6399
6400 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
6401
6402 * config.in: Remove HAVE_LSTAT.
6403 * configure, configure.in: Don't test for lstat.
6404
6405 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6406
6407 * opts.c (decode_options): Do language-specific initialization for
6408 the global diagnostic context.
6409 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
6410 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
6411 (LANG_HOOKS_INITIALIZER): Adjust.
6412 * langhooks.h (struct lang_hooks): Add new field
6413 initialize_diagnostics.
6414 * langhooks.c (lhd_initialize_diagnostics): Define.
6415
6416 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6417
6418 * pretty-print.h: Adjust macro definitions.
6419 * pretty-print.c (pp_newline): Rename to pp_base_newline.
6420 (pp_character): Rename to pp_base_character.
6421 (pp_string): Rename to pp_base_string.
6422 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
6423 (pp_newline): Likewise. Adjust.
6424 (pp_c_char): Adjust.
6425
6426 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6427
6428 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
6429 BUILT_IN_LLABS): Move to miscellaneous section.
6430
6431 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
6432
6433 PR preprocessor/11534
6434 * cppexp.c (parse_defined): Warn only if -pedantic.
6435
6436 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
6437
6438 * cppfiles.c (stack_file): Use file path.
6439
6440 2003-08-02 Roger Sayle <roger@eyesopen.com>
6441
6442 * builtin-types.def (BT_SSIZE): New primitive type.
6443 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
6444 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
6445 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
6446 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
6447 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
6448 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
6449 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
6450 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
6451 few functions that define default attributes using it.
6452 * c-common.c (c_common_insert_default_attributes): Do nothing.
6453
6454 * doc/extend.texi: Document these "new" builtins.
6455
6456 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
6457
6458 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
6459 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
6460 when -mieee-fp set and -shared not set.
6461 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
6462
6463 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
6464
6465 * cppfiles.c (struct _cpp_file): Rename once_only_next to
6466 next_file. Remove import and pragma_once, add once_only.
6467 (find_file): Add new file structures to the all_files list.
6468 (should_stack_file): Mark #import-ed files once-only, and
6469 don't stack them if the file has already been stacked.
6470 (_cp_mark_file_once_only): Simplify.
6471 * cpphash.h (struct cpp_reader): Rename once_only_files
6472 to all_files. Rename saw_pragma_once to seen_once_only.
6473 (_cpp_mark_file_once_only): Update prototype.
6474 * cpplib.c (do_pragma_once): Update.
6475
6476 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
6477
6478 * cppfiles.c (ENOTDIR): Remove.
6479 (open_file_in_dir): Rename find_file_in_dir. Handle errors
6480 other than ENOENT here.
6481 (once_only_file_p): Rename should_stack_file.
6482 (find_file, open_file_failed, read_file_guts): Report errors
6483 with full path name.
6484 (read_file): Move pch handling to should_stack_file.
6485 (should_stack_file): Handle PCH and once-only issues, and
6486 reading the file.
6487 (stack_file): Don't do file reads.
6488
6489 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6490
6491 * libgcov.c (gcov_exit): Cleanup and fix.
6492 * profile.c (compute_value_histograms): Don't try to read profiles
6493 that are not present.
6494
6495 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6496
6497 * builtins.def: Categorize.
6498
6499 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
6500 Mind fp rounding.
6501 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
6502
6503 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
6504
6505 * config.gcc: Enable posix threads by default on darwin.
6506
6507 2003-08-01 Jakub Jelinek <jakub@redhat.com>
6508
6509 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
6510 even if nehedges1 is 0.
6511
6512 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
6513
6514 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
6515 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
6516 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
6517 and defintions.
6518
6519 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
6520 * fixinc/fixincl.x: Regenerate.
6521 * fixinc/tests/base/math.h: Regenerate to match test_text change.
6522
6523 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6524
6525 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
6526
6527 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6528
6529 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
6530 for accesses to exc_ptr.
6531
6532 2003-08-01 Geoffrey Keating <geoffk@apple.com>
6533
6534 * doc/sourcebuild.texi (Front End Directory): Don't make references
6535 to libsubdir, it's not part of the interface to frontends.
6536 * doc/install.texi (Configuration): Help users read faster by saying
6537 that GCC's configure options are the standard autoconf ones.
6538 Mention --libdir. Update the default rules for finding the
6539 assembler. Don't use libsubdir since we haven't said what it means.
6540 (Specific): In the Solaris 7 notes, update the place to put the
6541 assembler.
6542 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
6543 * doc/cpp.texi (Search Path): Actually, the search path
6544 depends on libdir, which can relocate with cpp.
6545 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
6546 now a private interface between the Makefile and the driver.
6547
6548 2003-08-01 Richard Henderson <rth@redhat.com>
6549
6550 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
6551
6552 * varasm.c (lookup_constant_def): New function.
6553 * rtl.h (lookup_constant_def): Declare it.
6554 * dwarf2out.c (loc_descriptor_from_tree): Use it.
6555 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
6556
6557 2003-08-01 Zack Weinberg <zack@codesourcery.com>
6558
6559 * c-decl.c (gettags, pushdecl_function_level): Delete.
6560 (last_function_parm_vars): Rename last_function_parm_others.
6561 (current_function_parm_vars): Rename current_function_parm_others.
6562 (struct c_scope): Rewrite comment explaining this data structure.
6563 Add names_last, blocks_last, parms_last fields. Rename
6564 incomplete_list to incomplete.
6565 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
6566 (poplevel): Ignore second argument. No need to nreverse
6567 anything. Restructure such that each list is processed
6568 exactly once. Use 'const location_t *locus' syntactic sugar
6569 variable where useful. Issue unused variable warnings
6570 ourselves, do not rely on function.c.
6571 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
6572 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
6573 (implicitly_declare): decl cannot be error_mark_node.
6574 (undeclared_variable): Manipulate scope structure directly.
6575 (c_make_fname_decl): Likewise.
6576 (getdecls, c_init_decl_processing): Fix comment.
6577 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
6578 for 'last' variable.
6579 (grokparms): No need to nreverse parms list.
6580 (store_parm_decls_newstyle): Set up the parms_last and
6581 names_last fields of the new scope too.
6582 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
6583 on parms to begin with; check this under ENABLE_CHECKING. Set
6584 up parms_last.
6585 (check_for_loop_decls): Refer directly to current_scope->tags.
6586 Use consistent quote style in diagnostics.
6587 (c_write_global_declarations): The names list is not backward.
6588
6589 * c-common.h: Don't prototype gettags.
6590 * c-parse.in: Call poplevel with second argument 0 always.
6591
6592 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6593
6594 * builtins.def: Resort builtins.
6595
6596 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6597
6598 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
6599 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
6600 Prepend "__builtin_" onto NAME with string concatenation. Remove
6601 explicit "__builtin_" from each macro call.
6602
6603 Reformat entire file.
6604
6605 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6606
6607 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
6608 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
6609
6610 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
6611
6612 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
6613 CCL1, or CCL2 modes with floating point operations.
6614
6615 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
6616 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
6617 "*subdf3_cconly"): New insns.
6618 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
6619
6620 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
6621
6622 * Makefile.in: Refine dependencies.
6623 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
6624 * c.opt: Update help for -Wimport.
6625 * cppfiles.c: Include hashtab.h. Update comments.
6626 (stack_file): Read the file before updating dependencies.
6627 (once_only_file_p): Be smarter about marking once-only files.
6628 (_cpp_mark_file_once_only): Correct the check for existence on
6629 the list.
6630 (open_file_failed): Use name not path, which is NULL.
6631 * cpphash.h: Don't include hashtab.h.
6632 (struct _cpp_file): Remove.
6633 (struct cpp_reader): Update.
6634 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
6635 * cpplib.h (struct cpp_options): Remove warn_import.
6636 (cpp_simplify_path): Remove.
6637
6638 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
6639
6640 PR c++/11295
6641 * doc/extend.texi (Statement Expressions): Document C++ semantics.
6642
6643 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
6644
6645 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
6646
6647 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6648
6649 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
6650 throughout.
6651 * builtins.def: Likewise.
6652
6653 2003-07-31 Jason Merrill <jason@redhat.com>
6654
6655 * Makefile.in (bubblestrap): Don't require a previous full
6656 bootstrap.
6657
6658 * expr.c (mostly_zeros_p): No longer static.
6659 * tree.h: Declare it.
6660 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
6661 unless we need to do substitutions.
6662
6663 2003-07-31 Roger Sayle <roger@eyesopen.com>
6664
6665 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
6666 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
6667 as pow(x,2.0) when the latter will be expanded back into x*x.
6668 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
6669 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
6670 pow can never set errno when used with an integer exponent.
6671 Always use expand_powi when exponent is -1, 0, 1 or 2.
6672 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
6673 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
6674 the pow forms of these expressions.
6675
6676 2003-07-31 Geoffrey Keating <geoffk@apple.com>
6677
6678 * Makefile.in (libexecdir): New.
6679 (libsubdir): Use gcc instead of gcc-lib.
6680 (libexecsubdir): New.
6681 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
6682 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
6683 gcc-lib.
6684 (installdirs): Make libexecsubdir.
6685 (install-common): Put executables in libexecsubdir.
6686 (itoolsdir): Use libexecsubdir.
6687 (itoolsdatadir): New.
6688 (install-mkheaders): Separate data files and executables.
6689 (install-collect2): Put executables in libexecsubdir.
6690 (uninstall): Remove libexecsubdir.
6691 * mkheaders.in: Update for new arrangement of files.
6692 (libexecdir): New.
6693 (libexecsubdir): New.
6694 (itoolsdir): Use libexecsubdir.
6695 (itoolsdatadir): New.
6696 * gcc.c (gcc_libexec_prefix): New.
6697 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
6698 (standard_exec_prefix_1): Use libexec.
6699 (standard_exec_prefix_2): New.
6700 (standard_libexec_prefix): New.
6701 (process_command): Update for new arrangement of files. Compute
6702 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
6703
6704 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
6705
6706 * inclhack.def (stdio_va_list): Avoid bogus replacement which
6707 triggers on Interix.
6708 * fixincl.x: Regenerate.
6709
6710 2003-07-31 Jakub Jelinek <jakub@redhat.com>
6711
6712 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
6713 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
6714
6715 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6716
6717 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
6718
6719 2003-07-31 Per Bothner <pbothner@apple.com>
6720
6721 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
6722 (add_input_filename): New function.
6723 (handle_options): Call add_input_filename directly instead of
6724 with a lang hook.
6725 * opts.h (in_fnames, num_in_fnames): Moved here.
6726 (add_input_filename): Declare.
6727 * c-decl.c: Need to #include opts.h.
6728 * Makefile.in (c-decl.o): Also depends on opts.h.
6729 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
6730 (c_common_handle_filename): Replaced by add_input_filename.
6731 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
6732 Remove.
6733 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
6734 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
6735 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
6736 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
6737
6738 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6739
6740 * combine.c (try_combine): Set JUMP_LABEL for newly created
6741 unconditional jump.
6742
6743 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6744
6745 * fold-const.c (fold): Fold some comparisons of bit operations.
6746
6747 2003-07-31 Jan Hubicka <jh@suse.cz>
6748
6749 * cgraph.c (create_edge): Fix typo.
6750 * i386.c (pic_symbolic_operand): Reorder tests.
6751
6752 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
6753
6754 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
6755 more fully.
6756 (Gcov Data Files): Update.
6757
6758 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6759
6760 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
6761 default.
6762
6763 * gthr-posix.c: New file.
6764 * gthr-posix.h: Define _REENTRANT if missing.
6765 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
6766
6767 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
6768 by gthr-posix.o.
6769 * config/alpha/t-osf-pthread: New file.
6770
6771 * fixinc/inclhack.def (alpha_pthread): New fix.
6772 * fixinc/fixincl.x: Regenerate.
6773 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
6774
6775 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
6776 warning.
6777 Fixes PR bootstrap/9330.
6778
6779 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6780
6781 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
6782 without GNU ld.
6783 Update comment.
6784 * configure: Regenerate.
6785
6786 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
6787
6788 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
6789 setter.
6790
6791 2003-07-30 Roger Sayle <roger@eyesopen.com>
6792
6793 * builtins.def: Alphabetize.
6794
6795 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
6796
6797 * doc/c-tree.texi: Normalize spellings of "lowercase" and
6798 "uppercase".
6799 * doc/cpp.texi: Likewise.
6800 * doc/md.texi: Likewise.
6801 * doc/rtl.texi: Likewise.
6802 * doc/tm.texi: Likewise.
6803
6804 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
6805
6806 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
6807 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
6808 of cc1obj.
6809
6810 2003-07-30 Chris Demetriou <cgd@broadcom.com>
6811
6812 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
6813 macros before defining them.
6814
6815 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
6816
6817 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
6818 UNSPECV_BLOCKAGE): New constants.
6819 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
6820 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
6821 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
6822 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
6823
6824 (all insns and expanders): Write output control string as brace block
6825 where appropriate. Remove \-escapes for doublequote characters.
6826
6827 2003-07-31 Jan Hubicka <jh@suse.cz>
6828
6829 * gcse.c (insert_store): Fix typo in previous patch.
6830
6831 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
6832
6833 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
6834
6835 2003-07-30 Andi Kleen <ak@muc.de>
6836
6837 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
6838
6839 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6840
6841 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
6842 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
6843 GCOV_N_VALUE_COUNTERS): New.
6844 * profile.c (compute_value_histograms): New static function.
6845 (branch_prob): Read back the value histograms.
6846 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
6847 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
6848 * value-prof.c: Add comment on reading the profile.
6849 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
6850 * doc/invoke.texi (-fprofile-values): Document behavior with
6851 -fbranch-probabilities.
6852
6853 2003-07-30 David Edelsohn <edelsohn@gnu.org>
6854
6855 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
6856
6857 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
6858
6859 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
6860 symbolically.
6861
6862 2003-07-30 Jan Hubicka <jh@suse.cz>
6863
6864 * gcse.c (insert_store): Ignore fake edges.
6865
6866 * c-common.c (flag_vtable_gc): Kill.
6867 * c-common.g (flag_vtable_gc): Kill.
6868 * c-opts (c_common_handle_option): Kill.
6869 * c.opt (fvtable-gc): Kill.
6870 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
6871 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
6872 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
6873
6874 * invoke.texi (-ftable-gc): Kill documentation.
6875
6876 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
6877 just because function body is missing.
6878
6879 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
6880
6881 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
6882
6883 * unwind-sjlj.c: Fix typo in file description.
6884
6885 2003-07-30 Alan Modra <amodra@bigpond.net.au>
6886
6887 * calls.c (load_register_parameters): When shifting reg sized values
6888 to the msb, move the value to a reg first.
6889
6890 2003-07-29 Geoffrey Keating <geoffk@apple.com>
6891
6892 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
6893 * line-map.h (linemap_add): Update comments.
6894 * line-map.c (linemap_add): Update comments, interpret zero-length
6895 filename as "<stdin>".
6896
6897 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
6898
6899 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
6900
6901 2003-07-29 Zack Weinberg <zack@codesourcery.com>
6902
6903 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
6904 New static variables.
6905 (struct c_scope): Add parms and warned_forward_parm_decls
6906 fields; remove parm_order.
6907 (storedecls, storetags): Delete.
6908 (poplevel): Also clear bindings on the parms chain.
6909 (pushdecl): Handle forward declarations of parameters, and
6910 chain PARM_DECLs on the parms list, not the names list.
6911 (lookup_name_current_level): Check for PARM_DECLs on the parms
6912 list too.
6913 (push_parm_decl): Don't update parm_order.
6914 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
6915 warning, only once per parameter list, and set TREE_ASM_WRITTEN
6916 on the decls here. Then move the forward decls to the names list.
6917 (grokparms): Set last_function_parm_vars.
6918 (get_parm_info): Don't use gettags or getdecls. No need to
6919 extract non-parms from the parms list, or reorganize the parms
6920 list. Feed nonparms back in the TREE_TYPE of the list node
6921 returned. Issue only one error per parameter list for "void"
6922 appearing more than once in said parameter list. Collapse
6923 parmlist_tags_warning into this function to avoid double scan
6924 of tags list.
6925 (start_function): Set current_function_parm_vars.
6926 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
6927 directly. Get non-parms from current_function_parm_vars; no
6928 need to extract them from the parms chain. Properly bind tags
6929 in the new scope.
6930 (store_parm_decls_oldstyle): No need to extract non-parameters
6931 from the parms chain, nor to store them back afterward. Move
6932 declaration to top of function, restructure code reordering
6933 DECL_ARGUMENTS.
6934 (store_parm_decls): No need to save and restore warn_shadow.
6935 * c-parse.in: Don't call parmlist_tags_warning nor
6936 clear_parm_order. Call mark_forward_parm_decls when forward
6937 parm decls are encountered.
6938 * c-tree.h: Prototype mark_forward_parm_decls; not
6939 clear_parm_order or parmlist_tags_warning.
6940
6941 2003-07-29 Geoffrey Keating <geoffk@apple.com>
6942
6943 * c-common.c (allow_pch): Remove.
6944 * c-common.h (allow_pch): Remove.
6945 (c_common_no_more_pch): Declare.
6946 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
6947 * c-pch.c: Include hosthooks.h.
6948 (c_common_valid_pch): Don't check allow_pch.
6949 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
6950 (c_common_no_more_pch): New.
6951 * ggc-common.c: Include hosthooks.h.
6952 (gt_pch_save): Call gt_pch_get_address.
6953 (gt_pch_restore): Call gt_pch_use_address.
6954 * hooks.c (hook_voidp_size_t_null): New.
6955 (hook_bool_voidp_size_t_false): New.
6956 * hooks.h (hook_voidp_size_t_null): New.
6957 (hook_bool_voidp_size_t_false): New.
6958 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
6959 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
6960 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
6961 HOST_HOOKS_GT_PCH_USE_ADDRESS.
6962 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
6963 gt_pch_use_address.
6964 * doc/hostconfig.texi (Host Common): Document
6965 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
6966 * Makefile.in (c-pch.o): Depend on hosthooks.h.
6967 (ggc-common.o): Likewise.
6968
6969 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
6970 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
6971 (pch_address_space): New.
6972 (darwin_rs6000_gt_pch_get_address): New.
6973 (darwin_rs6000_gt_pch_use_address): New.
6974
6975 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
6976
6977 PR preprocessor/11569
6978 PR preprocessor/11649
6979 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
6980 * cppfiles.c: Completely rewritten.
6981 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
6982 struct cpp_path is now struct cpp_dir.
6983 (remove_duplicates): Don't simplify path names.
6984 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
6985 cpp_stack_file.
6986 * cpphash.h: Include hashtab.h.
6987 (_cpp_file): Declare.
6988 (struct cpp_buffer): struct include_file is now struct _cpp_file,
6989 and struct cpp_path is now struct cpp_dir. Rename members.
6990 (struct cpp_reader): Similarly. New members once_only_files,
6991 file_hash, file_hash_entries, quote_ignores_source_dir,
6992 no_search_path, saw_pragma_once. Remove all_include_files and
6993 max_include_len. Make some members bool.
6994 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
6995 (_cpp_stack_file): Renamed from _cpp_read_file.
6996 (_cpp_stack_include): Renamed from _cpp_execute_include.
6997 (_cpp_init_files): Renamed from _cpp_init_includes.
6998 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
6999 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
7000 (cpp_read_next_file): Rename and move to cppfiles.c.
7001 (cpp_read_main_file): Update.
7002 * cpplib.c (run_directive): Update for renamed members.
7003 (do_include_common, _cpp_pop_buffer): Update.
7004 (do_import): Undeprecate #import.
7005 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
7006 * cpplib.h: Remove file_name_map_list.
7007 (cpp_options): Remove map_list.
7008 (cpp_dir): Rename from cpp_path. New datatype for name_map.
7009 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
7010
7011 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
7012
7013 * Makefile.in: Make stamp-objdir safe for parallel builds.
7014
7015 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
7016
7017 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
7018 (info): Depend on stmp-docobjdir.
7019
7020 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7021
7022 * configure: Regenerate.
7023
7024 2003-07-29 Jan Hubicka <jh@suse.cz>
7025
7026 PR C++/11131
7027 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
7028 in !unit-at-a-time mode.
7029
7030 2003-07-28 Geoffrey Keating <geoffk@apple.com>
7031
7032 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
7033 main function.
7034
7035 2003-07-28 Mark Mitchell <mark@codesourcery.com>
7036
7037 PR c++/11667
7038 * c-common.c (shorten_compare): Take into account differences
7039 between C and C++ representation for enumeration types.
7040 * tree.h (set_min_and_max_values_for_integral_type): Declare.
7041 * stor-layout.c (set_min_and_max_values_for_integral_type): New
7042 function, broken out from ...
7043 (fixup_signed_type): ... here and ...
7044 (fixup_unsigned_type): ... here.
7045
7046 2003-07-28 Zack Weinberg <zack@codesourcery.com>
7047
7048 * c-decl.c: Update commentary, adjust blank lines throughout.
7049 (struct c_scope): Fix indentation. Reorder members so
7050 outer-context pointers come first, booleans last.
7051 (duplicate_decls, define_label): Use a 'locus' variable for
7052 diagnostic locations in a few more places.
7053 (warn_if_shadowing): Un-split a conditional that fits on one line.
7054 (c_init_decl_processing): No need to clear current_scope and
7055 current_function_scope.
7056 (start_decl): Merge if/else if statements with same action.
7057 (push_parm_decl): Rename old_immediate_size_expand to use
7058 save_foo convention; save/restore around entire function.
7059 (grokdeclarator): Remove unnecessary braces.
7060
7061 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
7062 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
7063
7064 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
7065 when warn_declaration_after_statement. Call pedwarn_c90, not
7066 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
7067 * c-common.c (warn_declaration_after_statement): Define.
7068 * c-common.h (warn_declaration_after_statement): Declare.
7069 * c.opt (Wdeclaration-after-statement): New.
7070 * c-errors.c (pedwarn_c90): New function.
7071 * c-opts.c (c_common_handle_option) <case
7072 OPT_Wdeclaration_after_statement>: New.
7073 * c-tree.h (pedwarn_c90): Declare.
7074 * doc/invoke.texi (Option Summary): Document
7075 -Wdeclaration-after-statement.
7076 (Warning Options): Ditto.
7077
7078 2003-07-28 Jan Hubicka <jh@suse.cz>
7079
7080 * i386.md (memory attribute) Avoid accessing uninitialized memory
7081 for ishift1 type instructions.
7082
7083 2003-07-28 Jakub Jelinek <jakub@redhat.com>
7084
7085 * configure.in (--enable-checking): Add fold category.
7086 (ENABLE_FOLD_CHECKING): Define if requested.
7087 * configure: Rebuilt.
7088 * config.in: Rebuilt.
7089 * doc/install.texi: Document it.
7090 * fold-const.c: Include md5.h.
7091 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
7092 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
7093 print_fold_checksum): New functions.
7094
7095 * fold-const.c (fold): Never modify argument passed to fold, instead
7096 change a copy and return it.
7097 * convert.c (convert_to_integer): Likewise.
7098
7099 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
7100
7101 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
7102 cleanup of junk after #else and #endif directives. Collapse repeated
7103 clauses into for statment.
7104
7105 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
7106
7107 2003-07-27 Zack Weinberg <zack@codesourcery.com>
7108
7109 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
7110 (keep_next_if_subblocks): Rename next_is_function_body.
7111 (pushlevel): Adjust commentary. Always set ->keep on the
7112 outermost level of a function. Don't set ->keep_if_subblocks.
7113 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
7114 (store_parm_decls): Adjust to match.
7115 (finish_function): Adjust to match.
7116 Call poplevel with all three arguments zero.
7117
7118 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
7119 New functions split out of store_parm_decls.
7120 Avoid unnecessary work. Use local variables consistently.
7121 (store_parm_decls): Likewise.
7122
7123 (finish_function): No need to set functionbody flag on call to
7124 poplevel.
7125 (struct language_function): Remove scope field.
7126 (c_push_function_context, c_pop_function_context): No need to
7127 save and restore current_scope.
7128
7129 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
7130
7131 * doc/extend.texi (Deprecated Features): Implicit typename is
7132 gone. Default args on types is going.
7133
7134 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
7135
7136 * Makefile.in (ifcvt.o): Depend on target.h
7137 * ifcvt.c (target.h): Include.
7138 (if_convert): Don't call mark_loop_exit_edges if we can't
7139 modify jumps.
7140
7141 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7142
7143 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
7144
7145 2003-07-26 Richard Henderson <rth@redhat.com>
7146
7147 PR inline-asm/11676
7148 * cse.c (count_reg_usage): Handle asm_operands properly.
7149
7150 2003-07-26 Roger Sayle <roger@eyesopen.com>
7151
7152 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
7153 (DEF_EXT_FALLBACK_BUILTIN): Delete.
7154 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
7155 the regular DEF_EXT_LIB_BUILTIN macro.
7156 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
7157 the regular DEF_LIB_BUILTIN macro.
7158 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
7159 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
7160 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
7161 DEF_EXT_LIB_BUILTIN macro.
7162
7163 * c-decl.c (duplicate_decls): Remove code to handle builtin
7164 functions prototyped without an argument list.
7165
7166 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
7167
7168 * config/i386/winnt.c: Revert 2003-07-08 change.
7169 (i386_pe_section_type_flags): Remove error_with_decl here too.
7170
7171 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
7172
7173 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
7174 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
7175 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
7176 (v850_handle_data_area_attribute): Likewise.
7177
7178 2003-07-26 Geoffrey Keating <geoffk@apple.com>
7179
7180 * varasm.c (output_constant_def_contents): Use
7181 ASM_DECLARE_CONSTANT_NAME if defined.
7182 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
7183 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
7184 objects get at least one byte to prevent assembler problems.
7185 (ASM_DECLARE_CONSTANT_NAME): New.
7186
7187 * Makefile.in (libbackend.o): Remove options_.h.
7188 (mostlyclean): Likewise.
7189
7190 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
7191 insert a label at the end of an function under Mach-O.
7192
7193 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
7194
7195 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
7196
7197 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
7198 equality.
7199 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
7200
7201 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
7202
7203 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7204
7205 * doc/passes.texi (Passes): Mention pretty-printing and
7206 diagnostic files.
7207
7208 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
7209
7210 * doc/extend.texi (Function Attributes): GNU C++ does now allow
7211 unused parameter decls.
7212 (Attribute Syntax): GNU C++ does not allow label attributes to be
7213 after the ':'.
7214
7215 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7216
7217 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
7218 (objc_declare_class): Likewise.
7219 (error_with_ivar): Likewise.
7220 (start_class): Likewise.
7221 (warn_with_method): Likewise.
7222
7223 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7224
7225 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
7226 from GCC.
7227 * calls.c (try_to_integrate): Don't use xxx_with_decl.
7228 (expand_call): Likewise.
7229 * dwarfout.c (output_reg_number): Likewise.
7230 * expr.c (expand_expr): Likewise.
7231 * function.c (assign_temp): Likewise.
7232 (uninitialized_vars_warning): Likewise.
7233 (setjmp_args_warning): Likewise.
7234 (expand_function_end): Likewise.
7235 * stmt.c (fixup_gotos): Likewise.
7236 (warn_about_unused_variables): Likewise.
7237 (expand_end_bindings): Likewise.
7238 * stor-layout.c (layout_decl): Likewise.
7239 (place_field): Likewise.
7240 * toplev.c (check_global_declarations): Likewise.
7241 (rest_of_handle_inlining): Likewise.
7242 (default_tree_printer): New function.
7243 (general_init): Initialize diagnostic machinery before routing
7244 signals to the ICE machinery. Set default tree printer.
7245 * toplev.h (pedwarn_with_decl): Remove declaration.
7246 (warning_with_decl): Likewise.
7247 (error_with_decl): Likewise.
7248 (pedwarn): Remove attribute for the time being.
7249 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
7250 * varasm.c (named_section): Likewise.
7251 (make_decl_rtl): Likewise.
7252 (assemble_variable): Likewise.
7253 (merge_weak): Likewise.
7254 (declare_weak): Likewise.
7255
7256 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
7257 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
7258 (format_with_decl): Remove.
7259 (diagnostic_for_decl): Likewise.
7260 (pedwarn_with_decl): Likewise.
7261 (warning_with_decl): Likewise.
7262 (error_with_decl): Likewise.
7263 (diagnostic_initialize): Adjust.
7264 (diagnostic_count_diagnostic): Likewise.
7265 (announce_function): Likewise.
7266 (lhd_print_error_function): Likewise.
7267 (diagnostic_report_current_module): Likewise.
7268 (default_diagnostic_starter): Likewise.
7269 (diagnostic_report_diagnostic): Likewise.
7270 (default_diagnostic_finalizer): Likewise.
7271 (verbatim): Likewise.
7272 (error): Likewise.
7273 (warning): Likewise.
7274 * opts.c (common_handle_option): Likewise.
7275 * pretty-print.c: New file.
7276 * c-pretty-print.h (pp_base): Override.
7277 * c-pretty-print.c: Adjust use of macros throughout.
7278 (pp_buffer): New macro.
7279 (pp_newline): Likewise.
7280 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
7281 * Makefile.in (DIAGNOSTIC_H): New variable.
7282 (c-errors.o): Use it.
7283 (c-objc-common.o): Likewise.
7284 (c-common.o): Likewise.
7285 (c-opts.o): Likewise.
7286 (c-format.o): Likewise.
7287 (diagnostic.o): Likewise.
7288 (opts.o): Likewise.
7289 (toplev.o): Likewise.
7290 (rtl-error.o): Likewise.
7291 (dwarf2out.o): Likewise.
7292 (jump.o): Likewise.
7293 (pretty-print.o): New rule.
7294
7295 2003-07-24 Roger Sayle <roger@eyesopen.com>
7296
7297 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
7298 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
7299 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
7300 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
7301 (DEF_FRONT_END_LIB_BUILTIN): Delete.
7302 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
7303 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
7304
7305 * builtins.c (build_string_literal): New function to construct
7306 a char* pointer to a string literal.
7307 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
7308 "rtx target" to be consistent with other expand_builtin_* functions.
7309 Change 3rd argument from "int unlocked" to "bool unlocked".
7310 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
7311 c-common.c to avoid front-end dependencies. Optimize printf("")
7312 as a no-op when the result isn't required. Handle embedded NULs
7313 in format string.
7314 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
7315 from c-common.c to avoid front-end dependencies. Likewise, optimize
7316 fprintf(fp,"") as a no-op when the result isn't required, evaluating
7317 fp for side-effects. Handle embedded NULs in format string.
7318 (expand_builtin_sprintf): Fix typo.
7319 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
7320 optimizing. Adjust calls of expand_builtin_fputs to match the API
7321 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
7322 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
7323 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
7324
7325 * c-common.c (is_valid_printf_arglist): Delete.
7326 (c_expand_builtin): Delete.
7327 (c_expand_builtin_printf): Moved to builtins.c. Delete.
7328 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
7329 (c_expand_expr): No longer treat CALL_EXPRs specially.
7330 (CALLED_AS_BUILT_IN): Delete.
7331
7332 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7333
7334 PR optimization/11631
7335 * gcse.c (store_motion): Connect infinite loops to exit.
7336
7337 2003-07-24 Jason Merrill <jason@redhat.com>
7338
7339 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
7340 (boolean_true_node, boolean_false_node): Likewise.
7341 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
7342 * tree.c (build_common_tree_nodes): Init boolean_type_node.
7343 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
7344 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
7345 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
7346 (truthvalue_true_node): Renamed from boolean_true_node.
7347 (truthvalue_false_node): Renamed from boolean_false_node.
7348 * c-decl.c: Just set truthvalue_* to integer_*.
7349 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
7350
7351 2003-07-24 Roger Sayle <roger@eyesopen.com>
7352
7353 * c-decl.c (match_builtin_function_types): New subroutine of
7354 duplicate_decls to test whether a redeclaration of a builtin
7355 function is suitably close, i.e. the return type and all of
7356 the argument types have the same modes as the builtin expects.
7357 (duplicate_decls): Fuzzy type matching for builtin functions
7358 moved to match_builtin_function_types.
7359
7360 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7361
7362 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
7363 flag correctly.
7364
7365 2003-07-24 Zack Weinberg <zack@codesourcery.com>
7366
7367 * c-decl.c: Search-and-replace change 'binding level' to
7368 'scope' in commentary.
7369 (struct binding_level): Now struct c_scope.
7370 (current_binding_level): Now current_scope.
7371 (free_binding_level): Now scope_freelist.
7372 (current_function_level): Now current_function_scope.
7373 (global_binding_level): Now global_scope.
7374 (make_binding_level): Now make_scope.
7375 (pop_binding_level): Now pop_scope.
7376
7377 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7378
7379 * configure.in (libgcc_visibility): Add missing whitespace.
7380
7381 2003-07-24 Richard Henderson <rth@redhat.com>
7382
7383 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
7384 __gcc_personality_v0.
7385
7386 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7387
7388 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
7389
7390 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
7391
7392 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
7393 documentation missed from my 2003-07-09 patch.
7394
7395 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
7396
7397 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
7398 it's not provided.
7399 * configure: Rebuild.
7400
7401 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
7402
7403 PR c/10602
7404 * c-typeck.c (type_lists_compatible_p): Do not compare
7405 arguments if one of them is an error_mark_node
7406
7407 2003-07-24 Alan Modra <amodra@bigpond.net.au>
7408
7409 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
7410 if current_function_calls_eh_return.
7411
7412 2003-07-23 Mark Mitchell <mark@codesourcery.com>
7413
7414 * doc/c-tree.texi (OFFSET_TYPE): Update description.
7415
7416 2003-07-23 Bob Wilson <bob.wilson@acm.org>
7417
7418 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
7419 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
7420 __umodsi3, __modsi3): Increase frame size to 32.
7421
7422 2003-07-23 Geoffrey Keating <geoffk@apple.com>
7423
7424 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
7425 prototype.
7426
7427 2003-07-23 Mark Mitchell <mark@codesourcery.com>
7428
7429 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
7430
7431 PR optimization/10679
7432 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
7433
7434 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7435
7436 PR target/11607 and PR target/11516
7437 * pa.md (extzv, extv, insv): Revert latter half of last patch.
7438
7439 2003-07-22 Mark Mitchell <mark@codesourcery.com>
7440
7441 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
7442 * varasam.c (output_constant): Likewise.
7443
7444 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
7445
7446 * alias.c: Fix comment formatting.
7447 * c-common.c: Likewise.
7448 * c-decl.c: Likewise.
7449 * c-opts.c: Likewise.
7450 * combine.c: Likewise.
7451 * cpplib.c: Likewise.
7452 * diagnostic.c: Likewise.
7453 * dojump.c: Likewise.
7454 * final.c: Likewise.
7455 * fold-const.c: Likewise.
7456 * gcc.c: Likewise.
7457 * gcse.c: Likewise.
7458 * ggc-page.c: Likewise.
7459 * jump.c: Likewise.
7460 * loop.c: Likewise.
7461 * mips-tfile.c: Likewise.
7462 * recog.c: Likewise.
7463 * regclass.c: Likewise.
7464 * regmove.c: Likewise.
7465 * tree.c: Likewise.
7466 * tree.h: Likewise.
7467
7468 2003-07-22 Per Bothner <pbothner@apple.com>
7469
7470 * line-map.c (add_line_map): Handle invalid LEAVE request.
7471 Fixes PR preprocessor/11361.
7472
7473 2003-07-22 Per Bothner <pbothner@apple.com>
7474
7475 * diagnostic.c.(diagnostic_report_current_module): Update to match
7476 2003-06-05 changes to push_srcloc and pop_srcloc.
7477
7478 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
7479
7480 * doc/trouble.texi: Better document two-stage name lookup.
7481
7482 2003-07-22 Eric Christopher <echristo@redhat.com>
7483
7484 * config/s390.c (s390_valid_pointer_mode): New.
7485 (TARGET_VALID_POINTER_MODE): Use.
7486 (s390_emit_prologue): Add tpf profiling hooks.
7487 (s390_emit_epilogue): Ditto.
7488 * config/s390.h (MASK_TPF): New.
7489 (TARGET_TPF): Use.
7490 (POINTERS_EXTEND_UNSIGNED): Define.
7491 * config/s390.md (ptr_extend): New pattern.
7492
7493 2003-07-22 Zack Weinberg <zack@codesourcery.com>
7494
7495 * hashtable.c (approx_sqrt): Make static.
7496 * hashtable.h: Don't prototype approx_sqrt.
7497 * line-map.c (init_line_maps): Rename linemap_init.
7498 (free_line_maps): Rename linemap_free.
7499 (add_line_map): Rename linemap_add.
7500 (lookup_line): Rename linemap_lookup.
7501 (print_containing_files): Rename linemap_print_containing_files.
7502 * linemap.h: Update to match.
7503
7504 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
7505 linemap routines to use new names.
7506
7507 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
7508
7509 * c-common.c (handle_packed_attribute): Don't pack a struct via a
7510 typedef. Propagate packedness from a main variant.
7511
7512 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
7513
7514 * Makefile.in (install-common): Add dependency on installdirs.
7515
7516 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
7517
7518 * c-common.c (c_common_type_for_mode): Return integer types for
7519 pointer modes.
7520
7521 2003-07-22 Geoffrey Keating <geoffk@apple.com>
7522
7523 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
7524 (finish_decl): Call maybe_apply_pragma_weak here.
7525 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
7526 TREE_PUBLIC and TREE_STATIC are decided.
7527 (start_function): Move call to maybe_apply_pragma_weak. Check that
7528 DECL_ASSEMBLER_NAME isn't set too early.
7529
7530 * cpplex.c (_cpp_process_line_notes): Mention option name in
7531 trigraphs warning.
7532
7533 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
7534
7535 * combine.c (if_then_else_cond): Simplify the comparison of
7536 rtx against -1, 0, and 1.
7537 * loop.c (check_dbra_loop): Likewise.
7538 * optabs.c (emit_conditional_move): Likewise.
7539 (emit_conditional_add): Likewise.
7540 * config/i386/i386.md (*movsi_or): Likewise.
7541 (*movdi_or_rex6): Likewise.
7542
7543 2003-07-22 Jan Hubicka <jh@suse.cz>
7544
7545 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
7546
7547 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
7548
7549 * cppfiles.c (open_file_pch): Don't put unused entries in the
7550 splay tree. Remove dead code.
7551
7552 2003-07-21 Geoffrey Keating <geoffk@apple.com>
7553
7554 * c-common.h (num_in_fnames): Declare.
7555 (c_static_assembler_name): Move from here...
7556 * c-tree.h (c_static_assembler_name): ... to here.
7557 * c-opts.c: Don't include langhooks-def.h.
7558 (c_static_assembler_name): Move to c-decl.c.
7559 (num_in_fnames): Make externally visible.
7560 * c-decl.c: Include langhooks-def.h.
7561 (c_static_assembler_name): Move from c-opts.c.
7562 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
7563 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
7564
7565 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
7566 when it's not needed.
7567
7568 2003-07-21 Jakub Jelinek <jakub@redhat.com>
7569
7570 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
7571 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
7572 (rs6000_emit_prologue): Save FPRs inline if set.
7573
7574 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
7575
7576 * config/ia64/ia64.md (prefetch): Support predicate.
7577
7578 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
7579
7580 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
7581 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
7582 table.
7583
7584 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
7585
7586 PR optimization/11536
7587 * unroll.c (loop_iterations): Do not replace a register holding
7588 the final value by its equivalent before the loop if it is not
7589 invariant.
7590
7591 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
7592
7593 * doc/extend.texi: Fixes to spelling, grammar, and diction.
7594
7595 2003-07-21 Ben Elliston <bje@wasabisystems.com>
7596
7597 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
7598 (V850 Options): Spelling fixes.
7599
7600 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
7601
7602 * doc/invoke.texi: Fixes to style, grammar and diction.
7603
7604 2003-07-20 Roger Sayle <roger@eyesopen.com>
7605
7606 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
7607 * system.h (SMALL_STACK): Poison obsolete target macro.
7608 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
7609
7610 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
7611
7612 * configure.in: Cache the results of testing for cmp's capabilities.
7613 * configure: Regenerate.
7614
7615 2003-07-20 Mark Mitchell <mark@codesourcery.com>
7616
7617 PR debug/11279
7618 * dwarf2out.c (gen_enumeration_type_die): Remember that
7619 enumerators can be unsigned.
7620
7621 2003-07-19 Zack Weinberg <zack@codesourcery.com>
7622
7623 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
7624 (push_label_level, pop_label_level): Kill.
7625 (struct binding_level): Rename level_chain to outer.
7626 Add outer_function field. Change parm_flag, function_body,
7627 keep, keep_if_subblocks to 1-bit bitfields of type bool.
7628 (current_function_level): New variable.
7629 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
7630 (keep_next_level, declare_parm_level, warn_if_shadowing):
7631 Update to match.
7632 (struct language_function): Kill named_labels, shadowed_labels fields.
7633 (c_init_decl_processing, start_function, c_push__function_context)
7634 (c_pop_function_context): No need to muck with named_labels nor
7635 shadowed_labels.
7636
7637 (make_binding_level): No need to clear the structure here.
7638 (pop_binding_level): Always operate on current_binding_level.
7639 Update current_function_level if necessary.
7640 (pushlevel): Don't clear named_labels. Update current_function_level
7641 if necessary. Use "true" and "false" where appropriate.
7642 (poplevel): Diagnose labels defined but not used, or vice
7643 versa, and clear out label-meanings leaving scope, while
7644 walking down the decls list, for all binding levels.
7645 Handle LABEL_DECLs appearing in the shadowed list.
7646 pop_binding_level takes no arguments.
7647 (pushdecl_function_level): Use current_function_level.
7648
7649 (make_label, bind_label): New static functions.
7650 (declare_label): New exported function.
7651 (lookup_label, define_label): Rewritten for new data structure.
7652 (shadow_label): Kill.
7653
7654 * c-tree.h: Prototype declare_label; don't prototype
7655 push_label_level, pop_label_level, nor shadow_label.
7656 * c-parse.in: Remove all calls to push_label_level and
7657 pop_label_level. Use declare_label for __label__ decls.
7658
7659 * doc/extend.texi: Clarify that __label__ can be used to
7660 declare labels with local scope in any nested block, not
7661 just statement expressions. Cross-reference nested functions
7662 section from local labels section.
7663
7664 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7665
7666 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
7667
7668 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
7669
7670 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
7671
7672 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7673
7674 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
7675 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
7676
7677 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
7678
7679 * config/s390/s390.c (legitimize_pic_address): Access local symbols
7680 relative to the GOT instead of relative to the literal pool base.
7681 (s390_output_symbolic_const): Handle new GOT-relative accesses.
7682 * config/s390/s390.md ("call"): Access local functions and PLT stubs
7683 relative to the GOT instead of relative to the literal pool base.
7684 ("call_value"): Likewise.
7685 ("call_value_tls"): Likewise.
7686
7687 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
7688 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
7689 (s390_chunkify_finish): Likewise.
7690 (s390_chunkify_cancel): Likewise.
7691 (s390_reorg): Adapt caller.
7692 (find_base_register_in_addr,
7693 find_base_register_ref, replace_base_register_ref): Delete.
7694 (find_ltrel_base, replace_ltrel_base): New functions.
7695 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
7696 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
7697 base vs. index register usage.
7698 (struct constant_pool): Remove 'anchor'.
7699 (s390_add_anchor): Delete.
7700 (s390_dump_pool): Remove anchor handling.
7701 * config/s390/s390.md ("reload_anchor"): Remove.
7702
7703 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
7704 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
7705 (s390_emit_prologue): Use it.
7706 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
7707 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
7708 hard-code register 14.
7709 * config/s390/s390-protos.h (s390_load_got): Declare.
7710
7711 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
7712 Support TImode constants.
7713 * config/s390/s390.md ("consttable_ti"): New.
7714 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
7715
7716 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
7717 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
7718 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
7719 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
7720 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
7721 New symbolic constants.
7722 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
7723 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
7724 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
7725 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
7726 symbolic UNSPEC values.
7727 * config/s390/s390.c (larl_operand, s390_short_displacement,
7728 bras_sym_operand, s390_cannot_force_const_mem,
7729 s390_delegitimize_address, s390_decompose_address,
7730 legitimize_pic_address, s390_output_symbolic_const,
7731 s390_function_profiler): Use symbolic UNSPEC values.
7732
7733 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7734
7735 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
7736 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
7737 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
7738 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
7739 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
7740 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
7741 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
7742 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
7743 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
7744 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
7745 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
7746 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
7747 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
7748 postreload.c prefix.c print-tree.c protoize.c ra-build.c
7749 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
7750 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
7751 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
7752 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
7753 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
7754 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
7755 casts.
7756
7757 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
7758
7759 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
7760 * toplev.h (warning): Remove attribute.
7761
7762 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
7763
7764 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
7765 (pop_label_level): Likewise.
7766 (duplicate_decls): Likewise.
7767 (implicitly_declare): Likewise.
7768 (shadow_label): Likewise.
7769 (start_decl): Likewise.
7770 (finish_decl): Likewise.
7771 (grokdeclarator): Likewise.
7772 (get_parm_info): Likewise.
7773 (detect_field_duplicates): Likewise.
7774 (finish_struct): Likewise.
7775 (start_function): Likewise.
7776 (store_parm_decls): Likewise.
7777 (finish_function): Likewise.
7778 (c_expand_body_1): Likewise.
7779 (check_for_loop_decls): Likewise.
7780 (merge_translation_unit_decls): Likewise.
7781
7782 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
7783
7784 * common.opt: Document --param.
7785 * opts.c (columns, undocumented_msg): New.
7786 (print_help): Get number of columns from environment. Print
7787 --param help. Tweak newline handling.
7788 (print_param_help): New.
7789 (print_filtered_help): Better handling of duplicates. Complain
7790 about undocumented switches.
7791 (print_switch): New.
7792 (wrap_help): Improve wrapping, use COLUMNS.
7793 * opts.sh: Ignore comments in records.
7794 * params.def: Fix typos and remove trailing periods.
7795 * toplev.c (display_help): Don't dump --param help.
7796 * doc/sourcebuild.texi: Update.
7797
7798 2003-07-18 Richard Henderson <rth@redhat.com>
7799
7800 PR target/11556
7801 * optabs.c (prepare_operand): Fail gracefully instead of abort
7802 if the predicate doesn't satisfy.
7803 (gen_cond_trap): Allow prepare_operand to fail.
7804
7805 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
7806
7807 * c-common.c: Don't undefine GCC_DIAG_STYLE.
7808 (fname_decl): Don't use xxx_with_decl.
7809 (c_add_case_label): Likewise.
7810 (handle_section_attribute): Likewise.
7811 (handle_alias_attribute): Likewise.
7812 (handle_no_instrument_function_attribute): Likewise.
7813 (handle_no_limit_stack_attribute): Likewise.
7814 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
7815 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
7816
7817 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7818
7819 * Makefile.in (ifcvt.o): Add cfgloop.h.
7820 * basic-block.h (EDGE_LOOP_EXIT): New flag.
7821 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
7822 * ifcvt.c: Include cfgloop.h.
7823 (mark_loop_exit_edges): New static function.
7824 (if_convert): Call it.
7825 (find_if_header): Ignore branches out of loops.
7826
7827 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
7828
7829 * combine.c (simplify_comparison): Don't share rtx when converting
7830 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
7831
7832 2003-07-18 David Edelsohn <edelsohn@gnu.org>
7833
7834 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
7835 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
7836 (MUST_PASS_IN_STACK): Define.
7837 (BLOCK_REG_PADDING): Define.
7838
7839 2003-07-18 Richard Henderson <rth@redhat.com>
7840
7841 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
7842 to skip the addr_vec.
7843
7844 2003-07-18 Alexandre Oliva <aoliva@redhat.com>
7845
7846 * combine.c (combinable_i3pat): Don't forbid occurrences of
7847 i2dest or i1dest in inner_dest if inner_dest is a mem.
7848
7849 2003-07-18 Jan Hubicka <jh@suse.cz>
7850
7851 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
7852
7853 2003-07-17 Jakub Jelinek <jakub@redhat.com>
7854
7855 PR target/11087
7856 * loop.c (basic_induction_var): Check if convert_modes emitted any
7857 instructions. Remove them and return 0 if so.
7858
7859 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
7860
7861 PR optimization/11083
7862 * toplev.c (rest_of_handle_addresof): Rename into
7863 rest_of_handle_addressof. Delete unreachable blocks
7864 if dead edges were purged after the addressof pass.
7865
7866 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
7867
7868 * Makefile.in, configure, configure.in: Remove handling of
7869 lang-options.h and options_.h.
7870 * toplev.c (struct lang_opt, documented_lang_options): Remove.
7871 (display_help): Don't use documented_lang_options.
7872
7873 2003-07-17 Zack Weinberg <zack@codesourcery.com>
7874
7875 * c-decl.c (pushdecl_function_level): Make static, return nothing.
7876 (kept_level_p): Fold into poplevel.
7877 (undeclared_variable): Moved here from c-typeck.c. Export.
7878 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
7879 (undeclared_variable): Prototype here. Don't prototype
7880 kept_level_p nor pushdecl_function_level.
7881 * c-parse.in: Change first argument to poplevel from
7882 "kept_level_p()" to "KEEP_MAYBE".
7883 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
7884
7885 2003-07-17 Roger Sayle <roger@eyesopen.com>
7886
7887 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
7888 commutative operands instead of modifying the RTL in-place.
7889
7890 2003-07-17 Mark Mitchell <mark@codesourcery.com>
7891
7892 PR optimization/11557
7893 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
7894 unless we know which function is being called.
7895
7896 2003-07-17 Roger Sayle <roger@eyesopen.com>
7897
7898 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
7899 whether to reorder the operands of a commutative binary operator.
7900
7901 2003-07-17 Roger Sayle <roger@eyesopen.com>
7902
7903 * fold-const.c (const_binop): Avoid performing the FP operation at
7904 compile-time, if either operand is NaN and we honor signaling NaNs,
7905 or if we're dividing by zero and either flag_trapping_math is set
7906 or the desired mode doesn't support infinities.
7907 (fold_initializer): New function to fold an expression ignoring any
7908 potential run-time exceptions or traps.
7909 * tree.h (fold_initializer): Prototype here.
7910 * c-typeck.c (build_binary_op): Move to the end of the file so
7911 that intializer_stack is in scope. If constructing an initializer,
7912 i.e. when initializer_stack is not NULL, use fold_initializer to
7913 fold expressions.
7914 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
7915 performing FP operations at compile-time, if they would raise an
7916 exception at run-time.
7917
7918 2003-07-17 Geoffrey Keating <geoffk@apple.com>
7919
7920 PR 11498
7921 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
7922 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
7923 (GTFILES): Add langhooks.c.
7924 (gt-langhooks.h): New.
7925 * c-common.h (c_static_assembler_name): Prototype.
7926 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
7927 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
7928 * c-opts.c: Include langhooks-def.h.
7929 (c_static_assembler_name): New.
7930 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
7931 (var_labelno): New.
7932 (lhd_set_decl_assembler_name): Give static objects with context
7933 unique names.
7934 * varasm.c (var_labelno): Delete.
7935 (make_decl_rtl): Don't change the assembler name once it's set.
7936
7937 * c-opts.c (this_input_filename): New.
7938 (finish_options): Take new parameter, name of file being compiled.
7939 Update callers. Set this_input_filename.
7940 (push_command_line_include): Use this_input_filename not
7941 main_input_filename.
7942
7943 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
7944
7945 * Makefile.in: Depend .pot generation on options.c.
7946 * po/exgettext: Add an extra_files variable containing additional
7947 files to scan.
7948
7949 2003-07-17 Zack Weinberg <zack@codesourcery.com>
7950
7951 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
7952 c_write_global_declarations.
7953
7954 * c-decl.c: Fix typos in several comments. Remove all
7955 #if 0 blocks; reindent as needed. Remove unused argument
7956 to declare_parm_level; all callers changed.
7957 * c-parse.in: Update calls to declare_parm_level. Avoid
7958 issuing a double warning in some circumstances.
7959 * c-typeck.c: Update calls to declare_parm_level.
7960 * c-tree.h: Update prototype of declare_parm_level.
7961
7962 * c-pragma.c (apply_pragma_weak): Don't complain about a
7963 redundant #pragma weak.
7964
7965 * objc/objc-act.c (forward_declare_categories,
7966 build_selector_reference_decl, build_class_reference_decl,
7967 build_objc_string_decl, synth_forward_declarations,
7968 build_protocol_reference): Set TREE_PUBLIC on synthetic
7969 forward decl to 0, consistent with eventual definition.
7970 Correct comments to match.
7971
7972 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
7973 in regexp that don't form a range expression.
7974 * fixinc/fixincl.def: Regenerate.
7975
7976 2003-07-17 Richard Henderson <rth@redhat.com>
7977
7978 PR target/10907
7979 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
7980 even with !TARGET_CONST_GP.
7981 (ia64_function_ok_for_sibcall): Reject non-local functions.
7982
7983 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
7984
7985 * c-common.c (c_estimate_num_insns_1): Don't handle
7986 METHOD_CALL_EXPR.
7987 * expr.c (safe_from_p): Likewise.
7988 * gengtype.c (adjust_field_tree_exp): Likewise.
7989 * stmt.c (warn_if_unused_value): Likewise
7990 * tree.c (first_rtl_op): Likewise.
7991 * tree.def: Don't define METHOD_CALL_EXPR.
7992 * java/lang.c (java_estimate_num_insns_1): Don't handle
7993 METHOD_CALL_EXPR.
7994
7995 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
7996
7997 PR other/11466
7998 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
7999 and its restrictions for the SPARC64 port.
8000 Move the entry of "-mimpure-text" before that of "-mv8".
8001
8002 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
8003 Phil Edwards <phil@jaj.com>
8004
8005 * doc/install.texi (*-*-solaris2*): Document the step-by-step
8006 procedure to bootstrap and install.
8007 Document the preference for the legacy Sun tools in /usr/bin
8008 over the POSIX tools in /usr/xpg4/bin for the build process.
8009
8010 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
8011
8012 * c.opt: Document Uncodumented; use it. Document ObjC options.
8013 * opts.c (print_filtered_help): Skip undocumented switches.
8014 * opts.h (CL_UNDOCUMENTED): New.
8015 * opts.sh: Handle Undocumented.
8016 * toplev.c (documented_lang_options): Prevent its becoming empty.
8017 objc:
8018 * lang-options.h: Remove.
8019
8020 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
8021
8022 * loop.c (check_ext_dependent_givs): Pass const struct loop *
8023 instead of struct loop_info * as argument. Accept BIVs with
8024 increment +/- 1 provided there is a friendly exit test against
8025 a loop-invariant value.
8026 (strength_reduce): Adapt call to check_ext_dependent_givs.
8027
8028 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
8029 Con Bradley <con.bradley@superh.com>
8030
8031 * sh-protos.h (sh_get_pr_initial_val): Declare.
8032 * sh.c (regno_reg_class): Make its elements type enum reg_class.
8033 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
8034 and live_regs_mask arguments. Changed all callers.
8035 (save_schedule_s): New structure.
8036 (save_schedule): New typedef.
8037 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
8038 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
8039 In interrupts handlers, also save registers that are usually
8040 partially saved, and make sure there is at least one general purpose
8041 register saved if a target register needs saving.
8042 Add casts in comparisons to avoid warnings.
8043 (sh_media_register_for_return): return -1 for interrupt handlers.
8044 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
8045 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
8046 registers used are available.
8047 Set RTX_FRAME_RELATED_P where appropriate.
8048 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
8049 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
8050 (initial_elimination_offset): Likewise.
8051 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
8052 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
8053 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
8054 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
8055 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
8056 and for target registers.
8057 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
8058 (regno_reg_class): Make its elements type enum reg_class.
8059 (CONSTRAINT_LEN): Don't use isdigit.
8060 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
8061 (FUNCTION_ARG): Add parentheses to avoid warnings.
8062 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
8063 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
8064 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
8065 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
8066 * sh.md (xordi3+1): Remove unused variable regno.
8067 (return_media): Check that tr0 is available before using it.
8068
8069 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
8070
8071 * c.opt: Document more options.
8072
8073 2003-07-16 Roger Sayle <roger@eyesopen.com>
8074
8075 * combine.c (subst): Also handle (subreg (const_double ...)) case
8076 if created by a substitution, by using the original inner mode.
8077
8078 2003-07-16 Roger Sayle <roger@eyesopen.com>
8079
8080 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
8081 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
8082 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
8083
8084 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
8085
8086 * doc/install.texi (--without-headers): New.
8087
8088 Partial Fix PR/10129
8089 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
8090 (machopic_output_function_base_name): New; print the true pic label.
8091 (machopic_classify_ident): Pic Base is always a defined data.
8092 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
8093 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
8094
8095 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
8096 if they are not floating point registers.
8097
8098 PR c/10962
8099 * ggc.h: Add header guards.
8100 * c-decl.c (finish_struct): Sort fields if
8101 number greater than 15 and there are no
8102 anonymous structs/unions.
8103 * c-common.h: Include ggc.h.
8104 (sorted_fields_type): New struct.
8105 (field_decl_cmp): New prototype.
8106 (resort_sorted_fields): New prototype.
8107 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
8108 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
8109 as s, removing other fields.
8110 * c-typeck.c (lookup_field): Use s in lang_type.
8111 These were mostly moved from cp/class.c:
8112 * c-common.c (field_decl_cmp): New static function.
8113 (field_decl_cmp): New function.
8114 (resort_sorted_fields): New function.
8115
8116 2003-07-16 Geoffrey Keating <geoffk@apple.com>
8117
8118 * config/darwin.c (machopic_select_section): Use decl_readonly_section
8119 to do most of the work.
8120
8121 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
8122
8123 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
8124 * config/mmix/mmix.c: Convert functions to ISO C90.
8125 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
8126 formatting.
8127 (mmix_get_hard_reg_initial_val): Tweak section head comment.
8128
8129 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
8130
8131 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
8132
8133 2003-07-16 Jakub Jelinek <jakub@redhat.com>
8134
8135 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
8136 (uw_update_context_1): Use it.
8137 * config/rs6000/rs6000.c (insn_after_throw): Remove.
8138 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
8139 in parent frame if _Unwind_* called directly instead of through
8140 .plt.
8141 (rs6000_emit_eh_toc_restore): Remove.
8142 (rs6000_emit_prologue): Update stack pointer before doing any saving
8143 if current_function_calls_eh_return. Generate unwind info for $r2.
8144 (rs6000_emit_epilogue): Restore stack pointer after doing all
8145 restoring if current_function_calls_eh_return. Restore $r2.
8146 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
8147 * config/rs6000/rs6000.md (eh_return): Remove call to
8148 rs6000_emit_eh_toc_restore.
8149 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
8150 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
8151
8152 2003-07-15 Jakub Jelinek <jakub@redhat.com>
8153
8154 * expr.c (emit_block_move): Don't move anything if size is const 0.
8155 (clear_storage): Test against const0_rtx instead of comparing INTVAL
8156 against 0.
8157
8158 2003-07-15 David S. Miller <davem@redhat.com>
8159
8160 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
8161 emit nop if the last real insn is CALL_INSN.
8162
8163 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
8164
8165 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
8166 as "nul".
8167 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
8168
8169 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
8170
8171 * config/i386/winnt.c (associated_type): Artificial methods are not
8172 affected by the import/export status of their class unless they are
8173 COMDAT.
8174 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
8175
8176 * config/i386/winnt.c: Fix GCC copyright comment.
8177
8178 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
8179
8180 PR c++/11531
8181 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
8182 not recursing on hard error.
8183 (diagnostic_for_decl): Likewise.
8184 * diagnostic.def: Rearrange.
8185
8186 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
8187
8188 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
8189 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
8190
8191 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
8192 Richard Henderson <rth@redhat.com>
8193
8194 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
8195 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
8196 (_Unwind_SetGR): Likewise.
8197 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
8198 (Unwind_SpTmp): New typedef.
8199 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
8200 (uw_update_context): Use _Unwind_GetPtr.
8201 (init_dwarf_reg_size_table): Move above uw_init_context_1.
8202 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
8203 Use _Unwind_SetSpColumn.
8204 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
8205 Use _Unwind_GetPtr.
8206
8207 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
8208
8209 * c.opt: Document more options.
8210 * toplev.c (documented_lang_options): Remove all local help strings.
8211
8212 2003-07-15 Mark Mitchell <mark@codesourcery.com>
8213
8214 PR debug/11473
8215 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
8216 base classes.
8217
8218 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
8219
8220 PR target/10795
8221 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
8222 swap comparison operands if doing so would generate an
8223 unrecognizable insn.
8224
8225 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
8226
8227 PR optimization/11320
8228 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8229 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8230 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8231 current_sched_info->compute_jump_reg_dependencies. Record which
8232 registers are used and which registers are set by the jump.
8233 Clear deps->reg_conditional_sets after a barrier.
8234 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8235 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8236 (init_deps): Initialize reg_conditional_sets.
8237 (free_deps): Clear reg_conditional_sets.
8238 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8239 Mark registers live on entry of the fallthrough block and conditionally
8240 set as set by the jump. Mark registers live on entry of non-fallthrough
8241 blocks as used by the jump.
8242 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8243 Mark new parameters as unused.
8244
8245 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
8246
8247 * doc/invoke.texi: Resync MIPS -march documentation.
8248
8249 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
8250
8251 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
8252 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
8253 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
8254 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
8255 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
8256 (mips_issue_rate): Handle PROCESSOR_R9000.
8257 (mips_use_dfa_pipeline_interface): Likewise.
8258 * config/mips/9000.md: New file.
8259 * config/mips/mips.md: Include it.
8260 (define_attr cpu): Add r9000.
8261 (mulsi3_mult3): Use "mul" for rm9000 code.
8262
8263 2003-07-15 Stan Cox <scox@redhat.com>
8264
8265 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
8266 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
8267 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
8268 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
8269 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
8270 (mips_issue_rate): Handle PROCESSOR_R7000.
8271 (mips_use_dfa_pipeline_interface): Likewise.
8272 * config/mips/7000.md: New file.
8273 * config/mips/mips.md: Include it.
8274 (define_attr cpu): Add r7000.
8275 (mulsi3_mult3): Use "mul" for rm7000 code.
8276
8277 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
8278
8279 * config/mips/mips.md (define_attr type): Add condmove. Use it for
8280 the conditional move patterns.
8281 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
8282 Check for condmove type.
8283 (ir_vr54_arith): Add move type.
8284 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
8285 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
8286
8287 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
8288
8289 * c-opts.c (print_help): Remove.
8290 (c_common_handle_option): Don't handle --help.
8291 * c.opt: Document some options.
8292 (--help): Remove.
8293 * opts.c (print_filtered_help): New.
8294 (print_help): Use it.
8295
8296 2003-07-14 Geoffrey Keating <geoffk@apple.com>
8297
8298 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
8299 * tree.c: (build_common_tree_nodes_2): Likewise.
8300 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
8301 (V4DF_type_node): New.
8302
8303 * c-opts.c (push_command_line_include): Don't free deferred_opts,
8304 we'll need it.
8305 (finish_options): Reset init_cursor.
8306
8307 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
8308
8309 * expr.c (expand_assignment): Remove an unused argument
8310 SUGGEST_REG.
8311 * expr.h: Update the prototype.
8312 * function.c: Update the callers.
8313 * stmt.c: Likewise.
8314
8315 2003-07-14 Mark Mitchell <mark@codesourcery.com>
8316
8317 PR debug/11098
8318 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
8319 as DECL_ABSTRACT.
8320
8321 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
8322
8323 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
8324 with __cplusplus, not "we must use the C++ compiler's type"
8325 * fixinc/inclhack.def (void_null): Note that Interix needs this.
8326 * fixinc/fixincl.x: Regenerate.
8327
8328 2003-07-14 Geoffrey Keating <geoffk@apple.com>
8329
8330 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
8331 and unseen_objects from the global data before calling
8332 __deregister_frame_info_bases.
8333 (examine_objects): Insert objects into the seen_objects list,
8334 not unseen_objects.
8335 (_Unwind_Find_FDE): Always unlock the global object lists, even if
8336 we couldn't allocate a data structure to put in it.
8337
8338 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
8339 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
8340 (SET_TYPE_PROTOCOL_LIST): New.
8341 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
8342 (get_object_reference): Likewise.
8343
8344 2003-07-14 Jan Hubicka <jh@suse.cz>
8345
8346 * cfglayout.c (locator_file): Break out from ....
8347 (insn_file): ... here.
8348 (locator_line): Break out from ....
8349 (insn_line): ... here.
8350 * rtl.h (locator_file, locator_line): Declare.
8351 (final_start_function): Set proper line/file info.
8352
8353 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
8354
8355 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
8356 handled by pp_c_cast_expression.
8357
8358 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
8359
8360 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
8361 allocate 32768 bytes of stack. Use addition rather than subtraction
8362 when a single insn is enough.
8363 * config/mips/mips.md: Remove insns and splitters for subtracting
8364 constants.
8365 (subsi3): Only accept register operands.
8366 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
8367 (subdi3_internal_3, subsi3_internal_2): Likewise.
8368 (casesi): Use expand_binop to subtract the lower bound.
8369
8370 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
8371
8372 * config/mips/mips.c (mips_in_small_data_p): Don't handle
8373 TARGET_MIPS16 specially.
8374
8375 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
8376
8377 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
8378 mips_output_aligned_bss.
8379 * config/mips/linux.h: Likewise.
8380 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
8381 * config/mips/mips.c (mips_output_aligned_bss): New function.
8382
8383 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
8384 * config/mips/elf64.h: Likewise.
8385
8386 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
8387 mips_declare_object_name.
8388 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
8389 * config/mips/elf64.h: As for elf.h.
8390 * config/mips/iris6.h: Likewise.
8391 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
8392 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
8393 do...while (0) block.
8394 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
8395 (mips_finish_declare_object): Declare.
8396 * config/mips/mips.c (mips_declare_object_name): New function.
8397 (mips_finish_declare_object): New function.
8398
8399 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
8400 * config/mips/linux.h: Likewise.
8401
8402 * config/mips/mips.c (inside_function): Delete.
8403 (file_in_function_warning, ignore_line_number): Delete.
8404 (mips_output_filename): Don't warn about changing filenames within
8405 a function.
8406 (mips_output_lineno): Update accordingly.
8407 (mips_output_function_prologue): Don't reset the deleted variables.
8408 * config/mips/mips.h (inside_function): Delete.
8409 (file_in_function_warning, ignore_line_number): Delete.
8410
8411 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
8412 * config/mips/elf64.h: Likewise.
8413 * config/mips/openbsd.h: Likewise.
8414 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
8415 * config/mips/linux.h: Likewise.
8416 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
8417 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
8418
8419 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
8420 to the list of include files when using gas.
8421 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
8422 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
8423 * config/mips/elf64.h: Likewise.
8424 * config/mips/iris5.h: Likewise.
8425 * config/mips/linux.h: Likewise.
8426 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
8427 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
8428 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
8429 * config/mips/sdb.h: ...this new file.
8430
8431 2003-07-14 Douglas Rupp <rupp@gnat.com>
8432
8433 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
8434 argument to getcwd; use fixed buffer instead.
8435
8436 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
8437
8438 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
8439 * fixinc/fixinc.wrap: Delete.
8440
8441 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
8442
8443 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
8444 don't have 2.
8445
8446 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
8447
8448 * ggc-page.c (struct globals): Add new fields to keep track of the
8449 total allocated memory and overhead.
8450 (ggc_print_statistics): Print them.
8451 (ggc_alloc): Keep track of the total allocated memory and the
8452 overhead.
8453
8454 * tree.c (dump_tree_statistics): Increase spacing.
8455 (enum tree_node_kind): Move to ...
8456 * tree.h (enum tree_node_kind): ... here.
8457 (tree_node_counts, tree_node_sizes): Declare.
8458
8459 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
8460
8461 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
8462
8463 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8464
8465 PR optimization/11440
8466 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
8467 SIGN_EXTRACT SETs.
8468
8469 2003-07-14 Alan Modra <amodra@bigpond.net.au>
8470
8471 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
8472 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
8473 (emit_group_load, emit_group_store): Adjust declarations.
8474 Remove most occurrences of #ifdef TREE_CODE.
8475 * expr.c (emit_group_load): Add "type" param, and use
8476 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
8477 aligned accesses if !SLOW_UNALIGNED_ACCESS.
8478 (emit_group_store): Likewise.
8479 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
8480 emit_group_load and emit_group_store calls.
8481 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
8482 BLOCK_REG_PADDING to determine whether we need endian_correction.
8483 (load_register_parameters): Localize vars. Handle shifting of
8484 small values to the correct end of regs. Adjust emit_group_load
8485 call.
8486 (expand_call, emit_library_call_value_1): Adjust emit_group_load
8487 and emit_group_store calls.
8488 * function.c (assign_parms): Set mem alignment for stack slots.
8489 Adjust emit_group_store call. Store values at the "wrong" end
8490 of regs to the stack. Use BLOCK_REG_PADDING.
8491 (locate_and_pad_parm): Save where_pad.
8492 (expand_function_end): Adjust emit_group_load call.
8493 * stmt.c (expand_value_return): Adjust emit_group_load call.
8494 * Makefile.in (calls.o): Depend on $(OPTABS_H).
8495 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
8496 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
8497 (MUST_PASS_IN_STACK): Define.
8498 (BLOCK_REG_PADDING): Define.
8499 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
8500 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
8501 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
8502 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
8503 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
8504
8505 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
8506
8507 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
8508
8509 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8510
8511 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
8512 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
8513
8514 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
8515
8516 PR other/11123
8517 * toplev.c: Don't cut off option names.
8518
8519 2003-07-13 Andreas Jaeger <aj@suse.de>
8520
8521 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
8522 to integer of different size.
8523
8524 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
8525
8526 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
8527 to (eq (and X 1) 0).
8528
8529 2003-07-13 Andreas Jaeger <aj@suse.de>
8530
8531 * config.gcc: Add pmmintrin.h for x86_64-*-*.
8532
8533 2003-07-13 Zack Weinberg <zack@codesourcery.com>
8534
8535 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
8536 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
8537 list. Move these all together down by cpplib.
8538
8539 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
8540 definition of CPPCHAR_SIGNED_T.
8541
8542 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
8543 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
8544 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
8545
8546 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
8547 * cppinit.c (cpp_create_reader): Likewise.
8548
8549 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
8550 * cpptrad.c: Likewise. All callers changed.
8551 * cpplib.c: All callers changed.
8552 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
8553 * hashtable.h: Define GTY(x) to nothing here too.
8554
8555 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8556
8557 * stor-layout.c (compute_record_mode): Remove very obsolete test
8558 that forces BLKmode for records with fields crossing word boundary.
8559
8560 2003-07-13 Zack Weinberg <zack@codesourcery.com>
8561
8562 * Makefile.in: Remove orphan reference to acconfig.h.
8563
8564 2003-07-13 Andreas Jaeger <aj@suse.de>
8565
8566 * cgraphunit.c: Convert prototypes to ISO C90.
8567
8568 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
8569
8570 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
8571 (for OpenBSD).
8572 * fixinc/fixincl.x: Rebuild.
8573
8574 2003-07-12 Zack Weinberg <zack@codesourcery.com>
8575
8576 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
8577 i?86-*-*. Use correct name of cache variable.
8578 * configure: Regenerate.
8579
8580 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
8581
8582 * config/alpha/alpha.c: Fix comment typos.
8583 * config/alpha/alpha.md: Likewise.
8584 * config/arm/arm.c: Likewise.
8585 * config/arm/arm.md: Likewise.
8586 * config/arm/lib1funcs.asm: Likewise.
8587 * config/avr/avr.md: Likewise.
8588 * config/arm/README-interworking: Fix typos.
8589
8590 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
8591
8592 * c-format.c: Fix comment formatting.
8593 * c-typeck.c: Likewise.
8594 * coverage.c: Likewise.
8595 * cppcharset.c: Likewise.
8596 * cpplib.c: Likewise.
8597 * dbxout.c: Likewise.
8598 * gcov-io.h: Likewise.
8599 * toplev.c: Likewise.
8600
8601 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
8602
8603 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
8604 fix.
8605
8606 2003-07-12 Zack Weinberg <zack@codesourcery.com>
8607
8608 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
8609 uses three-argument AC_DEFINE so no acconfig.h entries are
8610 needed.
8611 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
8612 which contains the GAS version number as a scaled integer.
8613 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
8614 ability to check for ELF assembler.
8615 (gcc_GAS_CHECK_FEATURE): New macro.
8616 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
8617 assembler feature checks using gcc_GAS_CHECK_FEATURE.
8618 Use three-argument AC_DEFINE everywhere.
8619 * acconfig.h: Deleted.
8620 * config.in, configure: Regenerate.
8621
8622 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
8623
8624 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
8625 (on OpenBSD).
8626 * fixinc/fixincl.x: Regenerate.
8627
8628 * fixinc/inclhack.def (gnu_types): Improve comment.
8629
8630 2003-07-12 Andreas Jaeger <aj@suse.de>
8631
8632 * fp-test.c (main): Use ISO C90 prototype.
8633
8634 * version.c: Remove unneded include of ansidecl.h.
8635
8636 * cgraph.h: Convert prototypes to ISO C90.
8637 * cgraph.c: Likewise.
8638 * fix-header.c: Likewise.
8639 * ra.h: Likewise.
8640 * protoize.c: Likewise.
8641
8642 2003-07-12 Jan Hubicka <jh@suse.cz>
8643
8644 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
8645 warning.
8646
8647 2003-07-12 Jan Hubicka <jh@suse.cz>
8648 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8649
8650 * cgraph.c (cgraph_max_uid): New global variable.
8651 (cgraph_node): Set uid field.
8652 (create_edge): Keep inline flags consistent.
8653 (dump_cgraph): Dump more info.
8654 * cgraph.h (struct cgraph_local_info): Remove inline_many and
8655 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
8656 (struct cgraph_global_info): Add insns, calls, cloned_times,
8657 will_be_output.
8658 (struct cgraph_node): Add uid.
8659 (struct cgraph_edge): Add inline_call.
8660 (cgraph_max_uid, cgraph_inline_p): Declare.
8661 * cgraph.c: Include params.h and fibheap.h
8662 (cgraph_mark_functions_to_inline_once): Kill.
8663 (INSNS_PER_CALL): New constant.
8664 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
8665 static variables.
8666 (cgraph_finalize_function): Do not analyze inlining.
8667 (cgraph_finalize_compilation_unit): Set inlining attributes.
8668 (cgraph_mark_functions_to_output): More consistency checks.
8669 (cgraph_optimize_function): Set current_function_decl to NULL.
8670 (cgraph_expand_function): Use new inline flags.
8671 (cgraph_postorder): Expand from cgraph_expand_functions.
8672 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
8673 (cgraph_inlined_into, cgraph_inlined_callees,
8674 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
8675 cgraph_mark_inline, cgraph_check_inline_limits,
8676 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
8677 cgraph_decide_inlining, cgraph_inline_p): New functions.
8678 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
8679 PARAM_INLINE_UNIT_GROWTH): New parameters.
8680 * tree-inline.c (struct inline_data): New field current_decl.
8681 (expand_call_inline): Avoid forward declarations; use
8682 inlinable_function_p.
8683 (optimize_inline_calls): Set id.current_decl.
8684
8685 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
8686
8687 * configure.in: Remove wrongly added definition of
8688 local_prefix.
8689 * configure: Regenerate.
8690
8691 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8692
8693 * rtl.def (NOTE): Do not use padding.
8694
8695 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
8696
8697 * doc/install.tex: Update required binutils for i?86-*-linux*
8698
8699 2003-07-11 Richard Henderson <rth@redhat.com>
8700
8701 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
8702
8703 2003-07-11 Mark Mitchell <mark@codesourcery.com>
8704
8705 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
8706 TRANSLATION_UNIT_DECL as top_level.
8707
8708 2003-07-11 Jakub Jelinek <jakub@redhat.com>
8709
8710 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
8711 then fall back to cmpstrM.
8712 * builtins.c (expand_builtin_memcmp): Likewise.
8713 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
8714 (s390_expand_cmpmem): ... this.
8715 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
8716 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
8717 from cmpstr* patterns. Rename call to s390_expand_cmpstr
8718 to s390_expand_cmpmem.
8719 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
8720 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
8721 to cmpmem*.
8722 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
8723 cmpstr* patterns.
8724 * doc/md.texi (cmpstrM): Describe as String compare insn, not
8725 Block compare insn.
8726 (cmpmemM): Add.
8727
8728 2003-07-11 Loren James Rittle <ljrittle@acm.org>
8729
8730 * config/i386/freebsd.h (SET_ASM_OP): Remove.
8731 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
8732 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
8733 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
8734
8735 2003-07-11 Richard Henderson <rth@redhat.com>
8736
8737 * function.c (assign_parms): Don't recombine complex args if
8738 fnargs is unchanged from orig_fnargs.
8739 (split_complex_args): Return args without complex before copying.
8740 Re-layout the modified parameters.
8741
8742 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
8743
8744 * regclass.c (choose_hard_reg_mode): Add third argument.
8745 Changed all callers.
8746 * rtl.h (choose_hard_reg_mode): Update declaration.
8747 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
8748 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
8749
8750 2003-07-11 Geoffrey Keating <geoffk@apple.com>
8751
8752 * c-decl.c (finish_decl): Handle 'used' here...
8753 * cgraphunit.c (cgraph_finalize_function): ... and here ...
8754 * c-common.c: (handle_used_attribute): ... not here.
8755
8756 * configure.in (onstep): Support --enable-intermodule.
8757 * Makefile.in (OBJS-common): New.
8758 (OBJS-md): New.
8759 (OBJS-archive): New.
8760 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
8761 (OBJS-onestep): New.
8762 (libbackend.a): Support @onestep@.
8763 (libbackend.o): New.
8764 * configure: Regenerate.
8765
8766 * c-common.h (c_reset_state): New prototype.
8767 (c_parse_file): New prototype.
8768 (finish_file): Move prototype from c-tree.h.
8769 * c-decl.c: Include <hashtab.h>.
8770 (builtin_decls): New.
8771 (current_file_decl): New.
8772 (duplicate_decls): Add extra parameter. Change all callers. Don't
8773 output duplicate common symbols.
8774 (link_hash_hash): New.
8775 (link_hash_eq): New.
8776 (poplevel): Handle popping of the top level.
8777 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
8778 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
8779 (pushdecl_top_level): Likewise.
8780 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
8781 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
8782 (finish_decl): Handle TRANSLATION_UNIT_DECL.
8783 (merge_translation_unit_decls): New.
8784 (c_write_global_declarations): New.
8785 (c_reset_state): New.
8786 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
8787 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
8788 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
8789 TRANSLATION_UNIT_DECL.
8790 (c_objc_common_finish_file): Call merge_translation_unit_decls.
8791 * c-opts.c (in_fnames): Rename from in_fname.
8792 (c_common_decode_option): Handle multiple input filenames.
8793 (c_common_post_options): Likewise.
8794 (c_common_parse_file): Likewise; also, call c_parse_file rather than
8795 yyparse.
8796 * c-parse.in: Move cleanup code to c_parse_file.
8797 (free_parser_stacks): Move contents to c_parse_file.
8798 (c_parse_file): New.
8799 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
8800 for integer types.
8801 (C_DECL_FILE_SCOPE): New.
8802 (finish_file): Move prototype to c-common.h.
8803 (merge_translation_unit_decls): New prototype.
8804 (comptypes): Add extra parameter to prototype.
8805 (c_write_global_declarations): New prototype.
8806 * c-typeck.c (tagged_types_tu_compatible_p): New.
8807 (function_types_compatible_p): Add extra parameter, change all callers.
8808 (type_lists_compatible_p): Likewise.
8809 (comptypes): Likewise.
8810 (struct tagged_tu_seen): New.
8811 (tagged_tu_seen_base): New.
8812 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
8813 (c_mark_addressable): Remove #if 0 code.
8814 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
8815 comment explaining why it shouldn't have to.
8816 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
8817 options.
8818 * cppinit.c (cpp_read_next_file): New.
8819 (cpp_read_main_file): Use it.
8820 * cpplib.c (undefine_macros): New.
8821 (cpp_undef_all): New.
8822 * cpplib.h (cpp_read_next_file): Prototype.
8823 (cpp_undef_all): Prototype.
8824 * langhooks-def.h (write_global_declarations): Remove prototype.
8825 * toplev.h (write_global_declarations): Add prototype.
8826 * tree.c (decl_type_context): Use switch statement, handle
8827 TRANSLATION_UNIT_DECL.
8828 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
8829 (TRANSLATION_UNIT_DECL): New kind of tree.
8830 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
8831 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
8832 * doc/invoke.texi: Make attempt to document new functionality.
8833
8834 2003-05-19 Per Bothner <bothner@apple.com>
8835
8836 * gcc.c (combine_inputs): New.
8837 (process_command): Set combine_inputs.
8838 (do_spec_1): Handle combine_inputs.
8839 (main): Likewise.
8840
8841 2003-07-10 James E Wilson <wilson@tuliptree.org>
8842
8843 PR optimization/9745
8844 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
8845 loop_insn_emit_before.
8846 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
8847
8848 2003-07-10 Zack Weinberg <zack@codesourcery.com>
8849
8850 * cppcharset.c: Fix comment.
8851 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
8852 (EILSEQ): #define to EINVAL if not already defined.
8853 (convert_using_iconv): #if out when !HAVE_ICONV.
8854 (init_iconv_desc): Handle !HAVE_ICONV here...
8855 (cpp_init_iconv): ...not here.
8856
8857 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
8858
8859 * common.opt: More --help messages.
8860 * opts.c (print_help): Use puts().
8861 * toplev.c (f_options): Remove help text.
8862 (display_help): Don't dump f_options.
8863
8864 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
8865
8866 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
8867 Move i?86-*-interix* to the don't-fix list.
8868 * fixinc/fixinc.interix: Delete with extreme prejudice.
8869
8870 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
8871
8872 PR bootstrap/10758
8873 * doc/install.texi: Document requirements for ia64-*-hpux* target.
8874
8875 2003-07-10 Roger Sayle <roger@eyesopen.com>
8876
8877 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
8878
8879 2003-07-10 Zack Weinberg <zack@codesourcery.com>
8880
8881 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
8882 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
8883 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
8884 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
8885 convert_no_conversion, convert_using_iconv): New functions.
8886 (APPLY_CONVERSION): New macro.
8887 (struct conversion, conversion_tab): New data structure.
8888 (init_iconv_desc): Check conversion_tab for a custom conversion
8889 primitive before trying to use iconv.
8890 (convert_cset): Deleted.
8891 (cpp_init_iconv): Use UTF- terminology, not UCS-.
8892 (_cpp_destroy_iconv): Update to match.
8893 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
8894 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
8895 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
8896 (_cpp_interpret_string_notranslate): New function, moved here
8897 from cpplib.c.
8898
8899 * cpphash.h (convert_f, struct cset_converter): New types.
8900 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
8901 are now struct cset_converter, not bare iconv_t.
8902 Update prototypes.
8903 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
8904 all callers changed.
8905
8906 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
8907
8908 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
8909 to opts.sh command line.
8910 * opts.sh: Write to temporary files with a move-if-change at the end.
8911
8912 2003-07-10 Denis Chertykov <denisc@overta.ru>
8913 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8914
8915 * combine.c (gen_binary): Handle the CLOBBER rtx and
8916 don't build a binary operation with it.
8917
8918 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8919
8920 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
8921 store_killed_after, store_killed_before): Keep track of the correct
8922 dependency function to use.
8923
8924 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
8925 * toplev.c (do_compile): Don't try to open dump files before
8926 lang_dependent_init initializes dump_base_name.
8927
8928 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8929
8930 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
8931 Use ARRAY_SIZE.
8932 * config/frv/frv.c (frv_expand_builtin): Likewise.
8933 * config/sh/sh.c (sh_media_init_builtins): Likewise.
8934
8935 2003-07-09 Mark Mitchell <mark@codesourcery.com>
8936
8937 PR c++/10032
8938 * doc/invoke.texi (C++ Dialect Options): Change documentation of
8939 -fpermissive.
8940
8941 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
8942
8943 * tm.texi (RETURN_ADDR_OFFSET): Document.
8944
8945 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
8946
8947 * gcov-io.h: Update documentation.
8948 (GCOV_UNSIGNED2STRING): New.
8949 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
8950 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
8951 GCOV_TAG_SUMMARY_LENGTH): Adjust.
8952 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
8953 GCOV_TAG_COUNTER_NUM): New.
8954 (GCOV_BLOCK_SIZE): Number of words.
8955 (gcov_var): Adjust buffer type.
8956 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
8957 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
8958 count, not byte count.
8959 (gcov_open): Adjust overread init.
8960 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
8961 gcov_write_string, gcov_write_tag, gcov_write_length,
8962 gcov_write_tag_length): Adjust.
8963 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
8964 (gcov_sync, gcov_seek): Adjust.
8965 * gcov-dump.c (print_usage): Show gcc version only.
8966 (dump_file): Use GCOV_UNSIGNED2STRING.
8967 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
8968 * gcov.c (print_version): Show gcc version only.
8969 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
8970 GCOV_TAG_*_NUM macros.
8971 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
8972 GCOV_TAG_COUNTER_LENGTH.
8973 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
8974 Use GCOV_TAG_COUNTER_NUM.
8975 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
8976 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
8977
8978 2003-07-10 Andreas Schwab <schwab@suse.de>
8979
8980 * gcov-dump.c (dump_file): Fix missing address operator.
8981
8982 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
8983
8984 PR c/11449
8985 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
8986 of HOST_WIDE_INT.
8987 (fold_single_bit_test): If sign_bit_p() fails, assume that the
8988 bit being tested is not a sign bit.
8989
8990 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
8991
8992 * config/h8300/h8300.md (a peephole2): New.
8993
8994 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
8995
8996 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
8997 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
8998 from ld-linux.so.2 to ld.so.1.
8999 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
9000 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
9001 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
9002 nor -Wl,-rpath-link.
9003 (LIB_SPEC): Add -rpath-link if !static.
9004 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
9005 * config/mn10300/mn10300.c (mn10300_protect_label): New
9006 variable.
9007 * config/mn10300/linux.h (PRINT_OPERAND,
9008 PRINT_OPERAND_ADDRESS): Set it during their execution.
9009 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
9010 mn10300_protect_label is set.
9011 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
9012 -Wl,-rpath-link.
9013 (LIB_SPEC, STARTFILE_SPEC): Define.
9014 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
9015 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
9016 FLOAT_BIT_ORDER_MISMATCH.
9017 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
9018 * config.gcc (am33_2.0-*-linux*): Added.
9019 * config/mn10300/linux.h: New.
9020 * config/mn10300/t-linux: New.
9021
9022 2003-07-10 Andreas Jaeger <aj@suse.de>
9023
9024 * fold-const.c: Properly wrap prototypes.
9025
9026 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
9027
9028 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
9029 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
9030 Moved from...
9031 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
9032 * config/mn10300/mn10300.h: GTY-declare it.
9033 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
9034 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
9035 prototype. Use incoming RTL argument.
9036 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
9037 * config/mn10300/mn10300.md (int_label): Move C statements...
9038 (GOTaddr2picreg): ... here.
9039 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
9040 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
9041 * config/mn10300/mn10300.c (mn10300_encode_section_info):
9042 ... here. New function.
9043 (TARGET_ENCODE_SECTION_INFO): Define to it.
9044 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
9045 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
9046 pattern name.
9047 (mn10300_loadPC): Define as insn splittable after reload.
9048 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
9049 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
9050 be defined in .rodata even in PIC, now that the assembler
9051 supports that.
9052 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
9053 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
9054 symbol take an underscore prefix.
9055 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
9056 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
9057 legitimize_pic_address): Declare.
9058 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
9059 the PIC register as fixed.
9060 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
9061 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
9062 PIC.
9063 (LEGITIMATE_PIC_OPERAND_P): Define.
9064 (PIC_OFFSET_TABLE_REGNUM): Define.
9065 (GOT_SYMBOL_NAME): Define.
9066 (SYMBOLIC_CONST_P): Define.
9067 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
9068 symbols.
9069 (MN10300_GLOBAL_P): Test it.
9070 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
9071 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
9072 * config/mn10300/mn10300.c (print_operand): Handle unspec.
9073 (expand_prologue): Set PIC register.
9074 (call_address_operand): Don't match SYMBOL_REFs in PIC.
9075 (legitimize_address): Call legitimize_pic_address.
9076 (legitimize_pic_address): New fn.
9077 (legitimate_pic_operand_p): New fn.
9078 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
9079 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
9080 UNSPEC_PLT): New constants.
9081 (pop_pic_reg): New insn.
9082 (movsi): Adjust non-PIC addresses.
9083 (builtin_setjmp_receiver): Restore the PIC register.
9084 (casesi): New insn.
9085 (call): Adjust non-PIC addresses.
9086 (int_label, GOTaddr2picreg): New expands.
9087 (am33_loadPC): New insn.
9088 (mn10300_loadPC): New expand.
9089 (call_next_insn): New insn.
9090 (add_GOT_to_pic_reg): New expand.
9091 (symGOT2reg, symGOT2reg_i): New expands.
9092 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
9093 (sym2PIC, sym2PLT): New expands.
9094
9095 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
9096
9097 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
9098 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
9099 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
9100 to flag_unsafe_math_optimizations.
9101 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
9102 * config/mn10300/mn10300.c (expand_prologue): Mark
9103 FP-register-saving insns as frame-related.
9104 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
9105 * config/mn10300/mn10300.c
9106 (mn10300_get_live_callee_saved_regs): Don't search past
9107 LAST_EXTENDED_REGNUM.
9108 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
9109 * config/mn10300/mn10300.md: Remove excessive line breaks from
9110 `@' output patterns that were accounted as additional
9111 alternatives.
9112 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
9113 Re-introduce changes accidentally removed in Richard Sandiford's
9114 2000-12-05's patch.
9115 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
9116 Re-instate am33-2 lost in merge from net GCC.
9117 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
9118 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
9119 floating-point registers.
9120 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
9121 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
9122 pessimizations that had gone in on 2000-05-08.
9123 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
9124 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
9125 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
9126 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
9127 operand 0.
9128 * (movhi): Likewise.
9129 * (movsi): Likewise.
9130 * (movsf): Likewise.
9131 * (movdi): Likewise.
9132 * (movdf): Likewise.
9133 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
9134 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
9135 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
9136 (expand_prologue, expand_epilogue): Save and restore FP regs.
9137 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
9138 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
9139 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
9140 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
9141 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
9142 Do not clobber cc0.
9143 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
9144 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
9145 Discourage the two-argument, longer opcodes.
9146 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
9147 ones.
9148 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
9149 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
9150 * config/mn10300/mn10300.md (cmpsf): New pattern.
9151 (branch): Test mdep.fpCC and output fbCC.
9152 * config/mn10300/mn10300.c (print_operand): Output conditions.
9153 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
9154 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
9155 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
9156 mulsf3, divsf3): Use the `F' constraint for FP values.
9157 * config/mn10300/mn10300.c (const_1f_operand): New function.
9158 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
9159 * config/mn10300/mn10300.md (sqrtsf2): New expand.
9160 (rsqrtsf2): New insn.
9161 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
9162 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
9163 previous check-in.
9164 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
9165 * config/mn10300/mn10300.md (abssf2, negdf2): On
9166 TARGET_AM33_2, expand to...
9167 (abssf2_am33_2, negdf2_am33_2): New insns.
9168 (addsf3, subsf3, mulsf3, divsf3): Likewise.
9169 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
9170 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
9171 movdi, movdf): Added FP regs.
9172 * invoke.texi (-mam33-2, -mno-am33-2): Document.
9173 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
9174 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
9175 New macros.
9176 (REGNO_AM33_2_FP_P): Renamed to...
9177 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
9178 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
9179 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
9180 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
9181 regs from GENERAL_REGS.
9182 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
9183 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
9184 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
9185 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
9186 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
9187 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
9188 as FP_REGS.
9189 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
9190 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
9191 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
9192 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
9193 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
9194 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
9195 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
9196 AM33/2.0 floating-point registers.
9197 (CONDITIONAL_REGISTER_USAGE): Adjust.
9198 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
9199 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
9200 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
9201 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
9202 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
9203 (MULTILIB_DIRNAMES): Likewise.
9204 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
9205 `__AM33_2__' when `-mam33-2' is given.
9206 (TARGET_AM33_2): Define.
9207 (TARGET_SWITCHES): Adjust.
9208 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
9209 when appropriate.
9210
9211 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
9212
9213 * doc/install.texi: Add missing @.
9214
9215 2003-07-09 Bob Wilson <bob.wilson@acm.org>
9216
9217 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
9218
9219 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
9220
9221 PR/11144
9222 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
9223
9224 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
9225
9226 PR bootstrap/11043
9227 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
9228 "x-crtfini.o" with "crtinit.o", "crtfini.o".
9229
9230 * fixinc/inclhack.def (limits_ifndefs): Add select test.
9231 * fixinc/fixincl.x: Rebuild.
9232
9233 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
9234 * fixinc/fixincl.x: Rebuild.
9235
9236 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
9237
9238 * doc/install.texi (Configuration): Document the valgrind option
9239 to --enable-checking.
9240
9241 2003-07-09 Jan Hubicka <jh@suse.cz>
9242
9243 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
9244
9245 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9246
9247 * c-lex.c (cb_ident): Cast cstr.text to const char *.
9248
9249 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
9250
9251 * gcov-io.h: Update documentation.
9252 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
9253 GCOV_NOTE_MAGIC.
9254 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
9255 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
9256 (struct gcov_var): Change buffer's type. Add endian flag.
9257 (gcov_open): Remove mode in libgcov.
9258 (gcov_magic): Prototype.
9259 * gcov-io.c (from_file): New.
9260 (gcov_open): Clear endian flag.
9261 (gcov_magic): New.
9262 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
9263 pointers.
9264 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
9265 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
9266 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
9267 * gcov-iov.c (main): Correct cast.
9268 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
9269 conversion.
9270 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
9271 (coverage_init): Use GCOV_NOTE_SUFFIX.
9272 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
9273 Rename to gcov_version, and return flag.
9274 (gcov_exit): Use gcov_version.
9275 (__gcov_init): Use gcov_version.
9276 * Makefile.in (coverageexts): Update.
9277 * gcov.c (print_version): Remove endianness conversion.
9278 (create_file_names): Use GCOV_NOTE_SUFFIX.
9279 (read_graph_file): Use gcov_magic.
9280 (read_count_file): Likewise.
9281 * gcov-dump.c (dump_file): Remove endianness conversion, use
9282 gcov_magic.
9283
9284 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
9285
9286 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
9287 coverage is on.
9288 * configure: Regenerated.
9289 * Makefile.in (ALL_CFLAGS): Correct its comment.
9290
9291 2003-07-08 Mark Mitchell <mark@codesourcery.com>
9292
9293 * fold-const.c (make_range): Do not access operand 1 for a
9294 zero-operand operator.
9295
9296 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
9297
9298 * toplev.c (warn_dummy, W_options): Die.
9299 (display_help): Don't print W_options.
9300 * common.opt: Add W_options help from toplev.c.
9301
9302 2003-07-09 Andreas Jaeger <aj@suse.de>
9303
9304 * opts.c (wrap_help): Only pass int arguments as arguments to
9305 printf's '*' modifier. Change argument of function.
9306
9307 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
9308
9309 * doc/invoke.texi: Fix misspelling of "@item".
9310
9311 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
9312
9313 * config/i386/i386.md: Remove an old comment about
9314 NOTICE_UPDATE_CC.
9315
9316 2003-07-09 Jan Hubicka <jh@suse.cz>
9317
9318 * cgraph.c (cgraph_node_name): New function.
9319 (dump_cgraph): Use it.
9320 * cgraph.h (cgraph_dump_file): Declare.
9321 (cgraph_node_name): Declare.
9322 * cgraphunit.c: Include timevar.h
9323 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
9324 (cgraph_optimize_function): Use TV_INTEGRATION.
9325 (cgraph_mark_local_functions): reorganize dumps.
9326 (cgraph_mark_functions_to_inline_once): Likewise.
9327 (cgraph_optimize): Likewise; use timevar.
9328 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
9329 * toplev.c (dump_file_index): Add DFI_cgraph.
9330 (dump_file_info): Likewise.
9331 (cgraph_dump_file): New global variable.
9332 (do_compile): Open and close cgraph dump.
9333 * invoke.texi (-d): Document new flag; renumber.
9334
9335 2003-07-08 Roger Sayle <roger@eyesopen.com>
9336
9337 PR c/11370
9338 * calls.c (emit_call_1): Don't bother popping the arguments off of
9339 the stack after a noreturn function call; The adjustment is dead.
9340 (expand_call): Likewise.
9341
9342 2003-07-08 Geoffrey Keating <geoffk@apple.com>
9343
9344 * expr.c (MOVE_MAX_PIECES): Move from here...
9345 * defaults.h (MOVE_MAX_PIECES): ... to here.
9346
9347 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
9348
9349 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
9350
9351 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9352
9353 * genattr.c (internal_dfa_insn_code): Don't prototype.
9354 * genattrtab.c (attr_desc): Add `static_p' field.
9355 (expand_units): Make blockage range and ready cost functions
9356 static.
9357 (write_attr_get): Don't add extern prototypes in C file. Mark
9358 static functions as appropriate.
9359 (find_attr, make_internal_attr): Initialize static_p.
9360 * genattrtab.h (ATTR_STATIC): New macro.
9361 * genautomata.c (output_internal_reset_func): Mark output function
9362 as inline.
9363 (make_internal_dfa_insn_code_attr): Mark output function as static.
9364
9365 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9366
9367 * genattrtab.h: Add new macros for attr `special' flags.
9368 * genattrtab.c (attr_desc): Reorder/resize fields better.
9369 Use attr `special' macros in all calls to make_internal_attr.
9370 * genautomata.c: Likewise.
9371
9372 2003-07-09 Jan Hubicka <jh@suse.cz>
9373
9374 * c-common.c (c_estimate_num_insns_1): New static function.
9375 (c_estimate_num_insns): New global function.
9376 * c-common.h (DECL_NUM_STMTS): Rename to...
9377 (DECL_ESTIMATED_INSNS): ... this.
9378 (c_estimate_num_insns): Declare.
9379 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
9380 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
9381 * c-semantics.c (add_stmt): Do not account statements.
9382 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
9383 New.
9384 * langhooks.h (lang_hooks_for_tree_inlining): Add
9385 estimate_num_insns
9386 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
9387 to 100.
9388 (max-inline-insns): set to 300.
9389 (min-inline-insns): set to 10.
9390 * tree-inline.c (struct inline_data): Rename inlined_stmts to
9391 inlined-insns.
9392 (INSNS_PER_STMT): Kill.
9393 (inlinable_function_p): Compute and store body size.
9394 (expand_call_inline): Likewise.
9395 (optimize_inline_calls): Likewise.
9396
9397 2003-07-08 James E Wilson <wilson@tuliptree.org>
9398
9399 PR target/10021
9400 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
9401 loop over new variable t2 instead of t.
9402
9403 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
9404
9405 PR bootstrap/11455
9406 * config/i386/winnt.c: Replace use of error(), warning() with
9407 error_with_decl(), warning_with_decl(), throughout.
9408
9409 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
9410
9411 * opts.c (wrap_help): Use unsigned int, not size_t.
9412
9413 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
9414
9415 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
9416 as .file/.loc directives are incompatible with linker relaxation.
9417
9418 2003-07-08 Zack Weinberg <zack@codesourcery.com>
9419
9420 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
9421 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
9422 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
9423 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
9424 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
9425 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
9426 Escape { and } characters which are not part of range expressions.
9427 * fixinc/fixincl.x: Regenerate.
9428 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
9429
9430 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
9431
9432 PR c/1687
9433 * tree-inline.c (find_alloca_call): Use
9434 walk_tree_without_duplicates, instead of walk_tree.
9435 (find_builtin_longjmp_call): Likewise.
9436 * c-objc-common.c (c_cannot_inline_fn): Likewise.
9437 * c-semantics.c (find_reachable_label): Likewise.
9438
9439 2003-07-08 Jakub Jelinek <jakub@redhat.com>
9440
9441 PR c/11420
9442 * config/i386/i386.c (ix86_check_movabs): New function.
9443 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
9444 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
9445 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
9446
9447 2003-07-08 Chris Demetriou <cgd@broadcom.com>
9448
9449 * Makefile.in (install-po): Cope with empty CATALOGS.
9450
9451 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
9452
9453 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
9454 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
9455 (SECTION_FUNCTION_TEMPLATE): Delete.
9456 * config/mips/elf.h: As for elf64.h.
9457 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
9458 * config/mips/linux.h: As for elf.h
9459 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
9460 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
9461 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
9462 of in_sdata from current_section_name and current_section_flags.
9463 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
9464 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
9465 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
9466 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
9467 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
9468 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
9469 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
9470 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
9471 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
9472 (override_options): Remove setting of MASK_GPOPT.
9473 (mips_output_external): Use mips_in_small_data_p to check whether a
9474 symbol needs an .extern directive. Don't emit such directives for
9475 TARGET_EXPLICIT_RELOCS.
9476 (mips_declare_object): Update accordingly.
9477 (mips_select_rtx_section): Call named_section rather than
9478 SMALL_DATA_SECTION.
9479 (mips_select_section): Use default_elf_section_section for everything
9480 except .text string constants.
9481 (mips_in_small_data_p): New function.
9482 (mips_encode_section_info): Remove small data handling.
9483 (mips_unique_section): Delete.
9484 (iris6_section_type_flags): New function.
9485 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
9486
9487 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9488
9489 PR Target/11453
9490 * pa.md: Disparage all mtsar constraints.
9491 (extzv, extv, insv): Don't fail on length of {32|64}.
9492
9493 2003-07-08 Zack Weinberg <zack@codesourcery.com>
9494
9495 * system.h: Poison MAP_CHARACTER.
9496 * config/i370/i370-protos.h (mvs_map_char): Delete.
9497 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
9498 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
9499 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
9500
9501 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
9502
9503 * toplev.c (randomize): Correct call to time().
9504
9505 2003-07-08 Jakub Jelinek <jakub@redhat.com>
9506
9507 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
9508 REG_EQUIV notes as well.
9509
9510 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
9511
9512 * doc/md.texi: Fix the description of addmodecc.
9513
9514 2003-07-07 Zack Weinberg <zack@codesourcery.com>
9515
9516 * Makefile.in (top_builddir): Set to "..", not ".".
9517 (INTLLIBS, INTLDEPS): Delete.
9518 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
9519 (LIBDEPS): Add $(LIBICONV_DEP).
9520 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
9521 (INCLUDES): Replace -I../intl with @INCINTL@.
9522 ($(top_builddir)/intl/libintl.a): Delete rule.
9523 (stage2-start, stage3-start, stage4-start, stageprofile-start,
9524 stagefeedback-start): Use $$ for variable to be evaluated by
9525 shell, not make.
9526 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
9527 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
9528 * aclocal.m4: sinclude ../config/progtest.m4. Add
9529 contents of lcmessage.m4 from gettext distro.
9530 * configure.in: Check for wchar.h and setlocale. Set
9531 LIBICONV_DEP to the empty string and substitute it.
9532 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
9533 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
9534 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
9535 in $LIBINTL, to avoid linking it twice.
9536 * configure, config.in: Regenerate.
9537
9538 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
9539
9540 * fixinc/mkfixinc.sh: Remove winnt support.
9541 * fixinc/fixinc.winnt: Delete with extreme prejudice.
9542
9543 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
9544
9545 * Makefile.in: Update.
9546 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
9547 * c.opt: Update documentation.
9548 * common.opt: Add some help text.
9549 * opts.c: Include intl.h.
9550 (wrap_help, print_help): New.
9551 (find_opt, handle_option, common_handle_option): opt_text now
9552 contains the '-'. Use print_help to output help.
9553 * opts.h (struct cl_option): New member "help".
9554 * opts.sh: Update to handle help text output and to prepend
9555 options with '-'.
9556 * toplev.c (display_help): Remove some help text.
9557
9558 2003-07-07 David Edelsohn <edelsohn@gnu.org>
9559 Fariborz Jahanian <fjahanian@apple.com>
9560
9561 * configure.in: Test for PowerPC mfcr field support in assembler.
9562 * config.in, configure: Regenderated.
9563
9564 * config/rs6000/power4.md: Add mfcrf reservation.
9565 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
9566 * config/rs6000/rs6000.c (mfcr_operation): Define.
9567 (print_operand): Add 'Q' case for mfcrf.
9568 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
9569 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
9570 (movcc_internal1): Emit optional field operand for mfcr and set
9571 "type" attribute appropriately.
9572 (mfcr SCC): Likewise.
9573 (movesi_from_cr_one): New.
9574
9575 2003-07-07 Roger Sayle <roger@eyesopen.com>
9576
9577 * config/i386/i386.md: Correct check-in of incorrect version.
9578
9579 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9580
9581 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
9582 adjacent stdio calls.
9583 * c-decl.c (c_print_identifier): Likewise.
9584 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
9585 * print-rtl.c (print_rtx): Likewise.
9586 * print-tree.c (print_node_brief, print_node): Likewise.
9587 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
9588
9589 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
9590 * config.in, configure: Regenerated.
9591
9592 2003-07-07 Roger Sayle <roger@eyesopen.com>
9593
9594 PR target/10979
9595 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
9596 Changed to define_expand patterns that copy operand[1] to prevent
9597 it from being clobbered before emitting an atan2?f3_1 insn.
9598 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
9599 patterns that actually specify the behaviour of x87's FPATAN.
9600
9601 2003-07-07 Jakub Jelinek <jakub@redhat.com>
9602
9603 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
9604 clearing of SYMBOL_FLAG_LOCAL bit.
9605 If vcall_offset fits into signed 16-bit immediate, use
9606 one instruction for both addition and load.
9607
9608 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
9609
9610 * opts.c (common_handle_option): Correct handling of the
9611 -falign- switches that do and don't take an argument.
9612
9613 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
9614
9615 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
9616 today.
9617 (pushhi1_h8300hs): Likewise.
9618
9619 2003-07-07 Andreas Jaeger <aj@suse.de>
9620
9621 * genextract.c: Convert remaining prototypes to ISO C90.
9622
9623 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
9624 * fold-const.c (fold_single_bit_test): Likewise.
9625 * diagnostic.c (default_diagnostic_finalizer): Likewise.
9626 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
9627
9628 * gengtype.c (write_array): Generate ISO C90 prototypes.
9629
9630 * genflags.c (gen_proto): Generate ISO C90 prototypes.
9631
9632 2003-07-07 Roger Sayle <roger@eyesopen.com>
9633
9634 PR optimization/11059
9635 * expr.c (can_store_by_pieces): Return true if length is zero.
9636 (store_by_pieces): If length is zero and endp is two, abort,
9637 othwerise, if length is zero and endp is not two, return "to".
9638 (clear_by_pieces): Do nothing if length is zero.
9639 (clear_storage): Do nothing if length is zero.
9640 (store_constructor): Simplify code when size is zero, or the
9641 target has already been cleared. This avoids emitting a
9642 blockage instruction when initializing empty structures.
9643
9644 2003-07-07 Andreas Jaeger <aj@suse.de>
9645
9646 * mips-tfile.c: Convert prototypes to ISO C90.
9647 * mips-tdump.c: Convert prototypes to ISO C90.
9648
9649 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
9650
9651 * rtl.h (emit_line_note): Take a location_t.
9652 (emit_line_note_force): Remove.
9653 (set_file_and_line_for_statement): Take a location_t.
9654 * tree.g (emit_line_note): Take a location_t.
9655 * emit-rtl.c (emit_line_note): Take a location_t.
9656 (emit_line_note_force): Remove.
9657 * function.c (init_function_start): Adjust emit_line_note call.
9658 (expand_function_end): Use force_next_line_note, not
9659 emit_line_note_force.
9660 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
9661 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
9662 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
9663 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
9664 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
9665 genrtl_continue_stmt, genrtl_switch_stmt,
9666 genrtl_asm_stmt): Likewise.
9667 * expr.c (expand_expr): Likewise.
9668 * integrate.c (expand_inline_function): Likewise.
9669 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
9670 (expand_decl_init): Adjust emit_line_note call.
9671
9672 2003-07-07 Dale Johannesen <dalej@apple.com>
9673
9674 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
9675
9676 2003-07-07 Andreas Jaeger <aj@suse.de>
9677
9678 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
9679 * config/i386/i386.c: Likewise.
9680
9681 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
9682
9683 * config/h8300/h8300.md: Use gen_int_mode instead of
9684 GEN_INT (trunc_int_for_mode (...)).
9685
9686 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
9687
9688 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
9689 2 bytes and then subtract 2 from the stack pointer.
9690 (pushhi1_h8300hs): Likewise.
9691
9692 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
9693
9694 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
9695 -frandom-seed.
9696 * configure: Regenerated.
9697 * Makefile.in: Remove extraneous comment.
9698 * toplev.c (randomize): Protect against potential multiple calls.
9699 * doc/invoke.texi (-frandom-seed): Document use for in coverage
9700 files.
9701
9702 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9703 Eric Botcazou <ebotcazou@libertysurf.fr>
9704
9705 PR optimization/11198
9706 * alias.c (objects_must_conflict_p): Return 1 if the types have
9707 the same alias set, not if the alias sets only conflict.
9708
9709 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
9710
9711 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
9712 (convert_cset): Change inbuf to type ICONV_CONST char.
9713 * Makefile.in (LIBS): Add LIBICONV.
9714
9715 * doc/invoke.texi (-falign-functions): Document that
9716 when n is zero then a machine-dependent default is used.
9717 (-falign-labels): Document that when n is zero then a
9718 machine-dependent default is used and that -falign-labels =1
9719 is equivalent to -fno-align-labels.
9720 (-falign-loops): Likewise.
9721 (-falign-jumps): Likewise.
9722
9723 2003-07-06 Art Haas <ahaas@airmail.net>
9724
9725 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
9726 initializer syntax.
9727
9728 2003-07-06 James E Wilson <wilson@tuliptree.org>
9729
9730 PR optimization/9812
9731 * rtl.h (mem_for_const_double): Delete prototype.
9732 * varasm.c (mem_for_const_double): Delete function.
9733 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
9734 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
9735 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
9736 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
9737 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
9738 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
9739 comment about confused support for XFmode constants.
9740
9741 2003-07-07 Jan Hubicka <jh@suse.cz>
9742
9743 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
9744
9745 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
9746
9747 * config/h8300/h8300.c: Fix comment typos.
9748 * config/h8300/h8300.md: Likewise.
9749 * config/i386/athlon.md: Likewise.
9750 * config/i386/i386.c: Likewise.
9751 * config/i386/pentium.md: Likewise.
9752 * config/ia64/ia64.c: Likewise.
9753 * config/ia64/itanium1.md: Likewise.
9754 * config/ia64/itanium2.md: Likewise.
9755 * config/m32r/m32r.md: Likewise.
9756 * config/m68hc11/m68hc11.c: Likewise.
9757 * config/mcore/mcore.c: Likewise.
9758 * config/mips/sr71k.md: Likewise.
9759 * config/mips/t-iris5-as: Likewise.
9760 * config/mmix/mmix.h: Likewise.
9761 * config/ns32k/ns32k.h: Likewise.
9762 * config/ns32k/NOTES: Fix a typo.
9763
9764 2003-07-06 Andreas Jaeger <aj@suse.de>
9765
9766 * stmt.c: Convert remaining prototypes to ISO C90.
9767 * cfglayout.c: Likewise.
9768 * dbxout.c: Likewise.
9769 * gcc.c: Likewise.
9770 * genemit.c: Likewise.
9771
9772 * basic-block.h: Convert prototypes to ISO C90.
9773 * c-parse.in: Likewise.
9774 * c-pragma.h: Likewise.
9775 * c-typeck.c: Likewise.
9776 * cfghooks.h: Likewise.
9777 * cfgloopanal.c: Likewise.
9778 * dbxout.h: Likewise.
9779 * debug.h: Likewise.
9780 * dwarf2asm.h: Likewise.
9781 * gcov.c: Likewise.
9782 * gengtype-lex.l: Likewise.
9783 * sched-int.h: Likewise.
9784 * timevar.c: Likewise.
9785
9786 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
9787
9788 * c-common.h (c_comon_handle_filename,
9789 c_common_missing_arguement): New.
9790 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
9791 LANG_HOOKS_MISSING_ARGUMENT): New.
9792 * c-opts.c (missing_arg): Rename c_common_missing_argument,
9793 update to be an appropriate langhook.
9794 (c_common_handle_option): Don't handle filenames.
9795 (c_common_handle_filename): New.
9796 * hooks.c (hook_void_constcharptr,
9797 hook_bool_constcharptr_size_t_false): New.
9798 * hooks.h (hook_void_constcharptr,
9799 hook_bool_constcharptr_size_t_false): New.
9800 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
9801 LANG_HOOKS_MISSING_ARGUMENT): New.
9802 (LANG_HOOKS_INITIALIZER): Update.
9803 * langhooks.h (struct lang_hooks): Add handle_filename and
9804 missing_argument.
9805 * opts.c (handle_option): Don't handle filenames here, but ...
9806 (handle_options): ... here.
9807 (common_handle_option): Don't handle missing arguments here.
9808 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
9809 LANG_HOOKS_MISSING_ARGUMENT): New.
9810
9811 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
9812
9813 * Makfile.in: Remove traces of mbchar.
9814 * c-parse.in (MULTIBYTE_CHARS): Remove.
9815 * config.in (MULTIBYTE_CHARS): Remove.
9816 * configure: Remove --enable-mbchar.
9817 * configure.in: Remove --enable-mbchar.
9818 * mbchar.c, mbchar.h: Remove.
9819 * system.h: Poison MULTIBYTE_CHARS.
9820 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
9821 * config/linux.h (MULTIBYTE_CHARS): Remove.
9822 * config/svr4.h (MULTIBYTE_CHARS): Remove.
9823 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
9824
9825 2003-07-06 Andreas Jaeger <aj@suse.de>
9826
9827 * varray.c (varray_check_failed): Fix typo.
9828
9829 * unroll.c: Convert prototypes to ISO C90.
9830 * varasm.c: Likewise.
9831 * varray.c: Likewise.
9832 * varray.h: Likewise.
9833 * vmsdbgout.c: Likewise.
9834 * xcoffout.c: Likewise.
9835 * xcoffout.h: Likewise.
9836
9837 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
9838
9839 * gcov-io.h: Add a local time stamp.
9840 (struct gcov_info): Add stamp field.
9841 (gcov_truncate): New.
9842 * coverage.c (read_counts_file): Skip the stamp.
9843 (coverage_begin_output): Write the stamp.
9844 (build_gcov_info): Declare and init the stamp.
9845 (coverage_finish): Only unlink data file, if stamp is zero.
9846 * gcov-dump.c (dump_file): Dump the stamp.
9847 * gcov.c (bbg_stamp): New.
9848 (release_structures): Clear bbg_stamp.
9849 (read_graph_file): Read stamp.
9850 (read_count_file): Check stamp.
9851 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
9852
9853 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
9854
9855 * tree.h (default_flag_random_seed): Remove.
9856 * toplev.h (local_tick): Declare.
9857 * tree.c (flag_random_seed, default_flag_random_seed): Move to
9858 toplev.c.
9859 (append_random_chars): Don't call default_flag_random_seed.
9860 * toplev.c (flag_random_seed): Define here. Set local_tick.
9861 (local_tick): Define.
9862 (randomize): New, moved from tree.c.
9863 (print_switch_values): Adjust.
9864 (toplev_main): Call randomize.
9865
9866 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
9867
9868 * tree.h (crc32_string): Declare.
9869 * tree.c (append_random_chars): Remove.
9870 (crc32_string): New.
9871 (get_file_function_name_long): Use crc32_string here.
9872
9873 2003-07-06 Andreas Jaeger <aj@suse.de>
9874
9875 * gcc.c: Convert prototypes to ISO C90.
9876 * gcc.h: Likewise.
9877 * gcov-dump.c: Likewise.
9878 * gcov-iov.c: Likewise.
9879 * gcse.c: Likewise.
9880 * genattrtab.h: Likewise.
9881 * ggc.h: Likewise.
9882 * global.c: Likewise.
9883 * graph.c: Likewise.
9884 * graph.h: Likewise.
9885 * hosthooks.h: Likewise.
9886 * hooks.h: Likewise.
9887 * hooks.c: Likewise.
9888 * hashtable.h: Likewise.
9889 * hashtable.c: Likewise.
9890 * haifa-sched.c: Likewise.
9891 * integrate.h: Likewise.
9892 * integrate.c: Likewise.
9893 * input.h: Likewise.
9894 * ifcvt.c: Likewise.
9895 * jump.c: Likewise.
9896 * langhooks-def.h: Likewise. Add extern to prototypes.
9897 * langhooks.c: Likewise.
9898 * langhooks.h: Likewise.
9899 * lcm.c: Likewise.
9900 * local-alloc.c: Likewise.
9901 * loop-init.c: Likewise.
9902 * loop-unroll.c: Likewise.
9903 * loop-unswitch.c: Likewise.
9904 * loop.c: Likewise.
9905 * loop.h: Likewise. Add extern to prototypes.
9906 * machmode.h: Likewise.
9907 * main.c: Likewise.
9908 * mbchar.c: Likewise.
9909 * mbchar.h: Likewise.
9910 * mkdeps.c: Likewise.
9911 * mkdeps.h: Likewise.
9912 * optabs.c: Likewise.
9913 * optabs.h: Likewise.
9914 * output.h: Likewise.
9915 * gccspec.c: Likwise.
9916 * postreload.c: Likewise.
9917 * prefix.c: Likewise.
9918 * prefix.h: Likewise.
9919 * print-rtl.c: Likewise.
9920 * print-tree.c: Likewise.
9921 * profile.c: Likewise.
9922 * read-rtl.c: Likewise.
9923 * real.c: Likewise.
9924 * real.h: Likewise.
9925 * recog.c: Likewise.
9926 * recog.h: Likewise.
9927 * reg-stack.c: Likewise.
9928 * regclass.c: Likewise.
9929 * regmove.c: Likewise.
9930 * regrename.c: Likewise.
9931 * regs.h: Likewise.
9932 * reload.c: Likewise.
9933 * reload.h: Likewise.
9934 * reload1.c: Likewise.
9935 * reorg.c: Likewise.
9936 * resource.c: Likewise.
9937 * resource.h: Likewise.
9938 * rtl-error.c: Likewise.
9939 * rtl.c: Likewise.
9940 * rtl.h: Likewise.
9941 * rtlanal.c: Likewise.
9942 * sbitmap.c: Likewise.
9943 * sbitmap.h: Likewise.
9944 * scan-decls.c: Likewise.
9945 * scan.c: Likewise.
9946 * sched-deps.c: Likewise.
9947 * sched-ebb.c: Likewise.
9948 * sched-int.h: Likewise.
9949 * sched-rgn.c: Likewise.
9950 * sched-vis.c: Likewise.
9951 * sibcall.c: Likewise.
9952 * simplify-rtx.c: Likewise.
9953 * sreal.c: Likewise.
9954 * sreal.h: Likewise.
9955 * ssa-ccp.c: Likewise.
9956 * ssa-dce.c: Likewise.
9957 * ssa.c: Likewise.
9958 * ssa.h: Likewise.
9959 * stack.h: Likewise.
9960 * stmt.c: Likewise.
9961 * stor-layout.c: Likewise.
9962 * stringpool.c: Likewise.
9963 * target.h: Likewise.
9964 * timevar.c: Likewise.
9965 * timevar.h: Likewise.
9966 * tlink.c: Likewise.
9967 * tracer.c: Likewise.
9968 * tree-inline.c: Likewise.
9969 * tree-inline.h: Likewise.
9970 * tree.c: Likewise.
9971 * tree.h: Likewise.
9972
9973 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
9974
9975 * combine.c (nonzero_bits1): Fix a warning.
9976
9977 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
9978
9979 * config/h8300/h8300.c (compute_mov_length): Correct the
9980 length of loading CONST0_RTX (SFmode).
9981
9982 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
9983
9984 * toplev.c (output_clean_symbol_name): Remove.
9985 * toplev.h (output_clean_symbol_name): Remove.
9986 * config/alpha/alpha.c (unicosmk_output_module_name): Use
9987 lbasename & clean_symbol_name.
9988
9989 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
9990
9991 * ggc.h: Follow spelling conventions.
9992 * config/i386/i386.c: Likewise.
9993 * config/i386/winnt.c: Likewise.
9994 * config/rs6000/rs6000.c: Likewise.
9995
9996 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
9997
9998 * bt-load.c: Fix comment typos.
9999 * c-incpath.c: Likewise.
10000 * cfg.c: Likewise.
10001 * cfgcleanup.c: Likewise.
10002 * cfgloop.h: Likewise.
10003 * cfgloopmanip.c: Likewise.
10004 * cfgrtl.c: Likewise.
10005 * diagnostic.h: Likewise.
10006 * dwarfout.c: Likewise.
10007 * emit-rtl.c: Likewise.
10008 * et-forest.c: Likewise.
10009 * et-forest.h: Likewise.
10010 * expr.c: Likewise.
10011 * gcse.c: Likewise.
10012 * genattr.c: Likewise.
10013 * jump.c: Likewise.
10014 * langhooks.h: Likewise.
10015 * local-alloc.c: Likewise.
10016 * loop-unroll.c: Likewise.
10017 * loop-unswitch.c: Likewise.
10018 * ra-build.c: Likewise.
10019 * regclass.c: Likewise.
10020 * regmove.c: Likewise.
10021 * rtl.def: Likewise.
10022 * rtlanal.c: Likewise.
10023 * sched-ebb.c: Likewise.
10024 * sched-rgn.c: Likewise.
10025 * simplify-rtx.c: Likewise.
10026 * ssa.c: Likewise.
10027 * tracer.c: Likewise.
10028 * tree.c: Likewise.
10029
10030 2003-07-05 Zack Weinberg <zack@codesourcery.com>
10031
10032 * cppcharset.c: Use the correct return type for the fallback iconv
10033 macro.
10034
10035 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10036
10037 Blame to Jan Hubicka <jh@suse.cz>
10038 * cfglayout.c (record_effective_endpoints): Split insns before
10039 first basic block correctly.
10040
10041 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10042
10043 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
10044 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
10045 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
10046
10047 2003-07-05 Andreas Jaeger <aj@suse.de>
10048
10049 * genattrtab.c (write_attr_get): Revert part of last patch to
10050 always write out a prototype.
10051
10052 * genemit.c (gen_split): Readd lost unused attributes in last
10053 patch.
10054
10055 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10056
10057 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
10058 different from header.
10059
10060 2003-07-05 Andreas Schwab <schwab@suse.de>
10061
10062 * config/m68k/m68k.c: Remove code protected by CRDS.
10063 * config/m68k/m68k.md: Likewise.
10064
10065 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
10066
10067 PR driver/11417
10068 * c-opts.c (permit_fortran_options): New.
10069 (c_common_init_options): Accept fortran front end options if
10070 it looks like we might be preprocessing Fortran.
10071 (c_common_handle_option): Don't reject switch if permit_fotran_options.
10072
10073 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10074
10075 * genattr.c (internal_dfa_insn_code): Output prototype.
10076 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
10077 * genautomata.c: Likewise.
10078 * genconditions.c: Likewise.
10079 * genemit.c: Likewise.
10080 * genextract.c: Likewise.
10081 * gengenrtl.c: Likewise.
10082 * gengtype.c: Likewise.
10083 * genopinit.c: Likewise.
10084 * genoutput.c: Likewise.
10085 * genpeep.c: Likewise.
10086 * genrecog.c: Likewise.
10087
10088 2003-07-04 Zack Weinberg <zack@codesourcery.com>
10089
10090 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
10091 (struct cpp_options): Add narrow_charset, wide_charset,
10092 bytes_big_endian fields. Remove EBCDIC field.
10093 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
10094
10095 * cpphash.h: Include <iconv.h> if we have it, otherwise
10096 provide a dummy definition of iconv_t.
10097 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
10098 (_cpp_valid_ucn): Update prototype.
10099 (_cpp_destroy_iconv): New prototype.
10100
10101 * doc/cpp.texi: Document character set handling.
10102 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
10103 * doc/extend.texi: Delete entire section on multiline strings.
10104 Rewrite section on __FUNCTION__ etc now that these are
10105 variables in C.
10106
10107 * cppucnid.tab, cppucnid.pl: New files.
10108 * cppucnid.h: New generated file.
10109 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
10110 (iconv_open, iconv, iconv_close): Provide dummy definitions
10111 if !HAVE_ICONV.
10112 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
10113 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
10114 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
10115 cpp_interpret_string, narrow_str_to_charconst,
10116 wide_str_to_charconst): New.
10117 (ucn_valid_in_identifier): Use a binary search through the
10118 ucnranges table defined in cppucnid.h, not a long chain of if
10119 statements.
10120 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
10121 character names are only valid in C++ and C99" to a warning.
10122 Issue the "meaning of \[uU] is different in traditional C"
10123 warning here. Take care not to let iconv see an invalid UCS
10124 value if we get a malformed UCN. Issue an error if we don't
10125 have iconv.
10126 (cpp_interpret_charconst): Moved here from cpplex.c. Use
10127 cpp_interpret_string to do the heavy lifting.
10128
10129 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
10130 narrow_charset, wide_charset fields of options structure.
10131 (cpp_destroy): Call _cpp_destroy_iconv.
10132 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
10133 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
10134 (cpp_interpret_charconst): Moved to cppcharset.c.
10135 * cpplib.c (dequote_string): Delete.
10136 (interpret_string_notranslate): New.
10137 (do_line, do_linemarker): Use interpret_string_notranslate.
10138
10139 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
10140
10141 * c-common.c (fname_string, combine_strings): Delete.
10142 * c-common.h (fname_string, combine_strings): Delete prototypes.
10143 * c-lex.c (ignore_escape_flag): Delete.
10144 (cb_ident): Use cpp_interpret_string, not lex_string.
10145 (get_nonpadding_token): New function.
10146 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
10147 Adjust calls to lex_string. Don't write *value twice.
10148 (lex_string): Now handles string constant concatenation.
10149 Most of the work handed off to cpp_interpret_string.
10150 Call fix_string_type here.
10151 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
10152 FUNC_NAME, throughout.
10153 (OBJC_STRING): New token type.
10154 (primary:STRING): No need to call fix_string_type here.
10155 (primary:objc_string): Make that OBJC_STRING.
10156 (objc_string nonterminal): Delete.
10157 (yylexname): Delete code to handle fake string constants.
10158 (yylexstring): Delete entirely.
10159 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
10160 to handle CPP_ATSIGN.
10161
10162 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
10163 * c-opts.c (missing_arg, c_common_handle_option): Handle
10164 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
10165 (c_common_init): Set cpp_opts->bytes_big_endian, not
10166 cpp_opts->EBCDIC. Call cpp_init_iconv.
10167 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
10168 (TARGET_EBCDIC): Delete default definition.
10169
10170 * objc/objc-act.c (build_objc_string_object): No need to
10171 handle string constant concatenation.
10172
10173 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
10174
10175 * doc/install.texi: Fix typos.
10176 * doc/invoke.texi: Likewise.
10177 * doc/tm.texi: Likewise.
10178
10179 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
10180
10181 * config/pa/fptr.c: Fix comment typos.
10182 * config/pa/pa-64.h: Likewise.
10183 * config/pa/pa.c: Likewise.
10184 * config/pa/pa.h: Likewise.
10185 * config/rs6000/603.md: Likewise.
10186 * config/rs6000/7xx.md: Likewise.
10187 * config/rs6000/darwin.h: Likewise.
10188 * config/rs6000/freebsd.h: Likewise.
10189 * config/rs6000/rs6000.c: Likewise.
10190 * config/rs6000/rs6000.md: Likewise.
10191 * config/rs6000/spe.h: Likewise.
10192
10193 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
10194
10195 * config/s390/2064.md: Change GNU CC to GCC.
10196 * config/s390/2084.md: Likewise.
10197 * config/s390/fixdfdi.h: Likewise.
10198 * config/s390/linux.h: Likewise.
10199 * config/s390/s390-modes.def: Likewise.
10200 * config/s390/s390-protos.h: Likewise.
10201 * config/s390/s390.c: Likewise.
10202 * config/s390/s390.h: Likewise.
10203 * config/s390/s390.md: Likewise.
10204 * config/s390/s390x.h: Likewise.
10205
10206 2003-07-04 Jeff Law <law@redhat.com>
10207
10208 PR c/11428
10209 * expr.c (do_store_flag): Pass in the correct result type
10210 when calling fold_single_bit_test.
10211 * fold-const.c (fold_single_bit_test): Use result_type for the
10212 result when folding a sign bit test.
10213
10214 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
10215
10216 * opts.c (common_handle_options): Negate sense of -falign- switches.
10217
10218 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
10219
10220 * Makefile.in: Replace PWD with PWD_COMMAND.
10221
10222 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10223
10224 * cfgloopanal.c (count_strange_loop_iterations): New static function.
10225 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
10226 Handle strange loops.
10227
10228 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
10229
10230 * install.texi: Even the g77 manpage is derived from
10231 the full g77 manual.
10232
10233 2003-07-04 Zack Weinberg <zack@codesourcery.com>
10234
10235 * ABOUT-NLS: Delete.
10236 * intl: Delete entire directory.
10237 * aclocal.m4: Include ../config/gettext.m4. Delete
10238 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
10239 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
10240 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
10241 Remove intl/Makefile from all_outputs.
10242 * configure, config.in: Regenerate.
10243 * Makefile.in: Expunge all references to intl subdirectory.
10244 Add -I../intl to INCLUDES.
10245 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
10246
10247 2003-07-04 Roger Sayle <roger@eyesopen.com>
10248
10249 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
10250 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
10251
10252 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
10253
10254 PR c++/5287, PR c++/7910, PR c++/11021
10255 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
10256 dllimport attribute if function is defined at declaration, but
10257 report error instead. Likewise for dllimport'd variable
10258 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
10259 declared within functions, Report error if dllimport or dllexport
10260 symbol is not global.
10261 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
10262 if defined after declaration or if inlined. Don't allow definition
10263 of static data members of C++ classes. Don't dllimport virtual
10264 methods.
10265 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
10266 (i386_pe_mark_dllimport): Remove unnecessary checks.
10267 (i386_pe_encode_section_info): Warn if the dllimport attribute
10268 and symbol prefix have been instantiated and then overridden.
10269
10270 * doc/extend.texi: Document dllimport and dllexport attributes.
10271
10272 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
10273
10274 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
10275
10276 * config/kaos.h (CPP_PREDEFINES): Delete.
10277 (TARGET_OS_CPP_BUILTINS): New.
10278
10279 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10280
10281 * c-aux-info.c: Include toplev.h after c-tree.h.
10282 * c-common.c: Likewise.
10283 (GCC_DIAG_STYLE): Undef.
10284 * c-semantics.c (GCC_DIAG_STYLE): Define.
10285 * c-tree.h (GCC_DIAG_STYLE): Likewise.
10286 * diagnostic.h (inform): Move prototype to toplev.h.
10287 * jump.c: Include diagnostic.h before toplev.h.
10288 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
10289 (warning, error, fatal_error, pedwarn, sorry, inform,
10290 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
10291
10292 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10293
10294 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
10295 at all if edge is not specified.
10296 (can_copy_bbs_p, copy_bbs): New.
10297 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
10298 * cfgloop.c (get_loop_body): Comment more precisely.
10299 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
10300 (scale_bbs_frequencies): Fix comment typo.
10301 (can_duplicate_loop_p): Use can_copy_bbs_p.
10302 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
10303
10304 2003-07-03 Devang Patel <dpatel@apple.com>
10305
10306 * c-opts.c (c_common_parse_file): Remove extra
10307 debug_hooks->start_source_file call.
10308
10309 2003-07-03 Roger Sayle <roger@eyesopen.com>
10310
10311 * real.c (real_trunc, real_floor, real_ceil): New functions
10312 to implement trunc, floor and ceil respectively.
10313 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
10314 * builtins.c (integer_valued_real_p): New function to test if
10315 a floating point expression has an integer valued result.
10316 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
10317 foo(x) where foo is an integer rounding function. Similarly,
10318 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
10319 (double)(int)x when both foo and bar are integer rounding
10320 functions and we don't need to honor errno.
10321 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
10322 New functions to fold trunc, floor and ceil.
10323 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
10324 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
10325 to fold BUILT_IN_CEIL*.
10326 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
10327 the remaining integer rounding functions.
10328
10329 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
10330
10331 * config/sparc/sparc.c (function_arg_partial_nregs): Use
10332 SPARC_INT_ARG_MAX to determine where to split unnamed
10333 complex FP arguments.
10334
10335 2003-07-03 Jan Hubicka <jh@suse.cz>
10336
10337 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
10338 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
10339 (merge_blocks_move_predecessor_nojumps,
10340 merge_blocks_move_successor_nojumps): Use merge_blocks.
10341 (try_optimize_cfg): Use merge_blocks_move.
10342 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
10343 (merge_blocks_nomove): Rename to rtl_merge_blocks.
10344 (cfg_layout_create_basic_block): New.
10345 (rtl_can_merge_blocks): New.
10346 (cfg_layout_split_block): Do not alloc aux by hand.
10347 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
10348 merge_blocks.
10349 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
10350 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
10351 * cfgloopmanip.c (loop_split_edge_with): Likewise.
10352 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
10353
10354 * basic-block.h (basic_block_def): Add field 'rbi'.
10355 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
10356 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
10357 * cfg.c (entry_exit_blocks): Add new field.
10358 * cfglayout.c: Include alloc-pool.h;
10359 (cfg_layout_pool): New.
10360 (record_effective_endpoints, fixup_reorder_chain,
10361 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
10362 of rbi.
10363 (cfg_layout_initialize_rbi): New function.
10364 (cfg_layout_initialize): Use it.
10365 (cfg_layout_finalize): Clear rbi fields.
10366 * cfglayout.h (RBI): Kill.
10367 (cfg_layout_initialize_rbi): Declare.
10368 * cfgloopmanip.c (copy_bbs): Use rbi.
10369 (record_exit_edges): Likewise.
10370 (duplicate_loop_to_header_edge): Likewise.
10371 * cfgrtl.c (cfg_layout_create_basic_block): Use
10372 cfg_layout_initialize_rbi.
10373 (cfg_layout_split_block): Use rbi.
10374 (cfg_layout_delete_block): Likewise.
10375 * loop-init.c (loop_optimizer_finalize): Likewise.
10376 * loop-unswitch.c (unswitch_loop): Likewise.
10377 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
10378
10379 * cfgrtl.c: Update comments.
10380 (try_redirect_by_replacing_jump): New argument.
10381 (redirect_branch_edge): Break out from ...
10382 (rtl_redirect_edge_and_branch): ... this one.
10383 (update_cfg_after_block_merging): Break out from ...
10384 (rtl_merge_blocks): ... this one.
10385 (cfg_layout_split_edge): New.
10386 (cfg_layout_merge_blocks): New.
10387 (cfg_layout_can_merge_blocks_p): New.
10388 (cfg_layout_redirect_edge_and_branch): Reorganize.
10389 (cfg_layout_rtl_cfg_hooks): Fill in.
10390 (cfg_layout_delete_block): Kill barriers.
10391 * cfganal.c (can_fallthru): Deal with exit blocks
10392 * cfglayout.c (cfg_layout_function_header): New function
10393 (record_effective_endpoints): Record function header.
10394 (fixup_reorder_chain): Fixup dead jumptables; place header
10395
10396 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
10397 * bb-reorder.c (cfg_layout_initialize): Update call.
10398 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
10399 edges in cfglayout mode.
10400 * cfglayout.c (cleanup_unconditional_jumps): Kill.
10401 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
10402 * cfglayout.h (cfg_layout_initialize): Update prototype.
10403 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
10404 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
10405 * flow.c (propagate_block): Do not crash when basic block ends
10406 by first insn in the chain.
10407 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
10408 do loop discovery.
10409 * tracer.c (tracer): Update call of cfg_layout_initialize.
10410
10411 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10412
10413 * Makefile.in: Use dependency variables in lieu of explicit
10414 files throughout.
10415
10416 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
10417
10418 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
10419 * tree.h: ...to here.
10420
10421 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
10422
10423 * config/s390/2064.md: Fix comment typos.
10424 * config/s390/2084.md: Likewise.
10425 * config/s390/s390.c: Likewise.
10426 * config/s390/s390.md: Likewise.
10427 * config/sh/sh.c: Likewise.
10428 * config/sh/sh.h: Likewise.
10429 * config/sh/sh.md: Likewise.
10430 * config/sparc/sparc.c: Likewise.
10431 * config/sparc/sparc.h: Likewise.
10432 * config/sparc/sparc.md: Likewise.
10433 * config/stormy16/stormy16.c: Likewise.
10434 * config/stormy16/stormy16.h: Likewise.
10435 * config/stormy16/stormy-abi: Fix a typo.
10436
10437 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
10438
10439 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
10440
10441 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10442
10443 * config/mips/mips.h (save_argv): Delete.
10444
10445 2003-07-03 Roger Sayle <roger@eyesopen.com>
10446
10447 PR target/10700
10448 * fold-const.c (extract_muldiv_1): There's nothing that can be done
10449 if the expression is a SAVE_EXPR.
10450
10451 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
10452
10453 * config/m32r/m32r.c: Fix comment typos.
10454 * config/m68hc11/m68hc11.c: Likewise.
10455 * config/m68hc11/m68hc11.h: Likewise.
10456 * config/m68k/m68k.c: Likewise.
10457 * config/mcore/mcore.c: Likewise.
10458 * config/mcore/mcore.h: Likewise.
10459 * config/mcore/mcore.md: Likewise.
10460 * config/mips/mips.c: Likewise.
10461 * config/mips/mips.h: Likewise.
10462 * config/mips/mips.md: Likewise.
10463 * config/mips/netbsd.h: Likewise.
10464 * config/mn10300/mn10300.c: Likewise.
10465
10466 2003-07-03 Andreas Schwab <schwab@suse.de>
10467
10468 * dbxout.c (pending_bincls): Move decl down inside
10469 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
10470
10471 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
10472
10473 * rtl.h (NOTE_DATA): Refer to whole union.
10474 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
10475
10476 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
10477
10478 PR optimization/11381
10479 * simplify-rtx.c (simplify_relational_operation): Check that
10480 two equal operands have no side-effects before simplifying
10481 the comparison.
10482
10483 2003-07-02 Jeff Law <law@redhat.com>
10484
10485 * expr.c (do_store_flag): Remove special case folding for
10486 single bit tests. Instead call back into the commonized folder
10487 routine.
10488 * fold-const.c (fold_single_bit_test): New function, mostly
10489 extracted from do_store_flag, with an additional case extracted
10490 from fold.
10491 (fold): Call fold_single_bit_test appropriately.
10492 * tree.h (fold_single_bit_test): Prototype.
10493
10494 2003-07-02 Zack Weinberg <zack@codesourcery.com>
10495
10496 * system.h: Include filenames.h.
10497 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
10498 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
10499 define based on HAVE_DOS_BASED_FILE_SYSTEM.
10500 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
10501 * config/i386/xm-mingw32.h: Don't define
10502 HAVE_DOS_BASED_FILE_SYSTEM,
10503 DIR_SEPARATOR, or DIR_SEPARATOR_2.
10504 * doc/hostconfig.texi: Update to match.
10505
10506 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
10507 config/i386/cygwin.h:
10508 Use IS_ABSOLUTE_PATH throughout.
10509 * gcc.c (DIR_UP): Delete, unused.
10510 * protoize.c (IS_SAME_PATH): Define in terms of
10511 FILENAME_CMP.
10512 (is_abspath): Delete.
10513
10514 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
10515
10516 * config/i386/emmintrin.h: Fix comment typos.
10517 * config/i386/i386.c: Likewise.
10518 * config/i386/i386.h: Likewise.
10519 * config/i386/sco5.h: Likewise.
10520 * config/ia64/ia64.c: Likewise.
10521 * config/ia64/itanium2.md: Likewise.
10522
10523 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
10524
10525 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
10526 DBX_USE_BINCL.
10527 (emit_bincl_stab): Same.
10528 (emit_pending_bincls): Same.
10529
10530 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
10531
10532 * config/h8300/h8300.c (compute_mov_length): Fix the length of
10533 loading CONST0_RTX (SFmode).
10534 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
10535 'G' to CONST0_RTX (SFmode).
10536 * config/h8300/h8300.md (movsf_h8300): Change the first
10537 constraint to 'G'.
10538 (movsf_h8300h): Likewise.
10539
10540 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
10541
10542 * c-common.h (c_common_init_options): New prototype.
10543 * c-opts.c (deferred_size): Remove.
10544 (defer_opt): Array is now pre-allocated.
10545 (c_common_init_options): Pre-allocate deferred_opts. Make
10546 lang_flags unsigned.
10547 (push_command_line_options): Free deferred_opts.
10548 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
10549 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
10550 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
10551 * langhooks.h (struct lang_hooks): New prototype for init_options.
10552 * main.c (main): Cast argv.
10553 * opts.c (handle_option, handle_options): Update prototypes.
10554 (decode_options): save_argc, save_argv are not global. Constify.
10555 * opts.h (decode_options): New prototype.
10556 * toplev.c (general_init): New protoype.
10557 (save_argv): Make static.
10558 (save_argc): Remove.
10559 (print_switch_values, general_init): Constify.
10560 (toplev_main): Save argv.
10561 * toplev.h (toplev_main): Update prototype.
10562 (save_argc, save_argv): Remove.
10563
10564 2003-07-02 David Edelsohn <edelsohn@gnu.org>
10565
10566 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
10567 (emit_bincl_stab): Same.
10568 (emit_pending_bincls): Same.
10569
10570 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
10571
10572 PR c++/11072
10573 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
10574
10575 2003-07-02 Andreas Schwab <schwab@suse.de>
10576
10577 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
10578
10579 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
10580
10581 PR optimization/11210
10582 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
10583 about the behaviour with regard to bitfields.
10584 * fold-const (decode_field_reference): Record outermost type in
10585 case the expression is a NOP. Strip all NOPs. Set the signedness
10586 to that of the outermost type (if any) when the bitsize is equal
10587 to the size of the type.
10588
10589 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
10590
10591 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
10592 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
10593 (adddi3_internal_3, addsi3_internal_2): Likewise.
10594
10595 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
10596
10597 * config/mips/mips.c (machine_function): Add new fields:
10598 ignore_hazard_length_p and all_noreorder_p.
10599 (mips_flag_delayed_branch): New variable.
10600 (override_options): Treat '/' as an operand punctuation character.
10601 Set up mips_flag_delayed_branch.
10602 (print_operand): Handle '/'.
10603 (mips_output_function_prologue): Put the whole function in
10604 .set noreorder and .set nomacro if all_noreorder_p is true.
10605 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
10606 (mips16_optimize_gp): Remove "first insn" parameter.
10607 (mips16_lay_out_constants): New function, split out from mips_reorg.
10608 (mips_avoid_hazard, mips_avoid_hazards): New functions.
10609 (mips_reorg): For mips16 code, call mips16_lay_out_constant
10610 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
10611 do delayed-branch scheduling followed by hazard detection.
10612 (mips_adjust_insn_length): Only account for hazards if
10613 !ignore_hazard_length_p.
10614 (mips_output_load_label): Add a nop to the o32 sequence if
10615 the target suffers from load delays.
10616 (mips_output_conditional_branch): Add %/ to the end of branches.
10617 (mips_output_division): Fill the branch delay slot with %#.
10618 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
10619 instructions. End all other %* branches with %/.
10620 (ffssi2, ffsdi2): Fix lengths.
10621 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
10622 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
10623 (fix_truncsfsi2_macro): Likewise.
10624 (mov_lwl): Set hazard to "none".
10625 (ashldi3_internal): Fill the branch delay slot with %#.
10626 (ashrdi3_internal, lshrdi3_internal): Likewise.
10627 (exception_receiver): Explicitly set $28.
10628 (hazard_nop): New pattern.
10629
10630 2003-07-02 Jan Hubicka <jh@suse.cz>
10631
10632 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
10633 before calling tree_inlinable_function_p.
10634
10635 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10636
10637 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
10638 <internal/stdio_core.h> too.
10639 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
10640 <internal/wchar_core.h> too.
10641 Substitute va_list uses in inline definition.
10642 * fixinc/fixincl.x: Regenerate.
10643
10644 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10645
10646 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
10647 Undef before redefinition.
10648 (LABEL_AFTER_LOC): Likewise.
10649 (DEFAULT_SIGNED_CHAR): Likewise.
10650 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
10651 Fix IRIX spelling.
10652
10653 * config/mips/iris3.h: Remove, unused.
10654 * config/mips/iris4.h: Likewise.
10655
10656 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
10657
10658 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
10659 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
10660 target_cpu_default.
10661
10662 * config/mips/iris5.h: Move explicit includes ...
10663 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
10664
10665 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
10666 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
10667 tm_defines.
10668
10669 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
10670 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
10671 target_cpu_default.
10672
10673 * config/mips/iris6.h: Fix IRIX spelling.
10674 (MULTILIB_DEFAULTS): Undef before redefinition.
10675
10676 * config/mips/iris6.h: Move explicit includes ...
10677 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
10678
10679 2003-07-02 Jan Hubicka <jh@suse.cz>
10680
10681 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
10682 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
10683 Use next_needed field instead of aux to maintain the queue.
10684 * cgraph.h (cgraph_node): Add next_needed.
10685 (cgraph_varpool_node): Add next_needed; remove aux.
10686 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
10687
10688 2003-07-02 Jan Hubicka <jh@suse.cz>
10689
10690 * cgraphunit.c (cgraph_finalize_function): Set finalized.
10691 (cgraph_finalize_function): Do not examine inlinablility.
10692 (cgraph_finalize_compilation_unit): Do it here.
10693 * cgraph.h (cgraph_local_info): Add finalized field.
10694
10695 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10696
10697 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
10698 (gt_pch_restore): Likewise.
10699
10700 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
10701
10702 * config/alpha/alpha.c: Fix comment typos.
10703 * config/alpha/elf.h: Likewise.
10704 * config/arm/arm.c: Likewise.
10705 * config/arm/arm.h: Likewise.
10706 * config/arm/arm.md: Likewise.
10707 * config/arm/t-arm-coff: Likewise.
10708 * config/arm/t-strongarm-pe: Likewise.
10709 * config/arm/xscale-elf.h: Likewise.
10710 * config/avr/avr.h: Likewise.
10711
10712 2003-07-01 Jeff Law <law@redhat.com>
10713
10714 * stmt.c (any_pending_cleanups): Remove another redundant test.
10715
10716 2003-07-01 David Edelsohn <edelsohn@gnu.org>
10717 J"orn Rennecke <joern.rennecke@superh.com>
10718
10719 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
10720 for MEM case.
10721
10722 2003-07-01 Devang Patel <dpatel@apple.com>
10723
10724 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
10725 (binclstatus): New.
10726 (struct dbx_file): New members - bincl_status, pending_bincl_name and
10727 prev.
10728 (pending_bincls): New.
10729 (dbxout_init): Initialize new dbx_file members.
10730 (dbxout_start_source_file): Same.
10731 (emit_bincl_stab): New function.
10732 (emit_pending_bincls): Same.
10733 (emit_pending_bincls_if_required): Same.
10734 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
10735 processed.
10736 (dbxout_begin_block): Emit pending BINCL stabs.
10737 (dbxout_end_block): Same.
10738 (dbxout_function_decl): Same.
10739 (dbxout_continue): Same.
10740 (dbxout_type): Same.
10741 (dbxout_class_name_qualifiers): Same.
10742 (dbxout_symbol): Same.
10743 (dbxout_symbol_location): Same.
10744 (dbxout_parms): Same.
10745
10746 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10747
10748 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
10749 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
10750
10751 2003-07-01 Andreas Jaeger <aj@suse.de>
10752
10753 * fold-const.c: Convert prototypes to ISO C90.
10754 * function.c: Likewise.
10755 * function.h: Likewise.
10756
10757 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
10758
10759 * doc/contrib.texi: Fix typos.
10760 * doc/invoke.texi: Likewise.
10761 * doc/passes.texi: Likewise.
10762 * doc/sourcebuild.texi: Likewise.
10763 * doc/tm.texi: Likewise.
10764
10765 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
10766
10767 * basic-block.h: Fix comment typos.
10768 * bb-reorder.c: Likewise.
10769 * c-format.c: Likewise.
10770 * cfgcleanup.c: Likewise.
10771 * cfghooks.h: Likewise.
10772 * cfgloop.c: Likewise.
10773 * cfgloopmanip.c: Likewise.
10774 * cfgrtl.c: Likewise.
10775 * cgraph.h: Likewise.
10776 * cgraphunit.c: Likewise.
10777 * combine.c: Likewise.
10778 * convert.c: Likewise.
10779 * dbxout.c: Likewise.
10780 * df.c: Likewise.
10781 * df.h: Likewise.
10782 * diagnostic.c: Likewise.
10783 * dwarf2out.c: Likewise.
10784 * et-forest.h: Likewise.
10785 * flow.c: Likewise.
10786 * fold-const.c: Likewise.
10787 * function.h: Likewise.
10788 * gcov-io.h: Likewise.
10789 * gcov.c: Likewise.
10790 * gcse.c: Likewise.
10791 * genautomata.c: Likewise.
10792 * ggc-common.c: Likewise.
10793 * ggc-page.c: Likewise.
10794 * loop-unroll.c: Likewise.
10795 * loop-unswitch.c: Likewise.
10796 * loop.c: Likewise.
10797 * mips-tfile.c: Likewise.
10798 * optabs.c: Likewise.
10799 * ra-build.c: Likewise.
10800 * ra-colorize.c: Likewise.
10801 * ra-rewrite.c: Likewise.
10802 * ra.h: Likewise.
10803 * regmove.c: Likewise.
10804 * reload.c: Likewise.
10805 * rtlanal.c: Likewise.
10806 * sched-ebb.c: Likewise.
10807 * sched-int.h: Likewise.
10808 * sched-vis.c: Likewise.
10809 * sreal.c: Likewise.
10810 * ssa-ccp.c: Likewise.
10811 * ssa.c: Likewise.
10812 * toplev.c: Likewise.
10813 * tree-inline.c: Likewise.
10814 * value-prof.c: Likewise.
10815 * value-prof.h: Likewise.
10816
10817 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
10818
10819 * rtl.h (emit_line_note_after): Remove.
10820 (emit_note_copy_after, emit_note_copy): New.
10821 * emit-rtl.c (reorder_insns_with_line_notes): Replace
10822 emit_line_note_after with emit_note_copy_after.
10823 (emit_insn_after_with_line_notes): Likewise.
10824 (emit_line_note_after): Kill.
10825 (emit_note_copy_after): New.
10826 (emit_note_copy): New.
10827 * function.c (emit_return_into_block): Use emit_note_copy_after.
10828 (thread_prologue_and_epilogue_insns): Likewise.
10829 * integrate.c (expand_inline_function): Use emit_note_copy.
10830 (copy_insn_list): Likewise.
10831 * unroll.c (copy_loop_body): Likewise.
10832 * cfglayout.c (duplicate_insn_chain): Likewise.
10833
10834 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
10835
10836 * c-tree.h (define_label): Replace filename and lineno arguments
10837 with a location_t.
10838 * c-decl.c (poplevel): Adjust define_label call.
10839 (pop_label_level): Likewise.
10840 (define_label): Replace filename and lineno arguments with a
10841 location_t.
10842 (store_parm_decls): Use DECL_SOURCE_LOCATION.
10843 * c-parse.in (label): Adjust define_label call.
10844
10845 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
10846
10847 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
10848 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
10849 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
10850 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
10851 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
10852
10853 2003-07-01 Andreas Jaeger <aj@suse.de>
10854
10855 * final.c: Convert prototypes to ISO C90.
10856 * flow.c: Likewise.
10857 * flags.h: Likewise.
10858 * gcov-io.c: Likewise.
10859 * gcov-io.h: Likewise.
10860
10861 See ChangeLog.9 for earlier changes.