1 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
3 * configure.in: Clean up some feedback echoes.
4 * configure: Regenerate.
6 * aclocal.m4: Properly quote names of macros being defined.
8 * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
10 2003-10-14 Steve Ellcey <sje@cup.hp.com>
12 * config/ia64/ia64.c (ia64_expand_call): Force function address
14 * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
16 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
18 * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
19 "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
20 ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
21 "*divsf3_ibm"): Likewise.
23 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
25 * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
26 target_alias with target_noncanonical.
28 2003-10-14 Geoffrey Keating <geoffk@apple.com>
30 * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
31 and add case for machines where outgoing register parameters
34 * config/darwin.c (machopic_indirect_data_reference): Use a scratch
35 register when generating indirect address.
37 2003-10-14 Richard Earnshaw <rearnsha@arm.com>
39 * arm.c (arm_addimm_operand): MODE arguemnt is unused.
40 * arm.md (cbranchne_decr1): Fix bootstrap warning.
42 2003-10-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44 * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
45 * fixinc/fixincl.x: Regenerate.
46 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
48 Fixes PR bootstrap/9330.
50 2003-10-13 Eric Christopher <echristo@redhat.com>
52 * config/frv/frv.c (frv_adjust_field_align): Redo check for
54 (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
55 * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
56 (SBSS_SECTION_ASM_OP): Remove.
57 (EXTRA_SECTIONS): Remove in_sbss.
58 (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
59 (SBSS_SECTION_FUNCTION, sbss_section): Remove.
60 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
63 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
65 * Makefile.in, configure.in, config.host, mkheaders.in: Replace
66 uses of ${target_alias} for directory names (and other places which
67 won't like the empty string) with ${target_noncanonical}. Introduce
68 call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
70 * configure: Regenerate.
72 2003-10-13 Ian Lance Taylor <ian@wasabisystems.com>
74 * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
75 * config/arm/arm.md: For splits which rely on conditional moves,
76 remove ! TARGET_IWMMXT condition.
78 2003-10-13 David S. Miller <davem@redhat.com>
80 * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
81 (find_cond_trap): Always increment if we emit a conditional
84 2003-10-13 Zack Weinberg <zack@codesourcery.com>
86 * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
87 with min-insn-modes.o.
88 (STAGESTUFF): Add min-insn-modes.c.
89 (genobjs): Add genmodes.o.
90 (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
91 (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
92 (min-insn-modes.c, min-insn-modes.o): New rules.
93 (s-modes): Also generate min-insn-modes.c.
94 ($(BUILD_PREFIX_1)insn-modes.o): Kill.
95 * genmodes.c (struct mode_data): Add format field.
96 (blank_mode, validate_mode, complete_mode): Update to match.
97 (make_scalar_mode): Separate into make_int_mode and make_float_mode.
99 (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
100 (emit_insn_modes_c_header): Adjust.
101 (emit_min_insn_modes_c_header, emit_real_format_for_mode)
102 (emit_min_insn_modes_c): New functions.
103 (emit_insn_modes_c): Call emit_real_format_for_mode.
104 (main): Add -m option to generate min-insn-modes.c.
105 * machmode.h: Update documentation. Add format argument to
106 all uses of FLOAT_MODE.
107 * real.c: Don't define real_format_for_mode here.
109 * dwarfout.c: Move default definition of PRINT_REG...
110 * defaults.h: ...here.
111 * print-rtl.c: Include tm_p.h.
112 (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
114 (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG. But surround
115 this entire block with #ifndef GENERATOR_FILE.
116 * regclass.c: Unconditionally define reg_names.
117 * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
118 Don't define DEBUG_REGISTER_NAMES.
119 * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
120 redefinition of REGISTER_NAMES.
121 * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
123 * combine.c: Change all preprocessor conditionals on
124 EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
126 * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
127 * configure.in: Don't define EXTRA_CC_MODES.
128 * configure, config.in: Regenerate.
129 * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
131 * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
132 May assume that GET_MODE_CLASS is accurate for extra CC modes
135 * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
136 number of arguments to aggregate_value_p.
138 * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
139 * machmode.def: Explain ARCH-modes.def. Document
140 RESET_FLOAT_FORMAT. Improve commentary on various mode
141 clusters. Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
142 XF, or TF modes here. Remove backward-compatibility
145 * config/alpha/alpha-modes.def: New file; define TF mode.
146 * config/arc/arm-modes.def: Define XF mode.
147 * config/c4x/c4x-modes.def: Define QF and HF modes. Unset
148 float format for SF and DF modes.
149 * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
150 * config/i386/i386-modes.def: Define XF and TF modes.
151 * config/i960/i960-modes.def: Define TF mode.
152 * config/ia64/ia64-modes.def: Define TF and OI modes.
153 * config/m68k/m68k-modes.def: New file; define XF mode.
154 * config/mips/mips-modes.def: New file; define TF mode, reset
155 formats for SF and DF modes.
156 * config/pa/pa-modes.def: Define TF mode.
157 * config/rs6000/rs6000.c: Define TF and PSI modes.
158 * config/s390/s390-modes.def: Define OI mode.
159 * config/sh/sh-modes.def: New file; define PSI mode.
160 * config/sparc/sparc-modes.def: Define TF mode.
161 * config/vax/vax-modes.def: New file; reset formats for SF and
164 * config/c4x/c4x.c (c4x_override_options): No need to mess
165 with real_format_for_mode or set REAL_MODE_FORMATs.
166 (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
168 * config/i386/i386.c (override_options): No need to set
169 REAL_MODE_FORMATs here.
170 * config/i960/i960.c (i960_initialize): Likewise.
171 * config/m68k/m68k.c (m68k_override_options): Likewise.
172 * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
173 for TFmode only if not the default.
174 * config/mips/mips.c (override_options): Likewise.
175 * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
176 DFmode only if not the default.
178 * config/i370/i370.h (RET_REG): Don't consider TFmode.
179 * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
180 * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
181 of modes that don't appear anywhere in the machine description.
183 * config/arc/arc-modes.def, config/arm/arm-modes.def
184 * config/c4x/c4x-modes.def, config/frv/frv-modes.def
185 * config/i386/i386-modes.def, config/i960/i960-modes.def
186 * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
187 * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
188 * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
189 * config/sparc/sparc-modes.def: Convert to new style for
190 declaring extra CC modes.
192 2003-10-13 Zack Weinberg <zack@codesourcery.com>
194 * cpplex.c (_cpp_clean_line): In the common case of a line
195 with no trigraphs and no \-newline, avoid writing to memory.
196 (_cpp_skip_block_comment): Use a local 'cur' pointer instead
197 of the buffer member. Make c an uchar to avoid unnecessary
200 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
202 * configure.in: Remove unnecessary test.
203 * configure: Regenerate.
205 * configure.in: Fix grammatical error. Move UWIN host error to...
207 * configure: Regenerate.
209 2003-10-13 Andreas Krebbel <krebbel1@de.ibm.com>
211 * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
212 "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
213 of flag_unsafe_math_optimizations.
214 * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
215 "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
216 fused-madd and no-fused-madd.
217 * doc/invoke.texi: Documented the new options fused-madd and
218 no-fused-madd for S/390.
220 2003-10-14 Alan Modra <amodra@bigpond.net.au>
222 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
223 MASK_ALIGN_NATURAL if rs6000_alignment_string not given. Don't
225 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
226 * config/rs6000/rs6000.c: Formatting.
227 (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
228 when rs6000_alignment_string given.
230 2003-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
233 * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
234 (sparc_flat_must_save_register_p): New function to decide whether
235 a register must be saved/restored in the function prologue/epilogue.
236 (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
238 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
240 * config/avr/avr.c, config/avr/avr-protos.h: Convert to
241 ISO C90 function declarations and definitions.
242 * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
244 2003-10-12 Nathanael Nerode <neroden@gcc.gnu.org>
246 * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
247 config files which do the same thing.
248 * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
249 config/freebsd6.h: Remove now unnecessary files.
251 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
253 * c-common.c (c_common_truthvalue_conversion): Warn if the
254 address of a non-weak function is used as a truth value.
256 2003-10-12 Kazu Hirata <kazu@cs.umass.edu>
258 * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
260 * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
261 instead of a literal.
263 2003-10-12 Hans-Peter Nilsson <hp@bitrange.com>
265 * doc/extend.texi (Function Attributes): Mention the exceptional
266 path for noreturn-marked functions.
268 2003-10-12 Jan Hubicka <jh@suse.cz>
270 * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
273 2003-10-12 Danny Smith <dannysmith@users.sourceforge.net>
275 * config/i386/i386.c (x86_this_parameter): Fix typo.
277 2003-10-11 Jan Hubicka <jh@suse.cz>
279 * Makefile.in (web.o): New.
281 * rtl.h (web_main): Declare.
282 * timervar.def (TV_WEB): New.
283 * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
284 (rest_of_hanle_web): New.
285 (flag_web): New static variable.
286 (lang_independent_options): Add "web".
287 (rest_of_compilation): Call rest_of_handle_web.
288 * invoke.texi (-fweb): Document.
289 * common.opt (fweb): New.
290 * flags.h (flag_web): New.
291 * opts.c (decode_options): Set flag_web at -O3.
293 * passes.texi (web construction): Document.
294 * invoke.texi (-O3): Document that -fweb is enabled.
296 * regrename.c (regrename_optimize): Deal better with situation when
299 * sched-ebb.c: Include params.h and profile.h
300 (schedule_ebbs): Use tracer parameters to discover superblocks
301 * Makefile.in (sched-ebb.o): Add dependencies.
303 2003-10-11 Roger Sayle <roger@eyesopen.com>
305 * fold-const.c (negate_mathfn_p): New function to determine whether
306 a built-in mathematical function is sign preserving, f(-x) == -f(x).
307 Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
308 (tree_swap_operands_p): Change API to take an additional argument
309 indicating that the swapped operands evaluate in reverse order.
310 Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
311 operand side-effects or we don't care about flag_evaluation_order.
312 (reorder_operands_p): New function to check whether its safe to
313 evaluate the given operands in reverse order.
314 (negate_expr_p): We can always negate integer constants unless
315 we honor -ftrapv and the signed type would overflow. Only allow
316 -(A-B) into B-A if reorder_operands_p says that its OK. Allow
317 negation of COMPLEX_CST if both real and imaginary parts can be
318 negated. Allow negation through floating point extensions and
319 sign-preserving built-in functions.
320 (negate_expr): Move the code to negate integers from "fold" to
321 here. Always negate integer constants unless we honor -ftrapv
322 and the signed type would overflow. Always negate real constants
323 unless we honor -ftrapping-math. Only convert -(A-B) into B-A
324 if allowed by reorder_operands_p. Add support for COMPLEX_CST.
325 Optimize negation through floating point extensions and
326 sign-preserving built-in functions (as defined by negate_mathfn_p).
327 (fold): Adjust calls to tree_swap_operands_p.
328 (fold <NEGATE_EXPR>): Move the remaining negation optimizations
329 to negate_expr_p/negate_expr.
330 (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
331 allowed to convert (-A) - B into (-B) - A.
333 2003-10-11 Roger Sayle <roger@eyesopen.com>
335 * builtins.c (expand_builtin_strcmp): Defend against the possibility
336 that gen_cmpstrsi may fail: Stabilize the argument list against
337 re-evaluation and expand the library call directly using this saved
338 argument list if a cmpstrsi sequence can't be generated.
339 (expand_builtin_strncmp): Likewise.
341 * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
343 2003-10-11 Roger Sayle <roger@eyesopen.com>
345 PR optimization/12260
346 * simplify-rtx.c (simplify_unary_operation): Simplify all unary
347 operations through CONST nodes. Optimize (neg (plus X C)) as
348 (minus -C X) for constant values C.
349 (simplify_binary_operation): Optimize (minus (neg X) C) as
350 (minus -C X) for constant values C.
351 (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
352 instead create (minus -C X).
354 2003-10-11 Roger Sayle <roger@eyesopen.com>
356 * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
357 safe_from_p for us, once it chooses an evaluation order.
358 (expand_expr <MULT_EXPR>): Likewise.
359 (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise. If expand_operands
360 places the second operand in "target", swap the operands.
361 (do_store_flag): Let expand_operands call safe_from_p for us.
363 2003-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
365 PR optimization/12544
366 * function.c (put_var_into_stack): Don't generate ADDRESSOFs
367 for DECL_NONLOCAL decls.
369 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
371 * expr.c: Follow spelling conventions.
373 * optabs.c: Likewise.
374 * sched-deps.c: Likewise.
375 * sdbout.c: Likewise.
377 Sat Oct 11 12:24:23 CEST 2003 Jan Hubicka <jh@suse.cz>
379 * varasm.c (notice_global_symbol): Fix handling of variables; avoid
380 re-computing of variable.
382 2003-10-11 Richard Henderson <rth@redhat.com>
384 * config/alpha/alpha.c (alpha_return_in_memory): Rename from
385 return_in_memory, make static, change signature to match target hook.
386 (alpha_setup_incoming_varargs): Make static, change signature to
387 match target hook, add code for vms and unicos.
388 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
389 TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
390 TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
391 TARGET_STRICT_ARGUMENT_NAMING,
392 TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
393 * config/alpha/alpha-protos.h: Update.
394 * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
395 PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
396 SETUP_INCOMING_VARARGS): Remove.
397 * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
398 * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
400 2003-10-11 Ian Lance Taylor <ian@wasabisystems.com>
402 * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
404 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
406 * config/m68k/lb1sf68.asm: Follow spelling conventions.
407 * config/m68k/m68k.c: Likewise.
408 * config/m68k/m68k.h: Likewise.
409 * config/m68k/m68k.md: Likewise.
411 2003-10-11 Roger Sayle <roger@eyesopen.com>
413 * builtins.c (expand_builtin_memcpy): Optimize case when the two
414 pointer arguments are the equal, non-volatile and side-effect free.
415 (expand_builtin_mempcpy): Likewise.
416 (expand_builtin_memmove): Likewise.
417 (expand_builtin_strcpy): Likewise.
418 (expand_builtin_memcmp): Likewise.
419 (expand_builtin_strcmp): Likewise.
420 (expand_builtin_strncmp): Likewise.
422 2003-10-11 Roger Sayle <roger@eyesopen.com>
424 * combine.c (apply_distributive_law): Enable "distributive" floating
425 point optimizations with -funsafe-math-optimizations.
427 2003-10-11 Andrew Pinski <pinskia@physics.uc.edu>
429 * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
431 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
433 * config/m68k/m68k-protos.h: Remove the prototype for
436 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
438 * config/m68k/m68k.c: Fix comment typos.
440 2003-10-11 Bernardo Innocenti <bernie@develer.com>
442 * config/m68k/m68k-protos.h (use_return_insn): Change return type from
444 * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
445 (current_frame): New global var.
446 (m68k_compute_frame_layout): Cache computations in current_frame.
447 (m68k_initial_elimination_offset): Use values from current_frame
448 instead of recomputing them.
449 (use_return_insn): Likewise.
450 (m68k_output_function_prologue): Likewise.
451 (m68k_output_function_epilogue): Likewise.
452 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
453 inside the block for __pic__.
455 2003-10-11 Peter Barada <peter@baradas.org>
456 Bernardo Innocenti <bernie@develer.com>
458 * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
459 (m68k_save_reg): Add boolean parameter `interrupt_handler'.
460 (m68k_interrupt_function_p): New function.
461 (m68k_handle_fndecl_attribute): Ditto.
462 (m68k_compute_frame_layout): Ditto.
463 (m68k_attribute_table): Define back-end specific attributes.
464 (m68k_output_function_epilogue): Emit RTE instruction for interrupt
467 2003-10-11 Bernardo Innocenti <bernie@develer.com>
469 * config/m68k/t-uclinux: New target Makefile fragment.
470 * config/m68k/uclinux.h: New target macro file.
471 * config.gcc (m68k-*-uclinux): New target definition.
473 2003-10-10 Roger Sayle <roger@eyesopen.com>
475 * builtins.c (builtin_mathfn_code): Generalize to check whether
476 the call is to any built-in function by comparing the call's
477 argument list against the builtin decl's function type.
479 2003-10-10 Roger Sayle <roger@eyesopen.com>
481 * cse.c (constant_pool_entries_regcost): New global variable to
482 hold the register cost component of constant_pool_entries_cost.
483 (fold_rtx): Calculate constant_pool_entries_regcost at the same
484 time as constant_pool_entries_cost.
485 (cse_insn): Set both src_folded_cost and src_folded_regcost from
486 constant_pool_entries_cost and constant_pool_entries_regcost.
487 (cse_main): Initialize constant_pool_entries_regcost to zero.
489 * optabs.c (expand_unop): Attach a REG_EQUAL note describing
490 the semantics of the sequence of bit operations used to negate
491 a floating-point value.
492 (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
493 the semantics of the bit operations used to abs a floating point
496 2003-10-11 Bernardo Innocenti <bernie@develer.com>
497 Paul Dale <pauli@snapgear.com>
499 * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
501 * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
502 -fpic, -fPIC, -msep-data and -mid-shared-library.
503 * config/m68k/m68k.c (m68k_library_id_string): New global variable.
504 (override_options): Add -msep-data and -mshared-library-id support.
505 (m68k_output_function_prologue): Generate code to load A5 for
506 TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
507 (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
508 (m68k_output_pic_call): New function.
509 * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
510 (TARGET_ID_SHARED_LIBRARY): Ditto.
511 (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
512 * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
513 (call_value): Likewise.
515 2003-10-10 Zack Weinberg <zack@codesourcery.com>
517 * gengenrtl.c (find_formats, genheader): Make i an unsigned
518 int, remove cast of NUM_RTX_CODE.
519 * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
520 entire file. Remove the #ifs on GET_MODE_MASK etc and
521 GET_MODE_WIDER_MODE etc.
523 2003-10-10 Eric Christopher <echristo@redhat.com>
525 * lcm.c (optimize_mode_switching): Change NORMAL_MODE
526 to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
528 * config/sh/sh.h (MODE_ENTRY): New macro.
531 * config/sh/sh.md: Change for MODE_AFTER. Add
533 * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
535 2003-10-10 Zack Weinberg <zack@codesourcery.com>
537 * genmodes.c, mode-classes.def: New files.
538 * machmode.def: Rewritten to genmodes.c interface.
539 * Makefile.in (extra_modes_file): New substitution variable.
540 (MACHMODE_H): No longer includes machmode.def or
541 @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
542 (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
543 (OBJS-common): Add insn-modes.o.
544 (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
545 genmodes$(build_exeext).
546 (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
547 genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
548 (s-genrtl): Don't depend on $(RTL_BASE_H).
549 (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
550 or $(RTL_BASE_H); just rtl.def.
551 * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
552 real.h. Give fake definition of CONST_DOUBLE_FORMAT and
553 substitute definition of NUM_RTX_CODE. Add casts to avoid
555 * machmode.h: Include insn-modes.h, not machmode.def. Include
556 mode-classes.def to define enum mode_class. Tweak definitions
557 of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
558 GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
559 (inner_mode_array): Renamed mode_inner.
560 (mode_base_align): New.
561 * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
562 mode_unit_size, mode_wider_mode, mode_mask_array,
563 inner_mode_array, class_narrowest_mode): Delete definitions.
564 * stor-layout.c (get_mode_alignment): Use mode_base_align.
565 * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
566 and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
568 * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
569 No need to define BITS_PER_UNIT.
571 2003-10-10 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
573 * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
574 (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
575 (ia64_initialize_trampoline): If not using GAS, declare trampoline
577 * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
578 (ASM_OUTPUT_DEBUG_LABEL): Likewise.
580 * stor-layout.c (compute_record_mode): Don't force BLKmode if
581 field is zero-length BLKmode.
582 * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
583 zero-size references.
585 * combine.c (distribute_links): Properly test for REG being set.
587 * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
588 gen_lowpart and company except for REG.
590 2003-10-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
592 * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
594 2003-10-10 Nathanael Nerode <neroden@gcc.gnu.org>
596 * config.gcc (mips*-*-netbsd*): Remove content-free line.
598 2003-10-10 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
600 * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
601 gcov_position_t and gcov_type.
603 2003-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
605 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
606 * configure: Regenerate.
608 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
610 * config/h8300/h8300.md (define_asm_attributes): Specify
611 the length of an asm insn more precisely.
613 2003-10-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
615 * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
617 2003-10-09 Bob Wilson <bob.wilson@acm.org>
619 * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
620 FP register number to 48 and MAC16 accumulator to 0x210.
622 2003-10-09 Nathanael Nerode <neroden@gcc.gnu.org>
624 * config.gcc: Remove redundant thread_file setting clauses for
625 various *-*-linux* targets.
627 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
629 * config/h8300/h8300.md (define_asm_attributes): New.
631 2003-10-09 Roger Sayle <roger@eyesopen.com>
633 * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
634 to the comparison, as emit_libcall_block calls copy_rtx on equiv.
636 2003-10-09 Dorit Naishlos <dorit@il.ibm.com>
638 * haifa-sched.c (ok_for_early_schedule): New function.
639 (early_queue_to_ready): New function.
640 (schedule_block): Allow early removal of insns from Q.
641 (schedule_insn): Update INSN_TICK in case of premature
643 * common.opt (sched_stalled_insns): New flag.
644 (sched_stalled_insns_dep): New flag.
645 * flags.h: Same above flags.
646 * opts.c: Same as above.
647 * toplev.c: Same as above.
648 * target.h (targetm.sched.is_costly_dependence): New
650 * target-def.h: Same as above.
651 * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
652 Support new flag -msched-costly-dep.
653 (DEFAULT_SCHED_COSTLY_DEP): Define.
654 * config/rs6000/rs6000.c:
655 (rs6000_is_costly_dependence): New function.
656 (is_load_insn, is_store_insn): New functions.
657 (is_load_insn1, is_store_insn1, is_mem_ref): New
659 * doc/invoke.texi (-fsched-stalled-insns-dep)
660 (-fsched-stalled-insns, -msched-costly-dep): Document
662 * doc/tm.texi (is_costly_dependence): Define new
663 scheduler target hook.
665 2003-10-09 Jason Merrill <jason@redhat.com>
668 * c-common.c (c_build_qualified_type): Look through arrays first.
669 (c_apply_type_quals_to_decl): Look through arrays.
671 * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
672 types with constructors.
674 * coverage.c (build_ctr_info_value): Use build_decl to make a
676 (create_coverage): Likewise.
678 * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
680 (expand_asm_operands): Not here.
681 (parse_input_constraint): No longer static.
682 * tree.h: Declare it.
684 2003-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
686 * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
688 (SHLIB_INSTALL): Likewise.
690 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
692 * doc/install.texi: Remove reference to removed 'pthreads' thread
695 2003-10-08 Aldy Hernandez <aldyh@redhat.com>
697 * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
700 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
702 * config.gcc: Don't accept --enable-threads=pthreads. Clean
703 up related case statements.
704 * configure.in: Don't accept --enable-threads=pthreads,
705 decosf1, mach, or os2 (none of which work anyway). Alphabetize
706 supported thread files in case clause.
707 * configure: Regenerate.
709 2003-10-08 Geoffrey Keating <geoffk@apple.com>
711 * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
712 definition to above SPARC_STACK_BOUNDARY_HACK.
714 2003-10-08 Jason Merrill <jason@redhat.com>
716 * c-pretty-print.c (pp_c_postfix_expression)
717 <COMPOUND_LITERAL_EXPR>: Fix thinko.
719 2003-10-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
721 * mklibgcc.in: Don't hide undefined or typeless symbols.
723 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
725 PR optimization/12142
726 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
727 uses of the register in the SET_SRC. Remove unnecessary argument.
728 * pa.c (legitimize_pic_address): Before reload, use a scratch register
729 for the intermediate result in loading the address of a SYMBOL_REF.
730 Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn
731 which loads the SYMBOL_REF address.
733 2003-10-08 Timo Kokkonen <tjko@iki.fi>
734 Eric Botcazou <ebotcazou@libertysurf.fr>
737 * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
738 to define the size of the extern_C_braces array. Set it to 200.
739 (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
741 2003-10-08 Carlo Wood <carlo@alinoe.com>
743 * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
744 a space after the -o option. flex 2.5.31 understands both, with
745 and without the space. Removed that space.
747 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
749 * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
750 (compute_frame_size): Initialize it. Remove the .cprestore slot
752 (mips_output_function_prologue): Simplify accordingly.
753 (mips_debugger_offset): Change the mips16 frame pointer offset from
754 current_function_outgoing_args to cfun->machine->frame.args_size.
755 (mips_initial_elimination_offset): Likewise.
756 (mips_expand_prologue): Likewise.
757 (mips_expand_epilogue): Likewise.
759 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
761 * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
762 (EXTRA_MEMORY_CONSTRAINT): Define.
763 (CAN_ELIMINATE): Remove lwu workaround.
764 * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
765 Use a 'W' constraint for the source operand.
767 2003-10-08 Kazu Hirata <kazu@cs.umass.edu>
769 * genopinit.c (main): Output code to declare undefined
772 2003-10-07 Kelley Cook <kcook@gcc.gnu.org>
774 * gengtype-lex.l: Remove -Wtraditional cruft.
775 * Makefile.in (gengtype-lex.c): Likewise.
777 2003-10-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
779 * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
781 2003-10-07 Jason Merrill <jason@redhat.com>
784 * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
787 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
789 * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
791 Fixes PR bootstrap/12173.
793 2003-10-07 Zack Weinberg <zack@codesourcery.com>
795 * errors.c: Don't include coretypes.h or tm.h.
796 (trim_filename): Use IS_DIR_SEPARATOR.
797 * Makefile.in: Update dependencies of errors.o and
798 $(BUILD_PREFIX_1)errors.o.
800 2003-10-07 Geoffrey Keating <geoffk@apple.com>
802 * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
803 account when aligning arguments.
804 * calls.c (STACK_POINTER_OFFSET): Move default from here ...
805 * defaults.h (STACK_POINTER_OFFSET): ... to here.
806 * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
807 it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
808 (SPARC_STACK_BOUNDARY_HACK): Define.
809 * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
810 arrange for vector parameters to varargs functions to be passed
811 in both memory and GPRs when appropriate.
812 (rs6000_va_arg): Vector arguments passed in memory are 16-byte
815 * hooks.c (hook_bool_tree_true): New.
816 (hook_rtx_tree_int_null): New.
817 (hook_rtx_rtx_null): Use NULL, not 0.
818 * hooks.h: Add 'extern' to everything.
819 (hook_bool_tree_true): New.
820 (hook_rtx_tree_int_null): New.
821 * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
822 * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
823 * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
825 * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
826 (setup_incoming_varargs): Prototype.
827 (TARGET_PROMOTE_FUNCTION_ARGS): Define.
828 (TARGET_PROMOTE_FUNCTION_RETURN): Define.
829 (TARGET_STRUCT_VALUE_RTX): Define.
830 (TARGET_RETURN_IN_MEMORY): Define.
831 (TARGET_SETUP_INCOMING_VARARGS): Define.
832 (TARGET_STRICT_ARGUMENT_NAMING): Define.
833 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
834 (init_cumulative_args): Use rs6000_return_in_memory.
835 (setup_incoming_varargs): Make 'static'.
836 * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
837 (PROMOTE_FUNCTION_RETURN): Delete.
838 (STRUCT_VALUE): Delete.
839 (RETURN_IN_MEMORY): Delete.
840 (SETUP_INCOMING_VARARGS): Delete.
842 2003-10-07 Gerald Pfeifer <gerald@pfeifer.com>
844 * doc/invoke.texi (Warning Options): Simplify and clarify the
845 descriptions of -Wnonnull and -Winit-self.
847 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
849 * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
850 indicees for floating-point conversersion libcalls.
852 2003-10-07 Nathanael Nerode <neroden@gcc.gnu.org>
854 * Makefile.in: Add more comments separating large conceptually
857 * configure.in: Clean up thread file logic.
858 * configure: Regenerate.
860 2003-10-07 Danny Smith <dannysmith@users.sourceforge.net>
862 * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
863 (switch_to_section): Handle in_readonly_data.
864 * config/i386/winnt.c (i386_pe_asm_named_section): Handle
867 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
869 * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
871 (cbranchne_decr1): New Thumb pattern.
872 * arm.c (arm_addimm_operand): New insn predicate.
873 * arm-protos.h: Add a prototype for it.
874 * arm.h (PREDICATE_CODES): Add it.
876 2003-10-07 Dorit Naishlos <dorit@il.ibm.com>
878 * sched-int.h (sched_info): New field
879 sched_max_insns_priority.
880 * sched-rgn.c (init_ready_list): Add invocations to
881 targetm.sched.adjust_priority.
882 (sched_max_insns_priority): Init new field.
883 * sched-ebb.c (sched_max_insns_priority): Init new field.
884 * haifa-sched.c (set_priorities): Set
885 sched_info->sched_max_insns_priority.
886 * config/rs6000/rs6000.h:
887 (rs6000_sched_restricted_insns_priority_str): Support new
888 flag -mprioritize-restricted-insns.
889 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
890 * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
892 (rs6000_adjust_priority): Change priority of restricted
893 insns, using above new function and new flag.
894 * doc/invoke.texi (-mprioritize-restricted-insns): Document
897 2003-10-07 Zack Weinberg <zack@codesourcery.com>
899 * expr.c (cmpstr_optab, cmpmem_optab): New.
900 * genopinit.c: Initialize them.
901 * optabs.h: Declare them.
902 * optabs.c (init_optabs): Clear them.
903 (prepare_cmp_insn): Use cmpstr_optab and cmpmem_optab to find
904 block memory compare insns, not conditional chains. Restructure
905 the fallback generation of a call to memcmp/bcmp for better
908 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
910 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
911 (mips_save_restore_fn): New typedef.
912 (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
913 (mips_set_frame_expr, mips_frame_set): Move above prologue code.
914 (save_restore_insns): Remove, replacing with...
915 (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
916 (mips_save_reg, mips_restore_reg): New function.
917 (mips_expand_prologue, mips_expand_epilogue): Rework.
918 * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
919 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
920 (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
922 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
924 * config/mips/mips.c (mips_expand_prologue): Remove unused
925 traversal of function arguments.
927 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
929 * doc/invoke.texi: Remove documentation of -mentry.
930 * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
931 (override_options, mips_save_reg_p): Remove handling.
932 (compute_frame_size, mips_output_function_prologue): Likewise.
933 (mips_expand_prologue, mips_expand_epilogue): Likewise.
934 * config/mips/mips.h (mips_entry_string): Remove declaration.
935 (TARGET_OPTIONS): Remove -mentry.
936 * config/mips/mips16.S: Remove mention of -mentry.
938 2003-10-06 Zack Weinberg <zack@codesourcery.com>
940 * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
941 (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
942 (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
943 (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
944 (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
945 (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
946 (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
947 (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
948 (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
949 (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
950 (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
951 (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
952 (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
953 (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
954 (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
955 (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
956 (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
957 (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
958 (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
959 (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
960 (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
961 (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
962 (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
963 (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
964 (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
965 (fixunstfti_libfunc): Delete.
966 * optabs.h (struct optab_handlers): Break out of struct optab.
967 (struct convert_optab, convert_optab, enum convert_optab_index,
968 convert_optab_table, sext_optab, zext_optab, trunc_optab,
969 sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
970 sfloat_optab, ufloat_optab): New.
971 (set_conv_libfunc): Prototype.
972 (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
973 (trunc_optab): Renamed btrunc_optab.
974 * builtins.c (expand_builtin_mathfn): Update to match.
975 * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
976 (convert_optab_table, new_convert_optab, init_convert_optab)
977 (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
978 (set_conv_libfunc): New.
979 (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
980 (expand_float, expand_fix): Use new conversion optabs,
981 not old insn code tables or long chains of ifs.
982 (init_optabs): No need to clear old insn code tables.
983 Initialize the new optabs, not the old libfunc array entries.
984 Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
985 * genopinit.c: Initialize conversion optabs, not the
986 former insn code tables. Remove unnecessary casts.
987 Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
988 * expr.c (convert_move): Remove redundant check that
989 to_real==from_real. Use the conversion optabs instead
990 of long chains of tests of modes. Move partial-integer-mode
991 interconversion above all integer conversion. Do not recurse
992 on a value forced into a register in the original mode.
994 * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
995 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
996 * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
997 in new conversion optabs; do not reference the old libfunc
998 array entries. No need to include libfuncs.h.
1000 2003-10-06 Roger Sayle <roger@eyesopen.com>
1002 * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
1003 point comparison sequence with a REG_EQUAL note that describes
1004 the comparison's semantics.
1006 2003-10-06 Roger Sayle <roger@eyesopen.com>
1008 * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
1009 of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
1011 2003-10-06 Roger Sayle <roger@eyesopen.com>
1012 Zack Weinberg <zack@codesourcery.com>
1014 * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
1015 instruction by using LCT_CONST and then calling emit_libcall_block
1018 2003-10-06 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1020 PR optimization/11974
1021 * optabs.c (expand_unop): Promote libcall outmode according to
1024 2003-10-06 Zack Weinberg <zack@codesourcery.com>
1026 * real.h (REAL_MODE_FORMAT): New macro.
1027 * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
1028 * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
1029 * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
1030 * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
1031 * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
1032 directly to real_format_for_mode array, wherever possible.
1034 2003-10-06 Devang Patel <dpatel@apple.com>
1036 * dwarf2out.c (is_main_source): Remove variable.
1037 (dwarf2out_start_source_file): Do not check is_main_source.
1038 Do not reset is_main_source.
1039 (dwarf2out_init): Do not initialize is_main_source.
1041 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1043 * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
1044 (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
1045 introduced some multi-line prototypes.
1046 * fixinc/fixincl.x: Regenerate.
1048 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1050 * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
1051 * config/mips/mips.c (stack_operand): New predicate.
1052 * config/mips/mips.md: Use it for the destination of mips16 insns
1055 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1057 * config/mips/mips.md (*lowsi): Renamed from lowsi.
1058 (*lowdi): Likewise lowdi.
1059 (*lowsi_mips16, *lowdi_mips16): New patterns.
1060 * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
1061 mips16 CONSTANT_RELOC handling.
1062 (mips_delegitimize_address): Adjust for new sdata representation.
1064 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1066 * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
1067 skip any remaining register arguments.
1069 2003-10-06 Ulrich Weigand <uweigand@de.ibm.com>
1071 * reload.c (find_reloads_subreg_address): Use correct offset for
1072 paradoxical MEM subregs on big-endian targets.
1074 2003-10-06 Andrew Haley <aph@redhat.com>
1076 * tree.c (get_callee_fndecl): Call
1077 lang_hooks.lang_get_callee_fndecl.
1078 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
1079 (lhd_get_callee_fndecl): New.
1081 2003-10-06 Andrew Pinski <apinski@apple.com>
1083 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
1084 error in calculating the length of the string.
1085 (machopic_stub_name): Likewise.
1087 2003-10-06 Roger Sayle <roger@eyesopen.com>
1089 * optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
1090 describing the return value of the comparison libcall to the
1091 REG_RETVAL instruction of the emitted sequence.
1093 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1095 PR optimization/12215
1096 * cse.c (cse_set_around_loop): Emit the move at the beginning
1097 of the next basic block for trapping sets.
1099 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1101 PR optimization/11637
1102 * combine.c (adjust_for_new_dest): New function to adjust the
1103 notes and LOG_LINKS when the dest of an insn has changed.
1104 (try_combine): Use it when deleting the first insn of a two-insn
1105 parallel or splitting a two-load parallel.
1107 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1109 * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
1110 if TARGET_EXPLICIT_RELOCS.
1112 2003-10-06 Mark Mitchell <mark@codesourcery.com>
1115 * Makefile.in (info): Use double-colon rules.
1117 (generated-manpages): Likewise.
1118 * configure.in: Do not create lang.info, lang.dvi, or
1119 lang.generated-manpages hooks.
1120 * configure: Regenerated.
1121 * objc/Make-lang.in (objc.info): Remove.
1123 (objc.generated-manpages): Remove.
1124 * doc/sourcebuild.texi: Update description of info, dvi, and
1125 generated-manpages hooks.
1127 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1129 * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
1131 2003-10-05 Andrew Pinski <apinski@apple.com>
1133 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
1134 errors in memcpy destinations.
1135 (machopic_stub_name): Likewise.
1137 2003-10-05 Andrew Pinski <apinski@apple.com>
1139 * config/darwin.c (machopic_non_lazy_ptr_name):
1140 Change strcat to memcpy and add length together.
1141 (machopic_stub_name): Likewise.
1143 2003-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
1145 * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
1146 signal trampoline codes.
1148 2003-10-05 Chris Demetriou <cgd@broadcom.com>
1150 * config/mips/mips.md (*divsf3): Move description of
1151 SB-1 F2 erratum from here to...
1152 (divsf3): Here. Disable if TARGET_FIX_SB1 is set and
1153 flag_unsafe_math_optimizations is not.
1155 2003-10-05 Aldy Hernandez <aldyh@redhat.com>
1157 * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
1158 TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
1160 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1162 * c-pretty-print.c: Fix comment typos.
1163 * c-pretty-print.h: Likewise.
1164 * calls.c: Likewise.
1165 * cfgloopmanip.c: Likewise.
1166 * cgraphunit.c: Likewise.
1167 * cppfiles.c: Likewise.
1168 * final.c: Likewise.
1169 * function.c: Likewise.
1170 * gcov-io.h: Likewise.
1172 * genoutput.c: Likewise.
1174 * postreload.c: Likewise.
1175 * reg-stack.c: Likewise.
1176 * regmove.c: Likewise.
1177 * sched-int.h: Likewise.
1178 * sched-rgn.c: Likewise.
1179 * simplify-rtx.c: Likewise.
1180 * tree-inline.c: Likewise.
1181 * config/m68hc11/m68hc11.h: Likewise.
1182 * config/mmix/mmix.c: Likewise.
1183 * config/mn10300/mn10300.md: Likewise.
1184 * config/sh/sh.h: Likewise.
1186 2003-10-05 Richard Henderson <rth@redhat.com>
1188 * tree-inline.c (remap_type): New.
1189 (remap_decl): Use it. Remap DECL_SIZE*.
1190 (copy_body_r): Use it.
1191 (walk_tree): Walk TREE_TYPE too.
1192 (copy_tree_r): Don't walk subtrees of types.
1193 * tree.c (variably_modified_type_p): Restructure. Consider integer
1194 types with non-const bounds variably modified.
1196 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1198 * doc/invoke.texi: Fix typos.
1200 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1202 * fold-const.c: Follow spelling conventions.
1203 * function.c: Likewise.
1204 * config/c4x/c4x.h: Likewise.
1205 * config/c4x/c4x.md: Likewise.
1206 * config/frv/frv.md: Likewise.
1207 * config/rs6000/aix.h: Likewise.
1208 * config/rs6000/linux64.h: Likewise.
1209 * config/xtensa/xtensa.c: Likewise.
1211 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1213 * c-pretty-print.c: Fix comment formatting.
1214 * cfglayout.c: Likewise.
1215 * cfgloopanal.c: Likewise.
1216 * cppcharset.c: Likewise.
1217 * dbxout.c: Likewise.
1218 * ggc-page.c: Likewise.
1220 * target.h: Likewise.
1222 2003-10-04 Kelley Cook <kelleycook@wideopenwest.com>
1224 * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
1226 2003-10-04 Nathanael Nerode <neroden@gcc.gnu.org>
1228 * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
1229 Convert to ISO C90 function declarations and definitions.
1231 2003-10-04 Zack Weinberg <zack@codesourcery.com>
1234 (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
1235 (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
1236 (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
1237 (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
1238 (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
1239 (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
1240 (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
1241 (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
1242 (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
1243 (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
1244 (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
1245 (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
1246 (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
1247 (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
1248 (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
1249 (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
1251 * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
1252 (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
1253 (le_optab, unord_optab): New.
1255 * optabs.c (prepare_float_lib_cmp): Rewrite. Get the libfuncs
1256 from the code_to_optab table, not a giant switch; use
1257 swap_condition; do widening only if a comparison function that
1258 we can call exists in a wider mode, not if a cmp_optab insn or
1259 libfunc exists in a wider mode; call protect_from_queue
1260 exactly once on each operand.
1261 (init_optabs): Initialize the new optabs, not the deleted libfuncs.
1263 * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
1264 * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
1265 Set floating point comparison libfuncs using set_optab_libfunc
1266 on the appropriate optab.
1268 * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
1269 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
1270 selector conditionals.
1272 2003-10-04 Stephane Carrez <stcarrez@nerim.fr>
1274 * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
1275 identical to m68hc12 as far as libraries are concerned.
1277 2003-10-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1280 * c-typeck.c (convert_for_assignment): Issue an error for
1281 array to pointer assignment after default conversion.
1282 (digest_init): Likewise.
1284 2003-10-04 Fariborz Jahanian <fjahanian@apple.com>
1286 * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
1288 2003-10-03 Gerald Pfeifer <gerald@pfeifer.com>
1290 * doc/extend.texi (Function Attributes): Fix title of GNU C
1291 Preprocessor manual.
1292 (C++ Extensions): Fix reference to "Predefined Macros" in the
1293 GNU C Preprocessor manual.
1295 2003-10-04 Richard Earnshaw <reanrsha@arm.com>
1297 * doc/extend.texi: Document how GCC estimates and relies on the size
1300 2003-10-04 Richard Sandiford <rsandifo@redhat.com>
1302 * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
1303 arguments downward for big-endian o64.
1305 2003-10-03 Robert Bowdidge <bowdidge@apple.com>
1307 * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
1308 PCH generation, avoiding too-frequent flushes when writing to NFS
1311 2003-10-03 Ziemowit Laski <zlaski@apple.com>
1313 * objc/objc-act.c (lookup_category): Mark as 'inline'.
1315 2003-10-03 Alexander Malmberg <alexander@malmberg.org>
1316 Ziemowit Laski <zlaski@apple.com>
1318 * objc/objc-act.c (add_method_to_hash_list, lookup_category):
1320 (lookup_method_in_hash_lists): New parameter indicating whether
1321 we are messaging 'Class' or 'id'.
1322 (check_duplicates): Likewise; do not assume all methods will
1323 be either class or instance methods.
1324 (generate_category, finish_class): Use lookup_category().
1325 (add_method): Use add_method_to_hash_list(); insert instance
1326 methods of root classes into the global class method hash table.
1327 (add_category): Use lookup_category(); avoid constructing
1328 duplicate categories.
1329 (really_start_method): Add method to corresponding @interface,
1330 if not already there (and if the @interface exists).
1331 (finish_message_expr, finish_objc): Adjust calls to
1334 2003-10-03 Roger Sayle <roger@eyesopen.com>
1336 PR optimization/9325, PR java/6391
1337 * fold-const.c (fold_convert): For floating point to integer
1338 conversions, return the maximum/minimum representable integer
1339 value if the real constant overflows the destination type.
1340 * tree.c (real_value_from_int_cst): Allow the type to be NULL,
1341 meaning don't truncate the result to a floating point mode.
1342 Simplify the logic by calling real_from_integer directly.
1343 * simplify-rtx.c (simplify_unary_operation): Implement the
1344 same semantics for folding floating point to integer conversions
1347 2003-10-03 Chris Demetriou <cgd@broadcom.com>
1349 * config/mips/mips.c (mips_emit_prefetch): Restructure
1350 to avoid use of arrays, handle indexed prefetch.
1351 * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
1352 (ISA_HAS_PREFETCHX): New deffine.
1353 * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
1355 (prefetch_indexed_di, prefetch_indexed_si): New insns.
1357 2003-10-03 Jeff Sturm <jsturm@one-point.com>
1358 Roger Sayle <roger@eyesopen.com>
1360 PR optimization/12289
1361 * calls.c (emit_call_1): Pretend to have popped the arguments
1362 to noreturn and longjmp functions instead of ignoring them.
1363 (expand_call): Don't adjust stack_pointer_dela while
1364 inhibit_defer_pop is set.
1366 2003-10-03 Andreas Schwab <schwab@suse.de>
1369 * configure.in: Check for libunwind on the host only if building
1371 * configure: Regenerated.
1373 2003-10-03 Paolo Carlini <pcarlini@unitus.it>
1375 * unwind-pe.h (read_encoded_value_with_base): Constify u and
1376 its inizialization cast.
1378 2003-10-03 Richard Sandiford <rsandifo@redhat.com>
1381 * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
1383 2003-10-02 Mark Mitchell <mark@codesourcery.com>
1385 PR optimization/12180
1386 * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
1387 functions containing calls to __builtin_next_arg.
1389 2003-10-02 Chris Demetriou <cgd@broadcom.com>
1391 * config/mips/mips.c (mips_emit_prefetch): Use operand 3
1392 in instructions being output.
1393 * config/mips/mips.md (prefetch_si_address): Change third
1394 operand's constraint letter to 'I'.
1395 (prefetch_di_address): Likewise.
1396 (prefetch_si, prefetch_di): Set third operand to const0_rtx.
1398 2003-10-02 Zack Weinberg <zack@codesourcery.com>
1400 * system.h: Poison macros obsoleted by earlier patch.
1401 * config/cris/cris.c: C90-ify a function definition.
1403 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
1406 * combine.c (make_field_assignment): Check whether rtx's code
1407 is CONST_INT before using INTVAL.
1409 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
1411 * cgraph.c (cgraph_node): Use INSERT instead of 1 in
1412 htab_find_slot_with_hash.
1413 (cgraph_node_for_identifier): Use NO_INSERT.
1414 (cgraph_remove_node): Use NO_INSERT.
1415 (cgraph_varpool_node): Use INSERT.
1416 (cgraph_varpool_node_for_identifier): Use NO_INSERT.
1418 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
1420 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1422 * varasm.c (compare_constant): Fix thinko.
1424 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
1426 * config/frv/frv.c (frv_issue_rate): New function.
1427 (frv_pack_insns): Use it.
1428 (TARGET_SCHED_ISSUE_RATE): Define.
1430 2003-10-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
1432 * config/mcore/mcore.c: Convert to ISO C90 function declarations
1434 * config/mcore/mcore.h: Likewise.
1435 * config/mcore/mcore-protos.h: Likewise.
1437 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
1439 * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
1440 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
1442 2003-10-01 Per Bothner <pbothner@apple.com>
1444 * c-lex.c (src_line): Remove unneeded static variable.
1445 (cb_line_change): Set input_line directly, instead of src_line.
1446 (get_non_padding_token): We no longer need to compensate for the
1447 "horrible things" the C++ front-end does with the current line number,
1449 * cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
1450 callback even when popping the main file.
1451 * c-lex.c (fe_file_change): Handle a NULL new_map.
1452 * fix-header.c (cb_file_change): Likewise.
1453 * c-ppoutput.c (pp_file_change): Likewise.
1455 * cppinit.c (cpp_read_main_file): Split into two functions:
1456 Distribute _cpp_stack_file call over the two functions.
1457 (cpp_find_main_file): New function.
1458 Don't call _cpp_do_file_change even if working_directory flag set.
1459 (cpp_push_main_file): New function.
1460 * cppfiles.c (_cpp_find_failed): New helper function.
1461 (find_file): Made non-static and renamed to _cpp_find_file.
1462 (_cpp_stack_file): No longer needed. But note the following.
1463 (stack_file): Made non-static and renamed to _cpp_stack_file.
1464 * fix-header.c (cpp_read_main_file): Replace cpp_read_main_file
1465 call with calls to cpp_find_main_file and cpp_push_main_file.
1466 (search_path_head): If there is no current buffer, use main_file.
1467 * cpphash.h: Update function declarations.
1468 * cpplib.h: Update function declarations.
1470 * c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
1471 (c_common_parse_file): No longer need to call cpp_read_main_file
1472 when file_index > 0 (as in multi-file or server compiation).
1473 (finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME
1474 as this now happens before cpp_push_main_file.
1475 (push_command_line_include): When done with options, pass LC_LEAVE
1476 instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
1477 (fe_file_change): Handle NULL new_map, and simplify.
1478 * cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed
1479 08-28 change, since we're never called with a NULL buffer.
1480 (_cpp_lex_direct): Likewise.
1481 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
1482 Return false if buffer is NULL at end.
1484 * cpplex.c (_cpp_get_fresh_line): Return value now just depends on
1485 whether pfile->buffer is NULL after pop, ignoring return_at_eof.
1486 * cpphash.h (struct cpp_buffer): Remove unused return_at_eof field.
1487 * cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof,
1488 remove the unused return_at_eof parameter.
1489 * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
1490 Update callers of cpp_push_buffer.
1492 2003-10-01 Zack Weinberg <zack@codesourcery.com>
1494 * target.h (init_libfuncs): New hook.
1495 * target-def.h: Default TARGET_INIT_BUILTINS and
1496 TARGET_INIT_LIBFUNCS to hook_void_void. Add
1497 TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
1498 * builtins.c (default_init_builtins): Delete.
1499 * expr.h (default_init_builtins): Delete prototype.
1500 * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
1501 Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
1502 Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
1503 DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
1504 MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
1505 and UMODDI3_LIBCALL,
1507 * Makefile.in (optabs.o): Depends on target.h.
1508 * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
1509 * optabs.c: Include target.h.
1510 (prepare_float_lib_cmp): No need for #ifdef around use of
1511 FLOAT_LIB_COMPARE_RETURNS_BOOL.
1512 (set_optab_libfunc): New function.
1513 (init_optabs): Delete use of all *_LIBCALL defines.
1514 Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
1515 * optabs.h: Prototype set_optab_libfunc.
1517 * config.gcc: Remove all references to pa/long_double.h,
1518 ia64/hpux_longdouble.h, and gofast.h.
1519 (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
1520 to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
1522 * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
1523 * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
1524 * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
1525 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
1526 * config/sparc/sparc.c, config/vax/vax.c:
1527 Provide a definition for TARGET_INIT_LIBFUNCS. Where
1528 necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
1530 * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
1531 * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
1532 * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
1533 * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
1534 * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
1535 * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
1536 * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
1537 * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
1538 INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
1540 * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
1541 Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
1542 * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
1543 HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
1544 * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
1546 * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
1547 * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
1548 SUN_INTEGER_MULTIPLY_64 to 0.
1549 * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
1550 SUN_INTEGER_MULTIPLY_64 to 1.
1551 * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
1552 SUN_INTEGER_MULTIPLY_64 to 0.
1553 * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
1554 Define US_SOFTWARE_GOFAST.
1555 * config/vax/vax.h: Default TARGET_ELF to 0.
1556 * config/vax/elf.h: Redefine TARGET_ELF to 1.
1558 * config/gofast.h: Don't define any macros here. Provide one
1559 static function, gofast_maybe_init_libfuncs, which does what
1560 INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
1561 is already defined. Do not clear negation libfuncs. Do
1562 not mess with HFmode, XFmode, or TFmode libfuncs.
1564 * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
1566 2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
1569 * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
1571 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1573 * config/mips/xm-iris5.h: Remove, unnecessary.
1574 * config.build (mips-sgi-irix5*): Remove.
1575 (mips-sgi-irix6*o32): Likewise.
1576 * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
1577 (mips-sgi-irix5cross64): Likewise.
1578 (mips-sgi-irix5*): Likewise.
1579 * config.host (mips-sgi-irix5*): Remove.
1580 (mips-sgi-irix6*o32): Likewise.
1582 2003-10-01 Zack Weinberg <zack@codesourcery.com>
1584 * dbxout.c (dbxout_fptype_value): Delete.
1585 (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
1587 2003-10-01 Alexandre Oliva <aoliva@redhat.com>
1589 * output.h (compute_reloc_for_constant): Declare.
1590 * varasm.c (compute_reloc_for_constant): Extract from...
1591 (output_addressed_constants): ... here. Adjust all callers.
1593 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1595 * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
1596 * configure: Rebuilt.
1598 2003-10-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1600 * fold-const.c (make_range): When handling unsigned, don't reverse
1601 range if high bound is zero.
1603 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1605 * config/frv/frv.h (PREDICATE_CODES): Added
1606 condexec_si_media_operator, condexec_sf_add_operator and
1607 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
1608 and condexec_sf_unary_operator.
1610 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1612 * aclocal.m4: Add ultrix* to /dev/zero blacklist.
1613 * configure: Rebuilt.
1615 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1617 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
1619 * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
1621 2003-09-23 David S. Miller <davem@redhat.com>
1623 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
1625 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
1627 2003-10-01 Steven Bosscher <steven@gcc.gnu.org>
1629 * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
1630 C90 function declarations and definitions.
1632 2003-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
1634 * config.gcc (cris-*-linux*): Revert mistaken commit.
1636 2003-10-01 Eric Botcazou <ebotcazou@libertysurf.fr>
1638 PR optimization/11753
1639 * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
1640 the length in the non-V9 case.
1642 2003-09-30 Richard Henderson <rth@redhat.com>
1644 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
1645 DWARF_ALT_FRAME_RETURN_COLUMN.
1646 * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
1647 (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
1648 (uw_frame_state_for): Return end-of-stack for null return address.
1649 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
1651 * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
1652 (alpha_expand_prologue): Store a zero for it.
1653 (alpha_expand_epilogue): Don't reload it.
1654 * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
1655 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
1656 for the sigframe return address.
1658 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
1660 * sdbout.c: Convert to ISO C90 prototypes.
1661 * objc/objc-act.c: Likewise.
1663 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
1665 * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
1666 * config/i386/winnt.c: Likewise.
1667 * config/i386/cygming.h: Likewise.
1669 2003-09-30 Kazu Hirata <kazu@cs.umass.edu>
1671 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
1672 (A ^ B) - B for any B.
1674 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
1676 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
1677 powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
1679 2003-09-30 Richard Earnshaw <rearnsha@arm.com>
1681 * arm/ieee754-sf.S: Tidy formatting.
1683 2003-09-30 Nicolas Pitre <nico@cam.org>
1685 * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
1687 (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
1688 (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
1689 added better divisor alignment in the other case.
1690 (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
1691 (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
1692 macros above, add fast exits for divisor >= dividend, etc.
1694 2003-09-30 Nicolas Pitre <nico@cam.org>
1696 * arm/ieee754-df.S: Split compilation of fixunsdfsi from
1698 * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
1700 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
1702 * config.gcc: Default use_fixproto to 'no'.
1704 2003-09-30 Richard Sandiford <rsandifo@redhat.com>
1706 PR optimization/12345
1707 * config/mips/mips-protos.h (mips_restore_gp): Remove.
1708 (mips_gp_save_slot): Declare.
1709 * config/mips/mips.c (mips_restore_gp): Remove in favor of...
1710 (mips_gp_save_slot): ...this new function.
1711 * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
1712 and mips_output_move to generate the output template.
1713 (call_internal): Force splitting if TARGET_SPLIT_CALLS. Don't emit
1714 a gp load after a noreturn call. Load the gp using a move rather
1715 than an exception_receiver pattern.
1716 (call_value_internal, call_value_multiple_internal): Likewise.
1717 (call_split, call_value_split, call_value_multiple_split): Clobber $28.
1719 2003-09-30 Carlo Wood <carlo@alinoe.com>
1722 * cfglayout.c (insn_scope): Use prologue_locator and
1723 epilogue_locator; return the outer function scope for
1724 pro- and epilogue insns.
1726 2003-09-29 Zack Weinberg <zack@codesourcery.com>
1728 * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
1729 REAL_TYPEs based on the bitsize of the type's mode, not the
1732 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1734 * dwarf2out.c (default_eh_frame_section): Split into ...
1735 (named_section_eh_frame_section, collect2_eh_frame_section): ... new
1737 * output.h (named_section_eh_frame_section): Declare.
1738 (collect2_eh_frame_section): Likewise.
1740 2003-09-29 Zack Weinberg <zack@codesourcery.com>
1742 * real.c (real_sqrt): Use get_canonical_qnan directly.
1744 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
1746 * varasm.c (assemble_real): Use real_to_target directly,
1747 calculate the number of significant elements of the result
1748 array and write them out in a loop, instead of using a giant
1749 switch statement to pick the correct REAL_VALUE_TO_TARGET_*
1752 2003-09-29 Jan Hubicka <jh@suse.cz>
1755 * varasm.c (notice_global_symbol): Discard external symbols.
1757 PR optimization/12286
1758 * gcov-io.c (gcov_read_words): Fix memmove call.
1759 * profile.c (compute_branch_probabilities): Add extra sanity checks.
1761 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1763 * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
1766 * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
1767 wildcards which explicitly match micro versions.
1768 * fixinc/fixincl.x: Regenerate.
1770 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
1772 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
1773 (A ^ B) - B, where B is any power of 2 minus 1.
1775 2003-09-29 Jan Hubicka <jh@suse.cz>
1777 * libgcov.c (gcov_exit): Fix two pastos.
1779 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
1781 * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
1782 define_split immediately below to form define_insn_and_split.
1784 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
1786 * config/h8300/h8300.md (*tstsi_variable_bit): New.
1787 (*tstsi_variable_bit_qi): Likewise.
1789 2003-09-28 Phil Edwards <phil@codesourcery.com>
1791 * doc/cppopts.texi: Use 'dashMP' instead of '-MP' as a cross-
1794 2003-09-28 Richard Henderson <rth@redhat.com>
1796 * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
1797 file and line separately.
1799 2003-09-28 Ulrich Weigand <uweigand@de.ibm.com>
1801 * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
1802 "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
1803 "*subdi3_borrow_cconly"): New insns.
1804 ("*addsi3_sub", "*subsi3_sub"): Remove.
1805 ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
1806 ("*subsi3_cc"): Fix op_type attribute.
1808 2003-09-28 Richard Henderson <rth@redhat.com>
1810 * stmt.c (expand_asm_operands): Take a location_t, instead of
1811 individual file and line.
1812 * c-typeck.c (c_expand_asm_operands): Likewise.
1813 * tree.h (expand_asm_operands): Update decl.
1814 * c-common.h (c_expand_asm_operands): Likewise.
1815 * c-semantics (genrtl_asm_stmt): Update call.
1817 2003-09-28 Philip Blundell <philb@gnu.org>
1819 * config/arm/arm.c (legitimize_pic_address): Check
1820 SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
1821 (arm_assemble_integer): Likewise.
1823 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
1825 * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
1826 config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
1828 Convert to ISO C90 function declarations and definitions.
1830 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
1832 * config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
1833 Convert to ISO C90 function declarations and definitions.
1835 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
1837 * config/mips/mips.c (mips_constant_info): Add reloc field.
1838 (mips_classify_constant): Initialize it. Always set SYMBOL to the
1839 underlying symbol, not to an unspec.
1840 (mips_delegitimize_address, print_operand): Clean up accordingly.
1842 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
1844 * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
1845 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
1846 * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
1847 (mips_classify_constant): Use it.
1848 (mips_splittable_symbol_p): Add an offset argument.
1849 (mips_classify_address): Adjust call accordingly.
1850 (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
1851 than a relocation unspec. Update call to mips_splittable_symbol_p.
1852 Generalize the code that copes with symbols + invalid offsets.
1853 (print_operand): Allow '%R' to be applied to small data addresses.
1854 (mips_reloc_string): Remove RELOC_GPREL16.
1855 (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg. Return $gp
1856 for TARGET_EXPLICIT_RELOCS. Return null if we can't use gp-relative
1857 relocation operators.
1858 * config/mips/mips.md (RELOC_GPREL16): Remove. Shuffle other reloc
1859 constants accordingly.
1861 2003-09-27 Roger Sayle <roger@eyesopen.com>
1863 * toplev.c (flag_evaluation_order): New global variable.
1864 * flags.h (flag_evaluation_order): Prototype here.
1865 * expr.c (expand_operands): If we need to preserve observable
1866 evaluation order, protect exp1 from clobbering exp0's result.
1868 2003-09-28 Andreas Jaeger <aj@suse.de>
1870 * c-decl.c (finish_function): Convert definition to ISO C90.
1871 * ifcvt.c (mark_loop_exit_edges): Likewise.
1872 * ra-rewrite.c (emit_colors): Likewise.
1874 2003-09-27 Nathanael Nerode <neroden@gcc.gnu.org>
1876 * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
1877 * config.gcc (arm*-*-uclinux*): Disable fixproto.
1878 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
1879 powerpc-*-eabialtivec*): Disable fixproto.
1881 2003-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1883 PR optimization/12340
1884 * loop.h (struct induction): Document the new semantics
1885 of the 'same' field for bivs.
1886 * unroll.c (biv_total_increment): Don't count the same
1887 biv increment several times.
1888 (loop_iterations) [GENERAL_INDUCT]: Likewise.
1890 2003-09-27 Graham Stott <graham.stott@btinternet.com>
1892 * unroll.c (loop_interations)[GT]: Add missing break.
1894 2003-09-27 Kelley Cook <kcook@gcc.gnu.org>
1896 * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
1897 config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
1898 config/dbxelf.h, config/elfos.h, config/fp-bit.h,
1899 config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
1900 config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
1901 config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
1902 config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
1903 config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
1904 config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
1905 config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
1906 config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
1907 config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
1908 config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
1909 config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
1910 config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
1911 config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
1912 config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
1913 config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
1914 config/alpha/xm-vms.h, config/arc/arc-modes.def,
1915 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
1916 config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
1917 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
1918 config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
1919 config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
1920 config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
1921 config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
1922 config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
1923 config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
1924 config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
1925 config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
1926 config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
1927 config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
1928 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
1929 config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
1930 config/i960/i960-c.c, config/i960/i960-coff.h,
1931 config/i960/i960-modes.def, config/i960/i960-protos.h,
1932 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
1933 config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
1934 config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
1935 config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
1936 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
1937 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
1938 config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
1939 config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
1940 config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
1941 config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
1942 config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
1943 config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
1944 config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
1945 config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
1946 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
1947 config/mcore/mcore-protos.h, config/mcore/mcore.c,
1948 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
1949 config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
1950 config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
1951 config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
1952 config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
1953 config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
1954 config/mips/vr.h, config/mn10300/linux.h,
1955 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
1956 config/mn10300/mn10300.h, config/mn10300/mn10300.md,
1957 config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
1958 config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
1959 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
1960 config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
1961 config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
1962 config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
1963 config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
1964 config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
1965 config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
1966 config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
1967 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
1968 config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
1969 config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
1970 config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
1971 fixinc/fixinc.svr4: GNU CC -> GCC.
1973 2003-09-26 Loren James Rittle <ljrittle@acm.org>
1975 * objc/objc-act.c (tm_p.h): Tweak order.
1976 * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
1978 2003-09-26 Nathanael Nerode <neroden@gcc.gnu.org>
1980 * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
1981 Include t-slibgcc-elf-ver and t-linux in tmake_file.
1982 * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
1984 * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
1986 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
1987 sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
1989 * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
1991 2003-09-26 Loren James Rittle <ljrittle@acm.org>
1993 * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
1994 * objc/objc-act.c (tm_p.h): Include.
1996 2003-09-26 Per Bothner <pbothner@apple.com>
1998 * dbxout.c (dbxout_typedefs): Output typedefs in forward order.
1999 No longer any need to reverse by recursion.
2001 2003-09-26 Roger Sayle <roger@eyesopen.com>
2002 Richard Henderson <rth@redhat.com>
2004 PR optimization/11741
2005 * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
2006 appropriate set to match that in hash_scan_insn. Fall back to
2007 the original copy method, if we can't validate changing insn.
2008 (pre_delete): Only delete instructions that have a single_set,
2009 instead of aborting when we encounter an PARALLEL insn with more
2012 2003-09-26 Andreas Krebbel <krebbel1@de.ibm.com>
2014 * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
2015 ("builtin_longjmp"): Insn deleted.
2016 ("save_stack_nonlocal"): Save literal pool base pointer behind
2017 backchain and stack pointer.
2018 ("restore_stack_nonlocal"): Restore literal pool base pointer.
2019 * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
2020 the stack save area for the nonlocal goto case.
2022 2003-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2025 * pa.c (output_bvb): Fix typo.
2027 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
2029 * expmed.c (store_bit_field): Don't search for an integer mode
2030 unless we need the result.
2032 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
2034 * expr.c (emit_move_insn_1): If there is no move pattern for the
2035 original mode, try using a pattern for the corresponding integer mode.
2037 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
2040 * combine.c (if_then_else_cond): Tighten mode check.
2042 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2044 * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
2045 'struct _cpp_strbuf'.
2047 * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2048 config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
2049 config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
2050 config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
2051 config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
2052 config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
2053 config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
2054 config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
2055 config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
2056 "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
2057 * config/i386/i386-aout.h, config/i386/i386-coff.h,
2058 config/i386/i386-interix.h, config/i386/i386-interix3.h,
2059 config/i386/i386-modes.def, config/i386/i386-protos.h,
2060 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
2061 config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
2062 config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
2063 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
2064 config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
2065 "GNU compiler" -> GCC.
2066 * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
2067 config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
2068 config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
2069 config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
2070 config/i386/freebsd-aout.h, config/i386/freebsd.h,
2071 config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
2073 2003-09-25 Kelley Cook <kelleycook@wideopenwest.com>
2075 * cgraph.c (dump_cgraph): Don't output newline before dump. Add in
2076 "local" to the callgraph dump. Output "after inlining" earlier.
2077 * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
2078 callgraph dumps. Correct misspellings.
2079 (cgraph_decide_inlining): Output number of insns before inlining.
2080 Output the calling function into which a function is inlined.
2081 (cgraph_decide_small_functions): Format dump file like always_inline.
2083 2003-09-25 Loren James Rittle <ljrittle@acm.org>
2085 * config/i386/i386.h (ix86_return_in_memory): Add prototype.
2087 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
2089 * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
2090 FPR slots in the save area.
2091 (s390_emit_epilogue): Likewise.
2093 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
2095 * cgraph.h (cgraph_remove_edge): Declare.
2096 * cgraph.c (cgraph_remove_edge): Make extern.
2097 * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
2098 instead of cgraph_remove_call.
2100 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
2102 * objc/objc-act.c (gen_declaration_1): Fix printf format.
2104 2003-09-25 Richard Earnshaw <rearnsha@arm.com>
2106 * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
2109 2003-09-25 Ziemowit Laski <zlaski@apple.com>
2111 * config/darwin-protos.h (objc_image_info_section):
2114 2003-09-25 Ziemowit Laski <zlaski@apple.com>
2116 * Makefile.in (stub-objc.o): Depend on $(GGC_H).
2118 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2120 * config.gcc: Get rid of more gratuitious 'x'es. Actually allow
2121 tsc701 as a --with-cpu, --with-tune setting for sparc.
2123 2003-09-25 Ziemowit Laski <zlaski@apple.com>
2125 * c-parse.in (objc_try_stmt): Do not specify a %type.
2127 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2129 * config.gcc: New 'widely ported system' clause for rtems.
2130 Set thread file there, not in individual clauses.
2132 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
2135 * config/mips/mips.c (mips_va_arg): Handle arguments that must be
2136 passed on the stack.
2138 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2140 * config.gcc (widely ported systems section): Mostly alphabetize
2141 by system. Comment the case where we can't.
2142 * config.gcc (widely ported systems section): Reindent and clean up.
2144 * config.gcc: Remove some unnecessary uses of 'x' in case statements.
2145 Actually allow ep9312 as an arm --with-arch setting.
2147 * config.gcc (*-hpux11): Disable fixproto.
2149 2003-09-24 Phil Edwards <phil@codesourcery.com>
2152 * gcc/cppfiles.c (pch_open_file): Return based on combined
2153 result of all files.
2154 (validate_pch): Return validate flag for current file.
2156 2003-09-24 Roger Sayle <roger@eyesopen.com>
2159 * fold-const.c (tree_swap_operands_p): Only reorder operands when
2160 one of the operands is constant.
2162 2003-09-24 Ziemowit Laski <zlaski@apple.com>
2164 MERGE OF objc-improvements-branch into MAINLINE:
2165 * Makefile.in (C_OBJS): Add in stub-objc.o.
2166 (c-parse.y): Change sed demarcations to begin with '@@'.
2167 (stub-objc.o): New rule.
2168 * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
2169 flag_replace_objc_classes): New flags.
2170 * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
2171 RID_AT_SYNCHRONIZED): New keywords.
2172 (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
2173 flag_replace_objc_classes): New flags.
2174 (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
2175 objc_comptypes, objc_message_selector, lookup_objc_ivar,
2176 get_current_scope, objc_mark_locals_volatile): New prototypes,
2177 some moved from c-tree.h.
2178 * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
2179 (finish_decl): Adjust where objc_check_decl() gets called.
2180 * c-lang.c (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
2181 objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
2182 * c-opts.c (c_common_handle_option): Add handling for flag_nil_receivers,
2183 flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
2184 * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
2185 '@@end_ifc', respectively.
2186 (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
2187 (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
2188 objc_finally_block): New rules.
2189 (component_decl_list2): Clean up semantic action for @defs construct.
2190 (component_decl, c99_block_start): Remove call to add_objc_decls().
2191 (poplevel): Add call to objc_clear_super_receiver().
2192 (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
2194 (classdef, methodprotolist): Clean up/simplify.
2195 (methodprotolist2): Eliminate.
2196 (methodproto): Call add_method() instead of add_class_method() and
2197 add_instance_method().
2198 (receiver): Add TYPENAME production.
2199 (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
2200 (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
2202 * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
2203 objc_comptypes, objc_message_selector)
2204 * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
2205 struct and pointer types.
2206 (build_c_cast): Do not discard ObjC protocol qualifiers.
2207 (convert_for_assignment): Cache result of comp_target_types() instead
2208 of calling it more than once.
2209 * c.opt (fnext-runtime): Update description string.
2210 (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
2211 New ObjC/ObjC++-specific flags.
2212 * function.h (GCC_FUNCTION_H): Header guard.
2213 * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
2214 * stub-objc.c: New file, to be used to satisfy references to ObjC
2215 functions by the C and C++ front-ends.
2216 * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
2217 * config/darwin.h (FUNCTION): Add in_objc_image_info.
2218 (SECTION_FUNCTION): Add objc_image_info_section.
2219 * doc/invoke.texi: Link to GCC web site for Objective-C information.
2220 (-fconstant-string-class): Update documentation.
2221 (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
2222 -fzero-link): New documentation.
2223 * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
2225 * objc/lang-specs.h (@objective-c-header): Fix -E spec.
2226 * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
2227 throughout; provide casts for return values from memory allocation
2228 functions (xmalloc, alloca, ggc_alloc, etc.).
2229 (OBJC_VOID_AT_END): New macro.
2230 (rtl.h): Do not #include any more.
2231 (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
2232 (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
2233 TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
2234 TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
2235 TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
2236 (struct val_stack, catch_count_stack, exc_binding_stack, val_stack_push,
2237 val_stack_pop): New.
2238 (objc_check_decl): Fix precondition for error message, along with
2240 (lookup_and_install_protocols): Remove nonexistent protocols from
2241 protocol list instead of returning error_mark_node.
2242 (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
2243 (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
2244 (synth_module_prologue): General clean-up; construct NeXT-specific
2245 runtime API prototypes if needed.
2246 (build_string_class_template): Remove.
2247 (check_string_class_template, string_layout_checked): New.
2248 (build_objc_string_object): Generalize to work with
2249 -fconstant-string-class.
2250 (build_objc_symtab_template): Fix layout for the NeXT runtime.
2251 (build_metadata_decl): New.
2252 (forward_declare_categories): Call build_metadata_decl() instead of
2253 create_builtin_decl() et al.
2254 (build_module_descriptor): Use OBJC_VOID_AT_END instead of
2256 (build_selector_reference_decl, build_class_reference_decl,
2257 build_objc_string_decl): Do not set TREE_READONLY.
2258 (get_proto_encoding): Do not call hack_method_prototype().
2259 (get_class_reference): Add failure mode for invalid class names;
2260 support -fzero-link; defer if in an ObjC++ template declaration.
2261 (objc_declare_alias, objc_declare_class): Fix up duplicate name
2262 lookup; check for global scope if in ObjC++.
2263 (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
2264 RECORD_TYPE, IDENTIFIER_NODE, etc.)
2265 (objc_is_id): Removed.
2266 (objc_is_object_ptr): New function.
2267 (get_class_ivars_from_name): New function, used for @defs construct.
2268 (get_class_ivars): Add option to return raw ivars; create a
2269 ClASS_OWN_IVARS list for each class as needed.
2270 (objc_enter_block, objc_exit_block, objc_declare_variable,
2271 objc_build_throw_stmt, val_stack_push, val_stack_pop,
2272 objc_build_try_enter_fragment, objc_build_extract_expr,
2273 objc_build_try_exit_fragment, objc_build_extract_fragment,
2274 objc_build_try_prologue, objc_build_try_epilogue,
2275 objc_build_catch_stmt, objc_build_catch_epilogue,
2276 objc_build_finally_prologue, objc_build_finally_epilogue,
2277 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
2278 objc_build_synchronized_epilogue, build_objc_exception_stuff):
2280 (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
2282 (build_private_template): Fix up calls to get_class_ivars().
2283 (offset_is_register, forwarding_offset): Remove.
2284 (objc_method_parm_type, objc_encoded_type_size): New functions.
2285 (encode_method_prototype): Simplify to no longer depend on
2286 back-end information.
2287 (build_tmp_function_decl_xxx, build_tmp_function_decl,
2288 hack_method_prototype): Removed.
2289 (generate_protocol_references): Remove calls to
2290 build_tmp_function_decl().
2291 (generate_protocols): Adjust calls to encode_method_prototype().
2292 (build_class_template): Generate sel_id' and 'gc_object_type' fields
2293 for the NeXT runtime.
2294 (synth_forward_declarations): Call build_metadata_decl().
2295 (check_ivars): Check that the number of ivars matches also.
2296 (build_super_template): Modify super_type directly; disable debugging
2297 output while generating decl.
2298 (build_ivar_list_initializer): Skip list elements that are not
2300 (ivar_list_length): New function.
2301 (generate_ivar_lists): Call ivar_list_length() instead of list_length()
2302 and encode_method_prototype() instead of encode_method_def().
2303 (build_shared_structure_initializer): Generate 'sel_id' field for
2305 (generate_category): Do not set TREE_USED.
2306 (build_keyword_selector): Ditto; transform into a function argument
2308 (get_arg_type_list): If there are no user-specified arguments, use
2309 '...'; use OBJC_VOID_AT_END.
2310 (check_duplicates): Add a parameter indicating whether methods or
2311 selectors are being checked.
2312 (receiver_is_class_object): Add parameters indicating whether
2313 receiver is 'self' or 'super'; robustify.
2314 (build_message_expr): Defer call to finish_message_expr() if
2315 inside an ObjC++ template.
2316 (lookup_method_in_hash_lists): New function.
2317 (finish_message_expr): Complete rewrite/fix.
2318 (build_objc_method_call): Ditto; factor out commonalities between
2319 the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
2320 messenger variants on the NeXT.
2321 (lookup_instance_method_static, lookup_class_method_static):
2322 Fold into a single lookup_method_static() function with an
2323 additional parameter.
2324 (add_class_method, add_instance_method): Fold into a single
2325 add_method() function with an additional parameter.
2326 (add_category): Make duplicate categories a hard error in ObjC++.
2327 (add_instance_variable): Properly handle unnamed ivars, arrays of
2328 zero or no size and bitfields. In ObjC++, check for nontrivial
2329 C++ class instances.
2330 (is_public): Allow C functions to access non-@public ivars, with
2332 (start_class): Move common initializations to
2333 synth_module_prologue(); check for global scope if in ObjC++.
2334 (continue_class): Fix calls to finish_struct().
2335 (objc_declare_protocols, start_protocol): Check for global scope
2337 (encode_pointer): Encode 'BOOL *' specially on the NeXT.
2338 (encode_aggregate_within): Rewrite to properly distinguish
2339 struct tags from typedefs in both ObjC and ObjC++.
2340 (encode_bitfield, encode_complete_bitfield): Remove.
2341 (encode_next_bitfield, encode_gnu_bitfield): New functions.
2342 (encode_field_decl): Call encode_next_bitfield() or
2343 encode_gnu_bitfield() as needed.
2344 (synth_self_and_ucmd_args): New function.
2345 (start_method_def): Use it.
2346 (objc_types_are_equivalent): New function.
2347 (comp_proto_with_proto): Use it instead of comptypes(), since
2349 (really_start_method): Use lookup_method_static() instead of
2350 lookup_class_method_static() and lookup_instance_method_static();
2351 Emit 'extern "C"' if in ObjC++ mode.
2352 (add_objc_decls): Removed.
2353 (UOBJC_SUPER_scope): New variable.
2354 (get_super_receiver): Move construction of 'super' from
2355 add_objc_decls(); remove dependency on struct objc_class.
2356 (encode_method_def): Removed; encode_method_prototype() is
2358 (objc_clear_super_receiver): New function.
2359 (objc_expand_function_end): Do not do anything for ordinary
2361 (finish_method_def): Mark ObjC methods as un-inlinable.
2362 (gen_declaration_1): Emit widths of bitfields.
2363 (finish_objc): Call generate_objc_image_info() if needed;
2364 use check_duplicates() when checking for selector duplicates.
2365 (generate_objc_image_info): New function.
2366 * objc/objc-act.h (add_instance_method, add_class_method,
2367 get_class_ivars): Remove prototypes.
2368 (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
2369 objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
2370 objc_build_catch_stmt, objc_build_catch_epilogue,
2371 objc_build_finally_prologue, objc_build_finally_epilogue,
2372 add_method, get_class_ivars_from_name): New prototypes.
2373 (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
2374 (TYPE_PROTOCOL_LIST): Robustify to distinguish from
2375 TRANSLATION_UNIT_DECLs.
2376 (OBJC_TYPE_NAME): New.
2377 (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
2379 (IS_SUPER): Robustify.
2380 (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
2381 umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
2382 objc_exception_try_enter_decl, objc_exception_try_exit_decl,
2383 objc_exception_match_decl, objc_exception_throw_decl,
2384 objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
2385 objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
2386 objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
2387 objc_catch_type): New ObjC/ObjC++ roots.
2388 * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
2389 ObjC/ObjC++ tree node codes.
2391 2003-09-24 Alexandre Oliva <aoliva@redhat.com>
2393 * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
2394 code path that calls a handler.
2396 2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
2398 * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
2401 * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
2402 the section giving $with_cpu defaults by target.
2404 * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
2405 arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
2406 rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
2407 rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
2408 rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
2409 i[34567]86-pc-msdosdjgpp*): Disable fixproto.
2411 2003-09-24 David Edelsohn <edelsohn@gnu.org>
2413 * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
2414 together. Protect load string instruction with TARGET_STRING.
2415 (movti_string): Collapse case 1 and 2 together.
2417 2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
2419 * c-common.c (c_common_type_for_mode): Check for VOIDmode.
2421 2003-09-24 Richard Earnshaw <rearnsha@arm.com>
2423 * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
2426 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
2428 * config.gcc: Move use_fixproto=no from generic vxworks clause to
2431 * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
2432 (accidentally missed in last pass).
2434 2003-09-23 Andrew Pinski <apinski@apple.com>
2437 * configure: Regenerate.
2439 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
2441 * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
2442 missed in last pass).
2444 2003-09-23 Alexandre Oliva <aoliva@redhat.com>
2446 * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
2449 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
2451 * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
2453 * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
2454 powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
2455 powerpcle-*-eabi*): Disable fixproto.
2457 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
2458 specific FreeBSD clauses.
2459 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
2460 specific NetBSD clauses.
2461 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
2462 to specific OpenBSD clauses.
2464 2003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2466 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
2467 without adding a frame note.
2468 * pa.md (allocate_stack): Save pic register in new frame marker when
2469 generating pic code.
2471 2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
2473 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
2474 cgraph_expand_functions.
2476 2003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2478 * Makefile.in (gnucompare*): Merge into ...
2479 (slowcompare*): ... here.
2480 (fastcompare*): New targets.
2481 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
2482 other "fast" cmp programs.
2483 * configure: Regenerate.
2485 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2487 * targhooks.c: Include output.h.
2488 * Makefile.in (targhooks.o): Add output.h to dependency list.
2490 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2492 * config.host: Removed superfluous newline.
2494 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
2496 * config.gcc: Use ${target}, not $machine.
2497 * configure.in: Don't set $machine.
2498 * configure: Regenerate.
2500 2003-09-23 Geoffrey Keating <geoffk@apple.com>
2502 * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
2504 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
2505 pass zero-size arrays by reference.
2506 (rs6000_va_arg): Likewise.
2508 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
2510 * config.gcc: Set use_fixproto=no in each specific *-gnu*
2511 configuration, rather than the generic one.
2513 2003-09-23 Richard Henderson <rth@redhat.com>
2515 * tree-inline.c (remap_save_expr): Map new save_expr to identity
2516 rather than to error_mark_node.
2518 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2520 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
2522 * configure: Regenerate.
2523 * config.in: Likewise.
2524 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
2525 HAVE_GAS_SHF_MERGE value.
2526 * varasm.c (mergeable_string_section): Likewise.
2527 (mergeable_constant_section): Likewise.
2529 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2531 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
2534 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2536 * target.h (struct gcc_target): New member external_libcall.
2537 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
2538 (TARGET_ASM_OUT): Use it.
2539 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
2540 * targhooks.c: Convert to ISO C 90.
2541 (default_external_libcall): New function.
2542 * targhooks.h (default_external_libcall): Declare.
2543 * varasm.c (assemble_external_libcall): Use
2544 targetm.asm_out.external_libcall instead of
2545 ASM_OUTPUT_EXTERNAL_LIBCALL.
2546 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
2547 (mips_output_external_libcall): Declare.
2548 * config/mips/mips.c (mips_output_external_libcall): Change
2550 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
2551 Only operate for O32 ABI.
2552 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
2553 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
2554 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
2555 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
2557 2003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
2559 * config.gcc: Do per-target disabling of fixproto here in clauses,
2560 not in t- fragments.
2561 * configure.in: Adjust to set STMP_FIXPROTO correctly.
2562 * configure: Regenerate.
2563 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
2564 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
2565 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
2566 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
2567 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
2568 t-interix, t-linux-aout: Delete files consisting only of
2569 setting of STMP_FIXPROTO.
2571 * config.host: Allow unknown hosts (not targets). Allow
2572 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
2573 empty clauses. Remove useless obsolete-configuration clause.
2574 Prune unsupported configuration list. Collapse identical
2575 clauses for closely related systems. Rewrite comment for
2576 unsupported hosts list. Reorganize a little.
2578 2003-09-22 Richard Henderson <rth@redhat.com>
2580 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
2583 2003-09-22 David Edelsohn <edelsohn@gnu.org>
2584 Hartmut Penner <hpenner@de.ibm.com>
2585 Segher Boessenkool <boessen@de.ibm.com>
2587 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
2588 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
2589 (rs6000_split_altivec_in_gprs): Rename to ...
2590 (rs6000_split_multireg_move): Add support for update addressing.
2591 * config/rs6000/rs6000-protos.h: Same.
2592 * config/rs6000/altivec.md: Same.
2593 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
2595 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
2596 (movti_power): Use new splitter for multiple GPRs.
2597 (movti_string): Same.
2598 (movti_ppc64): Same.
2600 2003-09-22 Bob Wilson <bob.wilson@acm.org>
2602 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
2603 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
2605 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
2607 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
2608 (andsi3): Set attr cc to set_zn when using shifts or adds.
2610 2003-09-22 Bernardo Innocenti <bernie@develer.com>
2612 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
2614 2003-09-22 Bernardo Innocenti <bernie@develer.com>
2616 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
2617 Resurrect -mrtd option.
2619 2003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
2622 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
2623 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
2625 2003-09-22 Olivier Hainque <hainque@act-europe.fr>
2628 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
2629 after potential deletion of trapping insn. Avoids later ICE
2630 from call to fixup_abnormal_edges.
2631 (convert_regs_2): Stack the current block successors before
2632 processing this block, that is, before the potential deletion of
2633 dead edges by convert_regs_1, because these edges have been used
2634 to initialize the predecessors count.
2636 2003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2638 * real.c: Fix several nits in the head comment.
2640 2003-09-21 Richard Henderson <rth@redhat.com>
2642 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
2643 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
2644 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
2645 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
2646 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
2648 2003-09-21 Richard Henderson <rth@redhat.com>
2650 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
2651 (TREE_FILENAME, TREE_LINENO): Likewise.
2652 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
2653 (TREE_LOCUS_SET_P): New.
2654 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
2655 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
2656 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
2657 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
2658 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
2660 2003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
2662 * config/vax/vax-protos.h: Convert to ISO C90.
2663 * config/vax/vax.c: Convert to ISO C90.
2665 2003-09-21 Graham Stott <grahams@btinternet.com>
2668 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
2670 2003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
2673 * reorg.c (stop_search_p): Return 1 for insns that can
2676 2003-09-20 Richard Henderson <rth@redhat.com>
2678 * c-format.c (gcc_diag_char_table): Add %J.
2679 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
2680 (check_format_types): Fix wanted_type name lookup.
2681 (init_dynamic_diag_info): Setup %J.
2682 * diagnostic.c (text_specifies_location): Implement %J.
2683 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
2684 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
2685 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
2686 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
2687 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
2689 * tree-inline.c: Include intl.h
2690 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
2691 * Makefile.in (tree-inline.o): Update.
2693 2003-09-20 Roger Sayle <roger@eyesopen.com>
2695 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
2696 transformation of a>=0 into (unsigned)a<0x80000000.
2698 2003-09-20 Andrew Pinski <apinski@apple.com>
2700 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
2702 2003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
2704 * Makefile.in: Don't set (unused) DLLTOOL.
2706 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
2707 Remove obsolete references to ENQUIRE.
2709 2003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
2711 * configure.in: Remove --with-elf, which doesn't work.
2712 * configure: Regenerate.
2713 * config.gcc: Remove references to $elf, which does nothing.
2715 * config/i386/xm-vsta.h: Remove xm-file believed useless.
2716 * config.build (i386-vsta): Remove reference to it.
2717 * config.host (i386-vsta): Remove reference to it.
2719 2003-09-19 Phil Edwards <phil@codesourcery.com>
2721 * doc/install.texi: Document the multiple testsuite options.
2723 2003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
2725 * doc/install.texi (Specific): Add the specific versions of GCC
2726 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
2727 version 3 and older was discontinued.
2729 2003-09-19 Joel Sherrill <joel@oarcorp.com>
2731 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
2734 2003-09-19 Bernardo Innocenti <bernie@develer.com>
2736 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
2737 for -m68030, -m68020-60 and -m68020-40.
2738 * config/m68k/m68k.h (TARGET_68030): New target flag.
2739 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
2740 TARGET_REGPARM): Remove.
2741 * config/m68k/m68k.h: Regroup and renumber target flags.
2742 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
2743 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
2744 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
2745 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
2746 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
2748 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2750 * config/m68k/t-rtems (m68k-*-rtems*): New.
2751 * config.gcc: Use config/m68k/t-rtems.
2753 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2755 * config/mips/t-rtems: New.
2756 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
2758 2003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
2760 * cgraph.c: Fix typo in debugging output.
2762 2003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
2763 Eric Botcazou <ebotcazou@libertysurf.fr>
2766 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
2768 2003-09-18 Mike Stump <mrs@apple.com>
2770 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
2771 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
2772 cb_ident, cb_def_pragma): Use fileline typedef.
2773 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
2775 2003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
2777 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
2778 total parm size if a parm has incomplete type.
2779 (gen_fastcall_suffix): Likewise.
2781 2003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2783 * except.c (output_function_exception_table): Adjust last change
2784 to handle TYPE of INTEGER_CST.
2786 2003-09-18 Mark Mitchell <mark@codesourcery.com>
2789 * builtins.c (expand_builtin_apply): Use convert_memory_address
2790 before returning the value.
2792 * alias.c (find_base_value): Simplify use of
2793 convert_memory_address.
2794 (find_base_term): Likewise.
2795 * builtins.c (expand_builtin_stejmp_setup): Likewise.
2796 (expand_builtin_longjmp): Likewise.
2797 (expand_builtin_prefetch): Likewise.
2798 (get_memory_rtx): Likewise.
2799 (expand_builtin_return): Likewise.
2800 (expand_builtin_memcpy): Likewise.
2801 (expand_builtin_strncpy): Likewise.
2802 (expand_builtin_memset): Likewise.
2803 (expand_builtin_va_arg): Likewise.
2804 (expand_builtin_va_copy): Likewise.
2805 (expand_builtin_alloca): Likewise.
2806 * calls.c (expand_call): Likewise.
2807 * except.c (expand_builtin_extract_return_addr): Likewise.
2808 (expand_builtin_eh_return): Likewise.
2809 * explow.c (convert_memory_address): Define even when
2810 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
2811 is already in the right mode.
2812 * explow.c (memory_address): Simplify use of convert_memory_address.
2813 (probe_stack_range): Likewise.
2814 * expmed.c (make_tree): Likewise.
2815 * expr.c (emit_block_move_in_libcall): Likewise.
2816 (expand_assignment): Likewise.
2817 (expand_expr): Likewise.
2818 * function.c (assign_parms): Likewise.
2819 (expand_function_end): Likewise.
2820 * integrate.c (copy_rtx_and_substitute): Likewise.
2821 * stmt.c (expand_computed_goto): Likewise.
2823 2003-09-18 Roger Sayle <roger@eyesopen.com>
2825 * simplify-rtx.c (simplify_unary_operation): Only transform
2826 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
2827 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
2829 2003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2832 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
2834 2003-09-18 Roger Sayle <roger@eyesopen.com>
2836 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
2837 PARITY_EXPR): Delete unused tree codes.
2838 * c-common.c (c_common_truthvalue_conversion): Delete references
2839 to FFS_EXPR and POPCOUNT_EXPR.
2840 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
2841 (pp_c_expression): Likewise.
2842 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
2843 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
2844 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
2845 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
2846 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
2847 and long long variants.
2849 2003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
2851 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
2852 * c-pretty-print.c: Fix formatting.
2853 (pp_c_integer_constant): Append type annotation to literals. Tidy.
2854 (pp_c_type_specifier): Tidy.
2855 (pp_c_compound_literal): New function.
2856 (pp_c_initializer): Simplify..
2857 (pp_c_initializer_list): Likewise.
2858 (pp_c_brace_enclosed_initializer_list): New function.
2859 (pp_c_postfix_expression): Simplify.
2861 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
2863 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
2864 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
2866 2003-09-17 Richard Henderson <rth@redhat.com>
2868 * tree-optimize.c (tree_rest_of_compilation): Save and restore
2871 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
2873 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
2875 2003-09-17 Richard Henderson <rth@redhat.com>
2877 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
2879 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2881 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
2882 * configure: Regenerate.
2884 2003-09-17 Mark Mitchell <mark@codesourcery.com>
2887 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
2888 * langhooks-def.h (lhd_return_null_tree_v): New function.
2889 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
2890 (LANG_HOOKS_DECLS): Add it to the intializer.
2891 * langhooks.c (lhd_return_null_tree_v): New function.
2892 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
2894 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
2896 * configure.in: Quote gcc_config_arguments for configargs.h.
2897 * configure: Regenerated.
2898 * gccbug.in: Don't shell-expand gcc_config_arguments.
2900 2003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
2903 * c-pretty-print.c (pp_c_floating_constant): Append
2904 type-annotation to floating constants.
2906 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2908 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
2910 Use it for _MIPS_SIM.
2911 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
2913 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
2915 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
2917 Fixes PR target/10190.
2919 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
2921 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
2922 to shared libraries.
2924 2003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2926 PR optimization/11646
2927 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
2928 EDGE_ABNORMAL flag for EH edges.
2929 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
2930 if dead edges were purged.
2932 2003-09-16 Bernardo Innocenti <bernie@develer.com>
2934 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
2935 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
2936 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
2937 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
2939 2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
2941 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
2942 returned by tablejump_p.
2944 2003-09-16 Joel Brobecker <brobecker@gnat.com>
2946 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
2948 2003-09-16 Roger Sayle <roger@eyesopen.com>
2951 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
2952 argument to be VOIDmode, taking the mode of the comparison from
2953 the operands. Only call simplify_relational_operation if we
2954 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
2955 if comparison has a floating point result. Ensure that the
2956 result is always of the specified mode.
2957 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
2958 (simplify_unary_operation): Ensure the correct mode and cmp_mode
2959 are always passed to simplify_gen_relational. Simplify NOT of
2960 comparison operator in any mode, not just BImode.
2961 (simplify_ternary_operation): Correct tests on the return value
2962 of simplify_relational_operation to use const_true_rtx, not
2963 const1_rtx. Abort if it ever returns a non-constant result.
2965 * cfgloopanal.c (count_strange_loop_iterations): Use the function
2966 simplify_relational_operation, not simplify_gen_relational, if
2967 we're only interested in constant comparisons and will ignore
2968 non-constant results.
2970 2003-09-16 Roger Sayle <roger@eyesopen.com>
2972 * fold-const.c (tree_swap_operands_p): New function to determine
2973 the prefered ordering of operands.
2974 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
2975 operands to commutative, comparison or ternary operators. Replace
2976 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
2977 transformation of A ? B : C into !A ? C : B.
2979 2003-09-16 Jakub Jelinek <jakub@redhat.com>
2981 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2982 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2983 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2984 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2985 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2986 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2987 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2988 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2990 2003-09-16 Jason Merrill <jason@redhat.com>
2991 Jakub Jelinek <jakub@redhat.com>
2993 * c-common.c (handle_warn_unused_result_attribute): New function.
2994 (c_common_attribute_table): Add warn_unused_result.
2995 (c_expand_expr): Issue warning when result of inlined function
2996 with warn_unused_result attribute is ignored.
2997 * calls.c (expand_call): Issue warning when result of function
2998 with warn_unused_result attribute is ignored.
2999 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
3000 * expr.c (expr_wfl_stack): Define.
3001 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
3002 pass const0_rtx as target. Chain locations into expr_wfl_stack.
3003 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
3004 bit if inlined function has warn_unused_result attribute.
3005 * input.h (expr_wfl_stack): Declare.
3006 * doc/extend.texi: Document warn_unused_result attribute.
3008 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3010 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
3012 2003-09-15 Bob Wilson <bob.wilson@acm.org>
3014 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
3016 (call_insn_operand): For PIC, don't allow a direct call to a
3017 function in a different section than the current one.
3019 2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3021 * doc/invoke.texi (Warning Options): Add missing hyphen before
3022 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
3023 Move "-Wold-style-definition" to the C-only section.
3024 Fix the ordering of the warning options.
3026 2003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3027 Jeff Law <law@redhat.com>
3029 * gcse.c (remove_reachable_equiv_notes): New.
3030 replace_store_insn): Call it. Update antic list.
3031 (store_killed_in_insn): Take REG_EQUAL notes into account.
3032 (build_store_vectors, delete_store): Add parameter to
3033 replace_store_insn call.
3035 2003-09-15 Bob Wilson <bob.wilson@acm.org>
3037 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
3040 2003-09-15 Kazu Hirata <kazu@cs.umass.edu>
3042 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
3043 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
3044 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
3046 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
3048 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
3049 * config/sparc/sparc.c (function_arg_padding): Likewise.
3051 2003-09-15 Vladimir Makarov <vmakarov@redhat.com>
3053 * haifa-sched.c (schedule_block): Use ready_remove_first instead
3054 of choose_ready for non-dfa insn scheduling.
3056 2003-09-15 Andreas Jaeger <aj@suse.de>
3057 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3059 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
3060 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
3061 * c-parse.in: Warn about old-style parameter definition.
3062 * c-common.c: Define warn_old_style_defintion.
3063 * c-common.h: Declare it.
3064 * c.opt: Add Wold-style-defintion.
3066 2003-09-15 Andreas Jaeger <aj@suse.de>
3068 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
3069 * config/rs6000/rs6000.c: Likewise.
3071 2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3073 PR optimization/10914
3074 * expr.h (get_condition, canonicalize_condition): Declaration changed.
3075 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
3076 and canonicalize_condition calls.
3077 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
3078 delete_null_pointer_checks): Ditto.
3079 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
3080 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
3081 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
3082 (canonicalize_condition, get_condition): Allow to return comparisons
3083 of cc mode registers.
3084 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
3085 cc mode registers comparison in condition.
3087 2003-09-12 Mark Mitchell <mark@codesourcery.com>
3089 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
3090 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
3092 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
3094 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
3096 * combine.c (simplify_comparison): Convert
3097 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
3098 (eq (and (lshiftrt X Y) 1) 0).
3100 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
3102 * alias.c: Follow spelling conventions.
3103 * cpphash.h: Likewise.
3104 * fold-const.c: Likewise.
3106 2003-09-14 Alexandre Oliva <aoliva@redhat.com>
3108 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
3109 * c-lex.c (cb_line_change): Skip line changing whenever
3112 2003-09-14 Steven Bosscher <steven@gcc.gnu.org>
3114 * ra.c: Convert to ISO C90 prototypes.
3115 * ra-build.c: Likewise.
3116 * ra-colorize.c: Likewise.
3117 * ra-debug.c: Likewise.
3118 * ra-rewrite.c: Likewise.
3120 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
3122 * Makefile.in (%.dvi): Remove excess $(docdir).
3124 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
3126 * function.c (STACK_BYTES): Move definition to head of file.
3127 (assign_parms): Don't pass current_function_pretend_args_size
3128 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
3129 round current_function_pretend_args_size up to STACK_BYTES. Skip any
3130 excess before laying out the argument.
3132 2003-09-14 Andreas Jaeger <aj@suse.de>
3134 * objc/objc-act.c: Convert to ISO C90 prototypes.
3135 * objc/objc-act.h: Likewise.
3137 2003-09-14 Olaf Hering <olh@suse.de>
3139 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
3141 2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
3144 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
3145 as they already are done in config/m68k/m68k.h.
3146 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
3148 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
3149 (machopic_output_stub): Only generate pic base symbols when using pic
3150 and generate them in the form L00000000$spb.
3152 2003-09-13 Richard Henderson <rth@redhat.com>
3154 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
3155 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
3158 2003-09-12 Dale Johannesen <dalej@apple.com>
3160 * config/rs6000/rs6000.c: Fix typos in previous.
3162 2003-09-12 Ziemowit Laski <zlaski@apple.com>
3164 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
3165 when allocating pp->buffer.
3167 2003-09-12 Geoffrey Keating <geoffk@apple.com>
3169 * config/darwin.c (machopic_select_rtx_section): Use
3170 const_data_section for things that might require relocation.
3172 2003-09-12 H.J. Lu <hongjiu.lu@intel.com>
3175 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
3177 2003-09-12 Bob Wilson <bob.wilson@acm.org>
3179 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
3180 * config/xtensa/linux.h (ASM_SPEC): Likewise.
3181 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
3182 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
3183 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
3184 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
3185 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
3186 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
3187 and redefine corresponding TARGET_* macros with constants from the
3188 xtensa-config.h header.
3189 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
3190 for the options listed above.
3192 2003-09-12 Dale Johannesen <dalej@apple.com>
3194 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
3195 * config/rs6000/rs6000-c.c: Ditto.
3196 * config/rs6000/rs6000.c: Ditto.
3197 * config/rs6000/ sysv4.h: Ditto.
3199 2003-09-12 Chris Lattner <sabre@nondot.org>
3201 * loop.c: Move comments describing BIV's and GIV's to top of file
3203 2003-09-12 Roger Sayle <roger@eyesopen.com>
3205 PR optimization/8967
3206 * alias.c (write_dependence_p): Modify to take an additional constp
3207 argument that controls whether the UNCHANGING_RTX_P flags are used.
3208 (anti_dependence, output_dependence): Adjust write_dependence_p
3209 callers to pass this additional argument, to return the same result.
3210 (unchanging_anti_dependence): New variant of anti_dependence that
3211 ignores the UNCHANGING_RTX_P property on memory references.
3212 * rtl.h (unchaning_anti_dependence): Prototype here.
3213 * flow.c (init_propagate_block): Place fake constant mem writes on
3214 the mem_set_list so that dead writes to const variables are deleted.
3215 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
3216 (mark_used_regs): Likewise.
3218 2003-09-12 Richard Sandiford <rsandifo@redhat.com>
3220 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
3221 (mcore_secondary_reload_class): Declare.
3222 (mcore_output_inline_const_forced): Remove.
3223 * config/mcore/mcore.md (movsi): Remove the code that forced
3224 non-inlineable constants into a register if the target was r15
3225 or the stack pointer. Remove constant restrictions from the main
3226 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
3227 of an r <- P alternative. Remove fallback define_insn for reload.
3228 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
3229 define_insn. Use mcore_output_move in the remaining define_insn.
3230 Adjust condition and constraints in the way as for movsi.
3231 (movdi): Always split unacceptable constants into two. Use
3232 simplify_gen_subreg instead of operand_subword{,_force}.
3233 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
3234 (mcore_output_move): Support HImode and QImode moves as well.
3235 (mcore_m15_operand_p): New function.
3236 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
3237 (mcore_secondary_reload_class): New function.
3238 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
3239 terms of mcore_secondary_reload_class.
3241 2003-09-11 Mike Stump <mrs@apple.com>
3243 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
3245 2003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3247 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
3248 MODE exactly, then only convert logN(N) -> 1.0 if
3249 flag_unsafe_math_optimizations is set.
3251 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
3252 init_builtin_dconsts): Delete.
3253 * emit-rtl.c (dconstpi, dconste): Define.
3254 (init_emit_once): Initialize dconstpi & dconste.
3255 * real.h (dconstpi, dconste): Declare.
3257 2003-09-11 Alexandre Oliva <aoliva@redhat.com>
3260 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
3261 for ultimate origin even if block is abstract.
3263 2003-09-11 Roger Sayle <roger@eyesopen.com>
3265 * combine.c (combine_simplify_rtx): Move several NOT and NEG
3266 optimizations from here...
3267 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
3268 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
3270 2003-09-11 Richard Henderson <rth@redhat.com>
3272 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
3273 Tweek tests for function already generated.
3274 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
3275 * cgraph.h (cgraph_finalize_function): Update for extra arg.
3276 * c-decl.c (finish_function): Likewise.
3278 2003-09-10 Joe Buck <jbuck@welsh-buck.org>
3280 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
3282 2003-09-10 Jerry Quinn <jlquinn@optonline.net>
3284 * real.c: Update URL to VAX floating point docs.
3285 (decode_vax_d): Extract 8 exponent bits instead of 7.
3287 2003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
3289 * combine.c (force_to_mode): Set fuller_mask based only on mask,
3292 2003-09-11 Jan Hubicka <jh@suse.cz>
3294 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
3295 on why function is not inlinable; do not check
3297 (inline_forbidden_p): Move to...
3298 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
3299 deal with alloca, longjmp.
3300 (inline_forbidden_p): New static function.
3301 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
3302 find_builtin_longjmp_call): Kill.
3304 2003-09-10 Richard Henderson <rth@redhat.com>
3306 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
3307 * cgraphunit.c: Update to match.
3308 (record_call_1): Rearrange. Call lang hook for language nodes.
3309 (cgraph_analyze_function): Don't call lower_function.
3310 * langhooks.h (struct lang_hooks_for_callgraph): Replace
3311 lower_function with analyze_expr.
3312 * langhooks-def.h: Update to match.
3313 * langhooks.c (lhd_callgraph_analyze_expr): New.
3315 2003-09-10 Martin Husemann <martin@duskware.de>
3318 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
3319 constants greater than 63.
3320 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
3321 against constants greater than 31.
3322 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
3323 constants greater than 63.
3325 2003-09-09 Richard Henderson <rth@redhat.com>
3327 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
3328 * cgraph.h (cgraph_finalize_function): Update.
3329 * c-decl.c (finish_function): Update.
3331 2003-09-09 Devang Patel <dpatel@apple.com>
3333 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
3334 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
3336 2003-09-09 Eric Christopher <echristo@redhat.com>
3338 * configure.in: Change usage of 'head' to 'sed 1q'.
3339 * configure: Regenerate.
3341 2003-09-09 Richard Henderson <rth@redhat.com>
3343 * except.c: Include cgraph.h.
3344 (output_function_exception_table): Invoke
3345 cgraph_varpool_mark_needed_node.
3346 * Makefile.in (except.o): Update.
3348 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
3350 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
3351 and use it throughout.
3353 2003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3355 * builtins.c (real_dconstp, fold_builtin_logarithm,
3356 fold_builtin_exponent): New, split out from fold_builtin. Also
3357 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
3358 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
3359 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
3360 of hardcoded array size.
3361 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
3362 (tree_expr_nonnegative_p): Likewise.
3363 * real.h (dconst3, dconst10, dconstthird): New.
3365 2003-09-09 Jan Hubicka <jh@suse.cz>
3367 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
3369 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
3372 2003-09-09 Roger Sayle <roger@eyesopen.com>
3374 * builtins.c (fold_builtin_cabs): Protect the complex argument
3375 against multiple evaluation when optimizing cabs* into sqrt*.
3377 2003-09-09 Jan Hubicka <jh@suse.cz>
3379 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
3381 2003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
3383 * Makefile.in: Revert yesterday's change.
3385 2003-09-08 Bernardo Innocenti <bernie@develer.com>
3386 Peter Barada <peter@baradas.org>
3388 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
3389 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
3390 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
3391 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
3392 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
3393 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
3394 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
3395 (m68k_compute_frame_layout): New function.
3396 (m68k_initial_elimination_offset): New function.
3397 (m68k_output_function_prologue): ColdFire-specific movem handling.
3398 (m68k_output_function_epilogue): Likewise.
3399 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
3400 (ARG_POINTER_REGNUM): Add new definition.
3401 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
3402 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
3403 (CAN_ELIMINATE): Likewise.
3404 (INITIAL_ELIMINATION_OFFSET): Likewise.
3406 2003-09-08 Bernardo Innocenti <bernie@develer.com>
3408 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
3409 by removing redundant variable cfa_store_offset.
3411 2003-09-08 Mark Mitchell <mark@codesourcery.com>
3413 * langhooks-def.h (lhd_register_builtin_type): New function.
3414 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
3415 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3416 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
3417 * langhooks.c (lhd_register_builtin_type): New function.
3418 * c-common.h (c_register_builtin_type): Declare.
3419 * c-common.c (c_register_builtin_type): New function.
3420 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
3421 c_register_builtin_type.
3422 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
3423 __float80, and __float128 macros.
3424 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
3425 __float80, and __float128 types.
3427 2003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3430 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
3431 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
3432 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
3433 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
3434 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
3435 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
3436 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
3437 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
3438 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
3439 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
3440 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
3441 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
3442 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
3443 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
3444 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
3445 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
3446 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
3448 * doc/extend.texi: Document new builtins.
3450 2003-09-09 Jan Hubicka <jh@suse.cz>
3452 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
3454 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
3455 functions, check for COMDAT.
3456 (cgraph_assemble_pending_functions): Break out from...
3457 (cgraph_finalize_function): ... here; allow redefinig of extern inline
3459 (record_call_1): Record function references only in non-unit-at-a-time
3461 (cgraph_analyze_function): Reset current_function_decl.
3462 (cgraph_finalize_compilation_unit): Assemble pending functions.
3464 2003-09-08 Mark Mitchell <mark@codesourcery.com>
3466 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
3467 (libgov.a): Likewise.
3468 (libgcc_eh.a): Likewise.
3470 2003-09-08 Roger Sayle <roger@eyesopen.com>
3472 * fold-const.c (operand_equal_p): Clarify documentation.
3474 2003-09-08 Richard Henderson <rth@redhat.com>
3476 * c-decl.c (c_expand_body_1): Push and pop function context here.
3477 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
3478 nested argument instead of computing nesting ourselves.
3480 2003-09-08 Jakub Jelinek <jakub@redhat.com>
3482 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
3483 regstack if optimizing but not scheduling after reload.
3485 2003-09-08 Jakub Jelinek <jakub@redhat.com>
3487 * config/sparc/sparc.c (struct machine_function): New type.
3488 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
3489 (sparc_override_options): Initialize init_machine_status.
3490 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
3491 tie_symbolic_operand, tle_symbolic_operand): New functions.
3492 (symbolic_operand): Disallow tls_symbolic_operand.
3493 (symbolic_memory_operand): Likewise.
3494 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
3495 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
3497 (sparc_tls_symbol): New variable.
3498 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
3499 legitimize_address): New functions.
3500 (print_operand): Handle %&.
3501 (sparc_init_machine_status, get_some_local_dynamic_name,
3502 get_some_local_dynamic_name_1): New functions.
3503 (sparc_output_dwarf_dtprel): New function.
3504 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
3506 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
3507 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
3508 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
3509 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
3510 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
3511 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
3512 (ASM_OUTPUT_DWARF_DTPREL): Define.
3513 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
3514 tie_symbolic_operand, tle_symbolic_operand.
3515 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
3516 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
3517 (tls_call_delay): New attribute.
3518 (in_call_delay): Use it.
3519 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
3520 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
3521 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
3522 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
3523 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
3524 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
3525 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
3526 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
3527 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
3528 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
3529 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
3530 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
3531 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
3532 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
3534 * config/sparc/sparc-protos.h (legitimate_constant_p,
3535 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
3536 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
3537 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
3538 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
3539 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
3540 * configure.in (sparc*-*-*): Add TLS check.
3541 * configure: Rebuilt.
3543 2003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3546 * config/i386/i386.c (memory_address_length): Fix computation when
3547 the base is esp or ebp.
3549 2003-09-07 Mark Mitchell <mark@codesourcery.com>
3552 * varasm.c (initializer_constant_valid_p): Correct logic for
3555 2003-09-07 Roger Sayle <roger@eyesopen.com>
3557 * expr.c (expand_operands): New function to expand an operand pair.
3558 (expand_expr): Call expand_operands whenever we need to expand both
3559 operands of a binary operator.
3560 (do_store_flag): Likewise for operands of comparison operations.
3562 2003-09-07 Roger Sayle <roger@eyesopen.com>
3564 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
3565 (-A)*B if we care about sign-dependent rounding.
3567 2003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
3569 * c-pretty-print.h (pp_c_left_brace): Declare.
3570 (pp_c_right_brace): Likewise.
3571 * c-pretty-print.c (pp_c_left_brace): Now a function
3572 (pp_c_right_brace): Likewise.
3574 2003-09-07 Jan Hubicka <jh@suse.cz>
3576 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
3578 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
3580 * diagnostic.c (warn_deprecated_use): Move to toplev.c
3582 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
3584 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
3585 * Makefile.in (langhooks.o): Depend on diagnostic.h
3587 2003-09-06 James E Wilson <wilson@tuliptree.org>
3589 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
3592 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
3594 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
3595 and use it throughout.
3597 2003-09-07 Jan Hubicka <jh@suse.cz>
3599 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
3601 * toplev.c (rest_of_decl_compilation): Do not finalize external
3604 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
3606 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
3608 2003-09-06 Jan Hubicka <jh@suse.cz>
3611 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
3614 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
3616 2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
3618 * diagnostic.c (announce_function): Move to toplev.c.
3620 2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3622 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
3625 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3627 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
3628 when gc checking is enabled.
3630 2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
3633 * c-decl.c (c_expand_body_1): Move return warning from here...
3634 (finish_function): ...to here.
3636 2003-09-05 Geoffrey Keating <geoffk@apple.com>
3638 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
3639 a subset of the input class.
3641 2003-09-05 Kazu Hirata <kazu@cs.umass.edu>
3643 * config/i860/i860.c: Follow spelling conventions.
3644 * config/i860/i860.h: Likewise.
3645 * config/sh/sh.h: Likewise.
3647 2003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
3649 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
3650 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
3651 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
3653 2003-09-05 Roger Sayle <roger@eyesopen.com>
3654 Richard Henderson <rth@redhat.com>
3656 PR optimization/1823
3657 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
3658 multiplication to implement division by constant integer.
3660 2003-09-05 Jan Hubicka <jh@suse.cz>
3662 * opts.c (decode_options): Enable unit-at-a-time at -O2.
3663 * params.def (max-inline-insns-single): Set to 500
3664 (max-inline-insns-auto): Set to 150
3665 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
3667 2003-09-04 Richard Henderson <rth@redhat.com>
3669 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
3670 (cgraph_mark_needed_node): Remove needed argument.
3671 * cgraph.h: Update to match.
3672 * cgraphunit.c (decide_is_function_needed): Split out from ...
3673 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
3674 if we generated the function.
3675 (record_call_1): Update for cgraph_mark_reachable_node.
3676 * varasm.c (mark_referenced): Likewise.
3677 * objc/objc-act.c (mark_referenced_methods): Likewise.
3679 2003-09-04 DJ Delorie <dj@redhat.com>
3681 * targhooks.c: Add comment explaining the migration process.
3683 2003-09-04 Eric Christopher <echristo@redhat.com>
3685 * config/frv/t-frv: Fix path for frv-abi.h.
3686 * config/frv/frv-asm.h: Fix string concatenation.
3688 2003-09-04 DJ Delorie <dj@redhat.com>
3690 * builtins.c (apply_args_size): Guard against a NULL cfun.
3691 (expand_builtin_apply_args_1): Likewise.
3692 (expand_builtin_apply): Likewise.
3693 Fixes PR bootstrap/12172.
3695 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3697 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
3698 assembler supports Sun syntax for cmov.
3699 * configure: Regenerate.
3700 * config.in: Likewise.
3701 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
3702 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
3703 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
3704 Fixes PR target/12101.
3706 2003-09-04 Matt Austern <austern@apple.com>
3708 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
3709 with verbosity 0, instead of DECL_NAME, for human-readable string.
3711 2003-09-04 Eric Christopher <echristo@redhat.com>
3713 * targhooks.c (default_return_in_memory): Allow
3716 2003-09-04 Eric Christopher <echristo@redhat.com>
3718 * targhooks.c (default_return_in_memory): Fix typo
3721 2003-09-04 Eric Christopher <echristo@redhat.com>
3723 * targhooks.c (default_return_in_memory): Fix default
3726 2003-09-04 Bernardo Innocenti <bernie@develer.com>
3728 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
3730 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
3731 enable coff-only code in m68k.c.
3733 2003-09-04 Nick Clifton <nickc@redhat.com>
3735 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
3737 * config/v850/v850.h: Accept v850e1 as a default CPU.
3738 Accept -mv850e1 as a command line option.
3739 * doc/invoke.texi: Document new -mv850e1 command line switch.
3740 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
3743 2003-09-04 Nick Clifton <nickc@redhat.com>
3745 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
3746 * config/v850/t-v850: Only produce one extra multilib - for
3748 * config/v850/t-v850e: New file: Only produce one extra
3749 multilib - for the v850.
3751 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3753 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
3754 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
3755 * unwind.h (_Unwind_GetBSP): New prototype.
3756 * libgcc-std.ver: Add empty GCC_3.3.2 version.
3757 * mkmap-symver.awk: For symbol versions with no exported symbols,
3758 don't put anything into version script, just change all symbol
3759 versions which inherit from it to inherit from its ancestor.
3761 2003-09-04 Eric Christopher <echristo@redhat.com>
3763 * config/mips/mips.c (mips_expand_prologue): Convert to
3764 calls.struct_value_rtx hook.
3765 (reg_or_const_float_1_operand): New.
3766 * config/mips/mips.h: Update Comments.
3767 (mips_arg): Add reg_or_const_float_1_operand.
3768 * config/mips/mips.md (divdf3); Convert to expander.
3770 (*divdf3): New pattern.
3773 2003-09-04 Jan Hubicka <jh@suse.cz>
3775 * toplev.c (wrapup_global_declarations): Fix final pass in
3778 2003-09-04 Mark Mitchell <mark@codesourcery.com>
3780 * doc/extend.texi: Document removal of cast-as-lvalue extension in
3783 2003-09-04 Nicolas Roche <roche@act-europe.fr>
3785 * gcc.c (process_command): Fix typo.
3787 2003-09-03 David O'Brien <obrien@FreeBSD.org>
3790 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
3791 (PTRDIFF_TYPE): Likewise.
3792 (WCHAR_TYPE_SIZE): Likewise.
3794 2003-09-03 DJ Delorie <dj@redhat.com>
3796 * targhooks.c: New file.
3797 * targhooks.h: New file.
3798 * Makefile.in: Add targhooks.o support.
3799 (function.o): Depend on$(TARGET_H).
3801 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
3802 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
3803 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
3804 (expand_builtin_saveregs): Convert to
3805 calls.expand_builtin_saveregs hook.
3806 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
3807 here, instead of ...
3808 (get_parm_info) ... here.
3809 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
3811 (finish_function): Handle calls.promote_prototypes hook here too.
3812 * c-typeck.c (convert_arguments): Convert to
3813 calls.promote_prototypes hook.
3814 (c_convert_parm_for_inlining): Likewise.
3815 * calls.c (initialize_argument_information): Convert to
3816 calls.promote_function_args hook.
3817 (expand_call): Convert to calls.struct_value_rtx,
3818 calls.strict_argument_naming,
3819 calls.pretend_outgoing_varargs_named, and
3820 calls.promote_function_return hooks. Pass fndecl to
3821 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
3822 hooks, so they can use that.
3823 (emit_library_call_value_1): Likewise.
3824 * combine.c (setup_incoming_promotions): Convert to
3825 calls.promote_function_args hook.
3826 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
3827 * expr.c (expand_assignment): Pass call to aggregate_value_p.
3828 (expand_expr): Likewise.
3829 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
3830 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
3831 RETURN_IN_MEMORY macro defaults.
3832 * final.c (profile_function): Convert to calls.struct_value_rtx
3834 * function.c (aggregate_value_p): Accept function type tree as
3835 second parameter; try to deduce fntype from it. Convert to
3836 calls.return_in_memory hook.
3837 (assign_parms): Convert to calls.setup_incoming_varargs,
3838 calls.strict_argument_naming, calls.promote_function_args,
3839 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
3841 (expand_function_start): Likewise. Convert to
3842 calls.struct_value_rtx hook.
3843 (expand_function_end): Convert to calls.promote_function_return hook.
3844 (allocate_struct_function): Pass fndecl to aggregate_value_p.
3845 * hard-reg-set.h: Update comments to new hook names.
3846 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
3847 * reg-stack.c (stack_result): Likewise.
3848 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
3849 * stmt.c (expand_value_return): Convert to
3850 calls.promote_function_return hook.
3851 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
3852 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
3853 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
3854 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
3855 TARGET_STRICT_ARGUMENT_NAMING,
3856 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
3857 * target.h: Likewise.
3858 * tree.h (aggregate_value_p): Also takes a tree to deduce function
3859 attributes from (for target hooks).
3860 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
3861 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
3862 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
3863 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
3864 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
3867 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
3868 to aggregate_value_p.
3869 * config/arm/arm.c (arm_init_cumulative_args,
3870 arm_output_mi_thunk): Likewise.
3871 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
3873 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
3874 mips_can_use_return_insn): Likewise.
3875 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3876 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
3877 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
3879 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
3880 function to aggregate_value_p.
3881 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
3884 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
3885 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
3886 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
3887 (sh_handle_renesas_attribute, sh_promote_prototypes,
3888 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
3889 sh_setup_incoming_varargs, sh_strict_argument_naming,
3890 sh_pretend_outgoing_varargs_named): New decls.
3891 (targetm): Add new hooks.
3892 (calc_live_regs): Save MACL and MACH if the function has the
3894 (sh_expand_prologue): Support renesas attribute.
3895 (sh_builtin_saveregs): Make static.
3896 (sh_build_va_list): Support renesas attribute.
3897 (sh_va_start): Likewise.
3898 (sh_va_arg): Likewise.
3899 (sh_promote_prototypes): New.
3900 (sh_function_arg): New, moved from sh.h. Support renesas
3902 (sh_function_arg_advance): Likewise.
3903 (sh_return_in_memory): Likewise.
3904 (sh_strict_argument_naming): Likewise.
3905 (sh_pretend_outgoing_varargs_named): Likewise.
3906 (sh_struct_value_rtx): New.
3907 (sh_attribute): Add renesas attribute.
3908 (sh_handle_renesas_attribute): New.
3909 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
3910 (sh_ms_bitfield_layout_p): Support renesas attribute also.
3911 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
3912 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
3914 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
3916 (sh_args): Add renesas_abi flag.
3917 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
3918 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
3919 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
3920 stack for the renesas abi.
3921 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
3922 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
3923 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
3924 call cookie to indicate renesas calls.
3926 2003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
3928 * gcse.c (replace_one_set): New function.
3929 (pre_insert_copy_insn): Change the order of copying
3930 to make copy propagation discover additional PRE opportunities.
3932 2003-09-03 Roger Sayle <roger@eyesopen.com>
3934 PR optimization/11700.
3935 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
3936 of a hard register is representable before trying to simplify it
3937 using subreg_hard_regno.
3939 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3941 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
3942 * configure: Regenerate.
3944 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3946 * intl.h (N_): Remove parentheses.
3948 2003-09-03 Bernardo Innocenti <bernie@develer.com>
3950 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
3951 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
3952 definition and code blocks compiled when not defined.
3953 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
3954 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
3955 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
3956 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
3958 2003-09-03 Jeff Sturm <jsturm@one-point.com>
3960 * cgraphunit.c (visited_nodes): New static variable.
3961 (record_call_1): Use walk_tree with visited_nodes.
3962 (cgraph_create_edges): Use walk_tree with visited_nodes.
3963 Setup/teardown visited_nodes hashtable.
3965 2003-09-03 Roger Sayle <roger@eyesopen.com>
3967 * toplev.c (flag_rounding_math): New global variable.
3968 (f_options): Add to the list of language independent options.
3969 * flags.h (flag_rounding_math): Prototype here.
3970 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
3971 * common.opt (frounding-math): New common command line option.
3972 * opts.c (common_handle_option): Handle OPT_frounding_math.
3973 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
3975 * doc/invoke.texi: Document this new command line option.
3977 2003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3979 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
3981 2003-09-03 Jan Hubicka <jh@suse.cz>
3983 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
3984 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
3985 * c-objc-common.c: Kill include of gt-c-objc-common.h
3986 (expand_deferred_fns, deffer_fn): Kill function.
3987 (deferred_fns): Kill variable.
3988 (finish_cdtor): Update finish_function call.
3989 (c_objc_common_finish_file): Always call cgraph code.
3990 * c-parse.c: Regenerate.
3991 * c-parse.y: Regenerate.
3992 * c-tree.h (finish_function): Update prototype.
3993 * objc-acct.c (build_module_descriptor, finish_method_def):
3994 Update call of finish_function.
3995 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
3997 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
3998 function and assemble it if needed.
3999 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
4001 (cgraph_optimize): Likewise.
4002 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
4003 even when it has no inline callees.
4004 * c-parse.in: Update calls to finish_function.
4006 2003-09-03 Nick Clifton <nickc@redhat.com>
4008 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
4009 Use #error to generate the message if TARGET_DEFAULT is not
4012 2003-09-03 Richard Sandiford <rsandifo@redhat.com>
4014 * config/mips/mips.h (MASK_UNUSED1): Remove.
4015 (MASK_XGOT, TARGET_XGOT): Define.
4016 (TARGET_SWITCHES): Add an entry for -mxgot.
4017 (ASM_SPEC): Map -mxgot to -xgot.
4018 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
4019 whether we're using a big-GOT sequences.
4020 (mips_legitimize_const_move, mips_expand_call): Likewise.
4021 (override_options): Revert 2003-01-09 change.
4022 * doc/invoke.texi: Document -mxgot.
4024 2003-09-02 Jason Merrill <jason@redhat.com>
4026 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
4027 * config/sparc/sol2.h: Not here.
4029 2003-09-02 Roger Sayle <roger@eyesopen.com>
4031 * expr.c (expand_expr): The code following both_summands performs
4032 the same task as simplify_gen_binary. Replace all gotos to
4033 both_summands with a call to simplify_gen_binary and delete the
4036 2003-09-02 Jason Merrill <jason@redhat.com>
4039 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
4041 2003-09-02 Jeff Sturm <jsturm@one-point.com>
4043 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
4044 (cgraph_optimize_function): Set current_function_decl to the
4045 fndecl we're integrating from.
4047 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4049 * builtins.def: Break out _Complex math functions into their
4052 2003-09-02 Andreas Jaeger <aj@suse.de>
4054 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
4056 2003-09-02 Josef Zlomek <zlomekj@suse.cz>
4058 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
4059 finding the note again.
4061 2003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
4063 * config.gcc: Remove host-specific rewrites of target_alias.
4065 2003-09-01 Mark Mitchell <mark@codesourcery.com>
4067 * Makefile.in (genprogs): Fix typo.
4069 * Makefile.in (gencheck.o): Remove build commands.
4070 (dummy-conditions.o): Likewise.
4071 (read-rtl.o): Likewise.
4072 (gensupport.o): Likewise.
4073 (genconfig$(build_exeext)): Remove rule.
4074 (genconfig.o): Remove build commands.
4075 (genflags$(build_exeext)): Remove rule.
4076 (genflags.o): Remove build commands.
4077 (gencodes$(build_exeext)): Remove rule.
4078 (gencodes.o): Remove build commands.
4079 (genconstants.o): Remove build commands.
4080 (genemit$(build_exeext)): Remove rule.
4081 (genemit.o): Remove build commands.
4082 (genrecog$(build_exeext)): Remove rule.
4083 (genrecog.o): Remove build commands.
4084 (genextract$(build_exeext)): Remove rule.
4085 (genextract.o): Remove build commands.
4086 (genpeep$(build_exeext)): Remove rule.
4087 (genpeep.o): Remove build commands.
4088 (genattr$(build_exeext)): Remove rule.
4089 (genattr.o): Remove build commands.
4090 (genprognames): New variable.
4091 (genprogs): Likewise.
4092 (genobjs): Likewise.
4093 (genprogs): New rule.
4094 (genobjs): Likewise.
4095 (genattrtab.o): Remove build commands.
4096 (genautomata.o): Likewise.
4097 (genoutput$(build_exeext)): Remove rule.
4098 (genoutput.o): Remove build commands.
4099 (gengenrtl.o): Likewise.
4100 (genpreds.o): Likewise.
4101 (gengtype.o): Likewise.
4102 (genconditions.o): Likewise.
4103 (gen-protos.o): Likewise.
4105 (fix-header.o): Likewise.
4106 (scan-decls.o): Likewise.
4107 (check-g++): Combine with other check targets.
4108 (check-gcc): Likewise.
4109 (check-g77): Likewise.
4110 (check-objc): Likewise.
4112 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
4114 * config.gcc: Remove host-specific stuff which is unused here
4115 since the introduction of config.host.
4117 * doc/fragments.texi: Mention config.host.
4118 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
4119 of config.build, config.host, and config.gcc.
4121 2003-09-01 Zack Weinberg <zack@codesourcery.com>
4123 * c-decl.c (pushdecl): Don't put variables on
4124 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
4127 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
4129 * config.host: New file.
4130 * config.gcc: Remove some host-specific stuff and some
4131 logic needed only for repeated invocation.
4132 * configure.in: Use config.host.
4133 * configure: Regenerate.
4135 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
4137 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
4138 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
4139 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
4140 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
4141 * tree.def (BIT_ANDTC_EXPR): Kill.
4143 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
4145 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
4146 * configure: Regenerate.
4148 * config.gcc: Remove references to install_headers_dir, now unused
4149 since introduction of config.build.
4150 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
4152 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
4155 * config.build: New file.
4156 * config.gcc: Remove some build-specific stuff.
4157 * configure.in: Use config.build.
4158 * configure: Regnerate.
4160 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
4161 Roger Sayle <roger@eyesopen.com>
4164 * stmt.c (expand_end_case_type): Only use jump tables for dense
4165 switch statements when optimizing for size.
4167 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
4169 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
4170 the != 0 case, which ensures pending stack adjustments are flushed.
4172 2003-08-30 Zack Weinberg <zack@codesourcery.com>
4174 * configure.frag: Delete file.
4175 * configure.in: Rename the substitution variables
4176 dep_host_xmake_file and dep_tmake_file to xmake_file and
4177 tmake_file respectively. Do not expand $srcdir in the
4178 value of these; leave that for Make. Introduce a new
4179 substitution varaible, all_lang_makefrags, which lists
4180 subdirectory Make-lang.in files; exclude these from
4181 all_lang_makefiles, which is now only for subdirectory
4182 outputs. Do not invoke configure.frag. Do not set nor
4183 AC_SUBST_FILE target_overrides, host_overrides, or
4184 language_fragments. Create build subdirectories in
4185 config.status extra commands.
4186 * configure: Regenerate.
4187 * Makefile.in: Update substitutions to match changes to
4188 configure. Use include directives instead of @-insertions
4189 to read in host, target, and language fragments.
4190 (Makefile rule): Do not invoke configure.frag. Do not copy
4191 config.status to config.run before executing it. Set
4192 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
4194 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
4196 2003-08-30 Zack Weinberg <zack@codesourcery.com>
4198 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
4199 * c-typeck.c (same_translation_unit_p): New function.
4200 (comptypes): Use it instead of flags parameter to identify
4201 structure types from different translation units.
4202 * c-decl.c (duplicate_decls): Always call comptypes with
4203 COMPTYPE_STRICT flags argument.
4204 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
4207 2003-08-30 Zack Weinberg <zack@codesourcery.com>
4209 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
4210 * c-decl.c (struct c_scope): Remove "incomplete" field.
4211 (pushdecl): Attach variables with incomplete types to
4212 the TYPE_MAIN_VARIANT of the incomplete type in question.
4213 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
4214 to complete, not at current_scope->incomplete. All such
4215 variables do need completion.
4217 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
4218 Nicolas Pitre <nico@cam.org>
4220 * arm/lib1funcs.asm (RETCOND): Delete.
4221 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
4222 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
4223 (__ARM_ARCH__): Move here from ieee754-?f.S.
4224 (RET, RETc): Clean up definitions.
4225 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
4226 (FUNC_END): New macro that marks the end of any function.
4227 (ARM_FUNC_START): New macro that allows an assembler routine to be
4228 implemented in ARM code even if a Thumb-only build.
4229 Unconditionally include ieee754-?f.S.
4230 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
4231 Mark ends of functions.
4232 Split into separate conditionally-compiled units.
4233 Use RETLDM to return from routines.
4234 * arm/ieee754-sf.S: Similarly.
4235 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
4236 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
4237 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
4238 _fixsfsi and _fixunssfsi.
4240 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
4241 multiplication underflows to zero.
4242 (__adddf3): Fix bug when using VFP ordering on little-endian
4244 (__fixdfsi): Use rrx to extract the carry into a register instead of
4245 MRS instruction. Optimize later use of result.
4246 * arm/ieee754-sf.S (__fixsfsi): Likewise.
4247 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
4249 2003-08-29 Richard Henderson <rth@redhat.com>
4251 * tree-optimize.c: New file.
4252 * Makefile.in (OBJS-archive): Add tree-optimize.o.
4253 (tree-optimize.o): New.
4254 * c-decl.c (store_parm_decls): Use allocate_struct_function.
4255 (finish_function): Don't free_after_parsing or free_after_compilation.
4256 (set_save_expr_context): Move to tree-optimize.c.
4257 (c_expand_body_1): Use tree_rest_of_compilation.
4258 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
4259 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
4260 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
4261 iterate until closure.
4262 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
4263 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
4264 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
4265 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
4266 * toplev.h (tree_rest_of_compilation): Declare it.
4268 2003-08-29 Richard Henderson <rth@redhat.com>
4270 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
4271 * integrate.c (save_for_inline): Set saved_for_inline.
4272 * c-semantics.c (genrtl_scope_stmt): Check it.
4273 * toplev.c (wrapup_global_declarations): Check it.
4274 (rest_of_handle_inlining): Set and check rtl_inline_init.
4275 (rest_of_compilation): Remove out of date comment.
4277 2003-08-29 Richard Henderson <rth@redhat.com>
4279 * function.c (allocate_struct_function): New, split out of ...
4280 (prepare_function_start, init_function_start): ... here.
4281 * expr.c (init_expr): Use ggc_alloc_cleared.
4282 * stmt.c (init_stmt_for_function): Likewise.
4283 * tree.h (allocate_struct_function): Declare.
4285 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
4287 * config.gcc: Don't use negated character class in shell case
4290 2003-08-29 Richard Henderson <rth@redhat.com>
4292 * function.h (struct function): Move function_frequency and
4293 max_jumptable_ents before start of bit field members.
4295 2003-08-29 Richard Henderson <rth@redhat.com>
4297 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
4298 (fold_builtin_constant_p) ... not here.
4300 2003-08-29 Richard Henderson <rth@redhat.com>
4302 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
4303 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
4304 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
4306 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4308 * builtins.def: Fix typos.
4309 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
4310 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
4311 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
4312 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
4313 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
4315 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
4316 Use ATTR_MATHFN_FPROUNDING_ERRNO.
4318 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
4320 * config.gcc (i386-*-vsta): Fix obvious bogosity.
4322 * fixinc/inclhack.def: Remove special cases for unsupported
4323 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
4324 * fixinc/fixincl.x: Regenerate.
4326 2003-08-29 Mark Mitchell <mark@codesourcery.com>
4328 * Makefile.in (cpp.info): Just state dependencies.
4329 (gcc.info): Likewise.
4330 (gccint.info): Likewise.
4331 (gccinstall.info): Likewise.
4332 (cppinternals.info): Likewise.
4333 (cpp.dvi): Likewise.
4334 (gcc.dvi): Likewise.
4335 (gccint.dvi): Likewise.
4336 (gccinstall.dvi): Likewise.
4337 (cppinternals.dvi): Likewise.
4343 (fsf-funding.7): Likewise.
4344 ($(objdir)/%.info): New pattern rule.
4347 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
4349 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
4350 (restage2): Likewise.
4351 (restage3): Likewise.
4352 (restage4): Likewise.
4353 (restageprofile): Likewise.
4354 (restagefeedback): Likewise.
4355 (bubblestrap): Likewise.
4357 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
4359 * config.gcc: Narrow unsupported target match to avoid clobbering
4360 i?86-sequent-sysv4*.
4362 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4364 * builtins.c (mathfn_built_in): Handle new math builtins.
4366 2003-08-28 Per Bothner <per@bothner.com>
4368 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
4369 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
4370 (_cpp_lex_buffer): Likewise.
4371 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
4373 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
4375 * config/s390/s390.md ("*mulsi3_sign"): New insn.
4376 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
4377 ("mulsidi3"): ... this new insn.
4378 ("umulsidi3"): New insn.
4379 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
4380 mixed-mode matching constraints.
4381 ("udivmodsi4", "udivmoddisi3"): New insns.
4382 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
4384 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4386 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
4387 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
4388 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
4389 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
4390 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
4391 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
4392 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
4393 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
4394 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
4395 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
4396 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
4397 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
4398 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
4399 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
4400 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
4401 * tree.c: Assign new type_nodes.
4402 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
4403 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
4404 (float_ptr_type_node, double_ptr_type_node,
4405 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
4407 * doc/extend.texi: Document new builtins.
4409 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4411 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
4412 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
4414 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
4415 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
4416 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
4417 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
4418 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
4419 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
4420 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
4421 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
4422 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
4423 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
4425 * doc/extend.texi: Document new builtins.
4427 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
4429 * fixinc/mkfixinc.sh: Remove special case code for unsupported
4430 variants of i?86, powerpcle, and thumb.
4431 * fixinc/mkfixinc.sh: Remove special case code for unsupported
4432 arm and hppa variants.
4434 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4436 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
4437 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
4438 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
4439 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
4440 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
4441 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
4442 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
4443 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
4444 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
4445 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
4447 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
4448 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
4449 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
4450 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
4451 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
4452 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
4453 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
4454 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
4455 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
4456 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
4457 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
4458 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
4459 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
4460 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
4461 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
4462 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
4463 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
4464 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
4465 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
4466 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
4467 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
4468 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
4469 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
4470 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
4471 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
4472 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
4473 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
4474 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
4475 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
4476 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
4477 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
4479 * doc/extend.texi: Document new builtins.
4481 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
4483 * config/s390/s390.c (legitmate_constant_p): Use LARL on
4484 zSeries machines even in 31-bit addressing mode.
4485 (legitimate_reload_constant_p): Likewise.
4486 (legitimize_pic_address): Likewise.
4487 (legitimize_tls_address): Likewise.
4488 (s390_split_branches): Likewise.
4489 (s390_dump_pool): Likewise.
4490 (s390_mainpool_finish): Likewise.
4491 (s390_chunkify_start): Likewise.
4492 (s390_select_rtx_section): Likewise.
4493 * config/s390/s390.md ("doloop_si"): Likewise.
4494 ("pool_start_31", "pool_end_31"): Likewise.
4495 ("pool_start_64", "pool_end_64"): Likewise.
4496 ("main_base_31_small", "main_base_31_large"): Likewise.
4497 ("main_base_64"): Likewise.
4498 ("reload_base_31", "reload_base_64"): Likewise.
4499 ("*movsi_larl"): New insn.
4500 ("cjump", "icjump"): Use long branches on zSeries machines.
4502 ("call"): Use BRASL on zSeries machines.
4503 ("call_value", "call_value_tls"): Likewise.
4504 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
4506 ("*bras", "*brasl", "*basr") ... these new insns.
4507 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
4508 "bas_31_r"): Remove and replace by ...
4509 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
4510 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
4511 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
4512 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
4513 ("*return_si", "*return_di"): Remove and replace by ...
4514 ("*return"): ... this new insn.
4515 ("rotlsi3"): Allow on zSeries machines.
4517 * config/s390/s390.c (legitimize_reload_constant_p): Use
4518 LL/LH type instructions in z/Architecture mode.
4519 * config/s390/s390.md ("*movsi_lli"): Likewise.
4520 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
4521 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
4522 ("*extendqisi2"): Use LB in z/Architecture mode.
4523 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
4524 z/Architecture mode.
4525 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
4528 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
4530 ("ptr_extend"): Allow only in 64-bit mode.
4532 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
4534 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
4535 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
4537 (main): Only use standard_startfile_prefix if native.
4538 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
4540 2003-08-27 Per Bothner <pbothner@apple.com>
4542 * cpperror.c (print_location): Don't check for !pfile->buffer. That
4543 test fails following my 08-21 change, and it seems unnecessary anyway.
4544 (cpp_error): Likewise.
4546 2003-08-27 Jason Merrill <jason@redhat.com>
4548 * real.c (do_multiply): Initialize with memset.
4550 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4552 * gcov.c (typedef struct arc_info): New field cs_count.
4553 (accumulate_line_counts): Find cycles correctly.
4555 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
4557 * config/s390/s390.c (struct machine_function): Remove member
4559 (s390_optimize_prolog): Replace TEMP_REG argument with
4560 TEMP_USED and BASE_USED. Do not check get_pool_size ().
4561 (general_s_operand): Accept all immediates before reload if
4562 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
4564 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
4565 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
4566 (s390_alloc_pool): New function.
4567 (s390_new_pool): Call it.
4568 (s390_dump_pool): Add REMOTE_LABEL argument.
4569 (s390_chunkify_start): Add BASE_REG argument. Do not check
4571 (s390_chunkify_finish): Add BASE_REG argument. Adapt
4572 s390_dump_pool call.
4573 (s390_pool_count, s390_nr_constants): Remove.
4574 (s390_output_constant_pool): Remove.
4575 (s390_mainpool_start): New function.
4576 (s390_mainpool_finish): New function.
4577 (s390_mainpool_cancel): New function.
4578 (s390_reorg): Implement main literal pool handling.
4579 (s390_emit_prologue): Emit main_pool placeholder instead of
4580 literal_pool_31 / literal_pool_64 insns.
4581 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
4582 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
4583 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
4584 ("main_base_31_small", "main_base_31_large"): New insns.
4585 ("main_base_64", "main_pool"): New insns.
4586 ("literal_pool_31", "literal_pool_64"): Remove.
4588 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
4590 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
4592 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
4594 * fixinc/fixincl.x: Regenerate.
4596 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
4598 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
4599 (L_ieee754_dp): New. Include ieee754-df.S.
4600 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
4601 and compilation in apcs-26 mode.
4602 * arm/ieee754-df.S: Likewise.
4603 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
4604 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
4606 2003-08-27 Nicolas Pitre <nico@cam.org>
4608 * arm/ieee754-sf.S: New.
4609 * arm/ieee754-df.S: New.
4611 2003-08-27 Jakub Jelinek <jakub@redhat.com>
4613 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
4614 and restore it if returning NULL.
4616 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
4618 * calls.c (initialize_argument_information): If an argument has no
4619 stack space associated with it, and BLOCK_REG_PADDING is defined,
4620 use it to decide at which end the argument should be padded.
4621 * function.c (assign_parms): Allocate BLKmode stack slots.
4622 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
4623 (mips_pad_reg_upward): Declare.
4624 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
4625 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
4626 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
4627 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
4628 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
4629 (mips_expand_call): Remove code for generating structure shifts.
4630 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
4631 types unless using the EABI.
4632 (function_arg_advance): Don't generate shift instructions.
4633 (function_arg): Don't return them. Don't short-circuit the
4634 check for double structure chunks for DFmode arguments.
4635 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
4636 (mips_expand_prologue): Remove code to emit structure shifts.
4637 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
4638 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
4639 comments to say that only structure returns are a problem.
4641 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
4643 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
4644 Fix to match produced versions.
4645 * fixinc/inclhack.def (longlong_t): New disabled test, ported
4647 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
4649 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
4650 ported from fixinc.ptx.
4652 2003-08-26 Per Bothner <pbothner@apple.com>
4654 * cpplib.h (struct cpp_token): Change type of field line to fileline.
4655 (cpp_error_with_line): Use fileline for appropriate parameter.
4656 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
4657 (struct cpp_reader): Likewise for fields line and directive_line.
4658 (_cpp_begin_message): Use fileline for appropriate parameter.
4659 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
4660 cpp_error): Use fileline for appropriate parameters and variables.
4661 (print_location): New local lin, since it is not a fileline.
4663 2003-08-26 Roger Sayle <roger@eyesopen.com>
4666 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
4667 (FLOAT_TYPE_P): Define in terms of these two new macros.
4668 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
4669 for complex floating point types.
4671 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
4673 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
4674 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
4675 s390_output_pool_entry.
4677 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
4679 * fixinc/inclhack.def (svr4_preproc_lint_on,
4680 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
4681 fixes, ported from fixinc.svr4.
4683 2003-08-26 Mark Mitchell <mark@codesourcery.com>
4685 * doc/install.texi (Prerequisites): Mention GNU make requirement.
4687 * Makefile.in (AR_FOR_TARGET): Export it.
4688 (AR_CREATE_FOR_TARGET): Likewise.
4689 (AR_FLAGS_FOR_TARGET): Likewise.
4690 (AR_EXTRACT_FOR_TARGET): Likewise.
4692 (BUILD_PREFIX): Likewise.
4693 (BUILD_PREFIX_1): Likewise.
4694 (DESTDIR): Likewise.
4695 (GCC_FOR_TARGET): Likewise.
4696 (INCLUDES): Likewise.
4697 (INSTALL_DATA): Likewise.
4698 (LIB1ASMSRC): Likewise.
4699 (LIBGCC2_CFLAGS): Likewise.
4700 (MACHMODE_H): Likewise.
4701 (NM_FOR_TARGET): Likewise.
4702 (RANLIB_FOR_TARGET): Likewise.
4703 (libsubdir): Likewise.
4704 (slibdir): Likewise.
4705 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
4707 (libgcc.a): Don't pass them here.
4708 (stmp-multilib): Or here.
4709 (install-libgcc): Or here.
4710 (install-multilib): Or here.
4711 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
4712 (stage1_build): Or here.
4714 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
4716 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
4717 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
4719 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
4721 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
4722 "*fmaddsf", "*fmsubsf"): New insns.
4724 2003-08-26 Roger Sayle <roger@eyesopen.com>
4726 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
4727 (C1*C2)/X when unsafe math optimizations are allowed.
4728 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
4729 math optimizations. Minor code clean-ups. Recursively call
4730 fold when constructing sub-expressions.
4732 2003-08-26 Roger Sayle <roger@eyesopen.com>
4734 * builtins.c (fold_builtin_bitop): New function to perform constant
4735 folding of ffs, clz, ctz, popcount and parity builtin functions
4736 and their long and long long variants (such as ffsl and ffsll).
4737 (fold_builtin): fold_builtin_bitop when appropriate.
4738 * simplify-rtx.c (simplify_unary_operation): Honor both
4739 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
4740 evaluating clz and ctz at compile-time, for operands wider
4743 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
4745 * builtins.c (build_function_call_expr): Don't set
4746 TREE_SIDE_EFFECTS here.
4747 * expr.c (emit_block_move_via_libcall): Likewise.
4748 (clear_storage_via_libcall): Likewise.
4749 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
4752 * gcse.c (is_too_expensive): New function.
4753 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
4755 2003-08-25 Zack Weinberg <zack@codesourcery.com>
4757 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
4758 commented-out logic to use DCE threads (if present), add
4759 support for POSIX threads.
4760 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
4761 #defines for -pthread. Add -lpthread to LIB_SPEC when
4762 -pthread. In both cases take -mt as a synonym for -pthread
4763 for acc compatibility.
4764 Define GTHREAD_USE_WEAK to 0.
4765 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
4766 Remove old logic for DCE threads from LIB_SPEC.
4767 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
4769 2003-08-25 Roger Sayle <roger@eyesopen.com>
4771 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
4772 return 0 for invalid argument types. Instead drop through to a
4773 call of expand_call at the bottom of function. If op is SQRT,
4774 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
4776 2003-08-25 Richard Henderson <rth@redhat.com>
4778 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
4779 result when op0 is SImode.
4781 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
4783 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
4785 * fixinc/fixincl.x: Regenerate.
4786 * fixinc/tests/base/sys/signal.h: Regenerate.
4788 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
4790 * combine.c (simplify_comparison): Re-enable widening of comparisons
4791 with non-paradoxical subregs of non-REG expressions.
4793 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
4795 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
4797 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
4799 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
4801 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4803 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
4804 * c-pretty-print.h (c_pretty_printer): Now typedef to the
4805 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
4806 (struct c_pretty_print_info): Document. Add new fields.
4807 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
4808 (pp_direct_abstract_declarator): New macro.
4809 (pp_ptr_operator): Likewise.
4810 (pp_simple_type_specifier): Likewise.
4811 (pp_expression): Likewise.
4812 (pp_parameter_list): Rename from pp_parameter_declaration.
4813 * c-pretty-print.c (pp_c_whitespace): Now a function.
4814 (pp_c_left_paren): Likewise.
4815 (pp_c_right_paren): Likewise.
4816 (pp_c_dot): Likewise.
4817 (pp_c_ampersand): Likewise.
4818 (pp_c_arrow): Likewise.
4819 (pp_c_semicolon): Likewise.
4820 (pp_c_type_cast): New function.
4821 (pp_c_space_for_pointer_operator): Likewise.
4822 (pp_c_call_argument_list): Likewise.
4823 (pp_c_cv_qualifier): Adjust prototype.
4824 (pp_c_type_qualifier_list): Likewise.
4825 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
4826 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
4827 Adjust to follow standard grammar.
4828 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
4829 REFERENCE_TYPE. Tidy.
4830 (pp_c_parameter_type_list): Adjust prototype. Tidy.
4831 (pp_c_parameter_declaration): Remove.
4832 (pp_c_abstract_declarator): Adjust prototype.
4833 (pp_c_direct_abstract_declarator): Likewise.
4834 (pp_c_type_id): Likewise.
4835 (pp_c_storage_class_specifier): Likewise.
4836 (pp_c_function_specifier): Likewise.
4837 (pp_c_declaration_specifiers): Likewise.
4838 (pp_c_direct_declarator): Likewise.
4839 (pp_c_declarator): Likewise.
4840 (pp_c_declarator): Likewise.
4841 (pp_c_declaration): Likewise.
4842 (pp_c_attributes): Likewise. Tidy.
4843 (pp_c_function_definition): Adjust prototype.
4844 (pp_c_char): Likewise.
4845 (pp_c_string_literal): Likewise.
4846 (pp_c_integer_constant): Likewise.
4847 (pp_c_character_constant): Likewise.
4848 (pp_c_bool_constant): Likewise.
4849 (pp_c_enumeration_constant): Likewise.
4850 (pp_c_floating_constant): Likewise.
4851 (pp_c_constant): Likewise.
4852 (pp_c_identifier): Likewise.
4853 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
4854 (pp_c_initializer): Adjust prototype.
4855 (pp_c_init_declarator): Likewise.
4856 (pp_c_initializer_list): Likewise.
4857 (pp_c_id_expression): Likewise.
4858 (pp_c_postfix_expression): Likewise.
4859 (pp_c_expression_list): Likewise.
4860 (pp_c_unary_expression): Likewise.
4861 (pp_c_cast_expression): Likewise.
4862 (pp_c_multiplicative_expression): Likewise.
4863 (pp_c_additive_expression): Likewise.
4864 (pp_c_shift_expression): Likewise.
4865 (pp_c_relational_expression): Likewise.
4866 (pp_c_equality_expression): Likewise.
4867 (pp_c_and_expression): Likewise.
4868 (pp_c_exclusive_or_expression): Likewise.
4869 (pp_c_inclusive_or_expression): Likewise.
4870 (pp_c_logical_and_expression): Likewise.
4871 (pp_c_logical_or_expression): Likewise.
4872 (pp_c_conditional_expression): Likewise.
4873 (pp_c_assignment_expression): Likewise.
4874 (pp_c_expression): Likewise. Tidy.
4875 (pp_c_statement): Likewise. Document.
4876 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
4878 * c-lang.c (c_initialize_diagnostics): Update.
4879 * c-common.h (strip_pointer_operator): Declare.
4880 * c-common.c (strip_pointer_operator): Define.
4882 2003-08-25 Mark Mitchell <mark@codesourcery.com>
4885 * tree.h (build_method_type_directly): Declare.
4886 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
4887 (vector_size_helper): Likewise.
4888 * tree.c (build_method_type_directly): New function.
4889 (build_method_type): Use it.
4891 2003-08-24 Richard Henderson <rth@redhat.com>
4893 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
4894 for 16-byte vector modes if sse not enabled; warn for abi change.
4895 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
4897 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
4899 * rtlanal.c (may_trap_p): Simplify an integer comparison.
4901 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
4903 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
4904 comment. Enable for DYNIX/ptx systems (when they switch to
4905 regular fixincludes).
4906 * fixinc/fixincl.x: Regenerate.
4908 2003-08-23 Jason Eckhardt <jle@rice.edu>
4910 * config/i860/t-i860: New.
4911 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
4913 2003-08-23 Jakub Jelinek <jakub@redhat.com>
4915 * c-decl.c (pushdecl): Only put decls which finish_struct will do
4916 something about onto incomplete chain.
4917 (finish_struct): If not removing type from incomplete
4920 2003-08-20 Jan Hubicka <jh@suse.cz>
4923 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
4926 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
4927 const_0_to_15_operand, const_0_to_255_operand): New predicates.
4928 * i386.h (PREDICATE_CODES): Add these.
4929 * i386.c (pinsrw and pextrw patterns): Use them.
4932 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
4935 * expr.c (convert_modes): Deal properly with integer to vector
4936 constant conversion.
4939 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
4941 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
4943 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
4944 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
4945 ("*movhi"): ... this.
4946 ("movqi", "*movqi"): Likewise.
4947 ("movqi_64"): Remove.
4948 ("*zero_extendhisi2_31"): Change predicate to s_operand.
4950 2003-08-23 Dale Johannesen <dalej@apple.com>
4951 * calls.c (emit_library_call_value_1): Fix obvious errors in
4952 arguments to emit_group_store.
4954 2003-08-23 Jason Eckhardt <jle@rice.edu>
4956 * calls.c (emit_library_call_value_1): Remove code related
4957 to LIBGCC_NEEDS_DOUBLE.
4958 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
4959 * doc/tm.texi: Likewise.
4960 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
4962 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
4964 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
4966 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
4968 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
4969 as well. Put memory references in the varargs alias set.
4970 (mips_expand_prologue): Remove varargs handling from here.
4972 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
4974 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
4975 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
4976 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
4977 for function pointer calls.
4978 * config/s390/s390.md ("*negdi2_31"): Likewise.
4980 2003-08-23 Roger Sayle <roger@eyesopen.com>
4982 * combine.c (apply_distributive_law): Correct comment.
4984 2003-08-23 Jason Eckhardt <jle@rice.edu>
4986 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
4988 2003-08-22 Jason Eckhardt <jle@rice.edu>
4990 * config/i860/i860.c (i860_build_va_list): Create the va_decl
4991 declaration. Document the va_list structure.
4992 (i860_va_start): Initialize the va_list structure.
4993 (i860_va_arg): Rewrite completely.
4994 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
4995 * config/i860/varargs.asm: Do not allocate or initialize
4996 a va_list. Return the address of the register save area.
4998 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5000 * config/iq2000/iq2000.c: Fix comment typos.
5001 * config/iq2000/iq2000.md: Likewise.
5003 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5005 * config/iq2000/iq2000.c: Follow spelling conventions.
5006 * config/iq2000/iq2000.h: Likewise.
5007 * config/mn10300/mn10300.c: Likewise.
5009 2003-08-22 Jason Eckhardt <jle@rice.edu>
5011 * config/i860/i860.c (output_move_double): Don't set latehalf
5012 to zero for CONST_INT (since it could be, e.g., -1).
5014 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
5015 (MODSI3_LIBCALL): ...with this one.
5016 (UREMSI3_LIBCALL): Replace this macro...
5017 (UMODSI3_LIBCALL): ...with this one.
5019 2003-08-22 Jason Eckhardt <jle@rice.edu>
5021 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
5022 (output_delayed_branch): Remove prototype.
5023 (single_insn_src_p): Remove prototype.
5024 * config/i860/i860.c (single_insn_src_p): Remove function.
5025 (output_delayed_branch): Remove function.
5026 (output_delay_insn): Remove function.
5027 (va_start): Remove unconditional test and dead code, re-format.
5028 Fix coding style and spelling problems in various comments.
5029 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
5030 (blockage pattern): ...and use it here.
5031 (all define_peephole patterns related to delayed branches): Remove.
5032 Fix coding style and spelling problems in various comments.
5034 2003-08-22 Jason Eckhardt <jle@rice.edu>
5036 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
5037 Remove all uses of the PARAMS macro. Remove superflous prototypes.
5038 Convert all function definitions from traditional to ISO C90 syntax.
5039 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
5040 with 'GCC'. Remove all uses of the PARAMS macro.
5041 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
5042 * config/i860/i860.md: Likewise.
5043 * config/i860/sysv4.h: Likewise.
5044 * config/i860/varargs.asm: Likewise.
5046 2003-08-22 Jason Eckhardt <jle@rice.edu>
5048 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
5050 (tdesc_section): Add prototype.
5051 Update copyright dates.
5052 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
5053 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
5054 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
5055 (targetm): Likewise.
5056 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
5057 for '%d' where necessary.
5058 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
5059 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
5060 by UNITS_PER_WORD when referencing (likewise for .floats).
5061 (I860_SVR4_VARARGS): Rename...
5062 (I860_SVR4_VA_LIST): ...to this.
5063 Call build() with 't' rather than 'field'.
5064 (i860_rtx_costs): New function.
5065 (TARGET_RTX_COSTS): Define.
5066 (i860_internal_label): New function.
5067 (TARGET_ASM_INTERNAL_LABEL): Define.
5068 (i860_file_start): New function.
5069 Update copyright dates.
5070 * config/i860/i860.h (CPP_PREDEFINES): Remove.
5071 (TARGET_CPU_CPP_BUILTINS): Define.
5072 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
5073 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
5074 (ASM_FILE_START): Remove.
5075 (ASM_FILE_START_1): Remove.
5076 (ASM_GLOBALIZE_LABEL): Remove.
5077 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
5078 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
5079 with targetm.asm_out.internal_label.
5080 Update copyright dates.
5081 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
5082 (CPP_PREDEFINES): Remove.
5083 (TARGET_OS_CPP_BUILTINS): Define.
5084 (GLOBAL_ASM_OP): Define.
5085 (ASM_FILE_START): Remove.
5086 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
5087 (TARGET_ASM_FILE_START): Define.
5088 Update copyright dates.
5090 2003-08-22 Jason Eckhardt <jle@rice.edu>
5092 * gcc/config.gcc (i860-*-sysv4*): Add target.
5093 * config/i860/i860-protos.h: New.
5094 * config/i860/i860.c: New.
5095 * config/i860/i860.h: New.
5096 * config/i860/i860.md: New.
5097 * config/i860/sysv4.h: New.
5098 * config/i860/varargs.asm: New.
5099 * config/i860/x-sysv4: New.
5101 2003-08-22 Jason Eckhardt <jle@rice.edu>
5103 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
5104 Remove all uses of PARAMS macro.
5105 Convert all function definitions to ISO C90 syntax.
5106 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
5107 * config/pa/fptr.c: Likewise.
5108 * config/pa/lib2funcs.asm: Likewise.
5109 * config/pa/long_double.h: Likewise.
5110 * config/pa/milli64.S: Likewise.
5111 * config/pa/pa-64.h: Likewise.
5112 * config/pa/pa-hpux.h: Likewise.
5113 * config/pa/pa-hpux10.h: Likewise.
5114 * config/pa/pa-hpux11.h: Likewise.
5115 * config/pa/pa-linux.h: Likewise.
5116 * config/pa/pa-modes.def: Likewise.
5117 * config/pa/pa-osf.h: Likewise.
5118 * config/pa/pa-pro-end.h: Likewise.
5119 * config/pa/pa.md: Likewise.
5120 * config/pa/pa32-linux.h: Likewise.
5121 * config/pa/pa64-linux.h: Likewise.
5122 * config/pa/pa64-hpux.h: Likewise.
5123 * config/pa/pa64-regs.h: Likewise.
5124 * config/pa/quadlib.c: Likewise.
5125 * config/pa/rtems.h: Likewise.
5126 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
5127 all uses of the PARAMS macro.
5128 * config/pa/pa.h: Likewise.
5129 * config/pa/som.h: Likewise.
5131 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
5132 Remove all uses of PARAMS macro.
5133 Convert all function definitions to ISO C90 syntax.
5134 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
5135 Remove all uses of PARAMS macro.
5136 * config/iq2000.h: Remove all uses of PARAMS macro.
5137 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
5139 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
5141 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
5142 * config/s390/s390.c (gen_consttable): Remove.
5143 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
5144 (s390_output_pool_entry): New function.
5145 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
5146 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
5147 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
5148 (UNSPECV_POOL_ENTRY): ... this new constant.
5149 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
5150 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
5151 ("*pool_entry"): ... and replace by this new insn.
5152 ("literal_pool_31"): Do not emit anchor label if pool empty.
5154 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
5155 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
5156 (s390_fixup_clobbered_return_reg): Remove.
5157 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
5158 (s390_return_addr_rtx): Always retrieve return address from save area
5159 slot. Use save_return_addr_p to force slot to be filled.
5160 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
5162 2003-08-22 Chris Demetriou <cgd@broadcom.com>
5164 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
5165 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
5166 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
5167 around SB-1 errata if TARGET_FIX_SB1 is set.
5168 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
5169 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
5171 2003-08-22 Roger Sayle <roger@eyesopen.com>
5173 * hashtable.c (ht_expand): Avoid calculating rehash for the common
5174 case that the first probe hits an empty hash table slot.
5176 2003-08-22 Mark Mitchell <mark@codesourcery.com>
5178 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
5180 2003-08-22 Mark Mitchell <mark@codesourcery.com>
5182 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
5183 (ptr_extend_plus_imm): ... this.
5184 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
5185 optimization in C++.
5186 (ia64_output_mi_thunk): Support ILP32 mode.
5188 2003-08-22 Bernardo Innocenti <bernie@develer.com>
5190 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
5192 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
5194 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5196 * config/i386/i386.c (const_int_1_operand): Simplify an
5199 2003-08-22 Alan Modra <amodra@bigpond.net.au>
5201 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
5202 * config/rs6000/ppc64-fp.c: Likewise.
5204 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5206 * cfgcleanup.c: Fix comment typos.
5207 * emit-rtl.c: Likewise.
5208 * optabs.c: Likewise.
5209 * ra-build.c: Likewise.
5210 * rtlanal.c: Likewise.
5213 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5215 * c-decl.c: Fix comment formatting.
5216 * cfgrtl.c: Likewise.
5217 * combine.c: Likewise.
5218 * convert.c: Likewise.
5219 * dominance.c: Likewise.
5220 * dwarf2out.c: Likewise.
5221 * dwarfout.c: Likewise.
5222 * expmed.c: Likewise.
5223 * fold-const.c: Likewise.
5225 * genattrtab.c: Likewise.
5226 * ggc-common.c: Likewise.
5227 * mips-tfile.c: Likewise.
5228 * regmove.c: Likewise.
5230 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5232 * builtin-attrs.def: Fix comment formatting.
5233 * c-pretty-print.c: Likewise.
5234 * diagnostic.h: Likewise.
5235 * langhooks.h: Likewise.
5236 * recog.c: Likewise.
5237 * simplify-rtx.c: Likewise.
5238 * tree.def: Likewise.
5240 2003-08-22 Bernardo Innocenti <bernie@develer.com>
5242 * config/m68k/m68k-protos.h: Convert to ISO C90.
5243 * config/m68k/m68k.c: Likewise.
5245 2003-08-21 Bernardo Innocenti <bernie@develer.com>
5246 Paul Dale <pauli@snapgear.com>
5247 Peter Barada <peter@baradas.org>
5249 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
5252 2003-08-21 Zack Weinberg <zack@codesourcery.com>
5254 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
5255 * config.gcc (*-*-openbsd): Don't set tm_file.
5256 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
5257 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
5258 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
5259 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
5260 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
5261 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
5262 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
5263 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
5264 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
5265 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
5266 xscale-*-coff): Use explicit and complete lists of target headers
5267 to include. Move definitions to tm_defines where appropriate.
5268 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
5269 not-yet-contributed configuration.
5271 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
5272 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
5273 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
5274 * config/i386/nto.h, config/iq2000/iq2000.h,
5275 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
5276 * config/m68k/linux.h, config/m68k/m68k-aout.h
5277 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
5278 * config/m68k/netbsd.h, config/m68k/openbsd.h
5279 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
5280 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
5281 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
5282 Remove includes of other target config headers, and
5283 definitions of macros moved to tm_defines lists. Add #undefs
5284 where now necessary to prevent redefinition warnings.
5286 * config/h8300/coff.h: New file split out of...
5287 * config/h8300/elf.h: ...here.
5288 * config/m68k/hp320base.h: New file split out of...
5289 * config/m68k/hp320.h: ...here.
5290 * config/rs6000/lynxbase.h: New file split out of...
5291 * config/rs6000/lynx.h: ...here.
5293 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
5294 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
5296 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
5297 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
5298 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
5299 Remove unnecessary #ifndef.
5300 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
5301 [under IN_LIBGCC2] with config/.
5303 2003-08-21 Per Bothner <pbothner@apple.com>
5305 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
5307 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
5308 by return_at_eof check. Always call _cpp_pop_buffer at end.
5310 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
5313 * config/h8300/h8300.md (two anonymous patterns): Remove.
5315 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
5317 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
5318 * config/mips/mips.c (function_arg_pass_by_reference): Never return
5321 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
5323 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
5324 and similarly in (A | C) == D where C & ~D != 0.
5326 2003-08-20 Geoffrey Keating <geoffk@apple.com>
5329 * configure.in: When testing with_libs and with_headers, treat
5330 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
5331 * configure: Regenerate.
5333 2003-08-20 Peter Barada <peter@baradas.org>
5335 * longlong.h (umul_ppmm): Add ColdFire support.
5337 2003-08-20 Peter Barada <peter@baradas.org>
5338 Bernardo Innocenti <bernie@develer.com>
5340 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
5341 * config/m68k/m68k.h: Likewise.
5342 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
5343 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
5344 * config/m68k/linux.h: Likewise.
5345 * config/m68k/m68k.c: Likewise.
5346 * config/m68k/m68k.md: Likewise.
5347 * config/m68k/m68kelf.h: Likewise.
5348 * config/m68k/netbsd-elf.h: Likewise.
5349 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
5351 2003-08-20 Bernardo Innocenti <bernie@develer.com>
5353 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
5354 * config/m68k/m68k.md: Likewise.
5356 2003-08-20 Mark Mitchell <mark@codesourcery.com>
5360 2003-08-19 Mark Mitchell <mark@codesourcery.com>
5361 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
5362 types with precisions other than those given by native machine
5365 2003-08-20 Gunther Nikl <gni@gecko.de>
5367 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
5368 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
5369 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
5370 * config/m68k/m68k.md (anonymous define_insn): Likewise
5371 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
5372 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
5373 code selected by NO_ASM_FMOVECR
5375 2003-08-20 Gunther Nikl <gni@gecko.de>
5377 * config/m68k/m68k.c (output_move_const_into_data_reg,
5378 output_move_himode): unify MOTOROLA/MIT handling of moveq
5379 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
5382 2003-08-20 Gunther Nikl <gni@gecko.de>
5384 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
5386 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
5387 HOST_WIDE_INT_PRINT_DEC with %wd
5389 2003-08-20 Loren James Rittle <ljrittle@acm.org>
5391 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
5394 2003-08-20 Roger Sayle <roger@eyesopen.com>
5397 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
5398 operands before calling tree_int_cst_lt when performing associative
5401 2003-08-20 Jason Merrill <jason@redhat.com>
5403 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
5404 (EXPR_CHECK): Don't check for 'r' or 's' if we're
5405 checking IS_EXPR_CODE_CLASS.
5406 * calls.c (calls_function_1): Likewise.
5407 * fold-const.c (fold): Likewise.
5408 * tree.c (iterative_hash_expr): Likewise.
5409 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
5411 2003-08-20 Gunther Nikl <gni@gecko.de>
5413 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
5414 depending on MOTOROLA_BSR
5415 * config/m68k/m68k.md (anonymous define_insn): Likewise
5417 2003-08-20 Jason Merrill <jason@redhat.com>
5419 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
5420 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
5421 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
5422 * dojump.c (do_jump): Likewise.
5423 * fold-const.c (operand_equal_p, fold): Likewise.
5424 (tree_expr_nonnegative_p): Likewise.
5426 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
5427 TYPE_USER_ALIGN for FIELD_DECLs.
5429 * attribs.c (decl_attributes): Rebuild the function pointer type after
5430 changing the target type.
5431 * tree.c (get_qualified_type): Also check that the attributes match.
5433 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
5435 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
5436 * objc/config-lang.in (stagestuff): ... to here.
5438 2003-08-19 Mark Mitchell <mark@codesourcery.com>
5441 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
5442 NOP_EXPR) when necessary.
5443 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
5444 types with precisions other than those given by native machine
5447 2003-08-19 Geoffrey Keating <geoffk@apple.com>
5449 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
5450 because some macro is defined.
5452 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
5454 * config/i386/darwin.h (ASM_SPEC): New.
5455 (SUBTARGET_EXTRA_SPECS): New.
5456 * config/rs6000/darwin.h (ASM_SPEC): New.
5457 (SUBTARGET_EXTRA_SPECS): New.
5458 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
5459 a cross-compiler between two different processors on Darwin.
5460 * configure: Regenerate.
5462 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
5464 * builtins.c: Fix comment typos.
5465 * c-common.c: Likewise.
5466 * c-decl.c: Likewise.
5467 * c-pretty-print.c: Likewise.
5468 * cfgbuild.c: Likewise.
5469 * cfglayout.c: Likewise.
5470 * cfgloopanal.c: Likewise.
5471 * cgraphunit.c: Likewise.
5472 * cppfiles.c: Likewise.
5473 * dwarfout.c: Likewise.
5475 * fold-const.c: Likewise.
5477 * ggc-page.c: Likewise.
5478 * haifa-sched.c: Likewise.
5479 * pretty-print.c: Likewise.
5482 * value-prof.c: Likewise.
5484 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
5486 * c-decl.c: Follow spelling conventions.
5487 * cppfiles.c: Likewise.
5489 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
5491 * c-common.c: Fix comment formatting.
5492 * c-common.h: Likewise.
5493 * c-decl.c: Likewise.
5494 * cppinit.c: Likewise.
5495 * cpplib.h: Likewise.
5496 * emit-rtl.c: Likewise.
5497 * input.h: Likewise.
5498 * line-map.h: Likewise.
5501 * simplify-rtx.c: Likewise.
5503 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
5505 * unwind-c.c: Add libgcc-style exception.
5506 * unwind-dw2.c: Likewise.
5507 * unwind-pe.h: Likewise.
5508 * unwind-sjlj.c: Likewise.
5509 * unwind.inc: Likewise.
5511 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
5513 PR c/5582 PR c++/10538
5514 * langhooks-def.h (lhd_decl_uninit): Declare.
5515 (LANG_HOOKS_DECL_UNINIT): New macro.
5516 (LANG_HOOKS_INITIALIZER): Adjust.
5517 * langhooks.h (struct lang_hooks): Add new field
5519 * langhooks.c (lhd_decl_uninit): Define.
5520 * c-common.c (c_decl_uninit_1): New function.
5521 (c_decl_uninit): New function.
5522 (warn_init_self): Define.
5523 * c-common.h (c_decl_uninit): Declare.
5524 (warn_init_self): Declare.
5525 * c.opt: Introduce -Winit-self.
5526 * c-opts.c (c_common_handle_options): Set warn_init_self.
5527 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
5528 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
5529 * function.c (uninitialized_vars_warning): Call the language hook.
5530 * doc/invoke.texi: Document -Winit-self.
5532 2003-08-19 Chris Demetriou <cgd@broadcom.com>
5534 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
5535 to use better predicates and constraints. Define new
5536 instruction to handle "trap_if" with DI-mode arguments.
5537 (conditional_trap): FAIL if trap code is not 0.
5539 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
5541 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
5542 strstr with $pb to a strcompare with "<pic base>"
5543 (ix86_output_addr_diff_elt): Output the real pic base.
5545 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
5547 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
5548 (LANG_HOOKS_INITIALIZER): Correct.
5549 * c-lang.c: Likewise.
5551 2003-08-19 Jan Hubicka <jh@suse.cz>
5553 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
5554 (cgraph_varpool_mark_needed_node): Likewise.
5555 * cgraph.h (notice_global_symbol): Declare
5556 * varasm.c (notice_global_symbol): Break out from ...
5557 (assemble_start_function): ... here; update for variables.
5558 (assemble_variable): Use notice_global_symbol.
5560 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
5562 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
5563 expect SFmode and DFmode arguments to be passed in FPRs,
5564 regardless of the underlying type.
5566 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
5569 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
5570 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
5572 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
5575 * c-typeck.c (set_init_index): Check for negative index.
5577 2003-08-18 Bob Wilson <bob.wilson@acm.org>
5579 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
5581 * config/xtensa/crtn.asm (_init, _fini): Likewise.
5582 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
5583 __umodsi3, __modsi3): Likewise.
5584 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
5587 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
5589 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
5591 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
5593 * config/mips/mips.md: Quote C code in braces. Remove use of
5594 fake const0_rtx operands. Remove double backslashes. Use \;.
5595 Remove workarounds for bogus warnings.
5597 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
5599 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
5600 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
5601 rather than TARGET_MIPS4300.
5602 (mulsf3_internal, mulsf3_r4300): Likewise.
5604 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
5606 * config/mips/mips.md: Renumber unspecs. Clean up comments.
5608 2003-08-17 Roger Sayle <roger@eyesopen.com>
5610 * simplify-rtx.c (associative_constant_p): New function to test
5611 whether an RTX expression is an immediate constant.
5612 (simplify_associative_operation): New function to perform some
5613 reassociation optimizations of associative binary expressions.
5614 (simplify_binary_operation): Use simplify_associative_operation
5615 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
5616 Floating point expressions are only reassociated when unsafe
5617 math optimizations are permitted.
5619 2003-08-17 Andreas Jaeger <aj@suse.de>
5621 * config/alpha/alpha.md: Remove usage of PARAMS.
5623 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
5624 * config/i386/i386-interix.h: Likewise.
5625 * config/i386/winnt.c: Likewise.
5626 * config/i386/cygming.h: Likewise.
5627 * config/i386/cygwin2.c: Likewise.
5628 * config/darwin.c: Likewise.
5629 * config/darwin-c.c: Likewise.
5630 * config/darwin-protos.h: Likewise.
5631 * config/darwin.h: Likewise.
5632 * config/s390/s390-protos.h: Likewise.
5633 * config/s390/s390.c: Likewise.
5634 * config/ia64/ia64.c: Likewse
5635 * config/ia64/ia64-protos.h: Likewise.
5636 * config/ia64/ia64-c.c: Likewise.
5638 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5640 * config/sparc/sparc.c: Convert to ISO C.
5642 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
5643 * config/sparc/sparc.c: Likewise.
5645 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
5648 * stmt.c (expand_expr_stmt_value): Don't warn about any void
5651 2003-08-16 Jan Hubicka <jh@suse.cz>
5653 * i386.c (ix86_fntype_regparm): Rename from ...
5654 (ix86_function_regparm): ... this one; add fastcall and local
5656 (ix86_function_ok_for_sibcall): Update.
5657 (ix86_return_pops_args): Likewise.
5658 (init_cumulative_args): Likewise.
5659 (x86_can_output_mi_thunk): Likewise.
5660 (function_arg): Fix formating.
5661 (x86_this_parameter): Fix fastcall.
5662 (x86_output_mi_thunk): Likewise.
5664 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
5665 body as reachable; mark nested functions as needed too.
5666 (dump_cgraph): Do not output global.calls.
5667 * cgraph.h (cgraph_global_info): Kill.
5668 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
5669 (record_call_1): Speedup.
5670 (cgraph_analyze_function): Break out from ...; compute inlining
5672 (cgraph_finalize_compilation_unit): ... here.
5673 (cgraph_mark_inline): Kill computation of calls.
5674 (cgraph_decide_inlining): Do not compute most of initial values.
5676 2003-08-14 Roger Sayle <roger@eyesopen.com>
5678 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
5679 to negate if either operand is easy to negate, if we don't care
5680 about sign-dependent rounding.
5681 (negate_expr): Make the logic to negate a REAL_CST explicit.
5682 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
5683 that's easy to negate, if we don't honor sign-dependent rounding.
5684 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
5685 negate, and the symmetric A * -B as -A * B if A is easy to negate.
5686 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
5687 -C/D if B and C are cheap to negate. Add an explicit rule to
5688 optimize X/-1.0 as -X when we don't care about signaling NaNs.
5690 2003-08-14 Zack Weinberg <zack@codesourcery.com>
5692 * Makefile.in (tm_file): Rename tm_include_list.
5693 (tm_p_file): Rename tm_p_include_list.
5694 (build_xm_file): Rename build_xm_include_list.
5695 (host_xm_file): Rename host_xm_include_list.
5696 (xm_file): Rename xm_include_list.
5697 (xm_file_list): Add to be substituted.
5698 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
5700 (bt-load.o): Add missing dependency on $(TM_H).
5701 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
5702 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
5703 build_xm_file, generate both *_file_list and *_include_list
5704 values from it. (xm_file_list was formerly not being generated.)
5705 In *_include_list, prefix the names of all headers found in
5706 $(srcdir)/config with config/. In each loop, consider only
5707 the special case files that can actually appear in that list.
5708 AC_SUBST all *_file_list and all *_include_list variables; do
5709 not AC_SUBST the plain *_file variables.
5710 * configure: Regenerate.
5712 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5714 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
5716 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5718 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
5720 (attr_length_call): Include it here. Improve length estimate for
5722 (output_call): Use targetm.binds_local_p.
5724 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5726 * builtins.c (CASE_MATHFN): New helper macro.
5727 (mathfn_built_in): Simplify and sort.
5729 * protoize.c (substr): Delete, callers changed to `strstr'.
5731 2003-08-13 Zack Weinberg <zack@codesourcery.com>
5733 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
5734 * config/iq2000/xm-iq2000.h: Delete file.
5736 2003-08-13 Geoffrey Keating <geoffk@apple.com>
5738 * gengtype.c (walk_type): Process a subobject before processing
5739 the pointer that points to the subobject.
5741 2003-08-13 Per Bothner <pbothner@apple.com>
5743 * regclass.c (init_reg_modes): Make non-static.
5744 Rename to init_reg_modes_once per new naming convention.
5745 (init_regs): Don't call init_reg_modes here.
5746 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
5747 * rtl.h (init_reg_modes_once): New declaration.
5748 * toplev.c (backend_init): Call init_regs after init_emit_once.
5750 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
5752 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
5753 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
5755 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
5757 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
5758 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
5760 2003-08-13 Dale Johannesen <dalej@apple.com>
5762 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
5763 handling of decrement-and-branch farther than 32 bits.
5765 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
5767 * configure.in (make_compare_target): Move test to ...
5768 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
5769 * configure: Regenerate.
5771 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
5773 * config/mips/iris6.h: Convert to C90 prototypes.
5774 * config/mips/irix6-libc-compat.c: Likewise.
5775 * config/mips/mips-protos.h: Likewise.
5776 * config/mips/mips.c: Likewise.
5778 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
5780 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
5781 for selected machines. Comment heavily.
5782 fixinc/fixincl.x: Rebuild.
5783 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
5785 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
5787 * config/mips/mips.h: Tweak various comments.
5788 * config/mips/mips.c: Likewise.
5790 2003-08-11 James E Wilson <wilson@tuliptree.org>
5792 PR optimization/11319
5794 * alias.c (find_base_value, case REG): Return 0 not src if no base
5797 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5799 * gcse.c (gmalloc): Fix last change.
5801 2003-08-11 Roger Sayle <roger@eyesopen.com>
5803 * simplify-rtx.c (simplify_binary_operation): Replace calls to
5804 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
5805 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
5806 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
5808 2003-08-11 Roger Sayle <roger@eyesopen.com>
5810 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
5811 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
5812 typecode for an ABS_EXPR.
5814 * doc/c-tree.texi: Document ABS_EXPR.
5816 2003-08-11 Roger Sayle <roger@eyesopen.com>
5818 * fold-const.c (fold): Optimize any associative floating point
5819 operator with -funsafe-math-optimizations, not just MULT_EXPR.
5821 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
5823 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
5824 information in SHmedia case too.
5825 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
5827 (__set_fpscr): Use an access via GOT for PIC case.
5829 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
5831 * configure.in (intermodule): Make switch test more portable.
5832 * configure: Regenerate.
5834 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
5836 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
5837 (restrap): Likewise.
5839 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5841 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
5842 (grealloc): Size argument is a size_t.
5843 (gcalloc): New function. Use throughout in lieu of
5846 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
5848 * config/ia64/ia64.c (ia64_reorg): Likewise.
5849 * conflict.c (conflict_graph_new): Likewise.
5850 * fixinc/fixincl.c (run_compiles): Likewise.
5851 * genattrtab.c (optimize_attrs): Likewise.
5852 * genrecog.c (new_decision): Likewise.
5853 * haifa-sched.c (schedule_block): Likewise.
5854 * hashtable.c (ht_create): Likewise.
5856 2003-08-11 Bob Wilson <bob.wilson@acm.org>
5858 * config/xtensa/lib2funcs.S: Fix whitespace.
5859 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
5860 syntax where appropriate. Remove unnecessary backslash escapes.
5861 Reformat comments and fix some code formatting.
5862 (extendqisi2): Rearrange conditional.
5863 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
5864 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
5867 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
5869 * config/mips/mips.c: Various formatting fixes.
5870 (override_options): Resync -mtune handling with gas.
5871 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
5872 * config/mips/mips.h: More formatting fixes.
5873 (mips_abi): Move declaration.
5874 * config/mips/mips.md (exception_receiver): Add mode to
5877 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
5879 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
5881 (bdesc_1arg): Remove evsplati and evsplatfi.
5883 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
5885 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
5888 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5890 * builtins.c (expand_builtin_strcat): Optimize constant strings.
5892 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
5894 * pretty-print.c (pp_base_indent): Rename from pp_indent.
5895 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
5896 (struct c_pretty_print_info): Add more fields.
5897 (pp_c_left_paren): Move to c-pretty-print.c.
5898 (pp_c_right_paren): Likewise.
5899 (pp_c_left_brace): Likewise.
5900 (pp_c_right_brace): Likewise.
5901 (pp_c_left_bracket): Likewise.
5902 (pp_c_right_bracket): Likewise.
5903 (pp_c_declarator): Declare.
5904 (pp_c_direct_declarator): Likewise.
5905 (pp_c_specifier_qualifier_list): Likewise.
5906 (pp_c_type_id): Likewise.
5907 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
5908 (pp_c_type_qualifier_list): New.
5909 (pp_c_pointer): Likewise.
5910 (pp_c_parameter_type_list): Likewise.
5911 (pp_c_function_definition): Likewise.
5912 (pp_c_id_expression): Likewise.
5913 (pp_c_simple_type_specifier): Tidy.
5914 (pp_c_unary_expression): Likewise.
5915 (pp_c_expression): Likewise.
5916 (pp_c_pretty_printer_init): Likewise.
5917 (pp_c_specifier_qualifier_list): Rework..
5918 (pp_c_abstract_declarator): Likewise.
5919 (pp_c_postfix_expression): Likewise.
5920 (pp_c_primary_expression): Likewise.
5921 (pp_c_cast_expression): Likewise.
5922 (pp_c_direct_abstract_declarator): Likewise.
5923 (pp_c_storage_class_specifier): Likewise.
5924 (pp_c_function_specifier): Likewise.
5925 (pp_c_declaration_specifiers): Likewise.
5926 (pp_c_direct_declarator): Likewise.
5927 (pp_c_declarator): Likewise.
5928 (pp_c_declaration): Likewise.
5929 (pp_c_statement): Likewise.
5930 (pp_c_integer_constant): Rename from pp_c_integer_literal.
5931 (pp_c_character_constant): Rename from pp_c_character_literal.
5932 (pp_c_bool_constant): Rename from pp_c_bool_literal.
5933 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
5934 (pp_c_floating_constant): Rename from pp_c_real_literal.
5935 (pp_c_constant): Rename from pp_c_literal.
5936 * c-lang.c: Include diagnostic.h and c-pretty-print.h
5937 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
5938 (c_initialize_diagnostics): New.
5939 * Makefile.in (c-lang.o): Update dependency.
5941 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
5943 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
5945 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
5947 * config/mips/mips.c (mips_no_mips16_string): Remove.
5948 (override_options): Don't handle -mips16 as part of -mipsN.
5949 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
5950 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
5951 (TARGET_OPTIONS): Remove -mno-mips16.
5953 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
5955 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
5956 (coprocessor2_operand): Likewise.
5957 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
5958 (lookup_name): Remove declaration.
5959 (abort_with_insn): Remove. Replace all uses with fatal_insn.
5960 (mips16, mips_abicalls): Remove.
5961 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
5962 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
5963 (coprocessor_operand, coprocessor2_operand): Remove.
5964 (override_options): Don't set mips16 or mips_abicalls.
5965 (print_operand): Don't expect SIGN_EXTEND operands.
5966 (mips_secondary_reload_class): Likewise.
5967 (mips_output_conditional_branch): Remove disabled long-branch code.
5968 * config/mips/mips.h (call_used_regs): Remove declaration.
5969 (may_call_alloca): Likewise.
5970 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
5971 (mips_abicalls, mips16): Remove declarations.
5972 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
5973 (CC1_SPEC): Remove outdated comment.
5974 (MIPS_VERSION, MACHINE_TYPE): Remove.
5975 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5976 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
5977 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
5978 (PUSH_ROUNDING): Likewise.
5979 (ASSEMBLER_SCRATCH_REGNUM): Remove.
5980 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
5981 and mips16 with TARGET_MIPS16.
5983 2003-08-09 Per Bothner <pbothner@apple.com>
5985 * cppinit.c (cpp_read_main_file): Split out source-independent
5986 initialization to separate function ...
5987 (cpp_post_options): New function.
5988 * cppfiles.c (cpp_stack_file): Rename public name to ...
5989 (_cpp_stack_file): New internal function name.
5990 * cpplib.h: Update accordingly.
5991 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
5992 (cpp_read_main_file): Don't initialize line here.
5993 * c-opts.c (c_common_post_options): Call cpp_post_options.
5994 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
5995 * fix-header.c (read_scan_file): Call cpp_post_options.
5997 2003-08-09 Per Bothner <per@bothner.com>
5999 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
6001 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6003 * pa.c (pa_asm_output_mi_thunk): Fix typo.
6005 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
6007 PR preprocessor/11839
6008 * cppfiles.c (open_file): Handle ENOTDIR.
6010 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
6013 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
6015 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6017 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
6018 source/destination is not a register operand.
6020 2003-08-08 Richard Henderson <rth@redhat.com>
6023 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
6024 RETURN_ADDRESS_POINTER_REGNUM.
6025 (ia64_expand_prologue): Don't frob it.
6026 (ia64_output_function_epilogue): Likewise.
6027 (ia64_return_addr_rtx): New.
6028 (ia64_split_return_addr_rtx): New.
6029 * config/ia64/ia64-protos.h: Update.
6030 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
6031 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
6032 (GENERAL_REGNO_P): Don't check it.
6033 (AR_*_REGNUM): Renumber.
6034 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
6035 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
6036 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
6037 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
6038 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
6039 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
6040 (movdi_ret_addr): New.
6042 2003-08-08 Geoffrey Keating <geoffk@apple.com>
6044 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
6046 2003-08-08 Roger Sayle <roger@eyesopen.com>
6048 * tree.h (get_identifier) Define a macro form of get_identifier
6049 that calls get_identifier_with_length when the string is constant.
6050 (get_identifier_with_length): Change type of second argument to
6051 size_t in prototype.
6052 * stringpool.c (get_identifier): Undefine the macro before giving
6053 the function definition.
6054 (get_identifier_with_length): Change type of second argument to
6055 size_t in function definition.
6056 * hashtable.c (calc_hash): Change type of second argument to size_t.
6057 (ht_lookup): Change type of third argument to size_t. Reorganize
6058 to speed-up the cases where the hash table slot is empty, or the
6059 first probe matches (i.e. there isn't a collision).
6060 * hashtable.h (ht_lookup): Adjust function prototype.
6062 2003-08-08 Bernardo Innocenti <bernie@develer.com>
6066 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
6068 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
6070 * common.opt: Add debug switches.
6071 * flags.h (use_gnu_debug_info_extensions): Boolify.
6072 * opts.c (write_symbols, debug_info_level,
6073 use_gnu_debug_info_extensions): Move from toplev.c.
6074 (set_debug_level): New.
6075 (common_handle_options): Handle debug switches.
6076 (print_help): Display target options directly.
6077 * toplev.c (debug_hooks): Don't initialize.
6078 (write_symbols, debug_info_level,
6079 use_gnu_debug_info_extensions): Move to opts.c.
6080 (debug_args, display_help, decode_g_option): Remove.
6081 (process_options): Set no debug if level zero here,
6082 and no-debug-hooks. Error here if impossible debug format selected.
6083 * toplev.h (display_help, decode_g_option): Remove.
6085 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
6087 * tree.c (get_file_function_name_long): Fix size of alloca() area.
6089 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
6091 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
6092 and gcc_cv_prog_cmp_skip.
6093 * configure: Regenerate.
6095 2003-08-08 Stan Cox <scox@redhat.com>
6097 * config/iq2000: New port.
6098 * config.gcc (iq2000-*-elf): Added.
6099 * doc/install.texi (Specific): Add iq2000 description.
6101 2003-08-08 Andreas Schwab <schwab@suse.de>
6103 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
6104 and insert missing empty argument.
6105 * configure: Regenerate.
6107 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6109 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
6110 (attr_length_millicode_call): Likewise.
6111 (attr_length_call): Likewise. Revise some maximum insn lengths.
6112 (attr_length_indirect_call): Likewise.
6113 (output_call): Fix thinko that added extra nop.
6114 * pa.h (IN_NAMED_SECTION_P): Define.
6117 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
6118 __STDC_EXT__ when using C++ dialect.
6120 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
6122 * sh.c (calc_live_regs): If the return address pointer is live,
6124 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
6125 for saves / restores.
6126 (sh_expand_epilogue): If sh_media_register_for_return returns a
6127 register number, flag the instructions that restores PR_MEDIA_REG
6129 Remove dead update of offset.
6130 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
6131 we can use the result of get_hard_reg_initial_val.
6132 * sh.md (UNSPEC_RA): New constant.
6133 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
6134 (load_ra). Handle UNSPEC_RA.
6135 (sibcall_media): Use PR_MEDIA_REG.
6137 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
6138 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
6139 needs saving on SHmedia.
6141 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
6143 * config/s390/s390.md: Replace all occurrences of \\t with \t.
6145 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
6147 * local-alloc.c (combine_regs): Fix comment typo.
6149 2003-08-06 Zack Weinberg <zack@codesourcery.com>
6151 * c-decl.c (builtin_decls): Replace with first_builtin_decl
6152 and last_builtin_decl.
6153 (c_init_decl_processing): Initialize both.
6154 (c_reset_state): Iterate from first_builtin_decl to
6155 last_builtin_decl inclusive to reintroduce builtins.
6157 2003-08-06 David Mosberger <davidm@hpl.hp.com>
6159 * doc/extend.texi (Function Attributes): Document the IA-64 version
6160 of the "model" attribute.
6162 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
6163 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
6164 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
6166 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
6167 (ia64_encode_section_info): Likewise.
6168 (ia64_attribute_table): Add "model" attribute.
6169 (TARGET_ENCODE_SECTION_INFO): Define.
6170 (small_addr_symbolic_operand): New function.
6171 (got_symbolic_operand): Return 0 for a symbolref to an object
6172 in the small address area.
6173 (enum ia64_addr_area): New type.
6174 (small_ident1): New variable.
6175 (small_ident2): Likewise.
6176 (init_idents): New function.
6177 (ia64_get_addr_area): Likewise.
6178 (ia64_encode_addr_area): Likewise.
6179 (ia64_encode_section_info): Likewise.
6180 (ia64_expand_load_address): For symbolic references to objects in
6181 the small-address-area, load the address via gen_rtx_SET() (which,
6182 eventually, will expand into "addl").
6184 2003-08-06 Per Bothner <pbothner@apple.com>
6186 * line-map.h (fileline): New typedef.
6187 (struct line_map, linemap_add, linemap_lookup): Use it.
6188 * input.h (struct location_s): Comment notes that long-term we want
6189 to replace it by fileline.
6191 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
6193 Fix SHcompact exception handling:
6194 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
6195 by the prologue, return a MEM with return_address_pointer_rtx
6197 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
6198 (RETURN_ADDR_OFFSET): Don't define.
6199 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
6200 registers that are visible in compact mode. Show that SHmedia
6201 registers still exist in compact mode, even if there are not
6203 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
6204 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
6205 and DW_EH_PE_pcrel for pic data.
6206 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
6207 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
6208 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
6209 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
6210 * sh.md (movsi_media-1): New splitter.
6212 2003-08-06 Graeme Peterson <gp@qnx.com>
6214 * config/i386/nto.h: New.
6215 * config/i386/t-nto: New.
6216 * config.gcc (i[34567]86-*-nto-qnx*): New.
6218 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
6220 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
6222 2003-08-06 Alan Modra <amodra@bigpond.net.au>
6224 * calls.c (load_register_parameters): Arrange for call_fusage to
6225 report the whole register as used when shifting to the msb.
6227 2003-08-05 Roger Sayle <roger@eyesopen.com>
6229 * builtins.c (expand_builtin): When not optimizing, call the library
6230 function for all builtins that have library functions (except alloca).
6232 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
6234 * c.opt: Introduce -fworking-directory.
6235 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
6236 * c-common.h (flag_working_directory): Declare.
6237 * c-common.c (flag_working_directory): Define.
6238 * c-opts.c (c_common_handle_options): Set it.
6239 (sanitize_cpp_opts): Set...
6240 * cpplib.h (struct cpp_options): ... working_directory option.
6241 (struct cpp_callbacks): Add dir_change.
6242 * cppinit.c (read_original_filename): Call...
6243 (read_original_directory): New. Look for # 1 "directory//"
6245 (cpp_read_main_file): Call dir_change callback if working_directory
6247 * gcc.c (cpp_unique_options): Pass -g*.
6248 * c-lex.c (cb_dir_change): New.
6249 (init_c_lex): Set dir_change callback.
6250 * toplev.c (src_pwd): New static variable.
6251 (set_src_pwd, get_src_pwd): New functions.
6252 * toplev.h (get_src_pwd, set_src_pwd): Declare.
6253 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
6254 * dwarf2out.c (gen_compile_unit_die): Likewise.
6255 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
6257 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
6259 * pretty-print.h (pp_set_line_maximum_length): Make macro.
6260 (pp_set_prefix): Likewise.
6261 (pp_destroy_prefix): Likewise.
6262 (pp_remaining_character_count_for_line): Likewise.
6263 (pp_clear_output_area): Likewise.
6264 (pp_formatted_text): Likewise.
6265 (pp_last_position_in_text): Likewise.
6266 (pp_emit_prefix): Likewise.
6267 (pp_append_text): Likewise.
6268 (pp_flush): Likewise.
6269 (pp_format_text): Likewise.
6270 (pp_format_verbatim): Likewise.
6271 (pp_tree_identifier): Tidy.
6272 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
6273 (pp_base_format_verbatim): Rename from pp_format_verbatim.
6274 (pp_base_flush): Rename from pp_flush.
6275 (pp_base_set_line_maximum_length): Rename from
6276 pp_set_line_maximum_length.
6277 (pp_base_clear_output_area): Rename from pp_clear_output_area.
6278 (pp_base_set_prefix): Rename from pp_set_prefix.
6279 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
6280 (pp_base_emit_prefix): Rename from pp_emit_prefix.
6281 (pp_base_append_text): Rename from pp_append_text.
6282 (pp_base_formatted_text): Rename from pp_formatted_text.
6283 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
6284 (pp_base_remaining_character_count_for_line): Rename from
6285 pp_remaining_character_count_for_line.
6286 * diagnostic.h (diagnostic_format_decoder): Tidy.
6287 (diagnostic_flush_buffer): Likewise.
6288 * c-pretty-print.h: (pp_c_string_literal): Declare.
6289 (pp_c_real_literal): Likewise.
6290 (pp_c_integer_literal): Likewise.
6291 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
6293 (pp_c_character_literal): Tidy.
6294 (pp_c_string_literal): Make public.
6295 (pp_c_bool_literal): Likewise.
6296 (pp_c_integer_literal): Likewise.
6297 (pp_c_real_literal): Likewise.
6299 * Makefile.in (C_PRETTY_PRINT_H): New variable.
6300 (c-pretty-print.o): Update dependence.
6302 2003-08-05 Chris Demetriou <cgd@broadcom.com>
6304 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
6305 ".set nomacro" state.
6306 (fix_truncsfsi2_macro): Likewise.
6308 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
6310 * tree.h (DID_INLINE_FUNC): Remove macro.
6311 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
6312 add tree check for FUNCTION_DECL.
6313 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
6314 (struct tree_decl): Rename inlined_function_flag to
6315 declared_inline_flag.
6316 * c-common.h (c_lang_decl): Remove.
6317 (DECL_ESTIMATED_INSNS): Remove.
6318 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
6319 (DECL_DECLARED_INLINE_P): Remove.
6320 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
6321 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
6322 (finish_function): Make uninlinable a bool. Fixup call to
6323 tree_inlinable_function_p() and fix some code style issues.
6324 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
6325 * cgraph.c (dump_cgraph): Likewise.
6326 * cgraphunit.c (cgraph_decide_inlining): Likewise
6327 (cgraph_finalize_compilation_unit): Likewise.
6328 Also update call to tree_inlinable_function_p().
6329 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
6330 look at DECL_DECLARED_INLINE and reverse logic.
6331 * print-tree.c (print_node): Likewise.
6332 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
6333 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
6335 * tree-inline.c (inlinable_function_p): Split up in this function to
6336 check for basic inlining inhibiting conditions, and new
6337 limits_allow_inlining() function. Warn if inlining is impossible
6338 because the inline candidate calls alloca or uses sjlj exceptions.
6339 (limits_allow_inlining): this new function to check if the inlining
6340 limits are satisfied. Throttle from currfn_max_inline_insns, not from
6341 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
6342 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
6344 (tree_inlinable_function_p): Make a bool. Update call to
6345 inlinable_function_p
6346 (expand_call_inline): Use limits_allow_inlining() when not in
6347 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
6348 instead see if the function was declared `inline'.
6350 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
6352 * gcse.c (try_replace_reg): Fix updating of note.
6354 2003-08-04 Roger Sayle <roger@eyesopen.com>
6357 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
6358 logic in negate_expr, i.e. we don't invert (A-B) for floating
6359 point types unless flag_unsafe_math_optimizations.
6361 2003-08-04 Roger Sayle <roger@eyesopen.com>
6363 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
6364 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
6365 for floating point expressions with -ffast-math.
6366 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
6367 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
6369 2003-08-04 Roger Sayle <roger@eyesopen.com>
6371 * c-common.c (flag_noniso_default_format_attributes): Delete.
6372 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
6373 (c_attrs_initialized): Delete.
6374 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
6375 always call c_init_attributes.
6376 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
6377 set c_attrs_initialized when done.
6378 (c_common_insert_default_attributes): Delete.
6379 * c-common.h (flag_noniso_default_format_attributes): Delete.
6380 (c_coomon_insert_default_attributes): Delete prototype.
6381 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
6382 flag_noniso_default_format_attributes.
6384 * c-decl.c (c_insert_default_attributes): Delete.
6385 * c-tree.h (c_insert_default_attributes): Delete prototype.
6387 * attribs.c (decl_attributes): Don't call insert_default_attributes
6388 langhook. Update function description comment.
6389 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
6390 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
6391 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
6392 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
6394 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
6397 2003-08-04 Richard Sandiford <rsandif@redhat.com>
6399 * config/mips/mips.c (override_options): Disable -G on targets that
6400 have no .section support.
6401 (mips_select_section): Use default_select_section for such targets.
6403 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
6405 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
6406 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
6407 * fixinc/fixincl.x: Rebuild.
6408 * fixinc/tests/base/regexp.h: New test.
6410 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
6412 * c-ppoutput.c (cb_line_change): Don't skip line changing while
6413 parsing macro arguments in the top-level context.
6415 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
6417 * config.in: Remove HAVE_LSTAT.
6418 * configure, configure.in: Don't test for lstat.
6420 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6422 * opts.c (decode_options): Do language-specific initialization for
6423 the global diagnostic context.
6424 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
6425 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
6426 (LANG_HOOKS_INITIALIZER): Adjust.
6427 * langhooks.h (struct lang_hooks): Add new field
6428 initialize_diagnostics.
6429 * langhooks.c (lhd_initialize_diagnostics): Define.
6431 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6433 * pretty-print.h: Adjust macro definitions.
6434 * pretty-print.c (pp_newline): Rename to pp_base_newline.
6435 (pp_character): Rename to pp_base_character.
6436 (pp_string): Rename to pp_base_string.
6437 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
6438 (pp_newline): Likewise. Adjust.
6439 (pp_c_char): Adjust.
6441 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6443 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
6444 BUILT_IN_LLABS): Move to miscellaneous section.
6446 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
6448 PR preprocessor/11534
6449 * cppexp.c (parse_defined): Warn only if -pedantic.
6451 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
6453 * cppfiles.c (stack_file): Use file path.
6455 2003-08-02 Roger Sayle <roger@eyesopen.com>
6457 * builtin-types.def (BT_SSIZE): New primitive type.
6458 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
6459 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
6460 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
6461 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
6462 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
6463 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
6464 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
6465 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
6466 few functions that define default attributes using it.
6467 * c-common.c (c_common_insert_default_attributes): Do nothing.
6469 * doc/extend.texi: Document these "new" builtins.
6471 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
6473 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
6474 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
6475 when -mieee-fp set and -shared not set.
6476 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
6478 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
6480 * cppfiles.c (struct _cpp_file): Rename once_only_next to
6481 next_file. Remove import and pragma_once, add once_only.
6482 (find_file): Add new file structures to the all_files list.
6483 (should_stack_file): Mark #import-ed files once-only, and
6484 don't stack them if the file has already been stacked.
6485 (_cp_mark_file_once_only): Simplify.
6486 * cpphash.h (struct cpp_reader): Rename once_only_files
6487 to all_files. Rename saw_pragma_once to seen_once_only.
6488 (_cpp_mark_file_once_only): Update prototype.
6489 * cpplib.c (do_pragma_once): Update.
6491 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
6493 * cppfiles.c (ENOTDIR): Remove.
6494 (open_file_in_dir): Rename find_file_in_dir. Handle errors
6495 other than ENOENT here.
6496 (once_only_file_p): Rename should_stack_file.
6497 (find_file, open_file_failed, read_file_guts): Report errors
6498 with full path name.
6499 (read_file): Move pch handling to should_stack_file.
6500 (should_stack_file): Handle PCH and once-only issues, and
6502 (stack_file): Don't do file reads.
6504 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6506 * libgcov.c (gcov_exit): Cleanup and fix.
6507 * profile.c (compute_value_histograms): Don't try to read profiles
6508 that are not present.
6510 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6512 * builtins.def: Categorize.
6514 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
6516 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
6518 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
6520 * config.gcc: Enable posix threads by default on darwin.
6522 2003-08-01 Jakub Jelinek <jakub@redhat.com>
6524 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
6525 even if nehedges1 is 0.
6527 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
6529 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
6530 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
6531 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
6534 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
6535 * fixinc/fixincl.x: Regenerate.
6536 * fixinc/tests/base/math.h: Regenerate to match test_text change.
6538 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6540 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
6542 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6544 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
6545 for accesses to exc_ptr.
6547 2003-08-01 Geoffrey Keating <geoffk@apple.com>
6549 * doc/sourcebuild.texi (Front End Directory): Don't make references
6550 to libsubdir, it's not part of the interface to frontends.
6551 * doc/install.texi (Configuration): Help users read faster by saying
6552 that GCC's configure options are the standard autoconf ones.
6553 Mention --libdir. Update the default rules for finding the
6554 assembler. Don't use libsubdir since we haven't said what it means.
6555 (Specific): In the Solaris 7 notes, update the place to put the
6557 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
6558 * doc/cpp.texi (Search Path): Actually, the search path
6559 depends on libdir, which can relocate with cpp.
6560 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
6561 now a private interface between the Makefile and the driver.
6563 2003-08-01 Richard Henderson <rth@redhat.com>
6565 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
6567 * varasm.c (lookup_constant_def): New function.
6568 * rtl.h (lookup_constant_def): Declare it.
6569 * dwarf2out.c (loc_descriptor_from_tree): Use it.
6570 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
6572 2003-08-01 Zack Weinberg <zack@codesourcery.com>
6574 * c-decl.c (gettags, pushdecl_function_level): Delete.
6575 (last_function_parm_vars): Rename last_function_parm_others.
6576 (current_function_parm_vars): Rename current_function_parm_others.
6577 (struct c_scope): Rewrite comment explaining this data structure.
6578 Add names_last, blocks_last, parms_last fields. Rename
6579 incomplete_list to incomplete.
6580 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
6581 (poplevel): Ignore second argument. No need to nreverse
6582 anything. Restructure such that each list is processed
6583 exactly once. Use 'const location_t *locus' syntactic sugar
6584 variable where useful. Issue unused variable warnings
6585 ourselves, do not rely on function.c.
6586 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
6587 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
6588 (implicitly_declare): decl cannot be error_mark_node.
6589 (undeclared_variable): Manipulate scope structure directly.
6590 (c_make_fname_decl): Likewise.
6591 (getdecls, c_init_decl_processing): Fix comment.
6592 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
6593 for 'last' variable.
6594 (grokparms): No need to nreverse parms list.
6595 (store_parm_decls_newstyle): Set up the parms_last and
6596 names_last fields of the new scope too.
6597 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
6598 on parms to begin with; check this under ENABLE_CHECKING. Set
6600 (check_for_loop_decls): Refer directly to current_scope->tags.
6601 Use consistent quote style in diagnostics.
6602 (c_write_global_declarations): The names list is not backward.
6604 * c-common.h: Don't prototype gettags.
6605 * c-parse.in: Call poplevel with second argument 0 always.
6607 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6609 * builtins.def: Resort builtins.
6611 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6613 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
6614 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
6615 Prepend "__builtin_" onto NAME with string concatenation. Remove
6616 explicit "__builtin_" from each macro call.
6618 Reformat entire file.
6620 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6622 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
6623 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
6625 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
6627 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
6628 CCL1, or CCL2 modes with floating point operations.
6630 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
6631 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
6632 "*subdf3_cconly"): New insns.
6633 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
6635 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
6637 * Makefile.in: Refine dependencies.
6638 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
6639 * c.opt: Update help for -Wimport.
6640 * cppfiles.c: Include hashtab.h. Update comments.
6641 (stack_file): Read the file before updating dependencies.
6642 (once_only_file_p): Be smarter about marking once-only files.
6643 (_cpp_mark_file_once_only): Correct the check for existence on
6645 (open_file_failed): Use name not path, which is NULL.
6646 * cpphash.h: Don't include hashtab.h.
6647 (struct _cpp_file): Remove.
6648 (struct cpp_reader): Update.
6649 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
6650 * cpplib.h (struct cpp_options): Remove warn_import.
6651 (cpp_simplify_path): Remove.
6653 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
6656 * doc/extend.texi (Statement Expressions): Document C++ semantics.
6658 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
6660 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
6662 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6664 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
6666 * builtins.def: Likewise.
6668 2003-07-31 Jason Merrill <jason@redhat.com>
6670 * Makefile.in (bubblestrap): Don't require a previous full
6673 * expr.c (mostly_zeros_p): No longer static.
6674 * tree.h: Declare it.
6675 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
6676 unless we need to do substitutions.
6678 2003-07-31 Roger Sayle <roger@eyesopen.com>
6680 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
6681 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
6682 as pow(x,2.0) when the latter will be expanded back into x*x.
6683 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
6684 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
6685 pow can never set errno when used with an integer exponent.
6686 Always use expand_powi when exponent is -1, 0, 1 or 2.
6687 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
6688 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
6689 the pow forms of these expressions.
6691 2003-07-31 Geoffrey Keating <geoffk@apple.com>
6693 * Makefile.in (libexecdir): New.
6694 (libsubdir): Use gcc instead of gcc-lib.
6695 (libexecsubdir): New.
6696 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
6697 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
6699 (installdirs): Make libexecsubdir.
6700 (install-common): Put executables in libexecsubdir.
6701 (itoolsdir): Use libexecsubdir.
6702 (itoolsdatadir): New.
6703 (install-mkheaders): Separate data files and executables.
6704 (install-collect2): Put executables in libexecsubdir.
6705 (uninstall): Remove libexecsubdir.
6706 * mkheaders.in: Update for new arrangement of files.
6708 (libexecsubdir): New.
6709 (itoolsdir): Use libexecsubdir.
6710 (itoolsdatadir): New.
6711 * gcc.c (gcc_libexec_prefix): New.
6712 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
6713 (standard_exec_prefix_1): Use libexec.
6714 (standard_exec_prefix_2): New.
6715 (standard_libexec_prefix): New.
6716 (process_command): Update for new arrangement of files. Compute
6717 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
6719 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
6721 * inclhack.def (stdio_va_list): Avoid bogus replacement which
6722 triggers on Interix.
6723 * fixincl.x: Regenerate.
6725 2003-07-31 Jakub Jelinek <jakub@redhat.com>
6727 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
6728 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
6730 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6732 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
6734 2003-07-31 Per Bothner <pbothner@apple.com>
6736 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
6737 (add_input_filename): New function.
6738 (handle_options): Call add_input_filename directly instead of
6740 * opts.h (in_fnames, num_in_fnames): Moved here.
6741 (add_input_filename): Declare.
6742 * c-decl.c: Need to #include opts.h.
6743 * Makefile.in (c-decl.o): Also depends on opts.h.
6744 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
6745 (c_common_handle_filename): Replaced by add_input_filename.
6746 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
6748 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
6749 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
6750 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
6751 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
6753 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6755 * combine.c (try_combine): Set JUMP_LABEL for newly created
6758 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6760 * fold-const.c (fold): Fold some comparisons of bit operations.
6762 2003-07-31 Jan Hubicka <jh@suse.cz>
6764 * cgraph.c (create_edge): Fix typo.
6765 * i386.c (pic_symbolic_operand): Reorder tests.
6767 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
6769 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
6771 (Gcov Data Files): Update.
6773 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6775 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
6778 * gthr-posix.c: New file.
6779 * gthr-posix.h: Define _REENTRANT if missing.
6780 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
6782 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
6784 * config/alpha/t-osf-pthread: New file.
6786 * fixinc/inclhack.def (alpha_pthread): New fix.
6787 * fixinc/fixincl.x: Regenerate.
6788 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
6790 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
6792 Fixes PR bootstrap/9330.
6794 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6796 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
6799 * configure: Regenerate.
6801 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
6803 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
6806 2003-07-30 Roger Sayle <roger@eyesopen.com>
6808 * builtins.def: Alphabetize.
6810 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
6812 * doc/c-tree.texi: Normalize spellings of "lowercase" and
6814 * doc/cpp.texi: Likewise.
6815 * doc/md.texi: Likewise.
6816 * doc/rtl.texi: Likewise.
6817 * doc/tm.texi: Likewise.
6819 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
6821 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
6822 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
6825 2003-07-30 Chris Demetriou <cgd@broadcom.com>
6827 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
6828 macros before defining them.
6830 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
6832 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
6833 UNSPECV_BLOCKAGE): New constants.
6834 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
6835 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
6836 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
6837 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
6839 (all insns and expanders): Write output control string as brace block
6840 where appropriate. Remove \-escapes for doublequote characters.
6842 2003-07-31 Jan Hubicka <jh@suse.cz>
6844 * gcse.c (insert_store): Fix typo in previous patch.
6846 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
6848 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
6850 2003-07-30 Andi Kleen <ak@muc.de>
6852 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
6854 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6856 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
6857 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
6858 GCOV_N_VALUE_COUNTERS): New.
6859 * profile.c (compute_value_histograms): New static function.
6860 (branch_prob): Read back the value histograms.
6861 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
6862 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
6863 * value-prof.c: Add comment on reading the profile.
6864 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
6865 * doc/invoke.texi (-fprofile-values): Document behavior with
6866 -fbranch-probabilities.
6868 2003-07-30 David Edelsohn <edelsohn@gnu.org>
6870 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
6872 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
6874 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
6877 2003-07-30 Jan Hubicka <jh@suse.cz>
6879 * gcse.c (insert_store): Ignore fake edges.
6881 * c-common.c (flag_vtable_gc): Kill.
6882 * c-common.g (flag_vtable_gc): Kill.
6883 * c-opts (c_common_handle_option): Kill.
6884 * c.opt (fvtable-gc): Kill.
6885 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
6886 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
6887 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
6889 * invoke.texi (-ftable-gc): Kill documentation.
6891 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
6892 just because function body is missing.
6894 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
6896 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
6898 * unwind-sjlj.c: Fix typo in file description.
6900 2003-07-30 Alan Modra <amodra@bigpond.net.au>
6902 * calls.c (load_register_parameters): When shifting reg sized values
6903 to the msb, move the value to a reg first.
6905 2003-07-29 Geoffrey Keating <geoffk@apple.com>
6907 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
6908 * line-map.h (linemap_add): Update comments.
6909 * line-map.c (linemap_add): Update comments, interpret zero-length
6910 filename as "<stdin>".
6912 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
6914 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
6916 2003-07-29 Zack Weinberg <zack@codesourcery.com>
6918 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
6919 New static variables.
6920 (struct c_scope): Add parms and warned_forward_parm_decls
6921 fields; remove parm_order.
6922 (storedecls, storetags): Delete.
6923 (poplevel): Also clear bindings on the parms chain.
6924 (pushdecl): Handle forward declarations of parameters, and
6925 chain PARM_DECLs on the parms list, not the names list.
6926 (lookup_name_current_level): Check for PARM_DECLs on the parms
6928 (push_parm_decl): Don't update parm_order.
6929 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
6930 warning, only once per parameter list, and set TREE_ASM_WRITTEN
6931 on the decls here. Then move the forward decls to the names list.
6932 (grokparms): Set last_function_parm_vars.
6933 (get_parm_info): Don't use gettags or getdecls. No need to
6934 extract non-parms from the parms list, or reorganize the parms
6935 list. Feed nonparms back in the TREE_TYPE of the list node
6936 returned. Issue only one error per parameter list for "void"
6937 appearing more than once in said parameter list. Collapse
6938 parmlist_tags_warning into this function to avoid double scan
6940 (start_function): Set current_function_parm_vars.
6941 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
6942 directly. Get non-parms from current_function_parm_vars; no
6943 need to extract them from the parms chain. Properly bind tags
6945 (store_parm_decls_oldstyle): No need to extract non-parameters
6946 from the parms chain, nor to store them back afterward. Move
6947 declaration to top of function, restructure code reordering
6949 (store_parm_decls): No need to save and restore warn_shadow.
6950 * c-parse.in: Don't call parmlist_tags_warning nor
6951 clear_parm_order. Call mark_forward_parm_decls when forward
6952 parm decls are encountered.
6953 * c-tree.h: Prototype mark_forward_parm_decls; not
6954 clear_parm_order or parmlist_tags_warning.
6956 2003-07-29 Geoffrey Keating <geoffk@apple.com>
6958 * c-common.c (allow_pch): Remove.
6959 * c-common.h (allow_pch): Remove.
6960 (c_common_no_more_pch): Declare.
6961 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
6962 * c-pch.c: Include hosthooks.h.
6963 (c_common_valid_pch): Don't check allow_pch.
6964 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
6965 (c_common_no_more_pch): New.
6966 * ggc-common.c: Include hosthooks.h.
6967 (gt_pch_save): Call gt_pch_get_address.
6968 (gt_pch_restore): Call gt_pch_use_address.
6969 * hooks.c (hook_voidp_size_t_null): New.
6970 (hook_bool_voidp_size_t_false): New.
6971 * hooks.h (hook_voidp_size_t_null): New.
6972 (hook_bool_voidp_size_t_false): New.
6973 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
6974 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
6975 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
6976 HOST_HOOKS_GT_PCH_USE_ADDRESS.
6977 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
6979 * doc/hostconfig.texi (Host Common): Document
6980 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
6981 * Makefile.in (c-pch.o): Depend on hosthooks.h.
6982 (ggc-common.o): Likewise.
6984 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
6985 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
6986 (pch_address_space): New.
6987 (darwin_rs6000_gt_pch_get_address): New.
6988 (darwin_rs6000_gt_pch_use_address): New.
6990 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
6992 PR preprocessor/11569
6993 PR preprocessor/11649
6994 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
6995 * cppfiles.c: Completely rewritten.
6996 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
6997 struct cpp_path is now struct cpp_dir.
6998 (remove_duplicates): Don't simplify path names.
6999 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
7001 * cpphash.h: Include hashtab.h.
7002 (_cpp_file): Declare.
7003 (struct cpp_buffer): struct include_file is now struct _cpp_file,
7004 and struct cpp_path is now struct cpp_dir. Rename members.
7005 (struct cpp_reader): Similarly. New members once_only_files,
7006 file_hash, file_hash_entries, quote_ignores_source_dir,
7007 no_search_path, saw_pragma_once. Remove all_include_files and
7008 max_include_len. Make some members bool.
7009 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
7010 (_cpp_stack_file): Renamed from _cpp_read_file.
7011 (_cpp_stack_include): Renamed from _cpp_execute_include.
7012 (_cpp_init_files): Renamed from _cpp_init_includes.
7013 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
7014 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
7015 (cpp_read_next_file): Rename and move to cppfiles.c.
7016 (cpp_read_main_file): Update.
7017 * cpplib.c (run_directive): Update for renamed members.
7018 (do_include_common, _cpp_pop_buffer): Update.
7019 (do_import): Undeprecate #import.
7020 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
7021 * cpplib.h: Remove file_name_map_list.
7022 (cpp_options): Remove map_list.
7023 (cpp_dir): Rename from cpp_path. New datatype for name_map.
7024 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
7026 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
7028 * Makefile.in: Make stamp-objdir safe for parallel builds.
7030 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
7032 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
7033 (info): Depend on stmp-docobjdir.
7035 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7037 * configure: Regenerate.
7039 2003-07-29 Jan Hubicka <jh@suse.cz>
7042 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
7043 in !unit-at-a-time mode.
7045 2003-07-28 Geoffrey Keating <geoffk@apple.com>
7047 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
7050 2003-07-28 Mark Mitchell <mark@codesourcery.com>
7053 * c-common.c (shorten_compare): Take into account differences
7054 between C and C++ representation for enumeration types.
7055 * tree.h (set_min_and_max_values_for_integral_type): Declare.
7056 * stor-layout.c (set_min_and_max_values_for_integral_type): New
7057 function, broken out from ...
7058 (fixup_signed_type): ... here and ...
7059 (fixup_unsigned_type): ... here.
7061 2003-07-28 Zack Weinberg <zack@codesourcery.com>
7063 * c-decl.c: Update commentary, adjust blank lines throughout.
7064 (struct c_scope): Fix indentation. Reorder members so
7065 outer-context pointers come first, booleans last.
7066 (duplicate_decls, define_label): Use a 'locus' variable for
7067 diagnostic locations in a few more places.
7068 (warn_if_shadowing): Un-split a conditional that fits on one line.
7069 (c_init_decl_processing): No need to clear current_scope and
7070 current_function_scope.
7071 (start_decl): Merge if/else if statements with same action.
7072 (push_parm_decl): Rename old_immediate_size_expand to use
7073 save_foo convention; save/restore around entire function.
7074 (grokdeclarator): Remove unnecessary braces.
7076 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
7077 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
7079 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
7080 when warn_declaration_after_statement. Call pedwarn_c90, not
7081 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
7082 * c-common.c (warn_declaration_after_statement): Define.
7083 * c-common.h (warn_declaration_after_statement): Declare.
7084 * c.opt (Wdeclaration-after-statement): New.
7085 * c-errors.c (pedwarn_c90): New function.
7086 * c-opts.c (c_common_handle_option) <case
7087 OPT_Wdeclaration_after_statement>: New.
7088 * c-tree.h (pedwarn_c90): Declare.
7089 * doc/invoke.texi (Option Summary): Document
7090 -Wdeclaration-after-statement.
7091 (Warning Options): Ditto.
7093 2003-07-28 Jan Hubicka <jh@suse.cz>
7095 * i386.md (memory attribute) Avoid accessing uninitialized memory
7096 for ishift1 type instructions.
7098 2003-07-28 Jakub Jelinek <jakub@redhat.com>
7100 * configure.in (--enable-checking): Add fold category.
7101 (ENABLE_FOLD_CHECKING): Define if requested.
7102 * configure: Rebuilt.
7103 * config.in: Rebuilt.
7104 * doc/install.texi: Document it.
7105 * fold-const.c: Include md5.h.
7106 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
7107 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
7108 print_fold_checksum): New functions.
7110 * fold-const.c (fold): Never modify argument passed to fold, instead
7111 change a copy and return it.
7112 * convert.c (convert_to_integer): Likewise.
7114 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
7116 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
7117 cleanup of junk after #else and #endif directives. Collapse repeated
7118 clauses into for statment.
7120 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
7122 2003-07-27 Zack Weinberg <zack@codesourcery.com>
7124 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
7125 (keep_next_if_subblocks): Rename next_is_function_body.
7126 (pushlevel): Adjust commentary. Always set ->keep on the
7127 outermost level of a function. Don't set ->keep_if_subblocks.
7128 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
7129 (store_parm_decls): Adjust to match.
7130 (finish_function): Adjust to match.
7131 Call poplevel with all three arguments zero.
7133 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
7134 New functions split out of store_parm_decls.
7135 Avoid unnecessary work. Use local variables consistently.
7136 (store_parm_decls): Likewise.
7138 (finish_function): No need to set functionbody flag on call to
7140 (struct language_function): Remove scope field.
7141 (c_push_function_context, c_pop_function_context): No need to
7142 save and restore current_scope.
7144 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
7146 * doc/extend.texi (Deprecated Features): Implicit typename is
7147 gone. Default args on types is going.
7149 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
7151 * Makefile.in (ifcvt.o): Depend on target.h
7152 * ifcvt.c (target.h): Include.
7153 (if_convert): Don't call mark_loop_exit_edges if we can't
7156 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7158 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
7160 2003-07-26 Richard Henderson <rth@redhat.com>
7163 * cse.c (count_reg_usage): Handle asm_operands properly.
7165 2003-07-26 Roger Sayle <roger@eyesopen.com>
7167 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
7168 (DEF_EXT_FALLBACK_BUILTIN): Delete.
7169 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
7170 the regular DEF_EXT_LIB_BUILTIN macro.
7171 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
7172 the regular DEF_LIB_BUILTIN macro.
7173 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
7174 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
7175 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
7176 DEF_EXT_LIB_BUILTIN macro.
7178 * c-decl.c (duplicate_decls): Remove code to handle builtin
7179 functions prototyped without an argument list.
7181 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
7183 * config/i386/winnt.c: Revert 2003-07-08 change.
7184 (i386_pe_section_type_flags): Remove error_with_decl here too.
7186 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
7188 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
7189 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
7190 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
7191 (v850_handle_data_area_attribute): Likewise.
7193 2003-07-26 Geoffrey Keating <geoffk@apple.com>
7195 * varasm.c (output_constant_def_contents): Use
7196 ASM_DECLARE_CONSTANT_NAME if defined.
7197 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
7198 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
7199 objects get at least one byte to prevent assembler problems.
7200 (ASM_DECLARE_CONSTANT_NAME): New.
7202 * Makefile.in (libbackend.o): Remove options_.h.
7203 (mostlyclean): Likewise.
7205 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
7206 insert a label at the end of an function under Mach-O.
7208 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
7210 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
7212 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
7214 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
7216 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
7218 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7220 * doc/passes.texi (Passes): Mention pretty-printing and
7223 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
7225 * doc/extend.texi (Function Attributes): GNU C++ does now allow
7226 unused parameter decls.
7227 (Attribute Syntax): GNU C++ does not allow label attributes to be
7230 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7232 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
7233 (objc_declare_class): Likewise.
7234 (error_with_ivar): Likewise.
7235 (start_class): Likewise.
7236 (warn_with_method): Likewise.
7238 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7240 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
7242 * calls.c (try_to_integrate): Don't use xxx_with_decl.
7243 (expand_call): Likewise.
7244 * dwarfout.c (output_reg_number): Likewise.
7245 * expr.c (expand_expr): Likewise.
7246 * function.c (assign_temp): Likewise.
7247 (uninitialized_vars_warning): Likewise.
7248 (setjmp_args_warning): Likewise.
7249 (expand_function_end): Likewise.
7250 * stmt.c (fixup_gotos): Likewise.
7251 (warn_about_unused_variables): Likewise.
7252 (expand_end_bindings): Likewise.
7253 * stor-layout.c (layout_decl): Likewise.
7254 (place_field): Likewise.
7255 * toplev.c (check_global_declarations): Likewise.
7256 (rest_of_handle_inlining): Likewise.
7257 (default_tree_printer): New function.
7258 (general_init): Initialize diagnostic machinery before routing
7259 signals to the ICE machinery. Set default tree printer.
7260 * toplev.h (pedwarn_with_decl): Remove declaration.
7261 (warning_with_decl): Likewise.
7262 (error_with_decl): Likewise.
7263 (pedwarn): Remove attribute for the time being.
7264 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
7265 * varasm.c (named_section): Likewise.
7266 (make_decl_rtl): Likewise.
7267 (assemble_variable): Likewise.
7268 (merge_weak): Likewise.
7269 (declare_weak): Likewise.
7271 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
7272 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
7273 (format_with_decl): Remove.
7274 (diagnostic_for_decl): Likewise.
7275 (pedwarn_with_decl): Likewise.
7276 (warning_with_decl): Likewise.
7277 (error_with_decl): Likewise.
7278 (diagnostic_initialize): Adjust.
7279 (diagnostic_count_diagnostic): Likewise.
7280 (announce_function): Likewise.
7281 (lhd_print_error_function): Likewise.
7282 (diagnostic_report_current_module): Likewise.
7283 (default_diagnostic_starter): Likewise.
7284 (diagnostic_report_diagnostic): Likewise.
7285 (default_diagnostic_finalizer): Likewise.
7286 (verbatim): Likewise.
7288 (warning): Likewise.
7289 * opts.c (common_handle_option): Likewise.
7290 * pretty-print.c: New file.
7291 * c-pretty-print.h (pp_base): Override.
7292 * c-pretty-print.c: Adjust use of macros throughout.
7293 (pp_buffer): New macro.
7294 (pp_newline): Likewise.
7295 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
7296 * Makefile.in (DIAGNOSTIC_H): New variable.
7297 (c-errors.o): Use it.
7298 (c-objc-common.o): Likewise.
7299 (c-common.o): Likewise.
7300 (c-opts.o): Likewise.
7301 (c-format.o): Likewise.
7302 (diagnostic.o): Likewise.
7304 (toplev.o): Likewise.
7305 (rtl-error.o): Likewise.
7306 (dwarf2out.o): Likewise.
7308 (pretty-print.o): New rule.
7310 2003-07-24 Roger Sayle <roger@eyesopen.com>
7312 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
7313 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
7314 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
7315 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
7316 (DEF_FRONT_END_LIB_BUILTIN): Delete.
7317 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
7318 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
7320 * builtins.c (build_string_literal): New function to construct
7321 a char* pointer to a string literal.
7322 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
7323 "rtx target" to be consistent with other expand_builtin_* functions.
7324 Change 3rd argument from "int unlocked" to "bool unlocked".
7325 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
7326 c-common.c to avoid front-end dependencies. Optimize printf("")
7327 as a no-op when the result isn't required. Handle embedded NULs
7329 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
7330 from c-common.c to avoid front-end dependencies. Likewise, optimize
7331 fprintf(fp,"") as a no-op when the result isn't required, evaluating
7332 fp for side-effects. Handle embedded NULs in format string.
7333 (expand_builtin_sprintf): Fix typo.
7334 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
7335 optimizing. Adjust calls of expand_builtin_fputs to match the API
7336 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
7337 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
7338 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
7340 * c-common.c (is_valid_printf_arglist): Delete.
7341 (c_expand_builtin): Delete.
7342 (c_expand_builtin_printf): Moved to builtins.c. Delete.
7343 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
7344 (c_expand_expr): No longer treat CALL_EXPRs specially.
7345 (CALLED_AS_BUILT_IN): Delete.
7347 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7349 PR optimization/11631
7350 * gcse.c (store_motion): Connect infinite loops to exit.
7352 2003-07-24 Jason Merrill <jason@redhat.com>
7354 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
7355 (boolean_true_node, boolean_false_node): Likewise.
7356 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
7357 * tree.c (build_common_tree_nodes): Init boolean_type_node.
7358 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
7359 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
7360 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
7361 (truthvalue_true_node): Renamed from boolean_true_node.
7362 (truthvalue_false_node): Renamed from boolean_false_node.
7363 * c-decl.c: Just set truthvalue_* to integer_*.
7364 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
7366 2003-07-24 Roger Sayle <roger@eyesopen.com>
7368 * c-decl.c (match_builtin_function_types): New subroutine of
7369 duplicate_decls to test whether a redeclaration of a builtin
7370 function is suitably close, i.e. the return type and all of
7371 the argument types have the same modes as the builtin expects.
7372 (duplicate_decls): Fuzzy type matching for builtin functions
7373 moved to match_builtin_function_types.
7375 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7377 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
7380 2003-07-24 Zack Weinberg <zack@codesourcery.com>
7382 * c-decl.c: Search-and-replace change 'binding level' to
7383 'scope' in commentary.
7384 (struct binding_level): Now struct c_scope.
7385 (current_binding_level): Now current_scope.
7386 (free_binding_level): Now scope_freelist.
7387 (current_function_level): Now current_function_scope.
7388 (global_binding_level): Now global_scope.
7389 (make_binding_level): Now make_scope.
7390 (pop_binding_level): Now pop_scope.
7392 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7394 * configure.in (libgcc_visibility): Add missing whitespace.
7396 2003-07-24 Richard Henderson <rth@redhat.com>
7398 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
7399 __gcc_personality_v0.
7401 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7403 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
7405 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
7407 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
7408 documentation missed from my 2003-07-09 patch.
7410 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
7412 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
7414 * configure: Rebuild.
7416 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
7419 * c-typeck.c (type_lists_compatible_p): Do not compare
7420 arguments if one of them is an error_mark_node
7422 2003-07-24 Alan Modra <amodra@bigpond.net.au>
7424 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
7425 if current_function_calls_eh_return.
7427 2003-07-23 Mark Mitchell <mark@codesourcery.com>
7429 * doc/c-tree.texi (OFFSET_TYPE): Update description.
7431 2003-07-23 Bob Wilson <bob.wilson@acm.org>
7433 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
7434 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
7435 __umodsi3, __modsi3): Increase frame size to 32.
7437 2003-07-23 Geoffrey Keating <geoffk@apple.com>
7439 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
7442 2003-07-23 Mark Mitchell <mark@codesourcery.com>
7444 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
7446 PR optimization/10679
7447 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
7449 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7451 PR target/11607 and PR target/11516
7452 * pa.md (extzv, extv, insv): Revert latter half of last patch.
7454 2003-07-22 Mark Mitchell <mark@codesourcery.com>
7456 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
7457 * varasam.c (output_constant): Likewise.
7459 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
7461 * alias.c: Fix comment formatting.
7462 * c-common.c: Likewise.
7463 * c-decl.c: Likewise.
7464 * c-opts.c: Likewise.
7465 * combine.c: Likewise.
7466 * cpplib.c: Likewise.
7467 * diagnostic.c: Likewise.
7468 * dojump.c: Likewise.
7469 * final.c: Likewise.
7470 * fold-const.c: Likewise.
7473 * ggc-page.c: Likewise.
7476 * mips-tfile.c: Likewise.
7477 * recog.c: Likewise.
7478 * regclass.c: Likewise.
7479 * regmove.c: Likewise.
7483 2003-07-22 Per Bothner <pbothner@apple.com>
7485 * line-map.c (add_line_map): Handle invalid LEAVE request.
7486 Fixes PR preprocessor/11361.
7488 2003-07-22 Per Bothner <pbothner@apple.com>
7490 * diagnostic.c.(diagnostic_report_current_module): Update to match
7491 2003-06-05 changes to push_srcloc and pop_srcloc.
7493 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
7495 * doc/trouble.texi: Better document two-stage name lookup.
7497 2003-07-22 Eric Christopher <echristo@redhat.com>
7499 * config/s390.c (s390_valid_pointer_mode): New.
7500 (TARGET_VALID_POINTER_MODE): Use.
7501 (s390_emit_prologue): Add tpf profiling hooks.
7502 (s390_emit_epilogue): Ditto.
7503 * config/s390.h (MASK_TPF): New.
7505 (POINTERS_EXTEND_UNSIGNED): Define.
7506 * config/s390.md (ptr_extend): New pattern.
7508 2003-07-22 Zack Weinberg <zack@codesourcery.com>
7510 * hashtable.c (approx_sqrt): Make static.
7511 * hashtable.h: Don't prototype approx_sqrt.
7512 * line-map.c (init_line_maps): Rename linemap_init.
7513 (free_line_maps): Rename linemap_free.
7514 (add_line_map): Rename linemap_add.
7515 (lookup_line): Rename linemap_lookup.
7516 (print_containing_files): Rename linemap_print_containing_files.
7517 * linemap.h: Update to match.
7519 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
7520 linemap routines to use new names.
7522 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
7524 * c-common.c (handle_packed_attribute): Don't pack a struct via a
7525 typedef. Propagate packedness from a main variant.
7527 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
7529 * Makefile.in (install-common): Add dependency on installdirs.
7531 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
7533 * c-common.c (c_common_type_for_mode): Return integer types for
7536 2003-07-22 Geoffrey Keating <geoffk@apple.com>
7538 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
7539 (finish_decl): Call maybe_apply_pragma_weak here.
7540 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
7541 TREE_PUBLIC and TREE_STATIC are decided.
7542 (start_function): Move call to maybe_apply_pragma_weak. Check that
7543 DECL_ASSEMBLER_NAME isn't set too early.
7545 * cpplex.c (_cpp_process_line_notes): Mention option name in
7548 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
7550 * combine.c (if_then_else_cond): Simplify the comparison of
7551 rtx against -1, 0, and 1.
7552 * loop.c (check_dbra_loop): Likewise.
7553 * optabs.c (emit_conditional_move): Likewise.
7554 (emit_conditional_add): Likewise.
7555 * config/i386/i386.md (*movsi_or): Likewise.
7556 (*movdi_or_rex6): Likewise.
7558 2003-07-22 Jan Hubicka <jh@suse.cz>
7560 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
7562 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
7564 * cppfiles.c (open_file_pch): Don't put unused entries in the
7565 splay tree. Remove dead code.
7567 2003-07-21 Geoffrey Keating <geoffk@apple.com>
7569 * c-common.h (num_in_fnames): Declare.
7570 (c_static_assembler_name): Move from here...
7571 * c-tree.h (c_static_assembler_name): ... to here.
7572 * c-opts.c: Don't include langhooks-def.h.
7573 (c_static_assembler_name): Move to c-decl.c.
7574 (num_in_fnames): Make externally visible.
7575 * c-decl.c: Include langhooks-def.h.
7576 (c_static_assembler_name): Move from c-opts.c.
7577 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
7578 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
7580 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
7581 when it's not needed.
7583 2003-07-21 Jakub Jelinek <jakub@redhat.com>
7585 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
7586 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
7587 (rs6000_emit_prologue): Save FPRs inline if set.
7589 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
7591 * config/ia64/ia64.md (prefetch): Support predicate.
7593 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
7595 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
7596 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
7599 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
7601 PR optimization/11536
7602 * unroll.c (loop_iterations): Do not replace a register holding
7603 the final value by its equivalent before the loop if it is not
7606 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
7608 * doc/extend.texi: Fixes to spelling, grammar, and diction.
7610 2003-07-21 Ben Elliston <bje@wasabisystems.com>
7612 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
7613 (V850 Options): Spelling fixes.
7615 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
7617 * doc/invoke.texi: Fixes to style, grammar and diction.
7619 2003-07-20 Roger Sayle <roger@eyesopen.com>
7621 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
7622 * system.h (SMALL_STACK): Poison obsolete target macro.
7623 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
7625 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
7627 * configure.in: Cache the results of testing for cmp's capabilities.
7628 * configure: Regenerate.
7630 2003-07-20 Mark Mitchell <mark@codesourcery.com>
7633 * dwarf2out.c (gen_enumeration_type_die): Remember that
7634 enumerators can be unsigned.
7636 2003-07-19 Zack Weinberg <zack@codesourcery.com>
7638 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
7639 (push_label_level, pop_label_level): Kill.
7640 (struct binding_level): Rename level_chain to outer.
7641 Add outer_function field. Change parm_flag, function_body,
7642 keep, keep_if_subblocks to 1-bit bitfields of type bool.
7643 (current_function_level): New variable.
7644 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
7645 (keep_next_level, declare_parm_level, warn_if_shadowing):
7647 (struct language_function): Kill named_labels, shadowed_labels fields.
7648 (c_init_decl_processing, start_function, c_push__function_context)
7649 (c_pop_function_context): No need to muck with named_labels nor
7652 (make_binding_level): No need to clear the structure here.
7653 (pop_binding_level): Always operate on current_binding_level.
7654 Update current_function_level if necessary.
7655 (pushlevel): Don't clear named_labels. Update current_function_level
7656 if necessary. Use "true" and "false" where appropriate.
7657 (poplevel): Diagnose labels defined but not used, or vice
7658 versa, and clear out label-meanings leaving scope, while
7659 walking down the decls list, for all binding levels.
7660 Handle LABEL_DECLs appearing in the shadowed list.
7661 pop_binding_level takes no arguments.
7662 (pushdecl_function_level): Use current_function_level.
7664 (make_label, bind_label): New static functions.
7665 (declare_label): New exported function.
7666 (lookup_label, define_label): Rewritten for new data structure.
7667 (shadow_label): Kill.
7669 * c-tree.h: Prototype declare_label; don't prototype
7670 push_label_level, pop_label_level, nor shadow_label.
7671 * c-parse.in: Remove all calls to push_label_level and
7672 pop_label_level. Use declare_label for __label__ decls.
7674 * doc/extend.texi: Clarify that __label__ can be used to
7675 declare labels with local scope in any nested block, not
7676 just statement expressions. Cross-reference nested functions
7677 section from local labels section.
7679 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7681 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
7683 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
7685 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
7687 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7689 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
7690 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
7692 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
7694 * config/s390/s390.c (legitimize_pic_address): Access local symbols
7695 relative to the GOT instead of relative to the literal pool base.
7696 (s390_output_symbolic_const): Handle new GOT-relative accesses.
7697 * config/s390/s390.md ("call"): Access local functions and PLT stubs
7698 relative to the GOT instead of relative to the literal pool base.
7699 ("call_value"): Likewise.
7700 ("call_value_tls"): Likewise.
7702 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
7703 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
7704 (s390_chunkify_finish): Likewise.
7705 (s390_chunkify_cancel): Likewise.
7706 (s390_reorg): Adapt caller.
7707 (find_base_register_in_addr,
7708 find_base_register_ref, replace_base_register_ref): Delete.
7709 (find_ltrel_base, replace_ltrel_base): New functions.
7710 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
7711 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
7712 base vs. index register usage.
7713 (struct constant_pool): Remove 'anchor'.
7714 (s390_add_anchor): Delete.
7715 (s390_dump_pool): Remove anchor handling.
7716 * config/s390/s390.md ("reload_anchor"): Remove.
7718 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
7719 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
7720 (s390_emit_prologue): Use it.
7721 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
7722 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
7723 hard-code register 14.
7724 * config/s390/s390-protos.h (s390_load_got): Declare.
7726 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
7727 Support TImode constants.
7728 * config/s390/s390.md ("consttable_ti"): New.
7729 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
7731 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
7732 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
7733 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
7734 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
7735 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
7736 New symbolic constants.
7737 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
7738 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
7739 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
7740 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
7741 symbolic UNSPEC values.
7742 * config/s390/s390.c (larl_operand, s390_short_displacement,
7743 bras_sym_operand, s390_cannot_force_const_mem,
7744 s390_delegitimize_address, s390_decompose_address,
7745 legitimize_pic_address, s390_output_symbolic_const,
7746 s390_function_profiler): Use symbolic UNSPEC values.
7748 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7750 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
7751 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
7752 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
7753 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
7754 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
7755 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
7756 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
7757 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
7758 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
7759 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
7760 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
7761 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
7762 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
7763 postreload.c prefix.c print-tree.c protoize.c ra-build.c
7764 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
7765 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
7766 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
7767 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
7768 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
7769 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
7772 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
7774 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
7775 * toplev.h (warning): Remove attribute.
7777 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
7779 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
7780 (pop_label_level): Likewise.
7781 (duplicate_decls): Likewise.
7782 (implicitly_declare): Likewise.
7783 (shadow_label): Likewise.
7784 (start_decl): Likewise.
7785 (finish_decl): Likewise.
7786 (grokdeclarator): Likewise.
7787 (get_parm_info): Likewise.
7788 (detect_field_duplicates): Likewise.
7789 (finish_struct): Likewise.
7790 (start_function): Likewise.
7791 (store_parm_decls): Likewise.
7792 (finish_function): Likewise.
7793 (c_expand_body_1): Likewise.
7794 (check_for_loop_decls): Likewise.
7795 (merge_translation_unit_decls): Likewise.
7797 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
7799 * common.opt: Document --param.
7800 * opts.c (columns, undocumented_msg): New.
7801 (print_help): Get number of columns from environment. Print
7802 --param help. Tweak newline handling.
7803 (print_param_help): New.
7804 (print_filtered_help): Better handling of duplicates. Complain
7805 about undocumented switches.
7806 (print_switch): New.
7807 (wrap_help): Improve wrapping, use COLUMNS.
7808 * opts.sh: Ignore comments in records.
7809 * params.def: Fix typos and remove trailing periods.
7810 * toplev.c (display_help): Don't dump --param help.
7811 * doc/sourcebuild.texi: Update.
7813 2003-07-18 Richard Henderson <rth@redhat.com>
7816 * optabs.c (prepare_operand): Fail gracefully instead of abort
7817 if the predicate doesn't satisfy.
7818 (gen_cond_trap): Allow prepare_operand to fail.
7820 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
7822 * c-common.c: Don't undefine GCC_DIAG_STYLE.
7823 (fname_decl): Don't use xxx_with_decl.
7824 (c_add_case_label): Likewise.
7825 (handle_section_attribute): Likewise.
7826 (handle_alias_attribute): Likewise.
7827 (handle_no_instrument_function_attribute): Likewise.
7828 (handle_no_limit_stack_attribute): Likewise.
7829 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
7830 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
7832 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7834 * Makefile.in (ifcvt.o): Add cfgloop.h.
7835 * basic-block.h (EDGE_LOOP_EXIT): New flag.
7836 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
7837 * ifcvt.c: Include cfgloop.h.
7838 (mark_loop_exit_edges): New static function.
7839 (if_convert): Call it.
7840 (find_if_header): Ignore branches out of loops.
7842 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
7844 * combine.c (simplify_comparison): Don't share rtx when converting
7845 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
7847 2003-07-18 David Edelsohn <edelsohn@gnu.org>
7849 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
7850 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
7851 (MUST_PASS_IN_STACK): Define.
7852 (BLOCK_REG_PADDING): Define.
7854 2003-07-18 Richard Henderson <rth@redhat.com>
7856 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
7857 to skip the addr_vec.
7859 2003-07-18 Alexandre Oliva <aoliva@redhat.com>
7861 * combine.c (combinable_i3pat): Don't forbid occurrences of
7862 i2dest or i1dest in inner_dest if inner_dest is a mem.
7864 2003-07-18 Jan Hubicka <jh@suse.cz>
7866 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
7868 2003-07-17 Jakub Jelinek <jakub@redhat.com>
7871 * loop.c (basic_induction_var): Check if convert_modes emitted any
7872 instructions. Remove them and return 0 if so.
7874 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
7876 PR optimization/11083
7877 * toplev.c (rest_of_handle_addresof): Rename into
7878 rest_of_handle_addressof. Delete unreachable blocks
7879 if dead edges were purged after the addressof pass.
7881 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
7883 * Makefile.in, configure, configure.in: Remove handling of
7884 lang-options.h and options_.h.
7885 * toplev.c (struct lang_opt, documented_lang_options): Remove.
7886 (display_help): Don't use documented_lang_options.
7888 2003-07-17 Zack Weinberg <zack@codesourcery.com>
7890 * c-decl.c (pushdecl_function_level): Make static, return nothing.
7891 (kept_level_p): Fold into poplevel.
7892 (undeclared_variable): Moved here from c-typeck.c. Export.
7893 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
7894 (undeclared_variable): Prototype here. Don't prototype
7895 kept_level_p nor pushdecl_function_level.
7896 * c-parse.in: Change first argument to poplevel from
7897 "kept_level_p()" to "KEEP_MAYBE".
7898 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
7900 2003-07-17 Roger Sayle <roger@eyesopen.com>
7902 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
7903 commutative operands instead of modifying the RTL in-place.
7905 2003-07-17 Mark Mitchell <mark@codesourcery.com>
7907 PR optimization/11557
7908 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
7909 unless we know which function is being called.
7911 2003-07-17 Roger Sayle <roger@eyesopen.com>
7913 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
7914 whether to reorder the operands of a commutative binary operator.
7916 2003-07-17 Roger Sayle <roger@eyesopen.com>
7918 * fold-const.c (const_binop): Avoid performing the FP operation at
7919 compile-time, if either operand is NaN and we honor signaling NaNs,
7920 or if we're dividing by zero and either flag_trapping_math is set
7921 or the desired mode doesn't support infinities.
7922 (fold_initializer): New function to fold an expression ignoring any
7923 potential run-time exceptions or traps.
7924 * tree.h (fold_initializer): Prototype here.
7925 * c-typeck.c (build_binary_op): Move to the end of the file so
7926 that intializer_stack is in scope. If constructing an initializer,
7927 i.e. when initializer_stack is not NULL, use fold_initializer to
7929 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
7930 performing FP operations at compile-time, if they would raise an
7931 exception at run-time.
7933 2003-07-17 Geoffrey Keating <geoffk@apple.com>
7936 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
7937 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
7938 (GTFILES): Add langhooks.c.
7939 (gt-langhooks.h): New.
7940 * c-common.h (c_static_assembler_name): Prototype.
7941 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
7942 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
7943 * c-opts.c: Include langhooks-def.h.
7944 (c_static_assembler_name): New.
7945 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
7947 (lhd_set_decl_assembler_name): Give static objects with context
7949 * varasm.c (var_labelno): Delete.
7950 (make_decl_rtl): Don't change the assembler name once it's set.
7952 * c-opts.c (this_input_filename): New.
7953 (finish_options): Take new parameter, name of file being compiled.
7954 Update callers. Set this_input_filename.
7955 (push_command_line_include): Use this_input_filename not
7956 main_input_filename.
7958 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
7960 * Makefile.in: Depend .pot generation on options.c.
7961 * po/exgettext: Add an extra_files variable containing additional
7964 2003-07-17 Zack Weinberg <zack@codesourcery.com>
7966 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
7967 c_write_global_declarations.
7969 * c-decl.c: Fix typos in several comments. Remove all
7970 #if 0 blocks; reindent as needed. Remove unused argument
7971 to declare_parm_level; all callers changed.
7972 * c-parse.in: Update calls to declare_parm_level. Avoid
7973 issuing a double warning in some circumstances.
7974 * c-typeck.c: Update calls to declare_parm_level.
7975 * c-tree.h: Update prototype of declare_parm_level.
7977 * c-pragma.c (apply_pragma_weak): Don't complain about a
7978 redundant #pragma weak.
7980 * objc/objc-act.c (forward_declare_categories,
7981 build_selector_reference_decl, build_class_reference_decl,
7982 build_objc_string_decl, synth_forward_declarations,
7983 build_protocol_reference): Set TREE_PUBLIC on synthetic
7984 forward decl to 0, consistent with eventual definition.
7985 Correct comments to match.
7987 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
7988 in regexp that don't form a range expression.
7989 * fixinc/fixincl.def: Regenerate.
7991 2003-07-17 Richard Henderson <rth@redhat.com>
7994 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
7995 even with !TARGET_CONST_GP.
7996 (ia64_function_ok_for_sibcall): Reject non-local functions.
7998 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
8000 * c-common.c (c_estimate_num_insns_1): Don't handle
8002 * expr.c (safe_from_p): Likewise.
8003 * gengtype.c (adjust_field_tree_exp): Likewise.
8004 * stmt.c (warn_if_unused_value): Likewise
8005 * tree.c (first_rtl_op): Likewise.
8006 * tree.def: Don't define METHOD_CALL_EXPR.
8007 * java/lang.c (java_estimate_num_insns_1): Don't handle
8010 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
8013 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
8014 and its restrictions for the SPARC64 port.
8015 Move the entry of "-mimpure-text" before that of "-mv8".
8017 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
8018 Phil Edwards <phil@jaj.com>
8020 * doc/install.texi (*-*-solaris2*): Document the step-by-step
8021 procedure to bootstrap and install.
8022 Document the preference for the legacy Sun tools in /usr/bin
8023 over the POSIX tools in /usr/xpg4/bin for the build process.
8025 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
8027 * c.opt: Document Uncodumented; use it. Document ObjC options.
8028 * opts.c (print_filtered_help): Skip undocumented switches.
8029 * opts.h (CL_UNDOCUMENTED): New.
8030 * opts.sh: Handle Undocumented.
8031 * toplev.c (documented_lang_options): Prevent its becoming empty.
8033 * lang-options.h: Remove.
8035 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
8037 * loop.c (check_ext_dependent_givs): Pass const struct loop *
8038 instead of struct loop_info * as argument. Accept BIVs with
8039 increment +/- 1 provided there is a friendly exit test against
8040 a loop-invariant value.
8041 (strength_reduce): Adapt call to check_ext_dependent_givs.
8043 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
8044 Con Bradley <con.bradley@superh.com>
8046 * sh-protos.h (sh_get_pr_initial_val): Declare.
8047 * sh.c (regno_reg_class): Make its elements type enum reg_class.
8048 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
8049 and live_regs_mask arguments. Changed all callers.
8050 (save_schedule_s): New structure.
8051 (save_schedule): New typedef.
8052 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
8053 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
8054 In interrupts handlers, also save registers that are usually
8055 partially saved, and make sure there is at least one general purpose
8056 register saved if a target register needs saving.
8057 Add casts in comparisons to avoid warnings.
8058 (sh_media_register_for_return): return -1 for interrupt handlers.
8059 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
8060 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
8061 registers used are available.
8062 Set RTX_FRAME_RELATED_P where appropriate.
8063 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
8064 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
8065 (initial_elimination_offset): Likewise.
8066 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
8067 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
8068 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
8069 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
8070 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
8071 and for target registers.
8072 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
8073 (regno_reg_class): Make its elements type enum reg_class.
8074 (CONSTRAINT_LEN): Don't use isdigit.
8075 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
8076 (FUNCTION_ARG): Add parentheses to avoid warnings.
8077 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
8078 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
8079 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
8080 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
8081 * sh.md (xordi3+1): Remove unused variable regno.
8082 (return_media): Check that tr0 is available before using it.
8084 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
8086 * c.opt: Document more options.
8088 2003-07-16 Roger Sayle <roger@eyesopen.com>
8090 * combine.c (subst): Also handle (subreg (const_double ...)) case
8091 if created by a substitution, by using the original inner mode.
8093 2003-07-16 Roger Sayle <roger@eyesopen.com>
8095 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
8096 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
8097 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
8099 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
8101 * doc/install.texi (--without-headers): New.
8103 Partial Fix PR/10129
8104 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
8105 (machopic_output_function_base_name): New; print the true pic label.
8106 (machopic_classify_ident): Pic Base is always a defined data.
8107 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
8108 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
8110 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
8111 if they are not floating point registers.
8114 * ggc.h: Add header guards.
8115 * c-decl.c (finish_struct): Sort fields if
8116 number greater than 15 and there are no
8117 anonymous structs/unions.
8118 * c-common.h: Include ggc.h.
8119 (sorted_fields_type): New struct.
8120 (field_decl_cmp): New prototype.
8121 (resort_sorted_fields): New prototype.
8122 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
8123 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
8124 as s, removing other fields.
8125 * c-typeck.c (lookup_field): Use s in lang_type.
8126 These were mostly moved from cp/class.c:
8127 * c-common.c (field_decl_cmp): New static function.
8128 (field_decl_cmp): New function.
8129 (resort_sorted_fields): New function.
8131 2003-07-16 Geoffrey Keating <geoffk@apple.com>
8133 * config/darwin.c (machopic_select_section): Use decl_readonly_section
8134 to do most of the work.
8136 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
8138 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
8139 * config/mmix/mmix.c: Convert functions to ISO C90.
8140 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
8142 (mmix_get_hard_reg_initial_val): Tweak section head comment.
8144 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
8146 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
8148 2003-07-16 Jakub Jelinek <jakub@redhat.com>
8150 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
8151 (uw_update_context_1): Use it.
8152 * config/rs6000/rs6000.c (insn_after_throw): Remove.
8153 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
8154 in parent frame if _Unwind_* called directly instead of through
8156 (rs6000_emit_eh_toc_restore): Remove.
8157 (rs6000_emit_prologue): Update stack pointer before doing any saving
8158 if current_function_calls_eh_return. Generate unwind info for $r2.
8159 (rs6000_emit_epilogue): Restore stack pointer after doing all
8160 restoring if current_function_calls_eh_return. Restore $r2.
8161 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
8162 * config/rs6000/rs6000.md (eh_return): Remove call to
8163 rs6000_emit_eh_toc_restore.
8164 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
8165 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
8167 2003-07-15 Jakub Jelinek <jakub@redhat.com>
8169 * expr.c (emit_block_move): Don't move anything if size is const 0.
8170 (clear_storage): Test against const0_rtx instead of comparing INTVAL
8173 2003-07-15 David S. Miller <davem@redhat.com>
8175 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
8176 emit nop if the last real insn is CALL_INSN.
8178 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
8180 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
8182 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
8184 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
8186 * config/i386/winnt.c (associated_type): Artificial methods are not
8187 affected by the import/export status of their class unless they are
8189 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
8191 * config/i386/winnt.c: Fix GCC copyright comment.
8193 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
8196 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
8197 not recursing on hard error.
8198 (diagnostic_for_decl): Likewise.
8199 * diagnostic.def: Rearrange.
8201 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
8203 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
8204 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
8206 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
8207 Richard Henderson <rth@redhat.com>
8209 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
8210 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
8211 (_Unwind_SetGR): Likewise.
8212 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
8213 (Unwind_SpTmp): New typedef.
8214 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
8215 (uw_update_context): Use _Unwind_GetPtr.
8216 (init_dwarf_reg_size_table): Move above uw_init_context_1.
8217 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
8218 Use _Unwind_SetSpColumn.
8219 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
8222 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
8224 * c.opt: Document more options.
8225 * toplev.c (documented_lang_options): Remove all local help strings.
8227 2003-07-15 Mark Mitchell <mark@codesourcery.com>
8230 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
8233 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
8236 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
8237 swap comparison operands if doing so would generate an
8238 unrecognizable insn.
8240 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
8242 PR optimization/11320
8243 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8244 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8245 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8246 current_sched_info->compute_jump_reg_dependencies. Record which
8247 registers are used and which registers are set by the jump.
8248 Clear deps->reg_conditional_sets after a barrier.
8249 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8250 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8251 (init_deps): Initialize reg_conditional_sets.
8252 (free_deps): Clear reg_conditional_sets.
8253 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8254 Mark registers live on entry of the fallthrough block and conditionally
8255 set as set by the jump. Mark registers live on entry of non-fallthrough
8256 blocks as used by the jump.
8257 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8258 Mark new parameters as unused.
8260 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
8262 * doc/invoke.texi: Resync MIPS -march documentation.
8264 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
8266 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
8267 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
8268 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
8269 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
8270 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
8271 (mips_issue_rate): Handle PROCESSOR_R9000.
8272 (mips_use_dfa_pipeline_interface): Likewise.
8273 * config/mips/9000.md: New file.
8274 * config/mips/mips.md: Include it.
8275 (define_attr cpu): Add r9000.
8276 (mulsi3_mult3): Use "mul" for rm9000 code.
8278 2003-07-15 Stan Cox <scox@redhat.com>
8280 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
8281 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
8282 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
8283 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
8284 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
8285 (mips_issue_rate): Handle PROCESSOR_R7000.
8286 (mips_use_dfa_pipeline_interface): Likewise.
8287 * config/mips/7000.md: New file.
8288 * config/mips/mips.md: Include it.
8289 (define_attr cpu): Add r7000.
8290 (mulsi3_mult3): Use "mul" for rm7000 code.
8292 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
8294 * config/mips/mips.md (define_attr type): Add condmove. Use it for
8295 the conditional move patterns.
8296 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
8297 Check for condmove type.
8298 (ir_vr54_arith): Add move type.
8299 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
8300 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
8302 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
8304 * c-opts.c (print_help): Remove.
8305 (c_common_handle_option): Don't handle --help.
8306 * c.opt: Document some options.
8308 * opts.c (print_filtered_help): New.
8309 (print_help): Use it.
8311 2003-07-14 Geoffrey Keating <geoffk@apple.com>
8313 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
8314 * tree.c: (build_common_tree_nodes_2): Likewise.
8315 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
8316 (V4DF_type_node): New.
8318 * c-opts.c (push_command_line_include): Don't free deferred_opts,
8320 (finish_options): Reset init_cursor.
8322 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
8324 * expr.c (expand_assignment): Remove an unused argument
8326 * expr.h: Update the prototype.
8327 * function.c: Update the callers.
8330 2003-07-14 Mark Mitchell <mark@codesourcery.com>
8333 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
8336 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
8338 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
8339 with __cplusplus, not "we must use the C++ compiler's type"
8340 * fixinc/inclhack.def (void_null): Note that Interix needs this.
8341 * fixinc/fixincl.x: Regenerate.
8343 2003-07-14 Geoffrey Keating <geoffk@apple.com>
8345 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
8346 and unseen_objects from the global data before calling
8347 __deregister_frame_info_bases.
8348 (examine_objects): Insert objects into the seen_objects list,
8350 (_Unwind_Find_FDE): Always unlock the global object lists, even if
8351 we couldn't allocate a data structure to put in it.
8353 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
8354 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
8355 (SET_TYPE_PROTOCOL_LIST): New.
8356 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
8357 (get_object_reference): Likewise.
8359 2003-07-14 Jan Hubicka <jh@suse.cz>
8361 * cfglayout.c (locator_file): Break out from ....
8362 (insn_file): ... here.
8363 (locator_line): Break out from ....
8364 (insn_line): ... here.
8365 * rtl.h (locator_file, locator_line): Declare.
8366 (final_start_function): Set proper line/file info.
8368 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
8370 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
8371 handled by pp_c_cast_expression.
8373 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
8375 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
8376 allocate 32768 bytes of stack. Use addition rather than subtraction
8377 when a single insn is enough.
8378 * config/mips/mips.md: Remove insns and splitters for subtracting
8380 (subsi3): Only accept register operands.
8381 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
8382 (subdi3_internal_3, subsi3_internal_2): Likewise.
8383 (casesi): Use expand_binop to subtract the lower bound.
8385 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
8387 * config/mips/mips.c (mips_in_small_data_p): Don't handle
8388 TARGET_MIPS16 specially.
8390 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
8392 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
8393 mips_output_aligned_bss.
8394 * config/mips/linux.h: Likewise.
8395 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
8396 * config/mips/mips.c (mips_output_aligned_bss): New function.
8398 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
8399 * config/mips/elf64.h: Likewise.
8401 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
8402 mips_declare_object_name.
8403 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
8404 * config/mips/elf64.h: As for elf.h.
8405 * config/mips/iris6.h: Likewise.
8406 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
8407 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
8408 do...while (0) block.
8409 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
8410 (mips_finish_declare_object): Declare.
8411 * config/mips/mips.c (mips_declare_object_name): New function.
8412 (mips_finish_declare_object): New function.
8414 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
8415 * config/mips/linux.h: Likewise.
8417 * config/mips/mips.c (inside_function): Delete.
8418 (file_in_function_warning, ignore_line_number): Delete.
8419 (mips_output_filename): Don't warn about changing filenames within
8421 (mips_output_lineno): Update accordingly.
8422 (mips_output_function_prologue): Don't reset the deleted variables.
8423 * config/mips/mips.h (inside_function): Delete.
8424 (file_in_function_warning, ignore_line_number): Delete.
8426 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
8427 * config/mips/elf64.h: Likewise.
8428 * config/mips/openbsd.h: Likewise.
8429 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
8430 * config/mips/linux.h: Likewise.
8431 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
8432 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
8434 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
8435 to the list of include files when using gas.
8436 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
8437 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
8438 * config/mips/elf64.h: Likewise.
8439 * config/mips/iris5.h: Likewise.
8440 * config/mips/linux.h: Likewise.
8441 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
8442 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
8443 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
8444 * config/mips/sdb.h: ...this new file.
8446 2003-07-14 Douglas Rupp <rupp@gnat.com>
8448 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
8449 argument to getcwd; use fixed buffer instead.
8451 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
8453 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
8454 * fixinc/fixinc.wrap: Delete.
8456 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
8458 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
8461 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
8463 * ggc-page.c (struct globals): Add new fields to keep track of the
8464 total allocated memory and overhead.
8465 (ggc_print_statistics): Print them.
8466 (ggc_alloc): Keep track of the total allocated memory and the
8469 * tree.c (dump_tree_statistics): Increase spacing.
8470 (enum tree_node_kind): Move to ...
8471 * tree.h (enum tree_node_kind): ... here.
8472 (tree_node_counts, tree_node_sizes): Declare.
8474 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
8476 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
8478 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8480 PR optimization/11440
8481 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
8484 2003-07-14 Alan Modra <amodra@bigpond.net.au>
8486 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
8487 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
8488 (emit_group_load, emit_group_store): Adjust declarations.
8489 Remove most occurrences of #ifdef TREE_CODE.
8490 * expr.c (emit_group_load): Add "type" param, and use
8491 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
8492 aligned accesses if !SLOW_UNALIGNED_ACCESS.
8493 (emit_group_store): Likewise.
8494 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
8495 emit_group_load and emit_group_store calls.
8496 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
8497 BLOCK_REG_PADDING to determine whether we need endian_correction.
8498 (load_register_parameters): Localize vars. Handle shifting of
8499 small values to the correct end of regs. Adjust emit_group_load
8501 (expand_call, emit_library_call_value_1): Adjust emit_group_load
8502 and emit_group_store calls.
8503 * function.c (assign_parms): Set mem alignment for stack slots.
8504 Adjust emit_group_store call. Store values at the "wrong" end
8505 of regs to the stack. Use BLOCK_REG_PADDING.
8506 (locate_and_pad_parm): Save where_pad.
8507 (expand_function_end): Adjust emit_group_load call.
8508 * stmt.c (expand_value_return): Adjust emit_group_load call.
8509 * Makefile.in (calls.o): Depend on $(OPTABS_H).
8510 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
8511 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
8512 (MUST_PASS_IN_STACK): Define.
8513 (BLOCK_REG_PADDING): Define.
8514 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
8515 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
8516 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
8517 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
8518 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
8520 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
8522 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
8524 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8526 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
8527 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
8529 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
8532 * toplev.c: Don't cut off option names.
8534 2003-07-13 Andreas Jaeger <aj@suse.de>
8536 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
8537 to integer of different size.
8539 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
8541 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
8542 to (eq (and X 1) 0).
8544 2003-07-13 Andreas Jaeger <aj@suse.de>
8546 * config.gcc: Add pmmintrin.h for x86_64-*-*.
8548 2003-07-13 Zack Weinberg <zack@codesourcery.com>
8550 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
8551 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
8552 list. Move these all together down by cpplib.
8554 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
8555 definition of CPPCHAR_SIGNED_T.
8557 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
8558 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
8559 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
8561 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
8562 * cppinit.c (cpp_create_reader): Likewise.
8564 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
8565 * cpptrad.c: Likewise. All callers changed.
8566 * cpplib.c: All callers changed.
8567 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
8568 * hashtable.h: Define GTY(x) to nothing here too.
8570 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8572 * stor-layout.c (compute_record_mode): Remove very obsolete test
8573 that forces BLKmode for records with fields crossing word boundary.
8575 2003-07-13 Zack Weinberg <zack@codesourcery.com>
8577 * Makefile.in: Remove orphan reference to acconfig.h.
8579 2003-07-13 Andreas Jaeger <aj@suse.de>
8581 * cgraphunit.c: Convert prototypes to ISO C90.
8583 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
8585 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
8587 * fixinc/fixincl.x: Rebuild.
8589 2003-07-12 Zack Weinberg <zack@codesourcery.com>
8591 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
8592 i?86-*-*. Use correct name of cache variable.
8593 * configure: Regenerate.
8595 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
8597 * config/alpha/alpha.c: Fix comment typos.
8598 * config/alpha/alpha.md: Likewise.
8599 * config/arm/arm.c: Likewise.
8600 * config/arm/arm.md: Likewise.
8601 * config/arm/lib1funcs.asm: Likewise.
8602 * config/avr/avr.md: Likewise.
8603 * config/arm/README-interworking: Fix typos.
8605 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
8607 * c-format.c: Fix comment formatting.
8608 * c-typeck.c: Likewise.
8609 * coverage.c: Likewise.
8610 * cppcharset.c: Likewise.
8611 * cpplib.c: Likewise.
8612 * dbxout.c: Likewise.
8613 * gcov-io.h: Likewise.
8614 * toplev.c: Likewise.
8616 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
8618 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
8621 2003-07-12 Zack Weinberg <zack@codesourcery.com>
8623 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
8624 uses three-argument AC_DEFINE so no acconfig.h entries are
8626 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
8627 which contains the GAS version number as a scaled integer.
8628 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
8629 ability to check for ELF assembler.
8630 (gcc_GAS_CHECK_FEATURE): New macro.
8631 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
8632 assembler feature checks using gcc_GAS_CHECK_FEATURE.
8633 Use three-argument AC_DEFINE everywhere.
8634 * acconfig.h: Deleted.
8635 * config.in, configure: Regenerate.
8637 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
8639 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
8641 * fixinc/fixincl.x: Regenerate.
8643 * fixinc/inclhack.def (gnu_types): Improve comment.
8645 2003-07-12 Andreas Jaeger <aj@suse.de>
8647 * fp-test.c (main): Use ISO C90 prototype.
8649 * version.c: Remove unneded include of ansidecl.h.
8651 * cgraph.h: Convert prototypes to ISO C90.
8652 * cgraph.c: Likewise.
8653 * fix-header.c: Likewise.
8655 * protoize.c: Likewise.
8657 2003-07-12 Jan Hubicka <jh@suse.cz>
8659 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
8662 2003-07-12 Jan Hubicka <jh@suse.cz>
8663 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8665 * cgraph.c (cgraph_max_uid): New global variable.
8666 (cgraph_node): Set uid field.
8667 (create_edge): Keep inline flags consistent.
8668 (dump_cgraph): Dump more info.
8669 * cgraph.h (struct cgraph_local_info): Remove inline_many and
8670 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
8671 (struct cgraph_global_info): Add insns, calls, cloned_times,
8673 (struct cgraph_node): Add uid.
8674 (struct cgraph_edge): Add inline_call.
8675 (cgraph_max_uid, cgraph_inline_p): Declare.
8676 * cgraph.c: Include params.h and fibheap.h
8677 (cgraph_mark_functions_to_inline_once): Kill.
8678 (INSNS_PER_CALL): New constant.
8679 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
8681 (cgraph_finalize_function): Do not analyze inlining.
8682 (cgraph_finalize_compilation_unit): Set inlining attributes.
8683 (cgraph_mark_functions_to_output): More consistency checks.
8684 (cgraph_optimize_function): Set current_function_decl to NULL.
8685 (cgraph_expand_function): Use new inline flags.
8686 (cgraph_postorder): Expand from cgraph_expand_functions.
8687 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
8688 (cgraph_inlined_into, cgraph_inlined_callees,
8689 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
8690 cgraph_mark_inline, cgraph_check_inline_limits,
8691 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
8692 cgraph_decide_inlining, cgraph_inline_p): New functions.
8693 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
8694 PARAM_INLINE_UNIT_GROWTH): New parameters.
8695 * tree-inline.c (struct inline_data): New field current_decl.
8696 (expand_call_inline): Avoid forward declarations; use
8697 inlinable_function_p.
8698 (optimize_inline_calls): Set id.current_decl.
8700 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
8702 * configure.in: Remove wrongly added definition of
8704 * configure: Regenerate.
8706 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8708 * rtl.def (NOTE): Do not use padding.
8710 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
8712 * doc/install.tex: Update required binutils for i?86-*-linux*
8714 2003-07-11 Richard Henderson <rth@redhat.com>
8716 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
8718 2003-07-11 Mark Mitchell <mark@codesourcery.com>
8720 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
8721 TRANSLATION_UNIT_DECL as top_level.
8723 2003-07-11 Jakub Jelinek <jakub@redhat.com>
8725 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
8726 then fall back to cmpstrM.
8727 * builtins.c (expand_builtin_memcmp): Likewise.
8728 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
8729 (s390_expand_cmpmem): ... this.
8730 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
8731 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
8732 from cmpstr* patterns. Rename call to s390_expand_cmpstr
8733 to s390_expand_cmpmem.
8734 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
8735 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
8737 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
8739 * doc/md.texi (cmpstrM): Describe as String compare insn, not
8743 2003-07-11 Loren James Rittle <ljrittle@acm.org>
8745 * config/i386/freebsd.h (SET_ASM_OP): Remove.
8746 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
8747 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
8748 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
8750 2003-07-11 Richard Henderson <rth@redhat.com>
8752 * function.c (assign_parms): Don't recombine complex args if
8753 fnargs is unchanged from orig_fnargs.
8754 (split_complex_args): Return args without complex before copying.
8755 Re-layout the modified parameters.
8757 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
8759 * regclass.c (choose_hard_reg_mode): Add third argument.
8760 Changed all callers.
8761 * rtl.h (choose_hard_reg_mode): Update declaration.
8762 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
8763 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
8765 2003-07-11 Geoffrey Keating <geoffk@apple.com>
8767 * c-decl.c (finish_decl): Handle 'used' here...
8768 * cgraphunit.c (cgraph_finalize_function): ... and here ...
8769 * c-common.c: (handle_used_attribute): ... not here.
8771 * configure.in (onstep): Support --enable-intermodule.
8772 * Makefile.in (OBJS-common): New.
8774 (OBJS-archive): New.
8775 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
8776 (OBJS-onestep): New.
8777 (libbackend.a): Support @onestep@.
8778 (libbackend.o): New.
8779 * configure: Regenerate.
8781 * c-common.h (c_reset_state): New prototype.
8782 (c_parse_file): New prototype.
8783 (finish_file): Move prototype from c-tree.h.
8784 * c-decl.c: Include <hashtab.h>.
8785 (builtin_decls): New.
8786 (current_file_decl): New.
8787 (duplicate_decls): Add extra parameter. Change all callers. Don't
8788 output duplicate common symbols.
8789 (link_hash_hash): New.
8790 (link_hash_eq): New.
8791 (poplevel): Handle popping of the top level.
8792 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
8793 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
8794 (pushdecl_top_level): Likewise.
8795 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
8796 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
8797 (finish_decl): Handle TRANSLATION_UNIT_DECL.
8798 (merge_translation_unit_decls): New.
8799 (c_write_global_declarations): New.
8800 (c_reset_state): New.
8801 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
8802 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
8803 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
8804 TRANSLATION_UNIT_DECL.
8805 (c_objc_common_finish_file): Call merge_translation_unit_decls.
8806 * c-opts.c (in_fnames): Rename from in_fname.
8807 (c_common_decode_option): Handle multiple input filenames.
8808 (c_common_post_options): Likewise.
8809 (c_common_parse_file): Likewise; also, call c_parse_file rather than
8811 * c-parse.in: Move cleanup code to c_parse_file.
8812 (free_parser_stacks): Move contents to c_parse_file.
8813 (c_parse_file): New.
8814 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
8816 (C_DECL_FILE_SCOPE): New.
8817 (finish_file): Move prototype to c-common.h.
8818 (merge_translation_unit_decls): New prototype.
8819 (comptypes): Add extra parameter to prototype.
8820 (c_write_global_declarations): New prototype.
8821 * c-typeck.c (tagged_types_tu_compatible_p): New.
8822 (function_types_compatible_p): Add extra parameter, change all callers.
8823 (type_lists_compatible_p): Likewise.
8824 (comptypes): Likewise.
8825 (struct tagged_tu_seen): New.
8826 (tagged_tu_seen_base): New.
8827 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
8828 (c_mark_addressable): Remove #if 0 code.
8829 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
8830 comment explaining why it shouldn't have to.
8831 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
8833 * cppinit.c (cpp_read_next_file): New.
8834 (cpp_read_main_file): Use it.
8835 * cpplib.c (undefine_macros): New.
8836 (cpp_undef_all): New.
8837 * cpplib.h (cpp_read_next_file): Prototype.
8838 (cpp_undef_all): Prototype.
8839 * langhooks-def.h (write_global_declarations): Remove prototype.
8840 * toplev.h (write_global_declarations): Add prototype.
8841 * tree.c (decl_type_context): Use switch statement, handle
8842 TRANSLATION_UNIT_DECL.
8843 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
8844 (TRANSLATION_UNIT_DECL): New kind of tree.
8845 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
8846 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
8847 * doc/invoke.texi: Make attempt to document new functionality.
8849 2003-05-19 Per Bothner <bothner@apple.com>
8851 * gcc.c (combine_inputs): New.
8852 (process_command): Set combine_inputs.
8853 (do_spec_1): Handle combine_inputs.
8856 2003-07-10 James E Wilson <wilson@tuliptree.org>
8858 PR optimization/9745
8859 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
8860 loop_insn_emit_before.
8861 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
8863 2003-07-10 Zack Weinberg <zack@codesourcery.com>
8865 * cppcharset.c: Fix comment.
8866 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
8867 (EILSEQ): #define to EINVAL if not already defined.
8868 (convert_using_iconv): #if out when !HAVE_ICONV.
8869 (init_iconv_desc): Handle !HAVE_ICONV here...
8870 (cpp_init_iconv): ...not here.
8872 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
8874 * common.opt: More --help messages.
8875 * opts.c (print_help): Use puts().
8876 * toplev.c (f_options): Remove help text.
8877 (display_help): Don't dump f_options.
8879 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
8881 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
8882 Move i?86-*-interix* to the don't-fix list.
8883 * fixinc/fixinc.interix: Delete with extreme prejudice.
8885 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
8888 * doc/install.texi: Document requirements for ia64-*-hpux* target.
8890 2003-07-10 Roger Sayle <roger@eyesopen.com>
8892 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
8894 2003-07-10 Zack Weinberg <zack@codesourcery.com>
8896 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
8897 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
8898 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
8899 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
8900 convert_no_conversion, convert_using_iconv): New functions.
8901 (APPLY_CONVERSION): New macro.
8902 (struct conversion, conversion_tab): New data structure.
8903 (init_iconv_desc): Check conversion_tab for a custom conversion
8904 primitive before trying to use iconv.
8905 (convert_cset): Deleted.
8906 (cpp_init_iconv): Use UTF- terminology, not UCS-.
8907 (_cpp_destroy_iconv): Update to match.
8908 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
8909 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
8910 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
8911 (_cpp_interpret_string_notranslate): New function, moved here
8914 * cpphash.h (convert_f, struct cset_converter): New types.
8915 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
8916 are now struct cset_converter, not bare iconv_t.
8918 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
8919 all callers changed.
8921 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
8923 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
8924 to opts.sh command line.
8925 * opts.sh: Write to temporary files with a move-if-change at the end.
8927 2003-07-10 Denis Chertykov <denisc@overta.ru>
8928 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8930 * combine.c (gen_binary): Handle the CLOBBER rtx and
8931 don't build a binary operation with it.
8933 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8935 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
8936 store_killed_after, store_killed_before): Keep track of the correct
8937 dependency function to use.
8939 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
8940 * toplev.c (do_compile): Don't try to open dump files before
8941 lang_dependent_init initializes dump_base_name.
8943 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8945 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
8947 * config/frv/frv.c (frv_expand_builtin): Likewise.
8948 * config/sh/sh.c (sh_media_init_builtins): Likewise.
8950 2003-07-09 Mark Mitchell <mark@codesourcery.com>
8953 * doc/invoke.texi (C++ Dialect Options): Change documentation of
8956 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
8958 * tm.texi (RETURN_ADDR_OFFSET): Document.
8960 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
8962 * gcov-io.h: Update documentation.
8963 (GCOV_UNSIGNED2STRING): New.
8964 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
8965 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
8966 GCOV_TAG_SUMMARY_LENGTH): Adjust.
8967 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
8968 GCOV_TAG_COUNTER_NUM): New.
8969 (GCOV_BLOCK_SIZE): Number of words.
8970 (gcov_var): Adjust buffer type.
8971 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
8972 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
8973 count, not byte count.
8974 (gcov_open): Adjust overread init.
8975 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
8976 gcov_write_string, gcov_write_tag, gcov_write_length,
8977 gcov_write_tag_length): Adjust.
8978 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
8979 (gcov_sync, gcov_seek): Adjust.
8980 * gcov-dump.c (print_usage): Show gcc version only.
8981 (dump_file): Use GCOV_UNSIGNED2STRING.
8982 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
8983 * gcov.c (print_version): Show gcc version only.
8984 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
8985 GCOV_TAG_*_NUM macros.
8986 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
8987 GCOV_TAG_COUNTER_LENGTH.
8988 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
8989 Use GCOV_TAG_COUNTER_NUM.
8990 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
8991 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
8993 2003-07-10 Andreas Schwab <schwab@suse.de>
8995 * gcov-dump.c (dump_file): Fix missing address operator.
8997 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
9000 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
9002 (fold_single_bit_test): If sign_bit_p() fails, assume that the
9003 bit being tested is not a sign bit.
9005 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
9007 * config/h8300/h8300.md (a peephole2): New.
9009 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
9011 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
9012 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
9013 from ld-linux.so.2 to ld.so.1.
9014 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
9015 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
9016 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
9017 nor -Wl,-rpath-link.
9018 (LIB_SPEC): Add -rpath-link if !static.
9019 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
9020 * config/mn10300/mn10300.c (mn10300_protect_label): New
9022 * config/mn10300/linux.h (PRINT_OPERAND,
9023 PRINT_OPERAND_ADDRESS): Set it during their execution.
9024 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
9025 mn10300_protect_label is set.
9026 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
9028 (LIB_SPEC, STARTFILE_SPEC): Define.
9029 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
9030 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
9031 FLOAT_BIT_ORDER_MISMATCH.
9032 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
9033 * config.gcc (am33_2.0-*-linux*): Added.
9034 * config/mn10300/linux.h: New.
9035 * config/mn10300/t-linux: New.
9037 2003-07-10 Andreas Jaeger <aj@suse.de>
9039 * fold-const.c: Properly wrap prototypes.
9041 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
9043 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
9044 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
9046 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
9047 * config/mn10300/mn10300.h: GTY-declare it.
9048 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
9049 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
9050 prototype. Use incoming RTL argument.
9051 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
9052 * config/mn10300/mn10300.md (int_label): Move C statements...
9053 (GOTaddr2picreg): ... here.
9054 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
9055 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
9056 * config/mn10300/mn10300.c (mn10300_encode_section_info):
9057 ... here. New function.
9058 (TARGET_ENCODE_SECTION_INFO): Define to it.
9059 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
9060 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
9062 (mn10300_loadPC): Define as insn splittable after reload.
9063 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
9064 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
9065 be defined in .rodata even in PIC, now that the assembler
9067 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
9068 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
9069 symbol take an underscore prefix.
9070 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
9071 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
9072 legitimize_pic_address): Declare.
9073 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
9074 the PIC register as fixed.
9075 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
9076 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
9078 (LEGITIMATE_PIC_OPERAND_P): Define.
9079 (PIC_OFFSET_TABLE_REGNUM): Define.
9080 (GOT_SYMBOL_NAME): Define.
9081 (SYMBOLIC_CONST_P): Define.
9082 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
9084 (MN10300_GLOBAL_P): Test it.
9085 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
9086 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
9087 * config/mn10300/mn10300.c (print_operand): Handle unspec.
9088 (expand_prologue): Set PIC register.
9089 (call_address_operand): Don't match SYMBOL_REFs in PIC.
9090 (legitimize_address): Call legitimize_pic_address.
9091 (legitimize_pic_address): New fn.
9092 (legitimate_pic_operand_p): New fn.
9093 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
9094 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
9095 UNSPEC_PLT): New constants.
9096 (pop_pic_reg): New insn.
9097 (movsi): Adjust non-PIC addresses.
9098 (builtin_setjmp_receiver): Restore the PIC register.
9100 (call): Adjust non-PIC addresses.
9101 (int_label, GOTaddr2picreg): New expands.
9102 (am33_loadPC): New insn.
9103 (mn10300_loadPC): New expand.
9104 (call_next_insn): New insn.
9105 (add_GOT_to_pic_reg): New expand.
9106 (symGOT2reg, symGOT2reg_i): New expands.
9107 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
9108 (sym2PIC, sym2PLT): New expands.
9110 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
9112 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
9113 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
9114 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
9115 to flag_unsafe_math_optimizations.
9116 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
9117 * config/mn10300/mn10300.c (expand_prologue): Mark
9118 FP-register-saving insns as frame-related.
9119 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
9120 * config/mn10300/mn10300.c
9121 (mn10300_get_live_callee_saved_regs): Don't search past
9122 LAST_EXTENDED_REGNUM.
9123 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
9124 * config/mn10300/mn10300.md: Remove excessive line breaks from
9125 `@' output patterns that were accounted as additional
9127 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
9128 Re-introduce changes accidentally removed in Richard Sandiford's
9130 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
9131 Re-instate am33-2 lost in merge from net GCC.
9132 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
9133 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
9134 floating-point registers.
9135 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
9136 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
9137 pessimizations that had gone in on 2000-05-08.
9138 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
9139 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
9140 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
9141 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
9143 * (movhi): Likewise.
9144 * (movsi): Likewise.
9145 * (movsf): Likewise.
9146 * (movdi): Likewise.
9147 * (movdf): Likewise.
9148 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
9149 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
9150 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
9151 (expand_prologue, expand_epilogue): Save and restore FP regs.
9152 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
9153 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
9154 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
9155 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
9156 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
9158 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
9159 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
9160 Discourage the two-argument, longer opcodes.
9161 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
9163 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
9164 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
9165 * config/mn10300/mn10300.md (cmpsf): New pattern.
9166 (branch): Test mdep.fpCC and output fbCC.
9167 * config/mn10300/mn10300.c (print_operand): Output conditions.
9168 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
9169 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
9170 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
9171 mulsf3, divsf3): Use the `F' constraint for FP values.
9172 * config/mn10300/mn10300.c (const_1f_operand): New function.
9173 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
9174 * config/mn10300/mn10300.md (sqrtsf2): New expand.
9175 (rsqrtsf2): New insn.
9176 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
9177 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
9179 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
9180 * config/mn10300/mn10300.md (abssf2, negdf2): On
9181 TARGET_AM33_2, expand to...
9182 (abssf2_am33_2, negdf2_am33_2): New insns.
9183 (addsf3, subsf3, mulsf3, divsf3): Likewise.
9184 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
9185 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
9186 movdi, movdf): Added FP regs.
9187 * invoke.texi (-mam33-2, -mno-am33-2): Document.
9188 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
9189 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
9191 (REGNO_AM33_2_FP_P): Renamed to...
9192 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
9193 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
9194 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
9195 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
9196 regs from GENERAL_REGS.
9197 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
9198 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
9199 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
9200 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
9201 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
9202 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
9204 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
9205 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
9206 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
9207 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
9208 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
9209 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
9210 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
9211 AM33/2.0 floating-point registers.
9212 (CONDITIONAL_REGISTER_USAGE): Adjust.
9213 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
9214 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
9215 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
9216 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
9217 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
9218 (MULTILIB_DIRNAMES): Likewise.
9219 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
9220 `__AM33_2__' when `-mam33-2' is given.
9221 (TARGET_AM33_2): Define.
9222 (TARGET_SWITCHES): Adjust.
9223 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
9226 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
9228 * doc/install.texi: Add missing @.
9230 2003-07-09 Bob Wilson <bob.wilson@acm.org>
9232 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
9234 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
9237 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
9239 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
9242 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
9243 "x-crtfini.o" with "crtinit.o", "crtfini.o".
9245 * fixinc/inclhack.def (limits_ifndefs): Add select test.
9246 * fixinc/fixincl.x: Rebuild.
9248 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
9249 * fixinc/fixincl.x: Rebuild.
9251 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
9253 * doc/install.texi (Configuration): Document the valgrind option
9254 to --enable-checking.
9256 2003-07-09 Jan Hubicka <jh@suse.cz>
9258 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
9260 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9262 * c-lex.c (cb_ident): Cast cstr.text to const char *.
9264 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
9266 * gcov-io.h: Update documentation.
9267 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
9269 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
9270 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
9271 (struct gcov_var): Change buffer's type. Add endian flag.
9272 (gcov_open): Remove mode in libgcov.
9273 (gcov_magic): Prototype.
9274 * gcov-io.c (from_file): New.
9275 (gcov_open): Clear endian flag.
9277 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
9279 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
9280 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
9281 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
9282 * gcov-iov.c (main): Correct cast.
9283 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
9285 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
9286 (coverage_init): Use GCOV_NOTE_SUFFIX.
9287 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
9288 Rename to gcov_version, and return flag.
9289 (gcov_exit): Use gcov_version.
9290 (__gcov_init): Use gcov_version.
9291 * Makefile.in (coverageexts): Update.
9292 * gcov.c (print_version): Remove endianness conversion.
9293 (create_file_names): Use GCOV_NOTE_SUFFIX.
9294 (read_graph_file): Use gcov_magic.
9295 (read_count_file): Likewise.
9296 * gcov-dump.c (dump_file): Remove endianness conversion, use
9299 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
9301 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
9303 * configure: Regenerated.
9304 * Makefile.in (ALL_CFLAGS): Correct its comment.
9306 2003-07-08 Mark Mitchell <mark@codesourcery.com>
9308 * fold-const.c (make_range): Do not access operand 1 for a
9309 zero-operand operator.
9311 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
9313 * toplev.c (warn_dummy, W_options): Die.
9314 (display_help): Don't print W_options.
9315 * common.opt: Add W_options help from toplev.c.
9317 2003-07-09 Andreas Jaeger <aj@suse.de>
9319 * opts.c (wrap_help): Only pass int arguments as arguments to
9320 printf's '*' modifier. Change argument of function.
9322 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
9324 * doc/invoke.texi: Fix misspelling of "@item".
9326 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
9328 * config/i386/i386.md: Remove an old comment about
9331 2003-07-09 Jan Hubicka <jh@suse.cz>
9333 * cgraph.c (cgraph_node_name): New function.
9334 (dump_cgraph): Use it.
9335 * cgraph.h (cgraph_dump_file): Declare.
9336 (cgraph_node_name): Declare.
9337 * cgraphunit.c: Include timevar.h
9338 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
9339 (cgraph_optimize_function): Use TV_INTEGRATION.
9340 (cgraph_mark_local_functions): reorganize dumps.
9341 (cgraph_mark_functions_to_inline_once): Likewise.
9342 (cgraph_optimize): Likewise; use timevar.
9343 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
9344 * toplev.c (dump_file_index): Add DFI_cgraph.
9345 (dump_file_info): Likewise.
9346 (cgraph_dump_file): New global variable.
9347 (do_compile): Open and close cgraph dump.
9348 * invoke.texi (-d): Document new flag; renumber.
9350 2003-07-08 Roger Sayle <roger@eyesopen.com>
9353 * calls.c (emit_call_1): Don't bother popping the arguments off of
9354 the stack after a noreturn function call; The adjustment is dead.
9355 (expand_call): Likewise.
9357 2003-07-08 Geoffrey Keating <geoffk@apple.com>
9359 * expr.c (MOVE_MAX_PIECES): Move from here...
9360 * defaults.h (MOVE_MAX_PIECES): ... to here.
9362 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
9364 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
9366 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9368 * genattr.c (internal_dfa_insn_code): Don't prototype.
9369 * genattrtab.c (attr_desc): Add `static_p' field.
9370 (expand_units): Make blockage range and ready cost functions
9372 (write_attr_get): Don't add extern prototypes in C file. Mark
9373 static functions as appropriate.
9374 (find_attr, make_internal_attr): Initialize static_p.
9375 * genattrtab.h (ATTR_STATIC): New macro.
9376 * genautomata.c (output_internal_reset_func): Mark output function
9378 (make_internal_dfa_insn_code_attr): Mark output function as static.
9380 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9382 * genattrtab.h: Add new macros for attr `special' flags.
9383 * genattrtab.c (attr_desc): Reorder/resize fields better.
9384 Use attr `special' macros in all calls to make_internal_attr.
9385 * genautomata.c: Likewise.
9387 2003-07-09 Jan Hubicka <jh@suse.cz>
9389 * c-common.c (c_estimate_num_insns_1): New static function.
9390 (c_estimate_num_insns): New global function.
9391 * c-common.h (DECL_NUM_STMTS): Rename to...
9392 (DECL_ESTIMATED_INSNS): ... this.
9393 (c_estimate_num_insns): Declare.
9394 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
9395 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
9396 * c-semantics.c (add_stmt): Do not account statements.
9397 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
9399 * langhooks.h (lang_hooks_for_tree_inlining): Add
9401 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
9403 (max-inline-insns): set to 300.
9404 (min-inline-insns): set to 10.
9405 * tree-inline.c (struct inline_data): Rename inlined_stmts to
9407 (INSNS_PER_STMT): Kill.
9408 (inlinable_function_p): Compute and store body size.
9409 (expand_call_inline): Likewise.
9410 (optimize_inline_calls): Likewise.
9412 2003-07-08 James E Wilson <wilson@tuliptree.org>
9415 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
9416 loop over new variable t2 instead of t.
9418 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
9421 * config/i386/winnt.c: Replace use of error(), warning() with
9422 error_with_decl(), warning_with_decl(), throughout.
9424 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
9426 * opts.c (wrap_help): Use unsigned int, not size_t.
9428 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
9430 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
9431 as .file/.loc directives are incompatible with linker relaxation.
9433 2003-07-08 Zack Weinberg <zack@codesourcery.com>
9435 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
9436 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
9437 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
9438 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
9439 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
9440 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
9441 Escape { and } characters which are not part of range expressions.
9442 * fixinc/fixincl.x: Regenerate.
9443 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
9445 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
9448 * tree-inline.c (find_alloca_call): Use
9449 walk_tree_without_duplicates, instead of walk_tree.
9450 (find_builtin_longjmp_call): Likewise.
9451 * c-objc-common.c (c_cannot_inline_fn): Likewise.
9452 * c-semantics.c (find_reachable_label): Likewise.
9454 2003-07-08 Jakub Jelinek <jakub@redhat.com>
9457 * config/i386/i386.c (ix86_check_movabs): New function.
9458 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
9459 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
9460 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
9462 2003-07-08 Chris Demetriou <cgd@broadcom.com>
9464 * Makefile.in (install-po): Cope with empty CATALOGS.
9466 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
9468 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
9469 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
9470 (SECTION_FUNCTION_TEMPLATE): Delete.
9471 * config/mips/elf.h: As for elf64.h.
9472 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
9473 * config/mips/linux.h: As for elf.h
9474 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
9475 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
9476 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
9477 of in_sdata from current_section_name and current_section_flags.
9478 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
9479 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
9480 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
9481 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
9482 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
9483 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
9484 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
9485 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
9486 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
9487 (override_options): Remove setting of MASK_GPOPT.
9488 (mips_output_external): Use mips_in_small_data_p to check whether a
9489 symbol needs an .extern directive. Don't emit such directives for
9490 TARGET_EXPLICIT_RELOCS.
9491 (mips_declare_object): Update accordingly.
9492 (mips_select_rtx_section): Call named_section rather than
9494 (mips_select_section): Use default_elf_section_section for everything
9495 except .text string constants.
9496 (mips_in_small_data_p): New function.
9497 (mips_encode_section_info): Remove small data handling.
9498 (mips_unique_section): Delete.
9499 (iris6_section_type_flags): New function.
9500 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
9502 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9505 * pa.md: Disparage all mtsar constraints.
9506 (extzv, extv, insv): Don't fail on length of {32|64}.
9508 2003-07-08 Zack Weinberg <zack@codesourcery.com>
9510 * system.h: Poison MAP_CHARACTER.
9511 * config/i370/i370-protos.h (mvs_map_char): Delete.
9512 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
9513 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
9514 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
9516 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
9518 * toplev.c (randomize): Correct call to time().
9520 2003-07-08 Jakub Jelinek <jakub@redhat.com>
9522 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
9523 REG_EQUIV notes as well.
9525 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
9527 * doc/md.texi: Fix the description of addmodecc.
9529 2003-07-07 Zack Weinberg <zack@codesourcery.com>
9531 * Makefile.in (top_builddir): Set to "..", not ".".
9532 (INTLLIBS, INTLDEPS): Delete.
9533 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
9534 (LIBDEPS): Add $(LIBICONV_DEP).
9535 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
9536 (INCLUDES): Replace -I../intl with @INCINTL@.
9537 ($(top_builddir)/intl/libintl.a): Delete rule.
9538 (stage2-start, stage3-start, stage4-start, stageprofile-start,
9539 stagefeedback-start): Use $$ for variable to be evaluated by
9541 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
9542 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
9543 * aclocal.m4: sinclude ../config/progtest.m4. Add
9544 contents of lcmessage.m4 from gettext distro.
9545 * configure.in: Check for wchar.h and setlocale. Set
9546 LIBICONV_DEP to the empty string and substitute it.
9547 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
9548 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
9549 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
9550 in $LIBINTL, to avoid linking it twice.
9551 * configure, config.in: Regenerate.
9553 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
9555 * fixinc/mkfixinc.sh: Remove winnt support.
9556 * fixinc/fixinc.winnt: Delete with extreme prejudice.
9558 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
9560 * Makefile.in: Update.
9561 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
9562 * c.opt: Update documentation.
9563 * common.opt: Add some help text.
9564 * opts.c: Include intl.h.
9565 (wrap_help, print_help): New.
9566 (find_opt, handle_option, common_handle_option): opt_text now
9567 contains the '-'. Use print_help to output help.
9568 * opts.h (struct cl_option): New member "help".
9569 * opts.sh: Update to handle help text output and to prepend
9571 * toplev.c (display_help): Remove some help text.
9573 2003-07-07 David Edelsohn <edelsohn@gnu.org>
9574 Fariborz Jahanian <fjahanian@apple.com>
9576 * configure.in: Test for PowerPC mfcr field support in assembler.
9577 * config.in, configure: Regenderated.
9579 * config/rs6000/power4.md: Add mfcrf reservation.
9580 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
9581 * config/rs6000/rs6000.c (mfcr_operation): Define.
9582 (print_operand): Add 'Q' case for mfcrf.
9583 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
9584 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
9585 (movcc_internal1): Emit optional field operand for mfcr and set
9586 "type" attribute appropriately.
9587 (mfcr SCC): Likewise.
9588 (movesi_from_cr_one): New.
9590 2003-07-07 Roger Sayle <roger@eyesopen.com>
9592 * config/i386/i386.md: Correct check-in of incorrect version.
9594 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9596 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
9597 adjacent stdio calls.
9598 * c-decl.c (c_print_identifier): Likewise.
9599 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
9600 * print-rtl.c (print_rtx): Likewise.
9601 * print-tree.c (print_node_brief, print_node): Likewise.
9602 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
9604 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
9605 * config.in, configure: Regenerated.
9607 2003-07-07 Roger Sayle <roger@eyesopen.com>
9610 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
9611 Changed to define_expand patterns that copy operand[1] to prevent
9612 it from being clobbered before emitting an atan2?f3_1 insn.
9613 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
9614 patterns that actually specify the behaviour of x87's FPATAN.
9616 2003-07-07 Jakub Jelinek <jakub@redhat.com>
9618 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
9619 clearing of SYMBOL_FLAG_LOCAL bit.
9620 If vcall_offset fits into signed 16-bit immediate, use
9621 one instruction for both addition and load.
9623 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
9625 * opts.c (common_handle_option): Correct handling of the
9626 -falign- switches that do and don't take an argument.
9628 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
9630 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
9632 (pushhi1_h8300hs): Likewise.
9634 2003-07-07 Andreas Jaeger <aj@suse.de>
9636 * genextract.c: Convert remaining prototypes to ISO C90.
9638 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
9639 * fold-const.c (fold_single_bit_test): Likewise.
9640 * diagnostic.c (default_diagnostic_finalizer): Likewise.
9641 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
9643 * gengtype.c (write_array): Generate ISO C90 prototypes.
9645 * genflags.c (gen_proto): Generate ISO C90 prototypes.
9647 2003-07-07 Roger Sayle <roger@eyesopen.com>
9649 PR optimization/11059
9650 * expr.c (can_store_by_pieces): Return true if length is zero.
9651 (store_by_pieces): If length is zero and endp is two, abort,
9652 othwerise, if length is zero and endp is not two, return "to".
9653 (clear_by_pieces): Do nothing if length is zero.
9654 (clear_storage): Do nothing if length is zero.
9655 (store_constructor): Simplify code when size is zero, or the
9656 target has already been cleared. This avoids emitting a
9657 blockage instruction when initializing empty structures.
9659 2003-07-07 Andreas Jaeger <aj@suse.de>
9661 * mips-tfile.c: Convert prototypes to ISO C90.
9662 * mips-tdump.c: Convert prototypes to ISO C90.
9664 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
9666 * rtl.h (emit_line_note): Take a location_t.
9667 (emit_line_note_force): Remove.
9668 (set_file_and_line_for_statement): Take a location_t.
9669 * tree.g (emit_line_note): Take a location_t.
9670 * emit-rtl.c (emit_line_note): Take a location_t.
9671 (emit_line_note_force): Remove.
9672 * function.c (init_function_start): Adjust emit_line_note call.
9673 (expand_function_end): Use force_next_line_note, not
9674 emit_line_note_force.
9675 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
9676 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
9677 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
9678 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
9679 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
9680 genrtl_continue_stmt, genrtl_switch_stmt,
9681 genrtl_asm_stmt): Likewise.
9682 * expr.c (expand_expr): Likewise.
9683 * integrate.c (expand_inline_function): Likewise.
9684 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
9685 (expand_decl_init): Adjust emit_line_note call.
9687 2003-07-07 Dale Johannesen <dalej@apple.com>
9689 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
9691 2003-07-07 Andreas Jaeger <aj@suse.de>
9693 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
9694 * config/i386/i386.c: Likewise.
9696 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
9698 * config/h8300/h8300.md: Use gen_int_mode instead of
9699 GEN_INT (trunc_int_for_mode (...)).
9701 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
9703 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
9704 2 bytes and then subtract 2 from the stack pointer.
9705 (pushhi1_h8300hs): Likewise.
9707 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
9709 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
9711 * configure: Regenerated.
9712 * Makefile.in: Remove extraneous comment.
9713 * toplev.c (randomize): Protect against potential multiple calls.
9714 * doc/invoke.texi (-frandom-seed): Document use for in coverage
9717 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9718 Eric Botcazou <ebotcazou@libertysurf.fr>
9720 PR optimization/11198
9721 * alias.c (objects_must_conflict_p): Return 1 if the types have
9722 the same alias set, not if the alias sets only conflict.
9724 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
9726 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
9727 (convert_cset): Change inbuf to type ICONV_CONST char.
9728 * Makefile.in (LIBS): Add LIBICONV.
9730 * doc/invoke.texi (-falign-functions): Document that
9731 when n is zero then a machine-dependent default is used.
9732 (-falign-labels): Document that when n is zero then a
9733 machine-dependent default is used and that -falign-labels =1
9734 is equivalent to -fno-align-labels.
9735 (-falign-loops): Likewise.
9736 (-falign-jumps): Likewise.
9738 2003-07-06 Art Haas <ahaas@airmail.net>
9740 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
9743 2003-07-06 James E Wilson <wilson@tuliptree.org>
9745 PR optimization/9812
9746 * rtl.h (mem_for_const_double): Delete prototype.
9747 * varasm.c (mem_for_const_double): Delete function.
9748 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
9749 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
9750 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
9751 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
9752 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
9753 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
9754 comment about confused support for XFmode constants.
9756 2003-07-07 Jan Hubicka <jh@suse.cz>
9758 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
9760 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
9762 * config/h8300/h8300.c: Fix comment typos.
9763 * config/h8300/h8300.md: Likewise.
9764 * config/i386/athlon.md: Likewise.
9765 * config/i386/i386.c: Likewise.
9766 * config/i386/pentium.md: Likewise.
9767 * config/ia64/ia64.c: Likewise.
9768 * config/ia64/itanium1.md: Likewise.
9769 * config/ia64/itanium2.md: Likewise.
9770 * config/m32r/m32r.md: Likewise.
9771 * config/m68hc11/m68hc11.c: Likewise.
9772 * config/mcore/mcore.c: Likewise.
9773 * config/mips/sr71k.md: Likewise.
9774 * config/mips/t-iris5-as: Likewise.
9775 * config/mmix/mmix.h: Likewise.
9776 * config/ns32k/ns32k.h: Likewise.
9777 * config/ns32k/NOTES: Fix a typo.
9779 2003-07-06 Andreas Jaeger <aj@suse.de>
9781 * stmt.c: Convert remaining prototypes to ISO C90.
9782 * cfglayout.c: Likewise.
9783 * dbxout.c: Likewise.
9785 * genemit.c: Likewise.
9787 * basic-block.h: Convert prototypes to ISO C90.
9788 * c-parse.in: Likewise.
9789 * c-pragma.h: Likewise.
9790 * c-typeck.c: Likewise.
9791 * cfghooks.h: Likewise.
9792 * cfgloopanal.c: Likewise.
9793 * dbxout.h: Likewise.
9794 * debug.h: Likewise.
9795 * dwarf2asm.h: Likewise.
9797 * gengtype-lex.l: Likewise.
9798 * sched-int.h: Likewise.
9799 * timevar.c: Likewise.
9801 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
9803 * c-common.h (c_comon_handle_filename,
9804 c_common_missing_arguement): New.
9805 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
9806 LANG_HOOKS_MISSING_ARGUMENT): New.
9807 * c-opts.c (missing_arg): Rename c_common_missing_argument,
9808 update to be an appropriate langhook.
9809 (c_common_handle_option): Don't handle filenames.
9810 (c_common_handle_filename): New.
9811 * hooks.c (hook_void_constcharptr,
9812 hook_bool_constcharptr_size_t_false): New.
9813 * hooks.h (hook_void_constcharptr,
9814 hook_bool_constcharptr_size_t_false): New.
9815 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
9816 LANG_HOOKS_MISSING_ARGUMENT): New.
9817 (LANG_HOOKS_INITIALIZER): Update.
9818 * langhooks.h (struct lang_hooks): Add handle_filename and
9820 * opts.c (handle_option): Don't handle filenames here, but ...
9821 (handle_options): ... here.
9822 (common_handle_option): Don't handle missing arguments here.
9823 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
9824 LANG_HOOKS_MISSING_ARGUMENT): New.
9826 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
9828 * Makfile.in: Remove traces of mbchar.
9829 * c-parse.in (MULTIBYTE_CHARS): Remove.
9830 * config.in (MULTIBYTE_CHARS): Remove.
9831 * configure: Remove --enable-mbchar.
9832 * configure.in: Remove --enable-mbchar.
9833 * mbchar.c, mbchar.h: Remove.
9834 * system.h: Poison MULTIBYTE_CHARS.
9835 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
9836 * config/linux.h (MULTIBYTE_CHARS): Remove.
9837 * config/svr4.h (MULTIBYTE_CHARS): Remove.
9838 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
9840 2003-07-06 Andreas Jaeger <aj@suse.de>
9842 * varray.c (varray_check_failed): Fix typo.
9844 * unroll.c: Convert prototypes to ISO C90.
9845 * varasm.c: Likewise.
9846 * varray.c: Likewise.
9847 * varray.h: Likewise.
9848 * vmsdbgout.c: Likewise.
9849 * xcoffout.c: Likewise.
9850 * xcoffout.h: Likewise.
9852 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
9854 * gcov-io.h: Add a local time stamp.
9855 (struct gcov_info): Add stamp field.
9856 (gcov_truncate): New.
9857 * coverage.c (read_counts_file): Skip the stamp.
9858 (coverage_begin_output): Write the stamp.
9859 (build_gcov_info): Declare and init the stamp.
9860 (coverage_finish): Only unlink data file, if stamp is zero.
9861 * gcov-dump.c (dump_file): Dump the stamp.
9862 * gcov.c (bbg_stamp): New.
9863 (release_structures): Clear bbg_stamp.
9864 (read_graph_file): Read stamp.
9865 (read_count_file): Check stamp.
9866 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
9868 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
9870 * tree.h (default_flag_random_seed): Remove.
9871 * toplev.h (local_tick): Declare.
9872 * tree.c (flag_random_seed, default_flag_random_seed): Move to
9874 (append_random_chars): Don't call default_flag_random_seed.
9875 * toplev.c (flag_random_seed): Define here. Set local_tick.
9876 (local_tick): Define.
9877 (randomize): New, moved from tree.c.
9878 (print_switch_values): Adjust.
9879 (toplev_main): Call randomize.
9881 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
9883 * tree.h (crc32_string): Declare.
9884 * tree.c (append_random_chars): Remove.
9885 (crc32_string): New.
9886 (get_file_function_name_long): Use crc32_string here.
9888 2003-07-06 Andreas Jaeger <aj@suse.de>
9890 * gcc.c: Convert prototypes to ISO C90.
9892 * gcov-dump.c: Likewise.
9893 * gcov-iov.c: Likewise.
9895 * genattrtab.h: Likewise.
9897 * global.c: Likewise.
9898 * graph.c: Likewise.
9899 * graph.h: Likewise.
9900 * hosthooks.h: Likewise.
9901 * hooks.h: Likewise.
9902 * hooks.c: Likewise.
9903 * hashtable.h: Likewise.
9904 * hashtable.c: Likewise.
9905 * haifa-sched.c: Likewise.
9906 * integrate.h: Likewise.
9907 * integrate.c: Likewise.
9908 * input.h: Likewise.
9909 * ifcvt.c: Likewise.
9911 * langhooks-def.h: Likewise. Add extern to prototypes.
9912 * langhooks.c: Likewise.
9913 * langhooks.h: Likewise.
9915 * local-alloc.c: Likewise.
9916 * loop-init.c: Likewise.
9917 * loop-unroll.c: Likewise.
9918 * loop-unswitch.c: Likewise.
9920 * loop.h: Likewise. Add extern to prototypes.
9921 * machmode.h: Likewise.
9923 * mbchar.c: Likewise.
9924 * mbchar.h: Likewise.
9925 * mkdeps.c: Likewise.
9926 * mkdeps.h: Likewise.
9927 * optabs.c: Likewise.
9928 * optabs.h: Likewise.
9929 * output.h: Likewise.
9930 * gccspec.c: Likwise.
9931 * postreload.c: Likewise.
9932 * prefix.c: Likewise.
9933 * prefix.h: Likewise.
9934 * print-rtl.c: Likewise.
9935 * print-tree.c: Likewise.
9936 * profile.c: Likewise.
9937 * read-rtl.c: Likewise.
9940 * recog.c: Likewise.
9941 * recog.h: Likewise.
9942 * reg-stack.c: Likewise.
9943 * regclass.c: Likewise.
9944 * regmove.c: Likewise.
9945 * regrename.c: Likewise.
9947 * reload.c: Likewise.
9948 * reload.h: Likewise.
9949 * reload1.c: Likewise.
9950 * reorg.c: Likewise.
9951 * resource.c: Likewise.
9952 * resource.h: Likewise.
9953 * rtl-error.c: Likewise.
9956 * rtlanal.c: Likewise.
9957 * sbitmap.c: Likewise.
9958 * sbitmap.h: Likewise.
9959 * scan-decls.c: Likewise.
9961 * sched-deps.c: Likewise.
9962 * sched-ebb.c: Likewise.
9963 * sched-int.h: Likewise.
9964 * sched-rgn.c: Likewise.
9965 * sched-vis.c: Likewise.
9966 * sibcall.c: Likewise.
9967 * simplify-rtx.c: Likewise.
9968 * sreal.c: Likewise.
9969 * sreal.h: Likewise.
9970 * ssa-ccp.c: Likewise.
9971 * ssa-dce.c: Likewise.
9974 * stack.h: Likewise.
9976 * stor-layout.c: Likewise.
9977 * stringpool.c: Likewise.
9978 * target.h: Likewise.
9979 * timevar.c: Likewise.
9980 * timevar.h: Likewise.
9981 * tlink.c: Likewise.
9982 * tracer.c: Likewise.
9983 * tree-inline.c: Likewise.
9984 * tree-inline.h: Likewise.
9988 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
9990 * combine.c (nonzero_bits1): Fix a warning.
9992 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
9994 * config/h8300/h8300.c (compute_mov_length): Correct the
9995 length of loading CONST0_RTX (SFmode).
9997 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
9999 * toplev.c (output_clean_symbol_name): Remove.
10000 * toplev.h (output_clean_symbol_name): Remove.
10001 * config/alpha/alpha.c (unicosmk_output_module_name): Use
10002 lbasename & clean_symbol_name.
10004 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
10006 * ggc.h: Follow spelling conventions.
10007 * config/i386/i386.c: Likewise.
10008 * config/i386/winnt.c: Likewise.
10009 * config/rs6000/rs6000.c: Likewise.
10011 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
10013 * bt-load.c: Fix comment typos.
10014 * c-incpath.c: Likewise.
10016 * cfgcleanup.c: Likewise.
10017 * cfgloop.h: Likewise.
10018 * cfgloopmanip.c: Likewise.
10019 * cfgrtl.c: Likewise.
10020 * diagnostic.h: Likewise.
10021 * dwarfout.c: Likewise.
10022 * emit-rtl.c: Likewise.
10023 * et-forest.c: Likewise.
10024 * et-forest.h: Likewise.
10025 * expr.c: Likewise.
10026 * gcse.c: Likewise.
10027 * genattr.c: Likewise.
10028 * jump.c: Likewise.
10029 * langhooks.h: Likewise.
10030 * local-alloc.c: Likewise.
10031 * loop-unroll.c: Likewise.
10032 * loop-unswitch.c: Likewise.
10033 * ra-build.c: Likewise.
10034 * regclass.c: Likewise.
10035 * regmove.c: Likewise.
10036 * rtl.def: Likewise.
10037 * rtlanal.c: Likewise.
10038 * sched-ebb.c: Likewise.
10039 * sched-rgn.c: Likewise.
10040 * simplify-rtx.c: Likewise.
10042 * tracer.c: Likewise.
10043 * tree.c: Likewise.
10045 2003-07-05 Zack Weinberg <zack@codesourcery.com>
10047 * cppcharset.c: Use the correct return type for the fallback iconv
10050 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10052 Blame to Jan Hubicka <jh@suse.cz>
10053 * cfglayout.c (record_effective_endpoints): Split insns before
10054 first basic block correctly.
10056 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10058 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
10059 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
10060 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
10062 2003-07-05 Andreas Jaeger <aj@suse.de>
10064 * genattrtab.c (write_attr_get): Revert part of last patch to
10065 always write out a prototype.
10067 * genemit.c (gen_split): Readd lost unused attributes in last
10070 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10072 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
10073 different from header.
10075 2003-07-05 Andreas Schwab <schwab@suse.de>
10077 * config/m68k/m68k.c: Remove code protected by CRDS.
10078 * config/m68k/m68k.md: Likewise.
10080 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
10083 * c-opts.c (permit_fortran_options): New.
10084 (c_common_init_options): Accept fortran front end options if
10085 it looks like we might be preprocessing Fortran.
10086 (c_common_handle_option): Don't reject switch if permit_fotran_options.
10088 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10090 * genattr.c (internal_dfa_insn_code): Output prototype.
10091 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
10092 * genautomata.c: Likewise.
10093 * genconditions.c: Likewise.
10094 * genemit.c: Likewise.
10095 * genextract.c: Likewise.
10096 * gengenrtl.c: Likewise.
10097 * gengtype.c: Likewise.
10098 * genopinit.c: Likewise.
10099 * genoutput.c: Likewise.
10100 * genpeep.c: Likewise.
10101 * genrecog.c: Likewise.
10103 2003-07-04 Zack Weinberg <zack@codesourcery.com>
10105 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
10106 (struct cpp_options): Add narrow_charset, wide_charset,
10107 bytes_big_endian fields. Remove EBCDIC field.
10108 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
10110 * cpphash.h: Include <iconv.h> if we have it, otherwise
10111 provide a dummy definition of iconv_t.
10112 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
10113 (_cpp_valid_ucn): Update prototype.
10114 (_cpp_destroy_iconv): New prototype.
10116 * doc/cpp.texi: Document character set handling.
10117 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
10118 * doc/extend.texi: Delete entire section on multiline strings.
10119 Rewrite section on __FUNCTION__ etc now that these are
10122 * cppucnid.tab, cppucnid.pl: New files.
10123 * cppucnid.h: New generated file.
10124 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
10125 (iconv_open, iconv, iconv_close): Provide dummy definitions
10127 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
10128 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
10129 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
10130 cpp_interpret_string, narrow_str_to_charconst,
10131 wide_str_to_charconst): New.
10132 (ucn_valid_in_identifier): Use a binary search through the
10133 ucnranges table defined in cppucnid.h, not a long chain of if
10135 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
10136 character names are only valid in C++ and C99" to a warning.
10137 Issue the "meaning of \[uU] is different in traditional C"
10138 warning here. Take care not to let iconv see an invalid UCS
10139 value if we get a malformed UCN. Issue an error if we don't
10141 (cpp_interpret_charconst): Moved here from cpplex.c. Use
10142 cpp_interpret_string to do the heavy lifting.
10144 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
10145 narrow_charset, wide_charset fields of options structure.
10146 (cpp_destroy): Call _cpp_destroy_iconv.
10147 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
10148 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
10149 (cpp_interpret_charconst): Moved to cppcharset.c.
10150 * cpplib.c (dequote_string): Delete.
10151 (interpret_string_notranslate): New.
10152 (do_line, do_linemarker): Use interpret_string_notranslate.
10154 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
10156 * c-common.c (fname_string, combine_strings): Delete.
10157 * c-common.h (fname_string, combine_strings): Delete prototypes.
10158 * c-lex.c (ignore_escape_flag): Delete.
10159 (cb_ident): Use cpp_interpret_string, not lex_string.
10160 (get_nonpadding_token): New function.
10161 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
10162 Adjust calls to lex_string. Don't write *value twice.
10163 (lex_string): Now handles string constant concatenation.
10164 Most of the work handed off to cpp_interpret_string.
10165 Call fix_string_type here.
10166 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
10167 FUNC_NAME, throughout.
10168 (OBJC_STRING): New token type.
10169 (primary:STRING): No need to call fix_string_type here.
10170 (primary:objc_string): Make that OBJC_STRING.
10171 (objc_string nonterminal): Delete.
10172 (yylexname): Delete code to handle fake string constants.
10173 (yylexstring): Delete entirely.
10174 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
10175 to handle CPP_ATSIGN.
10177 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
10178 * c-opts.c (missing_arg, c_common_handle_option): Handle
10179 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
10180 (c_common_init): Set cpp_opts->bytes_big_endian, not
10181 cpp_opts->EBCDIC. Call cpp_init_iconv.
10182 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
10183 (TARGET_EBCDIC): Delete default definition.
10185 * objc/objc-act.c (build_objc_string_object): No need to
10186 handle string constant concatenation.
10188 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
10190 * doc/install.texi: Fix typos.
10191 * doc/invoke.texi: Likewise.
10192 * doc/tm.texi: Likewise.
10194 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
10196 * config/pa/fptr.c: Fix comment typos.
10197 * config/pa/pa-64.h: Likewise.
10198 * config/pa/pa.c: Likewise.
10199 * config/pa/pa.h: Likewise.
10200 * config/rs6000/603.md: Likewise.
10201 * config/rs6000/7xx.md: Likewise.
10202 * config/rs6000/darwin.h: Likewise.
10203 * config/rs6000/freebsd.h: Likewise.
10204 * config/rs6000/rs6000.c: Likewise.
10205 * config/rs6000/rs6000.md: Likewise.
10206 * config/rs6000/spe.h: Likewise.
10208 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
10210 * config/s390/2064.md: Change GNU CC to GCC.
10211 * config/s390/2084.md: Likewise.
10212 * config/s390/fixdfdi.h: Likewise.
10213 * config/s390/linux.h: Likewise.
10214 * config/s390/s390-modes.def: Likewise.
10215 * config/s390/s390-protos.h: Likewise.
10216 * config/s390/s390.c: Likewise.
10217 * config/s390/s390.h: Likewise.
10218 * config/s390/s390.md: Likewise.
10219 * config/s390/s390x.h: Likewise.
10221 2003-07-04 Jeff Law <law@redhat.com>
10224 * expr.c (do_store_flag): Pass in the correct result type
10225 when calling fold_single_bit_test.
10226 * fold-const.c (fold_single_bit_test): Use result_type for the
10227 result when folding a sign bit test.
10229 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
10231 * opts.c (common_handle_options): Negate sense of -falign- switches.
10233 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
10235 * Makefile.in: Replace PWD with PWD_COMMAND.
10237 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10239 * cfgloopanal.c (count_strange_loop_iterations): New static function.
10240 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
10241 Handle strange loops.
10243 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
10245 * install.texi: Even the g77 manpage is derived from
10246 the full g77 manual.
10248 2003-07-04 Zack Weinberg <zack@codesourcery.com>
10250 * ABOUT-NLS: Delete.
10251 * intl: Delete entire directory.
10252 * aclocal.m4: Include ../config/gettext.m4. Delete
10253 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
10254 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
10255 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
10256 Remove intl/Makefile from all_outputs.
10257 * configure, config.in: Regenerate.
10258 * Makefile.in: Expunge all references to intl subdirectory.
10259 Add -I../intl to INCLUDES.
10260 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
10262 2003-07-04 Roger Sayle <roger@eyesopen.com>
10264 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
10265 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
10267 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
10269 PR c++/5287, PR c++/7910, PR c++/11021
10270 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
10271 dllimport attribute if function is defined at declaration, but
10272 report error instead. Likewise for dllimport'd variable
10273 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
10274 declared within functions, Report error if dllimport or dllexport
10275 symbol is not global.
10276 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
10277 if defined after declaration or if inlined. Don't allow definition
10278 of static data members of C++ classes. Don't dllimport virtual
10280 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
10281 (i386_pe_mark_dllimport): Remove unnecessary checks.
10282 (i386_pe_encode_section_info): Warn if the dllimport attribute
10283 and symbol prefix have been instantiated and then overridden.
10285 * doc/extend.texi: Document dllimport and dllexport attributes.
10287 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
10289 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
10291 * config/kaos.h (CPP_PREDEFINES): Delete.
10292 (TARGET_OS_CPP_BUILTINS): New.
10294 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10296 * c-aux-info.c: Include toplev.h after c-tree.h.
10297 * c-common.c: Likewise.
10298 (GCC_DIAG_STYLE): Undef.
10299 * c-semantics.c (GCC_DIAG_STYLE): Define.
10300 * c-tree.h (GCC_DIAG_STYLE): Likewise.
10301 * diagnostic.h (inform): Move prototype to toplev.h.
10302 * jump.c: Include diagnostic.h before toplev.h.
10303 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
10304 (warning, error, fatal_error, pedwarn, sorry, inform,
10305 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
10307 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10309 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
10310 at all if edge is not specified.
10311 (can_copy_bbs_p, copy_bbs): New.
10312 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
10313 * cfgloop.c (get_loop_body): Comment more precisely.
10314 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
10315 (scale_bbs_frequencies): Fix comment typo.
10316 (can_duplicate_loop_p): Use can_copy_bbs_p.
10317 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
10319 2003-07-03 Devang Patel <dpatel@apple.com>
10321 * c-opts.c (c_common_parse_file): Remove extra
10322 debug_hooks->start_source_file call.
10324 2003-07-03 Roger Sayle <roger@eyesopen.com>
10326 * real.c (real_trunc, real_floor, real_ceil): New functions
10327 to implement trunc, floor and ceil respectively.
10328 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
10329 * builtins.c (integer_valued_real_p): New function to test if
10330 a floating point expression has an integer valued result.
10331 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
10332 foo(x) where foo is an integer rounding function. Similarly,
10333 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
10334 (double)(int)x when both foo and bar are integer rounding
10335 functions and we don't need to honor errno.
10336 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
10337 New functions to fold trunc, floor and ceil.
10338 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
10339 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
10340 to fold BUILT_IN_CEIL*.
10341 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
10342 the remaining integer rounding functions.
10344 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
10346 * config/sparc/sparc.c (function_arg_partial_nregs): Use
10347 SPARC_INT_ARG_MAX to determine where to split unnamed
10348 complex FP arguments.
10350 2003-07-03 Jan Hubicka <jh@suse.cz>
10352 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
10353 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
10354 (merge_blocks_move_predecessor_nojumps,
10355 merge_blocks_move_successor_nojumps): Use merge_blocks.
10356 (try_optimize_cfg): Use merge_blocks_move.
10357 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
10358 (merge_blocks_nomove): Rename to rtl_merge_blocks.
10359 (cfg_layout_create_basic_block): New.
10360 (rtl_can_merge_blocks): New.
10361 (cfg_layout_split_block): Do not alloc aux by hand.
10362 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
10364 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
10365 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
10366 * cfgloopmanip.c (loop_split_edge_with): Likewise.
10367 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
10369 * basic-block.h (basic_block_def): Add field 'rbi'.
10370 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
10371 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
10372 * cfg.c (entry_exit_blocks): Add new field.
10373 * cfglayout.c: Include alloc-pool.h;
10374 (cfg_layout_pool): New.
10375 (record_effective_endpoints, fixup_reorder_chain,
10376 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
10378 (cfg_layout_initialize_rbi): New function.
10379 (cfg_layout_initialize): Use it.
10380 (cfg_layout_finalize): Clear rbi fields.
10381 * cfglayout.h (RBI): Kill.
10382 (cfg_layout_initialize_rbi): Declare.
10383 * cfgloopmanip.c (copy_bbs): Use rbi.
10384 (record_exit_edges): Likewise.
10385 (duplicate_loop_to_header_edge): Likewise.
10386 * cfgrtl.c (cfg_layout_create_basic_block): Use
10387 cfg_layout_initialize_rbi.
10388 (cfg_layout_split_block): Use rbi.
10389 (cfg_layout_delete_block): Likewise.
10390 * loop-init.c (loop_optimizer_finalize): Likewise.
10391 * loop-unswitch.c (unswitch_loop): Likewise.
10392 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
10394 * cfgrtl.c: Update comments.
10395 (try_redirect_by_replacing_jump): New argument.
10396 (redirect_branch_edge): Break out from ...
10397 (rtl_redirect_edge_and_branch): ... this one.
10398 (update_cfg_after_block_merging): Break out from ...
10399 (rtl_merge_blocks): ... this one.
10400 (cfg_layout_split_edge): New.
10401 (cfg_layout_merge_blocks): New.
10402 (cfg_layout_can_merge_blocks_p): New.
10403 (cfg_layout_redirect_edge_and_branch): Reorganize.
10404 (cfg_layout_rtl_cfg_hooks): Fill in.
10405 (cfg_layout_delete_block): Kill barriers.
10406 * cfganal.c (can_fallthru): Deal with exit blocks
10407 * cfglayout.c (cfg_layout_function_header): New function
10408 (record_effective_endpoints): Record function header.
10409 (fixup_reorder_chain): Fixup dead jumptables; place header
10411 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
10412 * bb-reorder.c (cfg_layout_initialize): Update call.
10413 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
10414 edges in cfglayout mode.
10415 * cfglayout.c (cleanup_unconditional_jumps): Kill.
10416 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
10417 * cfglayout.h (cfg_layout_initialize): Update prototype.
10418 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
10419 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
10420 * flow.c (propagate_block): Do not crash when basic block ends
10421 by first insn in the chain.
10422 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
10424 * tracer.c (tracer): Update call of cfg_layout_initialize.
10426 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10428 * Makefile.in: Use dependency variables in lieu of explicit
10431 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
10433 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
10434 * tree.h: ...to here.
10436 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
10438 * config/s390/2064.md: Fix comment typos.
10439 * config/s390/2084.md: Likewise.
10440 * config/s390/s390.c: Likewise.
10441 * config/s390/s390.md: Likewise.
10442 * config/sh/sh.c: Likewise.
10443 * config/sh/sh.h: Likewise.
10444 * config/sh/sh.md: Likewise.
10445 * config/sparc/sparc.c: Likewise.
10446 * config/sparc/sparc.h: Likewise.
10447 * config/sparc/sparc.md: Likewise.
10448 * config/stormy16/stormy16.c: Likewise.
10449 * config/stormy16/stormy16.h: Likewise.
10450 * config/stormy16/stormy-abi: Fix a typo.
10452 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
10454 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
10456 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10458 * config/mips/mips.h (save_argv): Delete.
10460 2003-07-03 Roger Sayle <roger@eyesopen.com>
10463 * fold-const.c (extract_muldiv_1): There's nothing that can be done
10464 if the expression is a SAVE_EXPR.
10466 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
10468 * config/m32r/m32r.c: Fix comment typos.
10469 * config/m68hc11/m68hc11.c: Likewise.
10470 * config/m68hc11/m68hc11.h: Likewise.
10471 * config/m68k/m68k.c: Likewise.
10472 * config/mcore/mcore.c: Likewise.
10473 * config/mcore/mcore.h: Likewise.
10474 * config/mcore/mcore.md: Likewise.
10475 * config/mips/mips.c: Likewise.
10476 * config/mips/mips.h: Likewise.
10477 * config/mips/mips.md: Likewise.
10478 * config/mips/netbsd.h: Likewise.
10479 * config/mn10300/mn10300.c: Likewise.
10481 2003-07-03 Andreas Schwab <schwab@suse.de>
10483 * dbxout.c (pending_bincls): Move decl down inside
10484 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
10486 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
10488 * rtl.h (NOTE_DATA): Refer to whole union.
10489 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
10491 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
10493 PR optimization/11381
10494 * simplify-rtx.c (simplify_relational_operation): Check that
10495 two equal operands have no side-effects before simplifying
10498 2003-07-02 Jeff Law <law@redhat.com>
10500 * expr.c (do_store_flag): Remove special case folding for
10501 single bit tests. Instead call back into the commonized folder
10503 * fold-const.c (fold_single_bit_test): New function, mostly
10504 extracted from do_store_flag, with an additional case extracted
10506 (fold): Call fold_single_bit_test appropriately.
10507 * tree.h (fold_single_bit_test): Prototype.
10509 2003-07-02 Zack Weinberg <zack@codesourcery.com>
10511 * system.h: Include filenames.h.
10512 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
10513 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
10514 define based on HAVE_DOS_BASED_FILE_SYSTEM.
10515 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
10516 * config/i386/xm-mingw32.h: Don't define
10517 HAVE_DOS_BASED_FILE_SYSTEM,
10518 DIR_SEPARATOR, or DIR_SEPARATOR_2.
10519 * doc/hostconfig.texi: Update to match.
10521 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
10522 config/i386/cygwin.h:
10523 Use IS_ABSOLUTE_PATH throughout.
10524 * gcc.c (DIR_UP): Delete, unused.
10525 * protoize.c (IS_SAME_PATH): Define in terms of
10527 (is_abspath): Delete.
10529 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
10531 * config/i386/emmintrin.h: Fix comment typos.
10532 * config/i386/i386.c: Likewise.
10533 * config/i386/i386.h: Likewise.
10534 * config/i386/sco5.h: Likewise.
10535 * config/ia64/ia64.c: Likewise.
10536 * config/ia64/itanium2.md: Likewise.
10538 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
10540 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
10542 (emit_bincl_stab): Same.
10543 (emit_pending_bincls): Same.
10545 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
10547 * config/h8300/h8300.c (compute_mov_length): Fix the length of
10548 loading CONST0_RTX (SFmode).
10549 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
10550 'G' to CONST0_RTX (SFmode).
10551 * config/h8300/h8300.md (movsf_h8300): Change the first
10553 (movsf_h8300h): Likewise.
10555 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
10557 * c-common.h (c_common_init_options): New prototype.
10558 * c-opts.c (deferred_size): Remove.
10559 (defer_opt): Array is now pre-allocated.
10560 (c_common_init_options): Pre-allocate deferred_opts. Make
10561 lang_flags unsigned.
10562 (push_command_line_options): Free deferred_opts.
10563 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
10564 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
10565 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
10566 * langhooks.h (struct lang_hooks): New prototype for init_options.
10567 * main.c (main): Cast argv.
10568 * opts.c (handle_option, handle_options): Update prototypes.
10569 (decode_options): save_argc, save_argv are not global. Constify.
10570 * opts.h (decode_options): New prototype.
10571 * toplev.c (general_init): New protoype.
10572 (save_argv): Make static.
10573 (save_argc): Remove.
10574 (print_switch_values, general_init): Constify.
10575 (toplev_main): Save argv.
10576 * toplev.h (toplev_main): Update prototype.
10577 (save_argc, save_argv): Remove.
10579 2003-07-02 David Edelsohn <edelsohn@gnu.org>
10581 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
10582 (emit_bincl_stab): Same.
10583 (emit_pending_bincls): Same.
10585 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
10588 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
10590 2003-07-02 Andreas Schwab <schwab@suse.de>
10592 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
10594 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
10596 PR optimization/11210
10597 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
10598 about the behaviour with regard to bitfields.
10599 * fold-const (decode_field_reference): Record outermost type in
10600 case the expression is a NOP. Strip all NOPs. Set the signedness
10601 to that of the outermost type (if any) when the bitsize is equal
10602 to the size of the type.
10604 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
10606 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
10607 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
10608 (adddi3_internal_3, addsi3_internal_2): Likewise.
10610 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
10612 * config/mips/mips.c (machine_function): Add new fields:
10613 ignore_hazard_length_p and all_noreorder_p.
10614 (mips_flag_delayed_branch): New variable.
10615 (override_options): Treat '/' as an operand punctuation character.
10616 Set up mips_flag_delayed_branch.
10617 (print_operand): Handle '/'.
10618 (mips_output_function_prologue): Put the whole function in
10619 .set noreorder and .set nomacro if all_noreorder_p is true.
10620 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
10621 (mips16_optimize_gp): Remove "first insn" parameter.
10622 (mips16_lay_out_constants): New function, split out from mips_reorg.
10623 (mips_avoid_hazard, mips_avoid_hazards): New functions.
10624 (mips_reorg): For mips16 code, call mips16_lay_out_constant
10625 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
10626 do delayed-branch scheduling followed by hazard detection.
10627 (mips_adjust_insn_length): Only account for hazards if
10628 !ignore_hazard_length_p.
10629 (mips_output_load_label): Add a nop to the o32 sequence if
10630 the target suffers from load delays.
10631 (mips_output_conditional_branch): Add %/ to the end of branches.
10632 (mips_output_division): Fill the branch delay slot with %#.
10633 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
10634 instructions. End all other %* branches with %/.
10635 (ffssi2, ffsdi2): Fix lengths.
10636 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
10637 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
10638 (fix_truncsfsi2_macro): Likewise.
10639 (mov_lwl): Set hazard to "none".
10640 (ashldi3_internal): Fill the branch delay slot with %#.
10641 (ashrdi3_internal, lshrdi3_internal): Likewise.
10642 (exception_receiver): Explicitly set $28.
10643 (hazard_nop): New pattern.
10645 2003-07-02 Jan Hubicka <jh@suse.cz>
10647 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
10648 before calling tree_inlinable_function_p.
10650 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10652 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
10653 <internal/stdio_core.h> too.
10654 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
10655 <internal/wchar_core.h> too.
10656 Substitute va_list uses in inline definition.
10657 * fixinc/fixincl.x: Regenerate.
10659 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10661 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
10662 Undef before redefinition.
10663 (LABEL_AFTER_LOC): Likewise.
10664 (DEFAULT_SIGNED_CHAR): Likewise.
10665 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
10668 * config/mips/iris3.h: Remove, unused.
10669 * config/mips/iris4.h: Likewise.
10671 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
10673 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
10674 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
10675 target_cpu_default.
10677 * config/mips/iris5.h: Move explicit includes ...
10678 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
10680 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
10681 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
10684 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
10685 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
10686 target_cpu_default.
10688 * config/mips/iris6.h: Fix IRIX spelling.
10689 (MULTILIB_DEFAULTS): Undef before redefinition.
10691 * config/mips/iris6.h: Move explicit includes ...
10692 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
10694 2003-07-02 Jan Hubicka <jh@suse.cz>
10696 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
10697 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
10698 Use next_needed field instead of aux to maintain the queue.
10699 * cgraph.h (cgraph_node): Add next_needed.
10700 (cgraph_varpool_node): Add next_needed; remove aux.
10701 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
10703 2003-07-02 Jan Hubicka <jh@suse.cz>
10705 * cgraphunit.c (cgraph_finalize_function): Set finalized.
10706 (cgraph_finalize_function): Do not examine inlinablility.
10707 (cgraph_finalize_compilation_unit): Do it here.
10708 * cgraph.h (cgraph_local_info): Add finalized field.
10710 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10712 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
10713 (gt_pch_restore): Likewise.
10715 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
10717 * config/alpha/alpha.c: Fix comment typos.
10718 * config/alpha/elf.h: Likewise.
10719 * config/arm/arm.c: Likewise.
10720 * config/arm/arm.h: Likewise.
10721 * config/arm/arm.md: Likewise.
10722 * config/arm/t-arm-coff: Likewise.
10723 * config/arm/t-strongarm-pe: Likewise.
10724 * config/arm/xscale-elf.h: Likewise.
10725 * config/avr/avr.h: Likewise.
10727 2003-07-01 Jeff Law <law@redhat.com>
10729 * stmt.c (any_pending_cleanups): Remove another redundant test.
10731 2003-07-01 David Edelsohn <edelsohn@gnu.org>
10732 J"orn Rennecke <joern.rennecke@superh.com>
10734 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
10737 2003-07-01 Devang Patel <dpatel@apple.com>
10739 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
10740 (binclstatus): New.
10741 (struct dbx_file): New members - bincl_status, pending_bincl_name and
10743 (pending_bincls): New.
10744 (dbxout_init): Initialize new dbx_file members.
10745 (dbxout_start_source_file): Same.
10746 (emit_bincl_stab): New function.
10747 (emit_pending_bincls): Same.
10748 (emit_pending_bincls_if_required): Same.
10749 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
10751 (dbxout_begin_block): Emit pending BINCL stabs.
10752 (dbxout_end_block): Same.
10753 (dbxout_function_decl): Same.
10754 (dbxout_continue): Same.
10755 (dbxout_type): Same.
10756 (dbxout_class_name_qualifiers): Same.
10757 (dbxout_symbol): Same.
10758 (dbxout_symbol_location): Same.
10759 (dbxout_parms): Same.
10761 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10763 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
10764 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
10766 2003-07-01 Andreas Jaeger <aj@suse.de>
10768 * fold-const.c: Convert prototypes to ISO C90.
10769 * function.c: Likewise.
10770 * function.h: Likewise.
10772 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
10774 * doc/contrib.texi: Fix typos.
10775 * doc/invoke.texi: Likewise.
10776 * doc/passes.texi: Likewise.
10777 * doc/sourcebuild.texi: Likewise.
10778 * doc/tm.texi: Likewise.
10780 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
10782 * basic-block.h: Fix comment typos.
10783 * bb-reorder.c: Likewise.
10784 * c-format.c: Likewise.
10785 * cfgcleanup.c: Likewise.
10786 * cfghooks.h: Likewise.
10787 * cfgloop.c: Likewise.
10788 * cfgloopmanip.c: Likewise.
10789 * cfgrtl.c: Likewise.
10790 * cgraph.h: Likewise.
10791 * cgraphunit.c: Likewise.
10792 * combine.c: Likewise.
10793 * convert.c: Likewise.
10794 * dbxout.c: Likewise.
10797 * diagnostic.c: Likewise.
10798 * dwarf2out.c: Likewise.
10799 * et-forest.h: Likewise.
10800 * flow.c: Likewise.
10801 * fold-const.c: Likewise.
10802 * function.h: Likewise.
10803 * gcov-io.h: Likewise.
10804 * gcov.c: Likewise.
10805 * gcse.c: Likewise.
10806 * genautomata.c: Likewise.
10807 * ggc-common.c: Likewise.
10808 * ggc-page.c: Likewise.
10809 * loop-unroll.c: Likewise.
10810 * loop-unswitch.c: Likewise.
10811 * loop.c: Likewise.
10812 * mips-tfile.c: Likewise.
10813 * optabs.c: Likewise.
10814 * ra-build.c: Likewise.
10815 * ra-colorize.c: Likewise.
10816 * ra-rewrite.c: Likewise.
10818 * regmove.c: Likewise.
10819 * reload.c: Likewise.
10820 * rtlanal.c: Likewise.
10821 * sched-ebb.c: Likewise.
10822 * sched-int.h: Likewise.
10823 * sched-vis.c: Likewise.
10824 * sreal.c: Likewise.
10825 * ssa-ccp.c: Likewise.
10827 * toplev.c: Likewise.
10828 * tree-inline.c: Likewise.
10829 * value-prof.c: Likewise.
10830 * value-prof.h: Likewise.
10832 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
10834 * rtl.h (emit_line_note_after): Remove.
10835 (emit_note_copy_after, emit_note_copy): New.
10836 * emit-rtl.c (reorder_insns_with_line_notes): Replace
10837 emit_line_note_after with emit_note_copy_after.
10838 (emit_insn_after_with_line_notes): Likewise.
10839 (emit_line_note_after): Kill.
10840 (emit_note_copy_after): New.
10841 (emit_note_copy): New.
10842 * function.c (emit_return_into_block): Use emit_note_copy_after.
10843 (thread_prologue_and_epilogue_insns): Likewise.
10844 * integrate.c (expand_inline_function): Use emit_note_copy.
10845 (copy_insn_list): Likewise.
10846 * unroll.c (copy_loop_body): Likewise.
10847 * cfglayout.c (duplicate_insn_chain): Likewise.
10849 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
10851 * c-tree.h (define_label): Replace filename and lineno arguments
10853 * c-decl.c (poplevel): Adjust define_label call.
10854 (pop_label_level): Likewise.
10855 (define_label): Replace filename and lineno arguments with a
10857 (store_parm_decls): Use DECL_SOURCE_LOCATION.
10858 * c-parse.in (label): Adjust define_label call.
10860 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
10862 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
10863 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
10864 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
10865 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
10866 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
10868 2003-07-01 Andreas Jaeger <aj@suse.de>
10870 * final.c: Convert prototypes to ISO C90.
10871 * flow.c: Likewise.
10872 * flags.h: Likewise.
10873 * gcov-io.c: Likewise.
10874 * gcov-io.h: Likewise.
10876 See ChangeLog.9 for earlier changes.