1 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
3 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
5 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
7 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
8 as well. Put memory references in the varargs alias set.
9 (mips_expand_prologue): Remove varargs handling from here.
11 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
13 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
14 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
15 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
16 for function pointer calls.
17 * config/s390/s390.md ("*negdi2_31"): Likewise.
19 2003-08-23 Roger Sayle <roger@eyesopen.com>
21 * combine.c (apply_distributive_law): Correct comment.
23 2003-08-23 Jason Eckhardt <jle@rice.edu>
25 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
27 2003-08-22 Jason Eckhardt <jle@rice.edu>
29 * config/i860/i860.c (i860_build_va_list): Create the va_decl
30 declaration. Document the va_list structure.
31 (i860_va_start): Initialize the va_list structure.
32 (i860_va_arg): Rewrite completely.
33 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
34 * config/i860/varargs.asm: Do not allocate or initialize
35 a va_list. Return the address of the register save area.
37 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
39 * config/iq2000/iq2000.c: Fix comment typos.
40 * config/iq2000/iq2000.md: Likewise.
42 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
44 * config/iq2000/iq2000.c: Follow spelling conventions.
45 * config/iq2000/iq2000.h: Likewise.
46 * config/mn10300/mn10300.c: Likewise.
48 2003-08-22 Jason Eckhardt <jle@rice.edu>
50 * config/i860/i860.c (output_move_double): Don't set latehalf
51 to zero for CONST_INT (since it could be, e.g., -1).
53 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
54 (MODSI3_LIBCALL): ...with this one.
55 (UREMSI3_LIBCALL): Replace this macro...
56 (UMODSI3_LIBCALL): ...with this one.
58 2003-08-22 Jason Eckhardt <jle@rice.edu>
60 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
61 (output_delayed_branch): Remove prototype.
62 (single_insn_src_p): Remove prototype.
63 * config/i860/i860.c (single_insn_src_p): Remove function.
64 (output_delayed_branch): Remove function.
65 (output_delay_insn): Remove function.
66 (va_start): Remove unconditional test and dead code, re-format.
67 Fix coding style and spelling problems in various comments.
68 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
69 (blockage pattern): ...and use it here.
70 (all define_peephole patterns related to delayed branches): Remove.
71 Fix coding style and spelling problems in various comments.
73 2003-08-22 Jason Eckhardt <jle@rice.edu>
75 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
76 Remove all uses of the PARAMS macro. Remove superflous prototypes.
77 Convert all function definitions from traditional to ISO C90 syntax.
78 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
79 with 'GCC'. Remove all uses of the PARAMS macro.
80 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
81 * config/i860/i860.md: Likewise.
82 * config/i860/sysv4.h: Likewise.
83 * config/i860/varargs.asm: Likewise.
85 2003-08-22 Jason Eckhardt <jle@rice.edu>
87 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
89 (tdesc_section): Add prototype.
90 Update copyright dates.
91 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
92 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
93 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
95 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
96 for '%d' where necessary.
97 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
98 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
99 by UNITS_PER_WORD when referencing (likewise for .floats).
100 (I860_SVR4_VARARGS): Rename...
101 (I860_SVR4_VA_LIST): ...to this.
102 Call build() with 't' rather than 'field'.
103 (i860_rtx_costs): New function.
104 (TARGET_RTX_COSTS): Define.
105 (i860_internal_label): New function.
106 (TARGET_ASM_INTERNAL_LABEL): Define.
107 (i860_file_start): New function.
108 Update copyright dates.
109 * config/i860/i860.h (CPP_PREDEFINES): Remove.
110 (TARGET_CPU_CPP_BUILTINS): Define.
111 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
112 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
113 (ASM_FILE_START): Remove.
114 (ASM_FILE_START_1): Remove.
115 (ASM_GLOBALIZE_LABEL): Remove.
116 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
117 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
118 with targetm.asm_out.internal_label.
119 Update copyright dates.
120 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
121 (CPP_PREDEFINES): Remove.
122 (TARGET_OS_CPP_BUILTINS): Define.
123 (GLOBAL_ASM_OP): Define.
124 (ASM_FILE_START): Remove.
125 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
126 (TARGET_ASM_FILE_START): Define.
127 Update copyright dates.
129 2003-08-22 Jason Eckhardt <jle@rice.edu>
131 * gcc/config.gcc (i860-*-sysv4*): Add target.
132 * config/i860/i860-protos.h: New.
133 * config/i860/i860.c: New.
134 * config/i860/i860.h: New.
135 * config/i860/i860.md: New.
136 * config/i860/sysv4.h: New.
137 * config/i860/varargs.asm: New.
138 * config/i860/x-sysv4: New.
140 2003-08-22 Jason Eckhardt <jle@rice.edu>
142 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
143 Remove all uses of PARAMS macro.
144 Convert all function definitions to ISO C90 syntax.
145 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
146 * config/pa/fptr.c: Likewise.
147 * config/pa/lib2funcs.asm: Likewise.
148 * config/pa/long_double.h: Likewise.
149 * config/pa/milli64.S: Likewise.
150 * config/pa/pa-64.h: Likewise.
151 * config/pa/pa-hpux.h: Likewise.
152 * config/pa/pa-hpux10.h: Likewise.
153 * config/pa/pa-hpux11.h: Likewise.
154 * config/pa/pa-linux.h: Likewise.
155 * config/pa/pa-modes.def: Likewise.
156 * config/pa/pa-osf.h: Likewise.
157 * config/pa/pa-pro-end.h: Likewise.
158 * config/pa/pa.md: Likewise.
159 * config/pa/pa32-linux.h: Likewise.
160 * config/pa/pa64-linux.h: Likewise.
161 * config/pa/pa64-hpux.h: Likewise.
162 * config/pa/pa64-regs.h: Likewise.
163 * config/pa/quadlib.c: Likewise.
164 * config/pa/rtems.h: Likewise.
165 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
166 all uses of the PARAMS macro.
167 * config/pa/pa.h: Likewise.
168 * config/pa/som.h: Likewise.
170 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
171 Remove all uses of PARAMS macro.
172 Convert all function definitions to ISO C90 syntax.
173 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
174 Remove all uses of PARAMS macro.
175 * config/iq2000.h: Remove all uses of PARAMS macro.
176 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
178 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
180 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
181 * config/s390/s390.c (gen_consttable): Remove.
182 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
183 (s390_output_pool_entry): New function.
184 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
185 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
186 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
187 (UNSPECV_POOL_ENTRY): ... this new constant.
188 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
189 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
190 ("*pool_entry"): ... and replace by this new insn.
191 ("literal_pool_31"): Do not emit anchor label if pool empty.
193 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
194 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
195 (s390_fixup_clobbered_return_reg): Remove.
196 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
197 (s390_return_addr_rtx): Always retrieve return address from save area
198 slot. Use save_return_addr_p to force slot to be filled.
199 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
201 2003-08-22 Chris Demetriou <cgd@broadcom.com>
203 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
204 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
205 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
206 around SB-1 errata if TARGET_FIX_SB1 is set.
207 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
208 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
210 2003-08-22 Roger Sayle <roger@eyesopen.com>
212 * hashtable.c (ht_expand): Avoid calculating rehash for the common
213 case that the first probe hits an empty hash table slot.
215 2003-08-22 Mark Mitchell <mark@codesourcery.com>
217 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
219 2003-08-22 Mark Mitchell <mark@codesourcery.com>
221 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
222 (ptr_extend_plus_imm): ... this.
223 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
225 (ia64_output_mi_thunk): Support ILP32 mode.
227 2003-08-22 bernardo innocenti <bernie@develer.com>
229 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
231 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
233 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
235 * config/i386/i386.c (const_int_1_operand): Simplify an
238 2003-08-22 Alan Modra <amodra@bigpond.net.au>
240 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
241 * config/rs6000/ppc64-fp.c: Likewise.
243 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
245 * cfgcleanup.c: Fix comment typos.
246 * emit-rtl.c: Likewise.
247 * optabs.c: Likewise.
248 * ra-build.c: Likewise.
249 * rtlanal.c: Likewise.
252 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
254 * c-decl.c: Fix comment formatting.
255 * cfgrtl.c: Likewise.
256 * combine.c: Likewise.
257 * convert.c: Likewise.
258 * dominance.c: Likewise.
259 * dwarf2out.c: Likewise.
260 * dwarfout.c: Likewise.
261 * expmed.c: Likewise.
262 * fold-const.c: Likewise.
264 * genattrtab.c: Likewise.
265 * ggc-common.c: Likewise.
266 * mips-tfile.c: Likewise.
267 * regmove.c: Likewise.
269 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
271 * builtin-attrs.def: Fix comment formatting.
272 * c-pretty-print.c: Likewise.
273 * diagnostic.h: Likewise.
274 * langhooks.h: Likewise.
276 * simplify-rtx.c: Likewise.
277 * tree.def: Likewise.
279 2003-08-22 Bernardo Innocenti <bernie@develer.com>
281 * config/m68k/m68k-protos.h: Convert to ISO C90.
282 * config/m68k/m68k.c: Likewise.
284 2003-08-21 Bernardo Innocenti <bernie@develer.com>
285 Paul Dale <pauli@snapgear.com>
286 Peter Barada <peter@baradas.org>
288 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
291 2003-08-21 Zack Weinberg <zack@codesourcery.com>
293 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
294 * config.gcc (*-*-openbsd): Don't set tm_file.
295 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
296 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
297 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
298 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
299 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
300 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
301 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
302 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
303 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
304 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
305 xscale-*-coff): Use explicit and complete lists of target headers
306 to include. Move definitions to tm_defines where appropriate.
307 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
308 not-yet-contributed configuration.
310 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
311 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
312 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
313 * config/i386/nto.h, config/iq2000/iq2000.h,
314 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
315 * config/m68k/linux.h, config/m68k/m68k-aout.h
316 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
317 * config/m68k/netbsd.h, config/m68k/openbsd.h
318 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
319 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
320 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
321 Remove includes of other target config headers, and
322 definitions of macros moved to tm_defines lists. Add #undefs
323 where now necessary to prevent redefinition warnings.
325 * config/h8300/coff.h: New file split out of...
326 * config/h8300/elf.h: ...here.
327 * config/m68k/hp320base.h: New file split out of...
328 * config/m68k/hp320.h: ...here.
329 * config/rs6000/lynxbase.h: New file split out of...
330 * config/rs6000/lynx.h: ...here.
332 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
333 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
335 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
336 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
337 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
338 Remove unnecessary #ifndef.
339 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
340 [under IN_LIBGCC2] with config/.
342 2003-08-21 Per Bothner <bothner@pbothner.com>
344 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
346 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
347 by return_at_eof check. Always call _cpp_pop_buffer at end.
349 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
352 * config/h8300/h8300.md (two anonymous patterns): Remove.
354 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
356 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
357 * config/mips/mips.c (function_arg_pass_by_reference): Never return
360 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
362 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
363 and similarly in (A | C) == D where C & ~D != 0.
365 2003-08-20 Geoffrey Keating <geoffk@apple.com>
368 * configure.in: When testing with_libs and with_headers, treat
369 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
370 * configure: Regenerate.
372 2003-08-20 Peter Barada <peter@baradas.org>
374 * longlong.h (umul_ppmm): Add ColdFire support.
376 2003-08-20 Peter Barada <peter@baradas.org>
377 Bernardo Innocenti <bernie@develer.com>
379 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
380 * config/m68k/m68k.h: Likewise.
381 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
382 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
383 * config/m68k/linux.h: Likewise.
384 * config/m68k/m68k.c: Likewise.
385 * config/m68k/m68k.md: Likewise.
386 * config/m68k/m68kelf.h: Likewise.
387 * config/m68k/netbsd-elf.h: Likewise.
388 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
390 2003-08-20 Bernardo Innocenti <bernie@develer.com>
392 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
393 * config/m68k/m68k.md: Likewise.
395 2003-08-20 Mark Mitchell <mark@codesourcery.com>
399 2003-08-19 Mark Mitchell <mark@codesourcery.com>
400 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
401 types with precisions other than those given by native machine
404 2003-08-20 Gunther Nikl <gni@gecko.de>
406 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
407 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
408 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
409 * config/m68k/m68k.md (anonymous define_insn): Likewise
410 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
411 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
412 code selected by NO_ASM_FMOVECR
414 2003-08-20 Gunther Nikl <gni@gecko.de>
416 * config/m68k/m68k.c (output_move_const_into_data_reg,
417 output_move_himode): unify MOTOROLA/MIT handling of moveq
418 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
421 2003-08-20 Gunther Nikl <gni@gecko.de>
423 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
425 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
426 HOST_WIDE_INT_PRINT_DEC with %wd
428 2003-08-20 Loren James Rittle <ljrittle@acm.org>
430 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
433 2003-08-20 Roger Sayle <roger@eyesopen.com>
436 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
437 operands before calling tree_int_cst_lt when performing associative
440 2003-08-20 Jason Merrill <jason@redhat.com>
442 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
443 (EXPR_CHECK): Don't check for 'r' or 's' if we're
444 checking IS_EXPR_CODE_CLASS.
445 * calls.c (calls_function_1): Likewise.
446 * fold-const.c (fold): Likewise.
447 * tree.c (iterative_hash_expr): Likewise.
448 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
450 2003-08-20 Gunther Nikl <gni@gecko.de>
452 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
453 depending on MOTOROLA_BSR
454 * config/m68k/m68k.md (anonymous define_insn): Likewise
456 2003-08-20 Jason Merrill <jason@redhat.com>
458 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
459 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
460 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
461 * dojump.c (do_jump): Likewise.
462 * fold-const.c (operand_equal_p, fold): Likewise.
463 (tree_expr_nonnegative_p): Likewise.
465 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
466 TYPE_USER_ALIGN for FIELD_DECLs.
468 * attribs.c (decl_attributes): Rebuild the function pointer type after
469 changing the target type.
470 * tree.c (get_qualified_type): Also check that the attributes match.
472 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
474 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
475 * objc/config-lang.in (stagestuff): ... to here.
477 2003-08-19 Mark Mitchell <mark@codesourcery.com>
480 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
481 NOP_EXPR) when necessary.
482 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
483 types with precisions other than those given by native machine
486 2003-08-19 Geoffrey Keating <geoffk@apple.com>
488 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
489 because some macro is defined.
491 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
493 * config/i386/darwin.h (ASM_SPEC): New.
494 (SUBTARGET_EXTRA_SPECS): New.
495 * config/rs6000/darwin.h (ASM_SPEC): New.
496 (SUBTARGET_EXTRA_SPECS): New.
497 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
498 a cross-compiler between two different processors on Darwin.
499 * configure: Regenerate.
501 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
503 * builtins.c: Fix comment typos.
504 * c-common.c: Likewise.
505 * c-decl.c: Likewise.
506 * c-pretty-print.c: Likewise.
507 * cfgbuild.c: Likewise.
508 * cfglayout.c: Likewise.
509 * cfgloopanal.c: Likewise.
510 * cgraphunit.c: Likewise.
511 * cppfiles.c: Likewise.
512 * dwarfout.c: Likewise.
514 * fold-const.c: Likewise.
516 * ggc-page.c: Likewise.
517 * haifa-sched.c: Likewise.
518 * pretty-print.c: Likewise.
521 * value-prof.c: Likewise.
523 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
525 * c-decl.c: Follow spelling conventions.
526 * cppfiles.c: Likewise.
528 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
530 * c-common.c: Fix comment formatting.
531 * c-common.h: Likewise.
532 * c-decl.c: Likewise.
533 * cppinit.c: Likewise.
534 * cpplib.h: Likewise.
535 * emit-rtl.c: Likewise.
537 * line-map.h: Likewise.
540 * simplify-rtx.c: Likewise.
542 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
544 * unwind-c.c: Add libgcc-style exception.
545 * unwind-dw2.c: Likewise.
546 * unwind-pe.h: Likewise.
547 * unwind-sjlj.c: Likewise.
548 * unwind.inc: Likewise.
550 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
552 PR c/5582 PR c++/10538
553 * langhooks-def.h (lhd_decl_uninit): Declare.
554 (LANG_HOOKS_DECL_UNINIT): New macro.
555 (LANG_HOOKS_INITIALIZER): Adjust.
556 * langhooks.h (struct lang_hooks): Add new field
558 * langhooks.c (lhd_decl_uninit): Define.
559 * c-common.c (c_decl_uninit_1): New function.
560 (c_decl_uninit): New function.
561 (warn_init_self): Define.
562 * c-common.h (c_decl_uninit): Declare.
563 (warn_init_self): Declare.
564 * c.opt: Introduce -Winit-self.
565 * c-opts.c (c_common_handle_options): Set warn_init_self.
566 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
567 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
568 * function.c (uninitialized_vars_warning): Call the language hook.
569 * doc/invoke.texi: Document -Winit-self.
571 2003-08-19 Chris Demetriou <cgd@broadcom.com>
573 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
574 to use better predicates and constraints. Define new
575 instruction to handle "trap_if" with DI-mode arguments.
576 (conditional_trap): FAIL if trap code is not 0.
578 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
580 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
581 strstr with $pb to a strcompare with "<pic base>"
582 (ix86_output_addr_diff_elt): Output the real pic base.
584 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
586 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
587 (LANG_HOOKS_INITIALIZER): Correct.
588 * c-lang.c: Likewise.
590 2003-08-19 Jan Hubicka <jh@suse.cz>
592 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
593 (cgraph_varpool_mark_needed_node): Likewise.
594 * cgraph.h (notice_global_symbol): Declare
595 * varasm.c (notice_global_symbol): Break out from ...
596 (assemble_start_function): ... here; update for variables.
597 (assemble_variable): Use notice_global_symbol.
599 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
601 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
602 expect SFmode and DFmode arguments to be passed in FPRs,
603 regardless of the underlying type.
605 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
608 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
609 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
611 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
614 * c-typeck.c (set_init_index): Check for negative index.
616 2003-08-18 Bob Wilson <bob.wilson@acm.org>
618 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
620 * config/xtensa/crtn.asm (_init, _fini): Likewise.
621 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
622 __umodsi3, __modsi3): Likewise.
623 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
626 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
628 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
630 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
632 * config/mips/mips.md: Quote C code in braces. Remove use of
633 fake const0_rtx operands. Remove double backslashes. Use \;.
634 Remove workarounds for bogus warnings.
636 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
638 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
639 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
640 rather than TARGET_MIPS4300.
641 (mulsf3_internal, mulsf3_r4300): Likewise.
643 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
645 * config/mips/mips.md: Renumber unspecs. Clean up comments.
647 2003-08-17 Roger Sayle <roger@eyesopen.com>
649 * simplify-rtx.c (associative_constant_p): New function to test
650 whether an RTX expression is an immediate constant.
651 (simplify_associative_operation): New function to perform some
652 reassociation optimizations of associative binary expressions.
653 (simplify_binary_operation): Use simplify_associative_operation
654 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
655 Floating point expressions are only reassociated when unsafe
656 math optimizations are permitted.
658 2003-08-17 Andreas Jaeger <aj@suse.de>
660 * config/alpha/alpha.md: Remove usage of PARAMS.
662 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
663 * config/i386/i386-interix.h: Likewise.
664 * config/i386/winnt.c: Likewise.
665 * config/i386/cygming.h: Likewise.
666 * config/i386/cygwin2.c: Likewise.
667 * config/darwin.c: Likewise.
668 * config/darwin-c.c: Likewise.
669 * config/darwin-protos.h: Likewise.
670 * config/darwin.h: Likewise.
671 * config/s390/s390-protos.h: Likewise.
672 * config/s390/s390.c: Likewise.
673 * config/ia64/ia64.c: Likewse
674 * config/ia64/ia64-protos.h: Likewise.
675 * config/ia64/ia64-c.c: Likewise.
677 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
679 * config/sparc/sparc.c: Convert to ISO C.
681 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
682 * config/sparc/sparc.c: Likewise.
684 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
687 * stmt.c (expand_expr_stmt_value): Don't warn about any void
690 2003-08-16 Jan Hubicka <jh@suse.cz>
692 * i386.c (ix86_fntype_regparm): Rename from ...
693 (ix86_function_regparm): ... this one; add fastcall and local
695 (ix86_function_ok_for_sibcall): Update.
696 (ix86_return_pops_args): Likewise.
697 (init_cumulative_args): Likewise.
698 (x86_can_output_mi_thunk): Likewise.
699 (function_arg): Fix formating.
700 (x86_this_parameter): Fix fastcall.
701 (x86_output_mi_thunk): Likewise.
703 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
704 body as reachable; mark nested functions as needed too.
705 (dump_cgraph): Do not output global.calls.
706 * cgraph.h (cgraph_global_info): Kill.
707 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
708 (record_call_1): Speedup.
709 (cgraph_analyze_function): Break out from ...; compute inlining
711 (cgraph_finalize_compilation_unit): ... here.
712 (cgraph_mark_inline): Kill computation of calls.
713 (cgraph_decide_inlining): Do not compute most of initial values.
715 2003-08-14 Roger Sayle <roger@eyesopen.com>
717 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
718 to negate if either operand is easy to negate, if we don't care
719 about sign-dependent rounding.
720 (negate_expr): Make the logic to negate a REAL_CST explicit.
721 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
722 that's easy to negate, if we don't honor sign-dependent rounding.
723 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
724 negate, and the symmetric A * -B as -A * B if A is easy to negate.
725 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
726 -C/D if B and C are cheap to negate. Add an explicit rule to
727 optimize X/-1.0 as -X when we don't care about signaling NaNs.
729 2003-08-14 Zack Weinberg <zack@codesourcery.com>
731 * Makefile.in (tm_file): Rename tm_include_list.
732 (tm_p_file): Rename tm_p_include_list.
733 (build_xm_file): Rename build_xm_include_list.
734 (host_xm_file): Rename host_xm_include_list.
735 (xm_file): Rename xm_include_list.
736 (xm_file_list): Add to be substituted.
737 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
739 (bt-load.o): Add missing dependency on $(TM_H).
740 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
741 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
742 build_xm_file, generate both *_file_list and *_include_list
743 values from it. (xm_file_list was formerly not being generated.)
744 In *_include_list, prefix the names of all headers found in
745 $(srcdir)/config with config/. In each loop, consider only
746 the special case files that can actually appear in that list.
747 AC_SUBST all *_file_list and all *_include_list variables; do
748 not AC_SUBST the plain *_file variables.
749 * configure: Regenerate.
751 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
753 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
755 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
757 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
759 (attr_length_call): Include it here. Improve length estimate for
761 (output_call): Use targetm.binds_local_p.
763 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
765 * builtins.c (CASE_MATHFN): New helper macro.
766 (mathfn_built_in): Simplify and sort.
768 * protoize.c (substr): Delete, callers changed to `strstr'.
770 2003-08-13 Zack Weinberg <zack@codesourcery.com>
772 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
773 * config/iq2000/xm-iq2000.h: Delete file.
775 2003-08-13 Geoffrey Keating <geoffk@apple.com>
777 * gengtype.c (walk_type): Process a subobject before processing
778 the pointer that points to the subobject.
780 2003-08-13 Per Bothner <pbothner@apple.com>
782 * regclass.c (init_reg_modes): Make non-static.
783 Rename to init_reg_modes_once per new naming convention.
784 (init_regs): Don't call init_reg_modes here.
785 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
786 * rtl.h (init_reg_modes_once): New declaration.
787 * toplev.c (backend_init): Call init_regs after init_emit_once.
789 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
791 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
792 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
794 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
796 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
797 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
799 2003-08-13 Dale Johannesen <dalej@apple.com>
801 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
802 handling of decrement-and-branch farther than 32 bits.
804 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
806 * configure.in (make_compare_target): Move test to ...
807 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
808 * configure: Regenerate.
810 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
812 * config/mips/iris6.h: Convert to C90 prototypes.
813 * config/mips/irix6-libc-compat.c: Likewise.
814 * config/mips/mips-protos.h: Likewise.
815 * config/mips/mips.c: Likewise.
817 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
819 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
820 for selected machines. Comment heavily.
821 fixinc/fixincl.x: Rebuild.
822 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
824 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
826 * config/mips/mips.h: Tweak various comments.
827 * config/mips/mips.c: Likewise.
829 2003-08-11 James E Wilson <wilson@tuliptree.org>
831 PR optimization/11319
833 * alias.c (find_base_value, case REG): Return 0 not src if no base
836 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
838 * gcse.c (gmalloc): Fix last change.
840 2003-08-11 Roger Sayle <roger@eyesopen.com>
842 * simplify-rtx.c (simplify_binary_operation): Replace calls to
843 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
844 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
845 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
847 2003-08-11 Roger Sayle <roger@eyesopen.com>
849 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
850 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
851 typecode for an ABS_EXPR.
853 * doc/c-tree.texi: Document ABS_EXPR.
855 2003-08-11 Roger Sayle <roger@eyesopen.com>
857 * fold-const.c (fold): Optimize any associative floating point
858 operator with -funsafe-math-optimizations, not just MULT_EXPR.
860 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
862 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
863 information in SHmedia case too.
864 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
866 (__set_fpscr): Use an access via GOT for PIC case.
868 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
870 * configure.in (intermodule): Make switch test more portable.
871 * configure: Regenerate.
873 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
875 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
878 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
880 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
881 (grealloc): Size argument is a size_t.
882 (gcalloc): New function. Use throughout in lieu of
885 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
887 * config/ia64/ia64.c (ia64_reorg): Likewise.
888 * conflict.c (conflict_graph_new): Likewise.
889 * fixinc/fixincl.c (run_compiles): Likewise.
890 * genattrtab.c (optimize_attrs): Likewise.
891 * genrecog.c (new_decision): Likewise.
892 * haifa-sched.c (schedule_block): Likewise.
893 * hashtable.c (ht_create): Likewise.
895 2003-08-11 Bob Wilson <bob.wilson@acm.org>
897 * config/xtensa/lib2funcs.S: Fix whitespace.
898 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
899 syntax where appropriate. Remove unnecessary backslash escapes.
900 Reformat comments and fix some code formatting.
901 (extendqisi2): Rearrange conditional.
902 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
903 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
906 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
908 * config/mips/mips.c: Various formatting fixes.
909 (override_options): Resync -mtune handling with gas.
910 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
911 * config/mips/mips.h: More formatting fixes.
912 (mips_abi): Move declaration.
913 * config/mips/mips.md (exception_receiver): Add mode to
916 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
918 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
920 (bdesc_1arg): Remove evsplati and evsplatfi.
922 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
924 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
927 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
929 * builtins.c (expand_builtin_strcat): Optimize constant strings.
931 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
933 * pretty-print.c (pp_base_indent): Rename from pp_indent.
934 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
935 (struct c_pretty_print_info): Add more fields.
936 (pp_c_left_paren): Move to c-pretty-print.c.
937 (pp_c_right_paren): Likewise.
938 (pp_c_left_brace): Likewise.
939 (pp_c_right_brace): Likewise.
940 (pp_c_left_bracket): Likewise.
941 (pp_c_right_bracket): Likewise.
942 (pp_c_declarator): Declare.
943 (pp_c_direct_declarator): Likewise.
944 (pp_c_specifier_qualifier_list): Likewise.
945 (pp_c_type_id): Likewise.
946 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
947 (pp_c_type_qualifier_list): New.
948 (pp_c_pointer): Likewise.
949 (pp_c_parameter_type_list): Likewise.
950 (pp_c_function_definition): Likewise.
951 (pp_c_id_expression): Likewise.
952 (pp_c_simple_type_specifier): Tidy.
953 (pp_c_unary_expression): Likewise.
954 (pp_c_expression): Likewise.
955 (pp_c_pretty_printer_init): Likewise.
956 (pp_c_specifier_qualifier_list): Rework..
957 (pp_c_abstract_declarator): Likewise.
958 (pp_c_postfix_expression): Likewise.
959 (pp_c_primary_expression): Likewise.
960 (pp_c_cast_expression): Likewise.
961 (pp_c_direct_abstract_declarator): Likewise.
962 (pp_c_storage_class_specifier): Likewise.
963 (pp_c_function_specifier): Likewise.
964 (pp_c_declaration_specifiers): Likewise.
965 (pp_c_direct_declarator): Likewise.
966 (pp_c_declarator): Likewise.
967 (pp_c_declaration): Likewise.
968 (pp_c_statement): Likewise.
969 (pp_c_integer_constant): Rename from pp_c_integer_literal.
970 (pp_c_character_constant): Rename from pp_c_character_literal.
971 (pp_c_bool_constant): Rename from pp_c_bool_literal.
972 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
973 (pp_c_floating_constant): Rename from pp_c_real_literal.
974 (pp_c_constant): Rename from pp_c_literal.
975 * c-lang.c: Include diagnostic.h and c-pretty-print.h
976 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
977 (c_initialize_diagnostics): New.
978 * Makefile.in (c-lang.o): Update dependency.
980 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
982 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
984 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
986 * config/mips/mips.c (mips_no_mips16_string): Remove.
987 (override_options): Don't handle -mips16 as part of -mipsN.
988 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
989 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
990 (TARGET_OPTIONS): Remove -mno-mips16.
992 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
994 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
995 (coprocessor2_operand): Likewise.
996 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
997 (lookup_name): Remove declaration.
998 (abort_with_insn): Remove. Replace all uses with fatal_insn.
999 (mips16, mips_abicalls): Remove.
1000 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
1001 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
1002 (coprocessor_operand, coprocessor2_operand): Remove.
1003 (override_options): Don't set mips16 or mips_abicalls.
1004 (print_operand): Don't expect SIGN_EXTEND operands.
1005 (mips_secondary_reload_class): Likewise.
1006 (mips_output_conditional_branch): Remove disabled long-branch code.
1007 * config/mips/mips.h (call_used_regs): Remove declaration.
1008 (may_call_alloca): Likewise.
1009 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
1010 (mips_abicalls, mips16): Remove declarations.
1011 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
1012 (CC1_SPEC): Remove outdated comment.
1013 (MIPS_VERSION, MACHINE_TYPE): Remove.
1014 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
1015 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
1016 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
1017 (PUSH_ROUNDING): Likewise.
1018 (ASSEMBLER_SCRATCH_REGNUM): Remove.
1019 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
1020 and mips16 with TARGET_MIPS16.
1022 2003-08-09 Per Bothner <pbothner@apple.com>
1024 * cppinit.c (cpp_read_main_file): Split out source-independent
1025 initialization to separate function ...
1026 (cpp_post_options): New function.
1027 * cppfiles.c (cpp_stack_file): Rename public name to ...
1028 (_cpp_stack_file): New internal function name.
1029 * cpplib.h: Update accordingly.
1030 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
1031 (cpp_read_main_file): Don't initialize line here.
1032 * c-opts.c (c_common_post_options): Call cpp_post_options.
1033 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
1034 * fix-header.c (read_scan_file): Call cpp_post_options.
1036 2003-08-09 Per Bothner <per@bothner.com>
1038 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
1040 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1042 * pa.c (pa_asm_output_mi_thunk): Fix typo.
1044 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
1046 PR preprocessor/11839
1047 * cppfiles.c (open_file): Handle ENOTDIR.
1049 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
1052 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
1054 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1056 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
1057 source/destination is not a register operand.
1059 2003-08-08 Richard Henderson <rth@redhat.com>
1062 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
1063 RETURN_ADDRESS_POINTER_REGNUM.
1064 (ia64_expand_prologue): Don't frob it.
1065 (ia64_output_function_epilogue): Likewise.
1066 (ia64_return_addr_rtx): New.
1067 (ia64_split_return_addr_rtx): New.
1068 * config/ia64/ia64-protos.h: Update.
1069 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
1070 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
1071 (GENERAL_REGNO_P): Don't check it.
1072 (AR_*_REGNUM): Renumber.
1073 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
1074 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
1075 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
1076 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
1077 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
1078 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
1079 (movdi_ret_addr): New.
1081 2003-08-08 Geoffrey Keating <geoffk@apple.com>
1083 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
1085 2003-08-08 Roger Sayle <roger@eyesopen.com>
1087 * tree.h (get_identifier) Define a macro form of get_identifier
1088 that calls get_identifier_with_length when the string is constant.
1089 (get_identifier_with_length): Change type of second argument to
1090 size_t in prototype.
1091 * stringpool.c (get_identifier): Undefine the macro before giving
1092 the function definition.
1093 (get_identifier_with_length): Change type of second argument to
1094 size_t in function definition.
1095 * hashtable.c (calc_hash): Change type of second argument to size_t.
1096 (ht_lookup): Change type of third argument to size_t. Reorganize
1097 to speed-up the cases where the hash table slot is empty, or the
1098 first probe matches (i.e. there isn't a collision).
1099 * hashtable.h (ht_lookup): Adjust function prototype.
1101 2003-08-08 Bernardo Innocenti <bernie@develer.com>
1105 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
1107 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
1109 * common.opt: Add debug switches.
1110 * flags.h (use_gnu_debug_info_extensions): Boolify.
1111 * opts.c (write_symbols, debug_info_level,
1112 use_gnu_debug_info_extensions): Move from toplev.c.
1113 (set_debug_level): New.
1114 (common_handle_options): Handle debug switches.
1115 (print_help): Display target options directly.
1116 * toplev.c (debug_hooks): Don't initialize.
1117 (write_symbols, debug_info_level,
1118 use_gnu_debug_info_extensions): Move to opts.c.
1119 (debug_args, display_help, decode_g_option): Remove.
1120 (process_options): Set no debug if level zero here,
1121 and no-debug-hooks. Error here if impossible debug format selected.
1122 * toplev.h (display_help, decode_g_option): Remove.
1124 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
1126 * tree.c (get_file_function_name_long): Fix size of alloca() area.
1128 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
1130 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
1131 and gcc_cv_prog_cmp_skip.
1132 * configure: Regenerate.
1134 2003-08-08 Stan Cox <scox@redhat.com>
1136 * config/iq2000: New port.
1137 * config.gcc (iq2000-*-elf): Added.
1138 * doc/install.texi (Specific): Add iq2000 description.
1140 2003-08-08 Andreas Schwab <schwab@suse.de>
1142 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
1143 and insert missing empty argument.
1144 * configure: Regenerate.
1146 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1148 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
1149 (attr_length_millicode_call): Likewise.
1150 (attr_length_call): Likewise. Revise some maximum insn lengths.
1151 (attr_length_indirect_call): Likewise.
1152 (output_call): Fix thinko that added extra nop.
1153 * pa.h (IN_NAMED_SECTION_P): Define.
1156 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
1157 __STDC_EXT__ when using C++ dialect.
1159 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
1161 * sh.c (calc_live_regs): If the return address pointer is live,
1163 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
1164 for saves / restores.
1165 (sh_expand_epilogue): If sh_media_register_for_return returns a
1166 register number, flag the instructions that restores PR_MEDIA_REG
1168 Remove dead update of offset.
1169 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
1170 we can use the result of get_hard_reg_initial_val.
1171 * sh.md (UNSPEC_RA): New constant.
1172 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
1173 (load_ra). Handle UNSPEC_RA.
1174 (sibcall_media): Use PR_MEDIA_REG.
1176 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
1177 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
1178 needs saving on SHmedia.
1180 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
1182 * config/s390/s390.md: Replace all occurrences of \\t with \t.
1184 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
1186 * local-alloc.c (combine_regs): Fix comment typo.
1188 2003-08-06 Zack Weinberg <zack@codesourcery.com>
1190 * c-decl.c (builtin_decls): Replace with first_builtin_decl
1191 and last_builtin_decl.
1192 (c_init_decl_processing): Initialize both.
1193 (c_reset_state): Iterate from first_builtin_decl to
1194 last_builtin_decl inclusive to reintroduce builtins.
1196 2003-08-06 David Mosberger <davidm@hpl.hp.com>
1198 * doc/extend.texi (Function Attributes): Document the IA-64 version
1199 of the "model" attribute.
1201 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
1202 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
1203 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
1205 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
1206 (ia64_encode_section_info): Likewise.
1207 (ia64_attribute_table): Add "model" attribute.
1208 (TARGET_ENCODE_SECTION_INFO): Define.
1209 (small_addr_symbolic_operand): New function.
1210 (got_symbolic_operand): Return 0 for a symbolref to an object
1211 in the small address area.
1212 (enum ia64_addr_area): New type.
1213 (small_ident1): New variable.
1214 (small_ident2): Likewise.
1215 (init_idents): New function.
1216 (ia64_get_addr_area): Likewise.
1217 (ia64_encode_addr_area): Likewise.
1218 (ia64_encode_section_info): Likewise.
1219 (ia64_expand_load_address): For symbolic references to objects in
1220 the small-address-area, load the address via gen_rtx_SET() (which,
1221 eventually, will expand into "addl").
1223 2003-08-06 Per Bothner <pbothner@apple.com>
1225 * line-map.h (fileline): New typedef.
1226 (struct line_map, linemap_add, linemap_lookup): Use it.
1227 * input.h (struct location_s): Comment notes that long-term we want
1228 to replace it by fileline.
1230 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
1232 Fix SHcompact exception handling:
1233 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
1234 by the prologue, return a MEM with return_address_pointer_rtx
1236 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
1237 (RETURN_ADDR_OFFSET): Don't define.
1238 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
1239 registers that are visible in compact mode. Show that SHmedia
1240 registers still exist in compact mode, even if there are not
1242 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
1243 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
1244 and DW_EH_PE_pcrel for pic data.
1245 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
1246 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
1247 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
1248 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
1249 * sh.md (movsi_media-1): New splitter.
1251 2003-08-06 Graeme Peterson <gp@qnx.com>
1253 * config/i386/nto.h: New.
1254 * config/i386/t-nto: New.
1255 * config.gcc (i[34567]86-*-nto-qnx*): New.
1257 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
1259 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
1261 2003-08-06 Alan Modra <amodra@bigpond.net.au>
1263 * calls.c (load_register_parameters): Arrange for call_fusage to
1264 report the whole register as used when shifting to the msb.
1266 2003-08-05 Roger Sayle <roger@eyesopen.com>
1268 * builtins.c (expand_builtin): When not optimizing, call the library
1269 function for all builtins that have library functions (except alloca).
1271 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
1273 * c.opt: Introduce -fworking-directory.
1274 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
1275 * c-common.h (flag_working_directory): Declare.
1276 * c-common.c (flag_working_directory): Define.
1277 * c-opts.c (c_common_handle_options): Set it.
1278 (sanitize_cpp_opts): Set...
1279 * cpplib.h (struct cpp_options): ... working_directory option.
1280 (struct cpp_callbacks): Add dir_change.
1281 * cppinit.c (read_original_filename): Call...
1282 (read_original_directory): New. Look for # 1 "directory//"
1284 (cpp_read_main_file): Call dir_change callback if working_directory
1286 * gcc.c (cpp_unique_options): Pass -g*.
1287 * c-lex.c (cb_dir_change): New.
1288 (init_c_lex): Set dir_change callback.
1289 * toplev.c (src_pwd): New static variable.
1290 (set_src_pwd, get_src_pwd): New functions.
1291 * toplev.h (get_src_pwd, set_src_pwd): Declare.
1292 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
1293 * dwarf2out.c (gen_compile_unit_die): Likewise.
1294 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
1296 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1298 * pretty-print.h (pp_set_line_maximum_length): Make macro.
1299 (pp_set_prefix): Likewise.
1300 (pp_destroy_prefix): Likewise.
1301 (pp_remaining_character_count_for_line): Likewise.
1302 (pp_clear_output_area): Likewise.
1303 (pp_formatted_text): Likewise.
1304 (pp_last_position_in_text): Likewise.
1305 (pp_emit_prefix): Likewise.
1306 (pp_append_text): Likewise.
1307 (pp_flush): Likewise.
1308 (pp_format_text): Likewise.
1309 (pp_format_verbatim): Likewise.
1310 (pp_tree_identifier): Tidy.
1311 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
1312 (pp_base_format_verbatim): Rename from pp_format_verbatim.
1313 (pp_base_flush): Rename from pp_flush.
1314 (pp_base_set_line_maximum_length): Rename from
1315 pp_set_line_maximum_length.
1316 (pp_base_clear_output_area): Rename from pp_clear_output_area.
1317 (pp_base_set_prefix): Rename from pp_set_prefix.
1318 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
1319 (pp_base_emit_prefix): Rename from pp_emit_prefix.
1320 (pp_base_append_text): Rename from pp_append_text.
1321 (pp_base_formatted_text): Rename from pp_formatted_text.
1322 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
1323 (pp_base_remaining_character_count_for_line): Rename from
1324 pp_remaining_character_count_for_line.
1325 * diagnostic.h (diagnostic_format_decoder): Tidy.
1326 (diagnostic_flush_buffer): Likewise.
1327 * c-pretty-print.h: (pp_c_string_literal): Declare.
1328 (pp_c_real_literal): Likewise.
1329 (pp_c_integer_literal): Likewise.
1330 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
1332 (pp_c_character_literal): Tidy.
1333 (pp_c_string_literal): Make public.
1334 (pp_c_bool_literal): Likewise.
1335 (pp_c_integer_literal): Likewise.
1336 (pp_c_real_literal): Likewise.
1338 * Makefile.in (C_PRETTY_PRINT_H): New variable.
1339 (c-pretty-print.o): Update dependence.
1341 2003-08-05 Chris Demetriou <cgd@broadcom.com>
1343 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
1344 ".set nomacro" state.
1345 (fix_truncsfsi2_macro): Likewise.
1347 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
1349 * tree.h (DID_INLINE_FUNC): Remove macro.
1350 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
1351 add tree check for FUNCTION_DECL.
1352 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
1353 (struct tree_decl): Rename inlined_function_flag to
1354 declared_inline_flag.
1355 * c-common.h (c_lang_decl): Remove.
1356 (DECL_ESTIMATED_INSNS): Remove.
1357 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
1358 (DECL_DECLARED_INLINE_P): Remove.
1359 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
1360 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
1361 (finish_function): Make uninlinable a bool. Fixup call to
1362 tree_inlinable_function_p() and fix some code style issues.
1363 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
1364 * cgraph.c (dump_cgraph): Likewise.
1365 * cgraphunit.c (cgraph_decide_inlining): Likewise
1366 (cgraph_finalize_compilation_unit): Likewise.
1367 Also update call to tree_inlinable_function_p().
1368 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
1369 look at DECL_DECLARED_INLINE and reverse logic.
1370 * print-tree.c (print_node): Likewise.
1371 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
1372 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
1374 * tree-inline.c (inlinable_function_p): Split up in this function to
1375 check for basic inlining inhibiting conditions, and new
1376 limits_allow_inlining() function. Warn if inlining is impossible
1377 because the inline candidate calls alloca or uses sjlj exceptions.
1378 (limits_allow_inlining): this new function to check if the inlining
1379 limits are satisfied. Throttle from currfn_max_inline_insns, not from
1380 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
1381 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
1383 (tree_inlinable_function_p): Make a bool. Update call to
1384 inlinable_function_p
1385 (expand_call_inline): Use limits_allow_inlining() when not in
1386 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
1387 instead see if the function was declared `inline'.
1389 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
1391 * gcse.c (try_replace_reg): Fix updating of note.
1393 2003-08-04 Roger Sayle <roger@eyesopen.com>
1396 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
1397 logic in negate_expr, i.e. we don't invert (A-B) for floating
1398 point types unless flag_unsafe_math_optimizations.
1400 2003-08-04 Roger Sayle <roger@eyesopen.com>
1402 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
1403 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
1404 for floating point expressions with -ffast-math.
1405 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
1406 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
1408 2003-08-04 Roger Sayle <roger@eyesopen.com>
1410 * c-common.c (flag_noniso_default_format_attributes): Delete.
1411 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
1412 (c_attrs_initialized): Delete.
1413 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
1414 always call c_init_attributes.
1415 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
1416 set c_attrs_initialized when done.
1417 (c_common_insert_default_attributes): Delete.
1418 * c-common.h (flag_noniso_default_format_attributes): Delete.
1419 (c_coomon_insert_default_attributes): Delete prototype.
1420 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
1421 flag_noniso_default_format_attributes.
1423 * c-decl.c (c_insert_default_attributes): Delete.
1424 * c-tree.h (c_insert_default_attributes): Delete prototype.
1426 * attribs.c (decl_attributes): Don't call insert_default_attributes
1427 langhook. Update function description comment.
1428 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
1429 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
1430 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
1431 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
1433 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
1436 2003-08-04 Richard Sandiford <rsandif@redhat.com>
1438 * config/mips/mips.c (override_options): Disable -G on targets that
1439 have no .section support.
1440 (mips_select_section): Use default_select_section for such targets.
1442 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
1444 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
1445 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
1446 * fixinc/fixincl.x: Rebuild.
1447 * fixinc/tests/base/regexp.h: New test.
1449 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
1451 * c-ppoutput.c (cb_line_change): Don't skip line changing while
1452 parsing macro arguments in the top-level context.
1454 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
1456 * config.in: Remove HAVE_LSTAT.
1457 * configure, configure.in: Don't test for lstat.
1459 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1461 * opts.c (decode_options): Do language-specific initialization for
1462 the global diagnostic context.
1463 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
1464 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
1465 (LANG_HOOKS_INITIALIZER): Adjust.
1466 * langhooks.h (struct lang_hooks): Add new field
1467 initialize_diagnostics.
1468 * langhooks.c (lhd_initialize_diagnostics): Define.
1470 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1472 * pretty-print.h: Adjust macro definitions.
1473 * pretty-print.c (pp_newline): Rename to pp_base_newline.
1474 (pp_character): Rename to pp_base_character.
1475 (pp_string): Rename to pp_base_string.
1476 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
1477 (pp_newline): Likewise. Adjust.
1478 (pp_c_char): Adjust.
1480 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1482 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
1483 BUILT_IN_LLABS): Move to miscellaneous section.
1485 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1487 PR preprocessor/11534
1488 * cppexp.c (parse_defined): Warn only if -pedantic.
1490 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1492 * cppfiles.c (stack_file): Use file path.
1494 2003-08-02 Roger Sayle <roger@eyesopen.com>
1496 * builtin-types.def (BT_SSIZE): New primitive type.
1497 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
1498 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
1499 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
1500 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
1501 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
1502 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
1503 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
1504 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
1505 few functions that define default attributes using it.
1506 * c-common.c (c_common_insert_default_attributes): Do nothing.
1508 * doc/extend.texi: Document these "new" builtins.
1510 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
1512 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
1513 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
1514 when -mieee-fp set and -shared not set.
1515 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
1517 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1519 * cppfiles.c (struct _cpp_file): Rename once_only_next to
1520 next_file. Remove import and pragma_once, add once_only.
1521 (find_file): Add new file structures to the all_files list.
1522 (should_stack_file): Mark #import-ed files once-only, and
1523 don't stack them if the file has already been stacked.
1524 (_cp_mark_file_once_only): Simplify.
1525 * cpphash.h (struct cpp_reader): Rename once_only_files
1526 to all_files. Rename saw_pragma_once to seen_once_only.
1527 (_cpp_mark_file_once_only): Update prototype.
1528 * cpplib.c (do_pragma_once): Update.
1530 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1532 * cppfiles.c (ENOTDIR): Remove.
1533 (open_file_in_dir): Rename find_file_in_dir. Handle errors
1534 other than ENOENT here.
1535 (once_only_file_p): Rename should_stack_file.
1536 (find_file, open_file_failed, read_file_guts): Report errors
1537 with full path name.
1538 (read_file): Move pch handling to should_stack_file.
1539 (should_stack_file): Handle PCH and once-only issues, and
1541 (stack_file): Don't do file reads.
1543 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1545 * libgcov.c (gcov_exit): Cleanup and fix.
1546 * profile.c (compute_value_histograms): Don't try to read profiles
1547 that are not present.
1549 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1551 * builtins.def: Categorize.
1553 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
1555 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
1557 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
1559 * config.gcc: Enable posix threads by default on darwin.
1561 2003-08-01 Jakub Jelinek <jakub@redhat.com>
1563 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
1564 even if nehedges1 is 0.
1566 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
1568 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
1569 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
1570 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
1573 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
1574 * fixinc/fixincl.x: Regenerate.
1575 * fixinc/tests/base/math.h: Regenerate to match test_text change.
1577 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1579 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
1581 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1583 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
1584 for accesses to exc_ptr.
1586 2003-08-01 Geoffrey Keating <geoffk@apple.com>
1588 * doc/sourcebuild.texi (Front End Directory): Don't make references
1589 to libsubdir, it's not part of the interface to frontends.
1590 * doc/install.texi (Configuration): Help users read faster by saying
1591 that GCC's configure options are the standard autoconf ones.
1592 Mention --libdir. Update the default rules for finding the
1593 assembler. Don't use libsubdir since we haven't said what it means.
1594 (Specific): In the Solaris 7 notes, update the place to put the
1596 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
1597 * doc/cpp.texi (Search Path): Actually, the search path
1598 depends on libdir, which can relocate with cpp.
1599 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
1600 now a private interface between the Makefile and the driver.
1602 2003-08-01 Richard Henderson <rth@redhat.com>
1604 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
1606 * varasm.c (lookup_constant_def): New function.
1607 * rtl.h (lookup_constant_def): Declare it.
1608 * dwarf2out.c (loc_descriptor_from_tree): Use it.
1609 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
1611 2003-08-01 Zack Weinberg <zack@codesourcery.com>
1613 * c-decl.c (gettags, pushdecl_function_level): Delete.
1614 (last_function_parm_vars): Rename last_function_parm_others.
1615 (current_function_parm_vars): Rename current_function_parm_others.
1616 (struct c_scope): Rewrite comment explaining this data structure.
1617 Add names_last, blocks_last, parms_last fields. Rename
1618 incomplete_list to incomplete.
1619 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
1620 (poplevel): Ignore second argument. No need to nreverse
1621 anything. Restructure such that each list is processed
1622 exactly once. Use 'const location_t *locus' syntactic sugar
1623 variable where useful. Issue unused variable warnings
1624 ourselves, do not rely on function.c.
1625 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
1626 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
1627 (implicitly_declare): decl cannot be error_mark_node.
1628 (undeclared_variable): Manipulate scope structure directly.
1629 (c_make_fname_decl): Likewise.
1630 (getdecls, c_init_decl_processing): Fix comment.
1631 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
1632 for 'last' variable.
1633 (grokparms): No need to nreverse parms list.
1634 (store_parm_decls_newstyle): Set up the parms_last and
1635 names_last fields of the new scope too.
1636 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
1637 on parms to begin with; check this under ENABLE_CHECKING. Set
1639 (check_for_loop_decls): Refer directly to current_scope->tags.
1640 Use consistent quote style in diagnostics.
1641 (c_write_global_declarations): The names list is not backward.
1643 * c-common.h: Don't prototype gettags.
1644 * c-parse.in: Call poplevel with second argument 0 always.
1646 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1648 * builtins.def: Resort builtins.
1650 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1652 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
1653 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
1654 Prepend "__builtin_" onto NAME with string concatenation. Remove
1655 explicit "__builtin_" from each macro call.
1657 Reformat entire file.
1659 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1661 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1662 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
1664 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
1666 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
1667 CCL1, or CCL2 modes with floating point operations.
1669 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
1670 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
1671 "*subdf3_cconly"): New insns.
1672 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
1674 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
1676 * Makefile.in: Refine dependencies.
1677 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
1678 * c.opt: Update help for -Wimport.
1679 * cppfiles.c: Include hashtab.h. Update comments.
1680 (stack_file): Read the file before updating dependencies.
1681 (once_only_file_p): Be smarter about marking once-only files.
1682 (_cpp_mark_file_once_only): Correct the check for existence on
1684 (open_file_failed): Use name not path, which is NULL.
1685 * cpphash.h: Don't include hashtab.h.
1686 (struct _cpp_file): Remove.
1687 (struct cpp_reader): Update.
1688 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
1689 * cpplib.h (struct cpp_options): Remove warn_import.
1690 (cpp_simplify_path): Remove.
1692 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
1695 * doc/extend.texi (Statement Expressions): Document C++ semantics.
1697 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1699 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
1701 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1703 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
1705 * builtins.def: Likewise.
1707 2003-07-31 Jason Merrill <jason@redhat.com>
1709 * Makefile.in (bubblestrap): Don't require a previous full
1712 * expr.c (mostly_zeros_p): No longer static.
1713 * tree.h: Declare it.
1714 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
1715 unless we need to do substitutions.
1717 2003-07-31 Roger Sayle <roger@eyesopen.com>
1719 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
1720 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
1721 as pow(x,2.0) when the latter will be expanded back into x*x.
1722 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
1723 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
1724 pow can never set errno when used with an integer exponent.
1725 Always use expand_powi when exponent is -1, 0, 1 or 2.
1726 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
1727 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
1728 the pow forms of these expressions.
1730 2003-07-31 Geoffrey Keating <geoffk@apple.com>
1732 * Makefile.in (libexecdir): New.
1733 (libsubdir): Use gcc instead of gcc-lib.
1734 (libexecsubdir): New.
1735 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
1736 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
1738 (installdirs): Make libexecsubdir.
1739 (install-common): Put executables in libexecsubdir.
1740 (itoolsdir): Use libexecsubdir.
1741 (itoolsdatadir): New.
1742 (install-mkheaders): Separate data files and executables.
1743 (install-collect2): Put executables in libexecsubdir.
1744 (uninstall): Remove libexecsubdir.
1745 * mkheaders.in: Update for new arrangement of files.
1747 (libexecsubdir): New.
1748 (itoolsdir): Use libexecsubdir.
1749 (itoolsdatadir): New.
1750 * gcc.c (gcc_libexec_prefix): New.
1751 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
1752 (standard_exec_prefix_1): Use libexec.
1753 (standard_exec_prefix_2): New.
1754 (standard_libexec_prefix): New.
1755 (process_command): Update for new arrangement of files. Compute
1756 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
1758 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
1760 * inclhack.def (stdio_va_list): Avoid bogus replacement which
1761 triggers on Interix.
1762 * fixincl.x: Regenerate.
1764 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1766 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
1767 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
1769 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1771 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
1773 2003-07-31 Per Bothner <pbothner@apple.com>
1775 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
1776 (add_input_filename): New function.
1777 (handle_options): Call add_input_filename directly instead of
1779 * opts.h (in_fnames, num_in_fnames): Moved here.
1780 (add_input_filename): Declare.
1781 * c-decl.c: Need to #include opts.h.
1782 * Makefile.in (c-decl.o): Also depends on opts.h.
1783 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
1784 (c_common_handle_filename): Replaced by add_input_filename.
1785 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
1787 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
1788 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1789 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
1790 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1792 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1794 * combine.c (try_combine): Set JUMP_LABEL for newly created
1797 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1799 * fold-const.c (fold): Fold some comparisons of bit operations.
1801 Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
1803 * cgraph.c (create_edge): Fix typo.
1804 * i386.c (pic_symbolic_operand): Reorder tests.
1806 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
1808 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
1810 (Gcov Data Files): Update.
1812 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1814 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
1817 * gthr-posix.c: New file.
1818 * gthr-posix.h: Define _REENTRANT if missing.
1819 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
1821 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
1823 * config/alpha/t-osf-pthread: New file.
1825 * fixinc/inclhack.def (alpha_pthread): New fix.
1826 * fixinc/fixincl.x: Regenerate.
1827 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
1829 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
1831 Fixes PR bootstrap/9330.
1833 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1835 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
1838 * configure: Regenerate.
1840 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
1842 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
1845 2003-07-30 Roger Sayle <roger@eyesopen.com>
1847 * builtins.def: Alphabetize.
1849 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1851 * doc/c-tree.texi: Normalize spellings of "lowercase" and
1853 * doc/cpp.texi: Likewise.
1854 * doc/md.texi: Likewise.
1855 * doc/rtl.texi: Likewise.
1856 * doc/tm.texi: Likewise.
1858 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1860 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
1861 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
1864 2003-07-30 Chris Demetriou <cgd@broadcom.com>
1866 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
1867 macros before defining them.
1869 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
1871 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
1872 UNSPECV_BLOCKAGE): New constants.
1873 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
1874 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
1875 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
1876 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
1878 (all insns and expanders): Write output control string as brace block
1879 where appropriate. Remove \-escapes for doublequote characters.
1881 Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
1883 * gcse.c (insert_store): Fix typo in previous patch.
1885 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
1887 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
1889 2003-07-30 Andi Kleen <ak@muc.de>
1891 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
1893 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1895 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
1896 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
1897 GCOV_N_VALUE_COUNTERS): New.
1898 * profile.c (compute_value_histograms): New static function.
1899 (branch_prob): Read back the value histograms.
1900 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
1901 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
1902 * value-prof.c: Add comment on reading the profile.
1903 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
1904 * doc/invoke.texi (-fprofile-values): Document behavior with
1905 -fbranch-probabilities.
1907 2003-07-30 David Edelsohn <edelsohn@gnu.org>
1909 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
1911 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
1913 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
1916 Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
1918 * gcse.c (insert_store): Ignore fake edges.
1920 * c-common.c (flag_vtable_gc): Kill.
1921 * c-common.g (flag_vtable_gc): Kill.
1922 * c-opts (c_common_handle_option): Kill.
1923 * c.opt (fvtable-gc): Kill.
1924 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
1925 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1926 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1928 * invoke.texi (-ftable-gc): Kill documentation.
1930 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
1931 just because function body is missing.
1933 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
1935 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
1937 * unwind-sjlj.c: Fix typo in file description.
1939 2003-07-30 Alan Modra <amodra@bigpond.net.au>
1941 * calls.c (load_register_parameters): When shifting reg sized values
1942 to the msb, move the value to a reg first.
1944 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1946 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
1947 * line-map.h (linemap_add): Update comments.
1948 * line-map.c (linemap_add): Update comments, interpret zero-length
1949 filename as "<stdin>".
1951 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
1953 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
1955 2003-07-29 Zack Weinberg <zack@codesourcery.com>
1957 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
1958 New static variables.
1959 (struct c_scope): Add parms and warned_forward_parm_decls
1960 fields; remove parm_order.
1961 (storedecls, storetags): Delete.
1962 (poplevel): Also clear bindings on the parms chain.
1963 (pushdecl): Handle forward declarations of parameters, and
1964 chain PARM_DECLs on the parms list, not the names list.
1965 (lookup_name_current_level): Check for PARM_DECLs on the parms
1967 (push_parm_decl): Don't update parm_order.
1968 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
1969 warning, only once per parameter list, and set TREE_ASM_WRITTEN
1970 on the decls here. Then move the forward decls to the names list.
1971 (grokparms): Set last_function_parm_vars.
1972 (get_parm_info): Don't use gettags or getdecls. No need to
1973 extract non-parms from the parms list, or reorganize the parms
1974 list. Feed nonparms back in the TREE_TYPE of the list node
1975 returned. Issue only one error per parameter list for "void"
1976 appearing more than once in said parameter list. Collapse
1977 parmlist_tags_warning into this function to avoid double scan
1979 (start_function): Set current_function_parm_vars.
1980 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
1981 directly. Get non-parms from current_function_parm_vars; no
1982 need to extract them from the parms chain. Properly bind tags
1984 (store_parm_decls_oldstyle): No need to extract non-parameters
1985 from the parms chain, nor to store them back afterward. Move
1986 declaration to top of function, restructure code reordering
1988 (store_parm_decls): No need to save and restore warn_shadow.
1989 * c-parse.in: Don't call parmlist_tags_warning nor
1990 clear_parm_order. Call mark_forward_parm_decls when forward
1991 parm decls are encountered.
1992 * c-tree.h: Prototype mark_forward_parm_decls; not
1993 clear_parm_order or parmlist_tags_warning.
1995 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1997 * c-common.c (allow_pch): Remove.
1998 * c-common.h (allow_pch): Remove.
1999 (c_common_no_more_pch): Declare.
2000 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
2001 * c-pch.c: Include hosthooks.h.
2002 (c_common_valid_pch): Don't check allow_pch.
2003 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
2004 (c_common_no_more_pch): New.
2005 * ggc-common.c: Include hosthooks.h.
2006 (gt_pch_save): Call gt_pch_get_address.
2007 (gt_pch_restore): Call gt_pch_use_address.
2008 * hooks.c (hook_voidp_size_t_null): New.
2009 (hook_bool_voidp_size_t_false): New.
2010 * hooks.h (hook_voidp_size_t_null): New.
2011 (hook_bool_voidp_size_t_false): New.
2012 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
2013 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
2014 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
2015 HOST_HOOKS_GT_PCH_USE_ADDRESS.
2016 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
2018 * doc/hostconfig.texi (Host Common): Document
2019 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
2020 * Makefile.in (c-pch.o): Depend on hosthooks.h.
2021 (ggc-common.o): Likewise.
2023 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
2024 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
2025 (pch_address_space): New.
2026 (darwin_rs6000_gt_pch_get_address): New.
2027 (darwin_rs6000_gt_pch_use_address): New.
2029 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
2031 PR preprocessor/11569
2032 PR preprocessor/11649
2033 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
2034 * cppfiles.c: Completely rewritten.
2035 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
2036 struct cpp_path is now struct cpp_dir.
2037 (remove_duplicates): Don't simplify path names.
2038 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
2040 * cpphash.h: Include hashtab.h.
2041 (_cpp_file): Declare.
2042 (struct cpp_buffer): struct include_file is now struct _cpp_file,
2043 and struct cpp_path is now struct cpp_dir. Rename members.
2044 (struct cpp_reader): Similarly. New members once_only_files,
2045 file_hash, file_hash_entries, quote_ignores_source_dir,
2046 no_search_path, saw_pragma_once. Remove all_include_files and
2047 max_include_len. Make some members bool.
2048 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
2049 (_cpp_stack_file): Renamed from _cpp_read_file.
2050 (_cpp_stack_include): Renamed from _cpp_execute_include.
2051 (_cpp_init_files): Renamed from _cpp_init_includes.
2052 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
2053 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
2054 (cpp_read_next_file): Rename and move to cppfiles.c.
2055 (cpp_read_main_file): Update.
2056 * cpplib.c (run_directive): Update for renamed members.
2057 (do_include_common, _cpp_pop_buffer): Update.
2058 (do_import): Undeprecate #import.
2059 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
2060 * cpplib.h: Remove file_name_map_list.
2061 (cpp_options): Remove map_list.
2062 (cpp_dir): Rename from cpp_path. New datatype for name_map.
2063 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
2065 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
2067 * Makefile.in: Make stamp-objdir safe for parallel builds.
2069 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
2071 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
2072 (info): Depend on stmp-docobjdir.
2074 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2076 * configure: Regenerate.
2078 Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
2081 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
2082 in !unit-at-a-time mode.
2084 2003-07-28 Geoffrey Keating <geoffk@apple.com>
2086 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
2089 2003-07-28 Mark Mitchell <mark@codesourcery.com>
2092 * c-common.c (shorten_compare): Take into account differences
2093 between C and C++ representation for enumeration types.
2094 * tree.h (set_min_and_max_values_for_integral_type): Declare.
2095 * stor-layout.c (set_min_and_max_values_for_integral_type): New
2096 function, broken out from ...
2097 (fixup_signed_type): ... here and ...
2098 (fixup_unsigned_type): ... here.
2100 2003-07-28 Zack Weinberg <zack@codesourcery.com>
2102 * c-decl.c: Update commentary, adjust blank lines throughout.
2103 (struct c_scope): Fix indentation. Reorder members so
2104 outer-context pointers come first, booleans last.
2105 (duplicate_decls, define_label): Use a 'locus' variable for
2106 diagnostic locations in a few more places.
2107 (warn_if_shadowing): Un-split a conditional that fits on one line.
2108 (c_init_decl_processing): No need to clear current_scope and
2109 current_function_scope.
2110 (start_decl): Merge if/else if statements with same action.
2111 (push_parm_decl): Rename old_immediate_size_expand to use
2112 save_foo convention; save/restore around entire function.
2113 (grokdeclarator): Remove unnecessary braces.
2115 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
2116 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
2118 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
2119 when warn_declaration_after_statement. Call pedwarn_c90, not
2120 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
2121 * c-common.c (warn_declaration_after_statement): Define.
2122 * c-common.h (warn_declaration_after_statement): Declare.
2123 * c.opt (Wdeclaration-after-statement): New.
2124 * c-errors.c (pedwarn_c90): New function.
2125 * c-opts.c (c_common_handle_option) <case
2126 OPT_Wdeclaration_after_statement>: New.
2127 * c-tree.h (pedwarn_c90): Declare.
2128 * doc/invoke.texi (Option Summary): Document
2129 -Wdeclaration-after-statement.
2130 (Warning Options): Ditto.
2132 Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
2134 * i386.md (memory attribute) Avoid accessing uninitialized memory
2135 for ishift1 type instructions.
2137 2003-07-28 Jakub Jelinek <jakub@redhat.com>
2139 * configure.in (--enable-checking): Add fold category.
2140 (ENABLE_FOLD_CHECKING): Define if requested.
2141 * configure: Rebuilt.
2142 * config.in: Rebuilt.
2143 * doc/install.texi: Document it.
2144 * fold-const.c: Include md5.h.
2145 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
2146 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
2147 print_fold_checksum): New functions.
2149 * fold-const.c (fold): Never modify argument passed to fold, instead
2150 change a copy and return it.
2151 * convert.c (convert_to_integer): Likewise.
2153 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
2155 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
2156 cleanup of junk after #else and #endif directives. Collapse repeated
2157 clauses into for statment.
2159 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
2161 2003-07-27 Zack Weinberg <zack@codesourcery.com>
2163 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
2164 (keep_next_if_subblocks): Rename next_is_function_body.
2165 (pushlevel): Adjust commentary. Always set ->keep on the
2166 outermost level of a function. Don't set ->keep_if_subblocks.
2167 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
2168 (store_parm_decls): Adjust to match.
2169 (finish_function): Adjust to match.
2170 Call poplevel with all three arguments zero.
2172 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
2173 New functions split out of store_parm_decls.
2174 Avoid unnecessary work. Use local variables consistently.
2175 (store_parm_decls): Likewise.
2177 (finish_function): No need to set functionbody flag on call to
2179 (struct language_function): Remove scope field.
2180 (c_push_function_context, c_pop_function_context): No need to
2181 save and restore current_scope.
2183 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
2185 * doc/extend.texi (Deprecated Features): Implicit typename is
2186 gone. Default args on types is going.
2188 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
2190 * Makefile.in (ifcvt.o): Depend on target.h
2191 * ifcvt.c (target.h): Include.
2192 (if_convert): Don't call mark_loop_exit_edges if we can't
2195 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2197 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
2199 2003-07-26 Richard Henderson <rth@redhat.com>
2202 * cse.c (count_reg_usage): Handle asm_operands properly.
2204 2003-07-26 Roger Sayle <roger@eyesopen.com>
2206 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
2207 (DEF_EXT_FALLBACK_BUILTIN): Delete.
2208 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
2209 the regular DEF_EXT_LIB_BUILTIN macro.
2210 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
2211 the regular DEF_LIB_BUILTIN macro.
2212 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
2213 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
2214 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
2215 DEF_EXT_LIB_BUILTIN macro.
2217 * c-decl.c (duplicate_decls): Remove code to handle builtin
2218 functions prototyped without an argument list.
2220 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
2222 * config/i386/winnt.c: Revert 2003-07-08 change.
2223 (i386_pe_section_type_flags): Remove error_with_decl here too.
2225 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
2227 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
2228 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
2229 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
2230 (v850_handle_data_area_attribute): Likewise.
2232 2003-07-26 Geoffrey Keating <geoffk@apple.com>
2234 * varasm.c (output_constant_def_contents): Use
2235 ASM_DECLARE_CONSTANT_NAME if defined.
2236 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
2237 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
2238 objects get at least one byte to prevent assembler problems.
2239 (ASM_DECLARE_CONSTANT_NAME): New.
2241 * Makefile.in (libbackend.o): Remove options_.h.
2242 (mostlyclean): Likewise.
2244 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
2245 insert a label at the end of an function under Mach-O.
2247 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
2249 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
2251 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
2253 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
2255 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
2257 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2259 * doc/passes.texi (Passes): Mention pretty-printing and
2262 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
2264 * doc/extend.texi (Function Attributes): GNU C++ does now allow
2265 unused parameter decls.
2266 (Attribute Syntax): GNU C++ does not allow label attributes to be
2269 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2271 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
2272 (objc_declare_class): Likewise.
2273 (error_with_ivar): Likewise.
2274 (start_class): Likewise.
2275 (warn_with_method): Likewise.
2277 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2279 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
2281 * calls.c (try_to_integrate): Don't use xxx_with_decl.
2282 (expand_call): Likewise.
2283 * dwarfout.c (output_reg_number): Likewise.
2284 * expr.c (expand_expr): Likewise.
2285 * function.c (assign_temp): Likewise.
2286 (uninitialized_vars_warning): Likewise.
2287 (setjmp_args_warning): Likewise.
2288 (expand_function_end): Likewise.
2289 * stmt.c (fixup_gotos): Likewise.
2290 (warn_about_unused_variables): Likewise.
2291 (expand_end_bindings): Likewise.
2292 * stor-layout.c (layout_decl): Likewise.
2293 (place_field): Likewise.
2294 * toplev.c (check_global_declarations): Likewise.
2295 (rest_of_handle_inlining): Likewise.
2296 (default_tree_printer): New function.
2297 (general_init): Initialize diagnostic machinery before routing
2298 signals to the ICE machinery. Set default tree printer.
2299 * toplev.h (pedwarn_with_decl): Remove declaration.
2300 (warning_with_decl): Likewise.
2301 (error_with_decl): Likewise.
2302 (pedwarn): Remove attribute for the time being.
2303 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
2304 * varasm.c (named_section): Likewise.
2305 (make_decl_rtl): Likewise.
2306 (assemble_variable): Likewise.
2307 (merge_weak): Likewise.
2308 (declare_weak): Likewise.
2310 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
2311 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
2312 (format_with_decl): Remove.
2313 (diagnostic_for_decl): Likewise.
2314 (pedwarn_with_decl): Likewise.
2315 (warning_with_decl): Likewise.
2316 (error_with_decl): Likewise.
2317 (diagnostic_initialize): Adjust.
2318 (diagnostic_count_diagnostic): Likewise.
2319 (announce_function): Likewise.
2320 (lhd_print_error_function): Likewise.
2321 (diagnostic_report_current_module): Likewise.
2322 (default_diagnostic_starter): Likewise.
2323 (diagnostic_report_diagnostic): Likewise.
2324 (default_diagnostic_finalizer): Likewise.
2325 (verbatim): Likewise.
2327 (warning): Likewise.
2328 * opts.c (common_handle_option): Likewise.
2329 * pretty-print.c: New file.
2330 * c-pretty-print.h (pp_base): Override.
2331 * c-pretty-print.c: Adjust use of macros throughout.
2332 (pp_buffer): New macro.
2333 (pp_newline): Likewise.
2334 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
2335 * Makefile.in (DIAGNOSTIC_H): New variable.
2336 (c-errors.o): Use it.
2337 (c-objc-common.o): Likewise.
2338 (c-common.o): Likewise.
2339 (c-opts.o): Likewise.
2340 (c-format.o): Likewise.
2341 (diagnostic.o): Likewise.
2343 (toplev.o): Likewise.
2344 (rtl-error.o): Likewise.
2345 (dwarf2out.o): Likewise.
2347 (pretty-print.o): New rule.
2349 2003-07-24 Roger Sayle <roger@eyesopen.com>
2351 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
2352 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
2353 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
2354 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
2355 (DEF_FRONT_END_LIB_BUILTIN): Delete.
2356 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
2357 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
2359 * builtins.c (build_string_literal): New function to construct
2360 a char* pointer to a string literal.
2361 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
2362 "rtx target" to be consistent with other expand_builtin_* functions.
2363 Change 3rd argument from "int unlocked" to "bool unlocked".
2364 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
2365 c-common.c to avoid front-end dependencies. Optimize printf("")
2366 as a no-op when the result isn't required. Handle embedded NULs
2368 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
2369 from c-common.c to avoid front-end dependencies. Likewise, optimize
2370 fprintf(fp,"") as a no-op when the result isn't required, evaluating
2371 fp for side-effects. Handle embedded NULs in format string.
2372 (expand_builtin_sprintf): Fix typo.
2373 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
2374 optimizing. Adjust calls of expand_builtin_fputs to match the API
2375 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
2376 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
2377 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
2379 * c-common.c (is_valid_printf_arglist): Delete.
2380 (c_expand_builtin): Delete.
2381 (c_expand_builtin_printf): Moved to builtins.c. Delete.
2382 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
2383 (c_expand_expr): No longer treat CALL_EXPRs specially.
2384 (CALLED_AS_BUILT_IN): Delete.
2386 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2388 PR optimization/11631
2389 * gcse.c (store_motion): Connect infinite loops to exit.
2391 2003-07-24 Jason Merrill <jason@redhat.com>
2393 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
2394 (boolean_true_node, boolean_false_node): Likewise.
2395 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
2396 * tree.c (build_common_tree_nodes): Init boolean_type_node.
2397 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
2398 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
2399 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
2400 (truthvalue_true_node): Renamed from boolean_true_node.
2401 (truthvalue_false_node): Renamed from boolean_false_node.
2402 * c-decl.c: Just set truthvalue_* to integer_*.
2403 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
2405 2003-07-24 Roger Sayle <roger@eyesopen.com>
2407 * c-decl.c (match_builtin_function_types): New subroutine of
2408 duplicate_decls to test whether a redeclaration of a builtin
2409 function is suitably close, i.e. the return type and all of
2410 the argument types have the same modes as the builtin expects.
2411 (duplicate_decls): Fuzzy type matching for builtin functions
2412 moved to match_builtin_function_types.
2414 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2416 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
2419 2003-07-24 Zack Weinberg <zack@codesourcery.com>
2421 * c-decl.c: Search-and-replace change 'binding level' to
2422 'scope' in commentary.
2423 (struct binding_level): Now struct c_scope.
2424 (current_binding_level): Now current_scope.
2425 (free_binding_level): Now scope_freelist.
2426 (current_function_level): Now current_function_scope.
2427 (global_binding_level): Now global_scope.
2428 (make_binding_level): Now make_scope.
2429 (pop_binding_level): Now pop_scope.
2431 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2433 * configure.in (libgcc_visibility): Add missing whitespace.
2435 2003-07-24 Richard Henderson <rth@redhat.com>
2437 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
2438 __gcc_personality_v0.
2440 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2442 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
2444 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
2446 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
2447 documentation missed from my 2003-07-09 patch.
2449 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
2451 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
2453 * configure: Rebuild.
2455 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
2458 * c-typeck.c (type_lists_compatible_p): Do not compare
2459 arguments if one of them is an error_mark_node
2461 2003-07-24 Alan Modra <amodra@bigpond.net.au>
2463 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
2464 if current_function_calls_eh_return.
2466 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2468 * doc/c-tree.texi (OFFSET_TYPE): Update description.
2470 2003-07-23 Bob Wilson <bob.wilson@acm.org>
2472 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
2473 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
2474 __umodsi3, __modsi3): Increase frame size to 32.
2476 2003-07-23 Geoffrey Keating <geoffk@apple.com>
2478 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
2481 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2483 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
2485 PR optimization/10679
2486 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
2488 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2490 PR target/11607 and PR target/11516
2491 * pa.md (extzv, extv, insv): Revert latter half of last patch.
2493 2003-07-22 Mark Mitchell <mark@codesourcery.com>
2495 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
2496 * varasam.c (output_constant): Likewise.
2498 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2500 * alias.c: Fix comment formatting.
2501 * c-common.c: Likewise.
2502 * c-decl.c: Likewise.
2503 * c-opts.c: Likewise.
2504 * combine.c: Likewise.
2505 * cpplib.c: Likewise.
2506 * diagnostic.c: Likewise.
2507 * dojump.c: Likewise.
2508 * final.c: Likewise.
2509 * fold-const.c: Likewise.
2512 * ggc-page.c: Likewise.
2515 * mips-tfile.c: Likewise.
2516 * recog.c: Likewise.
2517 * regclass.c: Likewise.
2518 * regmove.c: Likewise.
2522 2003-07-22 Per Bothner <pbothner@apple.com>
2524 * line-map.c (add_line_map): Handle invalid LEAVE request.
2525 Fixes PR preprocessor/11361.
2527 2003-07-22 Per Bothner <pbothner@apple.com>
2529 * diagnostic.c.(diagnostic_report_current_module): Update to match
2530 2003-06-05 changes to push_srcloc and pop_srcloc.
2532 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
2534 * doc/trouble.texi: Better document two-stage name lookup.
2536 2003-07-22 Eric Christopher <echristo@redhat.com>
2538 * config/s390.c (s390_valid_pointer_mode): New.
2539 (TARGET_VALID_POINTER_MODE): Use.
2540 (s390_emit_prologue): Add tpf profiling hooks.
2541 (s390_emit_epilogue): Ditto.
2542 * config/s390.h (MASK_TPF): New.
2544 (POINTERS_EXTEND_UNSIGNED): Define.
2545 * config/s390.md (ptr_extend): New pattern.
2547 2003-07-22 Zack Weinberg <zack@codesourcery.com>
2549 * hashtable.c (approx_sqrt): Make static.
2550 * hashtable.h: Don't prototype approx_sqrt.
2551 * line-map.c (init_line_maps): Rename linemap_init.
2552 (free_line_maps): Rename linemap_free.
2553 (add_line_map): Rename linemap_add.
2554 (lookup_line): Rename linemap_lookup.
2555 (print_containing_files): Rename linemap_print_containing_files.
2556 * linemap.h: Update to match.
2558 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
2559 linemap routines to use new names.
2561 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
2563 * c-common.c (handle_packed_attribute): Don't pack a struct via a
2564 typedef. Propagate packedness from a main variant.
2566 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
2568 * Makefile.in (install-common): Add dependency on installdirs.
2570 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
2572 * c-common.c (c_common_type_for_mode): Return integer types for
2575 2003-07-22 Geoffrey Keating <geoffk@apple.com>
2577 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
2578 (finish_decl): Call maybe_apply_pragma_weak here.
2579 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
2580 TREE_PUBLIC and TREE_STATIC are decided.
2581 (start_function): Move call to maybe_apply_pragma_weak. Check that
2582 DECL_ASSEMBLER_NAME isn't set too early.
2584 * cpplex.c (_cpp_process_line_notes): Mention option name in
2587 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2589 * combine.c (if_then_else_cond): Simplify the comparison of
2590 rtx against -1, 0, and 1.
2591 * loop.c (check_dbra_loop): Likewise.
2592 * optabs.c (emit_conditional_move): Likewise.
2593 (emit_conditional_add): Likewise.
2594 * config/i386/i386.md (*movsi_or): Likewise.
2595 (*movdi_or_rex6): Likewise.
2597 Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
2599 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
2601 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
2603 * cppfiles.c (open_file_pch): Don't put unused entries in the
2604 splay tree. Remove dead code.
2606 2003-07-21 Geoffrey Keating <geoffk@apple.com>
2608 * c-common.h (num_in_fnames): Declare.
2609 (c_static_assembler_name): Move from here...
2610 * c-tree.h (c_static_assembler_name): ... to here.
2611 * c-opts.c: Don't include langhooks-def.h.
2612 (c_static_assembler_name): Move to c-decl.c.
2613 (num_in_fnames): Make externally visible.
2614 * c-decl.c: Include langhooks-def.h.
2615 (c_static_assembler_name): Move from c-opts.c.
2616 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
2617 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
2619 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
2620 when it's not needed.
2622 2003-07-21 Jakub Jelinek <jakub@redhat.com>
2624 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
2625 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
2626 (rs6000_emit_prologue): Save FPRs inline if set.
2628 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
2630 * config/ia64/ia64.md (prefetch): Support predicate.
2632 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
2634 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
2635 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
2638 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2640 PR optimization/11536
2641 * unroll.c (loop_iterations): Do not replace a register holding
2642 the final value by its equivalent before the loop if it is not
2645 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
2647 * doc/extend.texi: Fixes to spelling, grammar, and diction.
2649 2003-07-21 Ben Elliston <bje@wasabisystems.com>
2651 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
2652 (V850 Options): Spelling fixes.
2654 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
2656 * doc/invoke.texi: Fixes to style, grammar and diction.
2658 2003-07-20 Roger Sayle <roger@eyesopen.com>
2660 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
2661 * system.h (SMALL_STACK): Poison obsolete target macro.
2662 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
2664 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
2666 * configure.in: Cache the results of testing for cmp's capabilities.
2667 * configure: Regenerate.
2669 2003-07-20 Mark Mitchell <mark@codesourcery.com>
2672 * dwarf2out.c (gen_enumeration_type_die): Remember that
2673 enumerators can be unsigned.
2675 2003-07-19 Zack Weinberg <zack@codesourcery.com>
2677 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
2678 (push_label_level, pop_label_level): Kill.
2679 (struct binding_level): Rename level_chain to outer.
2680 Add outer_function field. Change parm_flag, function_body,
2681 keep, keep_if_subblocks to 1-bit bitfields of type bool.
2682 (current_function_level): New variable.
2683 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
2684 (keep_next_level, declare_parm_level, warn_if_shadowing):
2686 (struct language_function): Kill named_labels, shadowed_labels fields.
2687 (c_init_decl_processing, start_function, c_push__function_context)
2688 (c_pop_function_context): No need to muck with named_labels nor
2691 (make_binding_level): No need to clear the structure here.
2692 (pop_binding_level): Always operate on current_binding_level.
2693 Update current_function_level if necessary.
2694 (pushlevel): Don't clear named_labels. Update current_function_level
2695 if necessary. Use "true" and "false" where appropriate.
2696 (poplevel): Diagnose labels defined but not used, or vice
2697 versa, and clear out label-meanings leaving scope, while
2698 walking down the decls list, for all binding levels.
2699 Handle LABEL_DECLs appearing in the shadowed list.
2700 pop_binding_level takes no arguments.
2701 (pushdecl_function_level): Use current_function_level.
2703 (make_label, bind_label): New static functions.
2704 (declare_label): New exported function.
2705 (lookup_label, define_label): Rewritten for new data structure.
2706 (shadow_label): Kill.
2708 * c-tree.h: Prototype declare_label; don't prototype
2709 push_label_level, pop_label_level, nor shadow_label.
2710 * c-parse.in: Remove all calls to push_label_level and
2711 pop_label_level. Use declare_label for __label__ decls.
2713 * doc/extend.texi: Clarify that __label__ can be used to
2714 declare labels with local scope in any nested block, not
2715 just statement expressions. Cross-reference nested functions
2716 section from local labels section.
2718 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2720 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
2722 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
2724 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
2726 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2728 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
2729 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
2731 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
2733 * config/s390/s390.c (legitimize_pic_address): Access local symbols
2734 relative to the GOT instead of relative to the literal pool base.
2735 (s390_output_symbolic_const): Handle new GOT-relative accesses.
2736 * config/s390/s390.md ("call"): Access local functions and PLT stubs
2737 relative to the GOT instead of relative to the literal pool base.
2738 ("call_value"): Likewise.
2739 ("call_value_tls"): Likewise.
2741 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
2742 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
2743 (s390_chunkify_finish): Likewise.
2744 (s390_chunkify_cancel): Likewise.
2745 (s390_reorg): Adapt caller.
2746 (find_base_register_in_addr,
2747 find_base_register_ref, replace_base_register_ref): Delete.
2748 (find_ltrel_base, replace_ltrel_base): New functions.
2749 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
2750 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
2751 base vs. index register usage.
2752 (struct constant_pool): Remove 'anchor'.
2753 (s390_add_anchor): Delete.
2754 (s390_dump_pool): Remove anchor handling.
2755 * config/s390/s390.md ("reload_anchor"): Remove.
2757 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
2758 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
2759 (s390_emit_prologue): Use it.
2760 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
2761 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
2762 hard-code register 14.
2763 * config/s390/s390-protos.h (s390_load_got): Declare.
2765 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
2766 Support TImode constants.
2767 * config/s390/s390.md ("consttable_ti"): New.
2768 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
2770 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
2771 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
2772 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
2773 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
2774 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
2775 New symbolic constants.
2776 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
2777 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
2778 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
2779 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
2780 symbolic UNSPEC values.
2781 * config/s390/s390.c (larl_operand, s390_short_displacement,
2782 bras_sym_operand, s390_cannot_force_const_mem,
2783 s390_delegitimize_address, s390_decompose_address,
2784 legitimize_pic_address, s390_output_symbolic_const,
2785 s390_function_profiler): Use symbolic UNSPEC values.
2787 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2789 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
2790 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
2791 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
2792 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
2793 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
2794 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
2795 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
2796 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
2797 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
2798 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
2799 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
2800 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
2801 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
2802 postreload.c prefix.c print-tree.c protoize.c ra-build.c
2803 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
2804 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
2805 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
2806 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
2807 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
2808 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
2811 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2813 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
2814 * toplev.h (warning): Remove attribute.
2816 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2818 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
2819 (pop_label_level): Likewise.
2820 (duplicate_decls): Likewise.
2821 (implicitly_declare): Likewise.
2822 (shadow_label): Likewise.
2823 (start_decl): Likewise.
2824 (finish_decl): Likewise.
2825 (grokdeclarator): Likewise.
2826 (get_parm_info): Likewise.
2827 (detect_field_duplicates): Likewise.
2828 (finish_struct): Likewise.
2829 (start_function): Likewise.
2830 (store_parm_decls): Likewise.
2831 (finish_function): Likewise.
2832 (c_expand_body_1): Likewise.
2833 (check_for_loop_decls): Likewise.
2834 (merge_translation_unit_decls): Likewise.
2836 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
2838 * common.opt: Document --param.
2839 * opts.c (columns, undocumented_msg): New.
2840 (print_help): Get number of columns from environment. Print
2841 --param help. Tweak newline handling.
2842 (print_param_help): New.
2843 (print_filtered_help): Better handling of duplicates. Complain
2844 about undocumented switches.
2845 (print_switch): New.
2846 (wrap_help): Improve wrapping, use COLUMNS.
2847 * opts.sh: Ignore comments in records.
2848 * params.def: Fix typos and remove trailing periods.
2849 * toplev.c (display_help): Don't dump --param help.
2850 * doc/sourcebuild.texi: Update.
2852 2003-07-18 Richard Henderson <rth@redhat.com>
2855 * optabs.c (prepare_operand): Fail gracefully instead of abort
2856 if the predicate doesn't satisfy.
2857 (gen_cond_trap): Allow prepare_operand to fail.
2859 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2861 * c-common.c: Don't undefine GCC_DIAG_STYLE.
2862 (fname_decl): Don't use xxx_with_decl.
2863 (c_add_case_label): Likewise.
2864 (handle_section_attribute): Likewise.
2865 (handle_alias_attribute): Likewise.
2866 (handle_no_instrument_function_attribute): Likewise.
2867 (handle_no_limit_stack_attribute): Likewise.
2868 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
2869 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
2871 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2873 * Makefile.in (ifcvt.o): Add cfgloop.h.
2874 * basic-block.h (EDGE_LOOP_EXIT): New flag.
2875 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
2876 * ifcvt.c: Include cfgloop.h.
2877 (mark_loop_exit_edges): New static function.
2878 (if_convert): Call it.
2879 (find_if_header): Ignore branches out of loops.
2881 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
2883 * combine.c (simplify_comparison): Don't share rtx when converting
2884 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
2886 2003-07-18 David Edelsohn <edelsohn@gnu.org>
2888 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
2889 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2890 (MUST_PASS_IN_STACK): Define.
2891 (BLOCK_REG_PADDING): Define.
2893 2003-07-18 Richard Henderson <rth@redhat.com>
2895 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
2896 to skip the addr_vec.
2898 Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
2900 * combine.c (combinable_i3pat): Don't forbid occurrences of
2901 i2dest or i1dest in inner_dest if inner_dest is a mem.
2903 Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
2905 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
2907 2003-07-17 Jakub Jelinek <jakub@redhat.com>
2910 * loop.c (basic_induction_var): Check if convert_modes emitted any
2911 instructions. Remove them and return 0 if so.
2913 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
2915 PR optimization/11083
2916 * toplev.c (rest_of_handle_addresof): Rename into
2917 rest_of_handle_addressof. Delete unreachable blocks
2918 if dead edges were purged after the addressof pass.
2920 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
2922 * Makefile.in, configure, configure.in: Remove handling of
2923 lang-options.h and options_.h.
2924 * toplev.c (struct lang_opt, documented_lang_options): Remove.
2925 (display_help): Don't use documented_lang_options.
2927 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2929 * c-decl.c (pushdecl_function_level): Make static, return nothing.
2930 (kept_level_p): Fold into poplevel.
2931 (undeclared_variable): Moved here from c-typeck.c. Export.
2932 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
2933 (undeclared_variable): Prototype here. Don't prototype
2934 kept_level_p nor pushdecl_function_level.
2935 * c-parse.in: Change first argument to poplevel from
2936 "kept_level_p()" to "KEEP_MAYBE".
2937 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
2939 2003-07-17 Roger Sayle <roger@eyesopen.com>
2941 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
2942 commutative operands instead of modifying the RTL in-place.
2944 2003-07-17 Mark Mitchell <mark@codesourcery.com>
2946 PR optimization/11557
2947 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
2948 unless we know which function is being called.
2950 2003-07-17 Roger Sayle <roger@eyesopen.com>
2952 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
2953 whether to reorder the operands of a commutative binary operator.
2955 2003-07-17 Roger Sayle <roger@eyesopen.com>
2957 * fold-const.c (const_binop): Avoid performing the FP operation at
2958 compile-time, if either operand is NaN and we honor signaling NaNs,
2959 or if we're dividing by zero and either flag_trapping_math is set
2960 or the desired mode doesn't support infinities.
2961 (fold_initializer): New function to fold an expression ignoring any
2962 potential run-time exceptions or traps.
2963 * tree.h (fold_initializer): Prototype here.
2964 * c-typeck.c (build_binary_op): Move to the end of the file so
2965 that intializer_stack is in scope. If constructing an initializer,
2966 i.e. when initializer_stack is not NULL, use fold_initializer to
2968 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
2969 performing FP operations at compile-time, if they would raise an
2970 exception at run-time.
2972 2003-07-17 Geoffrey Keating <geoffk@apple.com>
2975 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
2976 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
2977 (GTFILES): Add langhooks.c.
2978 (gt-langhooks.h): New.
2979 * c-common.h (c_static_assembler_name): Prototype.
2980 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2981 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2982 * c-opts.c: Include langhooks-def.h.
2983 (c_static_assembler_name): New.
2984 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
2986 (lhd_set_decl_assembler_name): Give static objects with context
2988 * varasm.c (var_labelno): Delete.
2989 (make_decl_rtl): Don't change the assembler name once it's set.
2991 * c-opts.c (this_input_filename): New.
2992 (finish_options): Take new parameter, name of file being compiled.
2993 Update callers. Set this_input_filename.
2994 (push_command_line_include): Use this_input_filename not
2995 main_input_filename.
2997 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2999 * Makefile.in: Depend .pot generation on options.c.
3000 * po/exgettext: Add an extra_files variable containing additional
3003 2003-07-17 Zack Weinberg <zack@codesourcery.com>
3005 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
3006 c_write_global_declarations.
3008 * c-decl.c: Fix typos in several comments. Remove all
3009 #if 0 blocks; reindent as needed. Remove unused argument
3010 to declare_parm_level; all callers changed.
3011 * c-parse.in: Update calls to declare_parm_level. Avoid
3012 issuing a double warning in some circumstances.
3013 * c-typeck.c: Update calls to declare_parm_level.
3014 * c-tree.h: Update prototype of declare_parm_level.
3016 * c-pragma.c (apply_pragma_weak): Don't complain about a
3017 redundant #pragma weak.
3019 * objc/objc-act.c (forward_declare_categories,
3020 build_selector_reference_decl, build_class_reference_decl,
3021 build_objc_string_decl, synth_forward_declarations,
3022 build_protocol_reference): Set TREE_PUBLIC on synthetic
3023 forward decl to 0, consistent with eventual definition.
3024 Correct comments to match.
3026 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
3027 in regexp that don't form a range expression.
3028 * fixinc/fixincl.def: Regenerate.
3030 2003-07-17 Richard Henderson <rth@redhat.com>
3033 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
3034 even with !TARGET_CONST_GP.
3035 (ia64_function_ok_for_sibcall): Reject non-local functions.
3037 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
3039 * c-common.c (c_estimate_num_insns_1): Don't handle
3041 * expr.c (safe_from_p): Likewise.
3042 * gengtype.c (adjust_field_tree_exp): Likewise.
3043 * stmt.c (warn_if_unused_value): Likewise
3044 * tree.c (first_rtl_op): Likewise.
3045 * tree.def: Don't define METHOD_CALL_EXPR.
3046 * java/lang.c (java_estimate_num_insns_1): Don't handle
3049 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3052 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
3053 and its restrictions for the SPARC64 port.
3054 Move the entry of "-mimpure-text" before that of "-mv8".
3056 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3057 Phil Edwards <phil@jaj.com>
3059 * doc/install.texi (*-*-solaris2*): Document the step-by-step
3060 procedure to bootstrap and install.
3061 Document the preference for the legacy Sun tools in /usr/bin
3062 over the POSIX tools in /usr/xpg4/bin for the build process.
3064 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
3066 * c.opt: Document Uncodumented; use it. Document ObjC options.
3067 * opts.c (print_filtered_help): Skip undocumented switches.
3068 * opts.h (CL_UNDOCUMENTED): New.
3069 * opts.sh: Handle Undocumented.
3070 * toplev.c (documented_lang_options): Prevent its becoming empty.
3072 * lang-options.h: Remove.
3074 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
3076 * loop.c (check_ext_dependent_givs): Pass const struct loop *
3077 instead of struct loop_info * as argument. Accept BIVs with
3078 increment +/- 1 provided there is a friendly exit test against
3079 a loop-invariant value.
3080 (strength_reduce): Adapt call to check_ext_dependent_givs.
3082 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
3083 Con Bradley <con.bradley@superh.com>
3085 * sh-protos.h (sh_get_pr_initial_val): Declare.
3086 * sh.c (regno_reg_class): Make its elements type enum reg_class.
3087 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
3088 and live_regs_mask arguments. Changed all callers.
3089 (save_schedule_s): New structure.
3090 (save_schedule): New typedef.
3091 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
3092 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
3093 In interrupts handlers, also save registers that are usually
3094 partially saved, and make sure there is at least one general purpose
3095 register saved if a target register needs saving.
3096 Add casts in comparisons to avoid warnings.
3097 (sh_media_register_for_return): return -1 for interrupt handlers.
3098 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
3099 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
3100 registers used are available.
3101 Set RTX_FRAME_RELATED_P where appropriate.
3102 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
3103 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
3104 (initial_elimination_offset): Likewise.
3105 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
3106 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
3107 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
3108 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
3109 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
3110 and for target registers.
3111 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
3112 (regno_reg_class): Make its elements type enum reg_class.
3113 (CONSTRAINT_LEN): Don't use isdigit.
3114 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
3115 (FUNCTION_ARG): Add parentheses to avoid warnings.
3116 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
3117 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
3118 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
3119 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
3120 * sh.md (xordi3+1): Remove unused variable regno.
3121 (return_media): Check that tr0 is available before using it.
3123 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
3125 * c.opt: Document more options.
3127 2003-07-16 Roger Sayle <roger@eyesopen.com>
3129 * combine.c (subst): Also handle (subreg (const_double ...)) case
3130 if created by a substitution, by using the original inner mode.
3132 2003-07-16 Roger Sayle <roger@eyesopen.com>
3134 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
3135 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
3136 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
3138 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
3140 * doc/install.texi (--without-headers): New.
3142 Partial Fix PR/10129
3143 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
3144 (machopic_output_function_base_name): New; print the true pic label.
3145 (machopic_classify_ident): Pic Base is always a defined data.
3146 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
3147 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
3149 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
3150 if they are not floating point registers.
3153 * ggc.h: Add header guards.
3154 * c-decl.c (finish_struct): Sort fields if
3155 number greater than 15 and there are no
3156 anonymous structs/unions.
3157 * c-common.h: Include ggc.h.
3158 (sorted_fields_type): New struct.
3159 (field_decl_cmp): New prototype.
3160 (resort_sorted_fields): New prototype.
3161 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
3162 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
3163 as s, removing other fields.
3164 * c-typeck.c (lookup_field): Use s in lang_type.
3165 These were mostly moved from cp/class.c:
3166 * c-common.c (field_decl_cmp): New static function.
3167 (field_decl_cmp): New function.
3168 (resort_sorted_fields): New function.
3170 2003-07-16 Geoffrey Keating <geoffk@apple.com>
3172 * config/darwin.c (machopic_select_section): Use decl_readonly_section
3173 to do most of the work.
3175 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
3177 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
3178 * config/mmix/mmix.c: Convert functions to ISO C90.
3179 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
3181 (mmix_get_hard_reg_initial_val): Tweak section head comment.
3183 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
3185 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
3187 2003-07-16 Jakub Jelinek <jakub@redhat.com>
3189 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
3190 (uw_update_context_1): Use it.
3191 * config/rs6000/rs6000.c (insn_after_throw): Remove.
3192 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
3193 in parent frame if _Unwind_* called directly instead of through
3195 (rs6000_emit_eh_toc_restore): Remove.
3196 (rs6000_emit_prologue): Update stack pointer before doing any saving
3197 if current_function_calls_eh_return. Generate unwind info for $r2.
3198 (rs6000_emit_epilogue): Restore stack pointer after doing all
3199 restoring if current_function_calls_eh_return. Restore $r2.
3200 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
3201 * config/rs6000/rs6000.md (eh_return): Remove call to
3202 rs6000_emit_eh_toc_restore.
3203 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
3204 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
3206 2003-07-15 Jakub Jelinek <jakub@redhat.com>
3208 * expr.c (emit_block_move): Don't move anything if size is const 0.
3209 (clear_storage): Test against const0_rtx instead of comparing INTVAL
3212 2003-07-15 David S. Miller <davem@redhat.com>
3214 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
3215 emit nop if the last real insn is CALL_INSN.
3217 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
3219 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
3221 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
3223 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
3225 * config/i386/winnt.c (associated_type): Artificial methods are not
3226 affected by the import/export status of their class unless they are
3228 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
3230 * config/i386/winnt.c: Fix GCC copyright comment.
3232 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
3235 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
3236 not recursing on hard error.
3237 (diagnostic_for_decl): Likewise.
3238 * diagnostic.def: Rearrange.
3240 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
3242 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
3243 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
3245 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
3246 Richard Henderson <rth@redhat.com>
3248 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
3249 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
3250 (_Unwind_SetGR): Likewise.
3251 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
3252 (Unwind_SpTmp): New typedef.
3253 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
3254 (uw_update_context): Use _Unwind_GetPtr.
3255 (init_dwarf_reg_size_table): Move above uw_init_context_1.
3256 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
3257 Use _Unwind_SetSpColumn.
3258 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
3261 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
3263 * c.opt: Document more options.
3264 * toplev.c (documented_lang_options): Remove all local help strings.
3266 2003-07-15 Mark Mitchell <mark@codesourcery.com>
3269 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
3272 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
3275 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
3276 swap comparison operands if doing so would generate an
3277 unrecognizable insn.
3279 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
3281 PR optimization/11320
3282 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
3283 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
3284 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
3285 current_sched_info->compute_jump_reg_dependencies. Record which
3286 registers are used and which registers are set by the jump.
3287 Clear deps->reg_conditional_sets after a barrier.
3288 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
3289 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
3290 (init_deps): Initialize reg_conditional_sets.
3291 (free_deps): Clear reg_conditional_sets.
3292 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
3293 Mark registers live on entry of the fallthrough block and conditionally
3294 set as set by the jump. Mark registers live on entry of non-fallthrough
3295 blocks as used by the jump.
3296 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
3297 Mark new parameters as unused.
3299 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3301 * doc/invoke.texi: Resync MIPS -march documentation.
3303 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3305 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
3306 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
3307 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
3308 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
3309 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
3310 (mips_issue_rate): Handle PROCESSOR_R9000.
3311 (mips_use_dfa_pipeline_interface): Likewise.
3312 * config/mips/9000.md: New file.
3313 * config/mips/mips.md: Include it.
3314 (define_attr cpu): Add r9000.
3315 (mulsi3_mult3): Use "mul" for rm9000 code.
3317 2003-07-15 Stan Cox <scox@redhat.com>
3319 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
3320 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
3321 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
3322 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
3323 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
3324 (mips_issue_rate): Handle PROCESSOR_R7000.
3325 (mips_use_dfa_pipeline_interface): Likewise.
3326 * config/mips/7000.md: New file.
3327 * config/mips/mips.md: Include it.
3328 (define_attr cpu): Add r7000.
3329 (mulsi3_mult3): Use "mul" for rm7000 code.
3331 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3333 * config/mips/mips.md (define_attr type): Add condmove. Use it for
3334 the conditional move patterns.
3335 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
3336 Check for condmove type.
3337 (ir_vr54_arith): Add move type.
3338 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
3339 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
3341 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
3343 * c-opts.c (print_help): Remove.
3344 (c_common_handle_option): Don't handle --help.
3345 * c.opt: Document some options.
3347 * opts.c (print_filtered_help): New.
3348 (print_help): Use it.
3350 2003-07-14 Geoffrey Keating <geoffk@apple.com>
3352 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
3353 * tree.c: (build_common_tree_nodes_2): Likewise.
3354 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
3355 (V4DF_type_node): New.
3357 * c-opts.c (push_command_line_include): Don't free deferred_opts,
3359 (finish_options): Reset init_cursor.
3361 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
3363 * expr.c (expand_assignment): Remove an unused argument
3365 * expr.h: Update the prototype.
3366 * function.c: Update the callers.
3369 2003-07-14 Mark Mitchell <mark@codesourcery.com>
3372 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
3375 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3377 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
3378 with __cplusplus, not "we must use the C++ compiler's type"
3379 * fixinc/inclhack.def (void_null): Note that Interix needs this.
3380 * fixinc/fixincl.x: Regenerate.
3382 2003-07-14 Geoffrey Keating <geoffk@apple.com>
3384 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
3385 and unseen_objects from the global data before calling
3386 __deregister_frame_info_bases.
3387 (examine_objects): Insert objects into the seen_objects list,
3389 (_Unwind_Find_FDE): Always unlock the global object lists, even if
3390 we couldn't allocate a data structure to put in it.
3392 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
3393 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
3394 (SET_TYPE_PROTOCOL_LIST): New.
3395 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
3396 (get_object_reference): Likewise.
3398 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
3400 * cfglayout.c (locator_file): Break out from ....
3401 (insn_file): ... here.
3402 (locator_line): Break out from ....
3403 (insn_line): ... here.
3404 * rtl.h (locator_file, locator_line): Declare.
3405 (final_start_function): Set proper line/file info.
3407 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
3409 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
3410 handled by pp_c_cast_expression.
3412 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3414 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
3415 allocate 32768 bytes of stack. Use addition rather than subtraction
3416 when a single insn is enough.
3417 * config/mips/mips.md: Remove insns and splitters for subtracting
3419 (subsi3): Only accept register operands.
3420 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
3421 (subdi3_internal_3, subsi3_internal_2): Likewise.
3422 (casesi): Use expand_binop to subtract the lower bound.
3424 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3426 * config/mips/mips.c (mips_in_small_data_p): Don't handle
3427 TARGET_MIPS16 specially.
3429 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3431 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
3432 mips_output_aligned_bss.
3433 * config/mips/linux.h: Likewise.
3434 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
3435 * config/mips/mips.c (mips_output_aligned_bss): New function.
3437 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
3438 * config/mips/elf64.h: Likewise.
3440 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
3441 mips_declare_object_name.
3442 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
3443 * config/mips/elf64.h: As for elf.h.
3444 * config/mips/iris6.h: Likewise.
3445 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
3446 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
3447 do...while (0) block.
3448 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
3449 (mips_finish_declare_object): Declare.
3450 * config/mips/mips.c (mips_declare_object_name): New function.
3451 (mips_finish_declare_object): New function.
3453 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
3454 * config/mips/linux.h: Likewise.
3456 * config/mips/mips.c (inside_function): Delete.
3457 (file_in_function_warning, ignore_line_number): Delete.
3458 (mips_output_filename): Don't warn about changing filenames within
3460 (mips_output_lineno): Update accordingly.
3461 (mips_output_function_prologue): Don't reset the deleted variables.
3462 * config/mips/mips.h (inside_function): Delete.
3463 (file_in_function_warning, ignore_line_number): Delete.
3465 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
3466 * config/mips/elf64.h: Likewise.
3467 * config/mips/openbsd.h: Likewise.
3468 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
3469 * config/mips/linux.h: Likewise.
3470 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
3471 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
3473 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
3474 to the list of include files when using gas.
3475 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
3476 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
3477 * config/mips/elf64.h: Likewise.
3478 * config/mips/iris5.h: Likewise.
3479 * config/mips/linux.h: Likewise.
3480 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
3481 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
3482 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
3483 * config/mips/sdb.h: ...this new file.
3485 2003-07-14 Douglas Rupp <rupp@gnat.com>
3487 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
3488 argument to getcwd; use fixed buffer instead.
3490 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3492 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
3493 * fixinc/fixinc.wrap: Delete.
3495 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3497 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
3500 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3502 * ggc-page.c (struct globals): Add new fields to keep track of the
3503 total allocated memory and overhead.
3504 (ggc_print_statistics): Print them.
3505 (ggc_alloc): Keep track of the total allocated memory and the
3508 * tree.c (dump_tree_statistics): Increase spacing.
3509 (enum tree_node_kind): Move to ...
3510 * tree.h (enum tree_node_kind): ... here.
3511 (tree_node_counts, tree_node_sizes): Declare.
3513 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
3515 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
3517 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3519 PR optimization/11440
3520 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
3523 2003-07-14 Alan Modra <amodra@bigpond.net.au>
3525 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
3526 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
3527 (emit_group_load, emit_group_store): Adjust declarations.
3528 Remove most occurrences of #ifdef TREE_CODE.
3529 * expr.c (emit_group_load): Add "type" param, and use
3530 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
3531 aligned accesses if !SLOW_UNALIGNED_ACCESS.
3532 (emit_group_store): Likewise.
3533 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
3534 emit_group_load and emit_group_store calls.
3535 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
3536 BLOCK_REG_PADDING to determine whether we need endian_correction.
3537 (load_register_parameters): Localize vars. Handle shifting of
3538 small values to the correct end of regs. Adjust emit_group_load
3540 (expand_call, emit_library_call_value_1): Adjust emit_group_load
3541 and emit_group_store calls.
3542 * function.c (assign_parms): Set mem alignment for stack slots.
3543 Adjust emit_group_store call. Store values at the "wrong" end
3544 of regs to the stack. Use BLOCK_REG_PADDING.
3545 (locate_and_pad_parm): Save where_pad.
3546 (expand_function_end): Adjust emit_group_load call.
3547 * stmt.c (expand_value_return): Adjust emit_group_load call.
3548 * Makefile.in (calls.o): Depend on $(OPTABS_H).
3549 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
3550 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
3551 (MUST_PASS_IN_STACK): Define.
3552 (BLOCK_REG_PADDING): Define.
3553 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
3554 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
3555 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
3556 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
3557 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
3559 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
3561 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
3563 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3565 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
3566 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
3568 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3571 * toplev.c: Don't cut off option names.
3573 2003-07-13 Andreas Jaeger <aj@suse.de>
3575 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
3576 to integer of different size.
3578 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
3580 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
3581 to (eq (and X 1) 0).
3583 2003-07-13 Andreas Jaeger <aj@suse.de>
3585 * config.gcc: Add pmmintrin.h for x86_64-*-*.
3587 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3589 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
3590 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
3591 list. Move these all together down by cpplib.
3593 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
3594 definition of CPPCHAR_SIGNED_T.
3596 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
3597 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
3598 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
3600 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
3601 * cppinit.c (cpp_create_reader): Likewise.
3603 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
3604 * cpptrad.c: Likewise. All callers changed.
3605 * cpplib.c: All callers changed.
3606 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
3607 * hashtable.h: Define GTY(x) to nothing here too.
3609 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3611 * stor-layout.c (compute_record_mode): Remove very obsolete test
3612 that forces BLKmode for records with fields crossing word boundary.
3614 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3616 * Makefile.in: Remove orphan reference to acconfig.h.
3618 2003-07-13 Andreas Jaeger <aj@suse.de>
3620 * cgraphunit.c: Convert prototypes to ISO C90.
3622 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3624 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
3626 * fixinc/fixincl.x: Rebuild.
3628 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3630 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
3631 i?86-*-*. Use correct name of cache variable.
3632 * configure: Regenerate.
3634 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3636 * config/alpha/alpha.c: Fix comment typos.
3637 * config/alpha/alpha.md: Likewise.
3638 * config/arm/arm.c: Likewise.
3639 * config/arm/arm.md: Likewise.
3640 * config/arm/lib1funcs.asm: Likewise.
3641 * config/avr/avr.md: Likewise.
3642 * config/arm/README-interworking: Fix typos.
3644 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3646 * c-format.c: Fix comment formatting.
3647 * c-typeck.c: Likewise.
3648 * coverage.c: Likewise.
3649 * cppcharset.c: Likewise.
3650 * cpplib.c: Likewise.
3651 * dbxout.c: Likewise.
3652 * gcov-io.h: Likewise.
3653 * toplev.c: Likewise.
3655 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3657 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
3660 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3662 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
3663 uses three-argument AC_DEFINE so no acconfig.h entries are
3665 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
3666 which contains the GAS version number as a scaled integer.
3667 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
3668 ability to check for ELF assembler.
3669 (gcc_GAS_CHECK_FEATURE): New macro.
3670 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
3671 assembler feature checks using gcc_GAS_CHECK_FEATURE.
3672 Use three-argument AC_DEFINE everywhere.
3673 * acconfig.h: Deleted.
3674 * config.in, configure: Regenerate.
3676 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3678 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
3680 * fixinc/fixincl.x: Regenerate.
3682 * fixinc/inclhack.def (gnu_types): Improve comment.
3684 2003-07-12 Andreas Jaeger <aj@suse.de>
3686 * fp-test.c (main): Use ISO C90 prototype.
3688 * version.c: Remove unneded include of ansidecl.h.
3690 * cgraph.h: Convert prototypes to ISO C90.
3691 * cgraph.c: Likewise.
3692 * fix-header.c: Likewise.
3694 * protoize.c: Likewise.
3696 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
3698 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
3701 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
3702 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3704 * cgraph.c (cgraph_max_uid): New global variable.
3705 (cgraph_node): Set uid field.
3706 (create_edge): Keep inline flags consistent.
3707 (dump_cgraph): Dump more info.
3708 * cgraph.h (struct cgraph_local_info): Remove inline_many and
3709 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
3710 (struct cgraph_global_info): Add insns, calls, cloned_times,
3712 (struct cgraph_node): Add uid.
3713 (struct cgraph_edge): Add inline_call.
3714 (cgraph_max_uid, cgraph_inline_p): Declare.
3715 * cgraph.c: Include params.h and fibheap.h
3716 (cgraph_mark_functions_to_inline_once): Kill.
3717 (INSNS_PER_CALL): New constant.
3718 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
3720 (cgraph_finalize_function): Do not analyze inlining.
3721 (cgraph_finalize_compilation_unit): Set inlining attributes.
3722 (cgraph_mark_functions_to_output): More consistency checks.
3723 (cgraph_optimize_function): Set current_function_decl to NULL.
3724 (cgraph_expand_function): Use new inline flags.
3725 (cgraph_postorder): Expand from cgraph_expand_functions.
3726 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
3727 (cgraph_inlined_into, cgraph_inlined_callees,
3728 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
3729 cgraph_mark_inline, cgraph_check_inline_limits,
3730 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
3731 cgraph_decide_inlining, cgraph_inline_p): New functions.
3732 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
3733 PARAM_INLINE_UNIT_GROWTH): New parameters.
3734 * tree-inline.c (struct inline_data): New field current_decl.
3735 (expand_call_inline): Avoid forward declarations; use
3736 inlinable_function_p.
3737 (optimize_inline_calls): Set id.current_decl.
3739 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
3741 * configure.in: Remove wrongly added definition of
3743 * configure: Regenerate.
3745 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
3747 * rtl.def (NOTE): Do not use padding.
3749 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
3751 * doc/install.tex: Update required binutils for i?86-*-linux*
3753 2003-07-11 Richard Henderson <rth@redhat.com>
3755 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
3757 2003-07-11 Mark Mitchell <mark@codesourcery.com>
3759 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
3760 TRANSLATION_UNIT_DECL as top_level.
3762 2003-07-11 Jakub Jelinek <jakub@redhat.com>
3764 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
3765 then fall back to cmpstrM.
3766 * builtins.c (expand_builtin_memcmp): Likewise.
3767 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
3768 (s390_expand_cmpmem): ... this.
3769 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
3770 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
3771 from cmpstr* patterns. Rename call to s390_expand_cmpstr
3772 to s390_expand_cmpmem.
3773 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
3774 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
3776 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
3778 * doc/md.texi (cmpstrM): Describe as String compare insn, not
3782 2003-07-11 Loren James Rittle <ljrittle@acm.org>
3784 * config/i386/freebsd.h (SET_ASM_OP): Remove.
3785 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
3786 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
3787 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
3789 2003-07-11 Richard Henderson <rth@redhat.com>
3791 * function.c (assign_parms): Don't recombine complex args if
3792 fnargs is unchanged from orig_fnargs.
3793 (split_complex_args): Return args without complex before copying.
3794 Re-layout the modified parameters.
3796 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
3798 * regclass.c (choose_hard_reg_mode): Add third argument.
3799 Changed all callers.
3800 * rtl.h (choose_hard_reg_mode): Update declaration.
3801 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
3802 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
3804 2003-07-11 Geoffrey Keating <geoffk@apple.com>
3806 * c-decl.c (finish_decl): Handle 'used' here...
3807 * cgraphunit.c (cgraph_finalize_function): ... and here ...
3808 * c-common.c: (handle_used_attribute): ... not here.
3810 * configure.in (onstep): Support --enable-intermodule.
3811 * Makefile.in (OBJS-common): New.
3813 (OBJS-archive): New.
3814 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
3815 (OBJS-onestep): New.
3816 (libbackend.a): Support @onestep@.
3817 (libbackend.o): New.
3818 * configure: Regenerate.
3820 * c-common.h (c_reset_state): New prototype.
3821 (c_parse_file): New prototype.
3822 (finish_file): Move prototype from c-tree.h.
3823 * c-decl.c: Include <hashtab.h>.
3824 (builtin_decls): New.
3825 (current_file_decl): New.
3826 (duplicate_decls): Add extra parameter. Change all callers. Don't
3827 output duplicate common symbols.
3828 (link_hash_hash): New.
3829 (link_hash_eq): New.
3830 (poplevel): Handle popping of the top level.
3831 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
3832 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
3833 (pushdecl_top_level): Likewise.
3834 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
3835 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
3836 (finish_decl): Handle TRANSLATION_UNIT_DECL.
3837 (merge_translation_unit_decls): New.
3838 (c_write_global_declarations): New.
3839 (c_reset_state): New.
3840 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
3841 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
3842 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
3843 TRANSLATION_UNIT_DECL.
3844 (c_objc_common_finish_file): Call merge_translation_unit_decls.
3845 * c-opts.c (in_fnames): Rename from in_fname.
3846 (c_common_decode_option): Handle multiple input filenames.
3847 (c_common_post_options): Likewise.
3848 (c_common_parse_file): Likewise; also, call c_parse_file rather than
3850 * c-parse.in: Move cleanup code to c_parse_file.
3851 (free_parser_stacks): Move contents to c_parse_file.
3852 (c_parse_file): New.
3853 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
3855 (C_DECL_FILE_SCOPE): New.
3856 (finish_file): Move prototype to c-common.h.
3857 (merge_translation_unit_decls): New prototype.
3858 (comptypes): Add extra parameter to prototype.
3859 (c_write_global_declarations): New prototype.
3860 * c-typeck.c (tagged_types_tu_compatible_p): New.
3861 (function_types_compatible_p): Add extra parameter, change all callers.
3862 (type_lists_compatible_p): Likewise.
3863 (comptypes): Likewise.
3864 (struct tagged_tu_seen): New.
3865 (tagged_tu_seen_base): New.
3866 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
3867 (c_mark_addressable): Remove #if 0 code.
3868 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
3869 comment explaining why it shouldn't have to.
3870 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
3872 * cppinit.c (cpp_read_next_file): New.
3873 (cpp_read_main_file): Use it.
3874 * cpplib.c (undefine_macros): New.
3875 (cpp_undef_all): New.
3876 * cpplib.h (cpp_read_next_file): Prototype.
3877 (cpp_undef_all): Prototype.
3878 * langhooks-def.h (write_global_declarations): Remove prototype.
3879 * toplev.h (write_global_declarations): Add prototype.
3880 * tree.c (decl_type_context): Use switch statement, handle
3881 TRANSLATION_UNIT_DECL.
3882 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
3883 (TRANSLATION_UNIT_DECL): New kind of tree.
3884 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
3885 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
3886 * doc/invoke.texi: Make attempt to document new functionality.
3888 2003-05-19 Per Bothner <bothner@apple.com>
3890 * gcc.c (combine_inputs): New.
3891 (process_command): Set combine_inputs.
3892 (do_spec_1): Handle combine_inputs.
3895 2003-07-10 James E Wilson <wilson@tuliptree.org>
3897 PR optimization/9745
3898 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
3899 loop_insn_emit_before.
3900 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
3902 2003-07-10 Zack Weinberg <zack@codesourcery.com>
3904 * cppcharset.c: Fix comment.
3905 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
3906 (EILSEQ): #define to EINVAL if not already defined.
3907 (convert_using_iconv): #if out when !HAVE_ICONV.
3908 (init_iconv_desc): Handle !HAVE_ICONV here...
3909 (cpp_init_iconv): ...not here.
3911 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
3913 * common.opt: More --help messages.
3914 * opts.c (print_help): Use puts().
3915 * toplev.c (f_options): Remove help text.
3916 (display_help): Don't dump f_options.
3918 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
3920 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
3921 Move i?86-*-interix* to the don't-fix list.
3922 * fixinc/fixinc.interix: Delete with extreme prejudice.
3924 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
3927 * doc/install.texi: Document requirements for ia64-*-hpux* target.
3929 2003-07-10 Roger Sayle <roger@eyesopen.com>
3931 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
3933 2003-07-10 Zack Weinberg <zack@codesourcery.com>
3935 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
3936 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
3937 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
3938 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
3939 convert_no_conversion, convert_using_iconv): New functions.
3940 (APPLY_CONVERSION): New macro.
3941 (struct conversion, conversion_tab): New data structure.
3942 (init_iconv_desc): Check conversion_tab for a custom conversion
3943 primitive before trying to use iconv.
3944 (convert_cset): Deleted.
3945 (cpp_init_iconv): Use UTF- terminology, not UCS-.
3946 (_cpp_destroy_iconv): Update to match.
3947 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
3948 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
3949 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
3950 (_cpp_interpret_string_notranslate): New function, moved here
3953 * cpphash.h (convert_f, struct cset_converter): New types.
3954 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
3955 are now struct cset_converter, not bare iconv_t.
3957 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
3958 all callers changed.
3960 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
3962 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
3963 to opts.sh command line.
3964 * opts.sh: Write to temporary files with a move-if-change at the end.
3966 2003-07-10 Denis Chertykov <denisc@overta.ru>
3967 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3969 * combine.c (gen_binary): Handle the CLOBBER rtx and
3970 don't build a binary operation with it.
3972 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3974 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
3975 store_killed_after, store_killed_before): Keep track of the correct
3976 dependency function to use.
3978 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
3979 * toplev.c (do_compile): Don't try to open dump files before
3980 lang_dependent_init initializes dump_base_name.
3982 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3984 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
3986 * config/frv/frv.c (frv_expand_builtin): Likewise.
3987 * config/sh/sh.c (sh_media_init_builtins): Likewise.
3989 2003-07-09 Mark Mitchell <mark@codesourcery.com>
3992 * doc/invoke.texi (C++ Dialect Options): Change documentation of
3995 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
3997 * tm.texi (RETURN_ADDR_OFFSET): Document.
3999 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
4001 * gcov-io.h: Update documentation.
4002 (GCOV_UNSIGNED2STRING): New.
4003 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
4004 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
4005 GCOV_TAG_SUMMARY_LENGTH): Adjust.
4006 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
4007 GCOV_TAG_COUNTER_NUM): New.
4008 (GCOV_BLOCK_SIZE): Number of words.
4009 (gcov_var): Adjust buffer type.
4010 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
4011 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
4012 count, not byte count.
4013 (gcov_open): Adjust overread init.
4014 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
4015 gcov_write_string, gcov_write_tag, gcov_write_length,
4016 gcov_write_tag_length): Adjust.
4017 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
4018 (gcov_sync, gcov_seek): Adjust.
4019 * gcov-dump.c (print_usage): Show gcc version only.
4020 (dump_file): Use GCOV_UNSIGNED2STRING.
4021 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
4022 * gcov.c (print_version): Show gcc version only.
4023 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
4024 GCOV_TAG_*_NUM macros.
4025 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
4026 GCOV_TAG_COUNTER_LENGTH.
4027 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
4028 Use GCOV_TAG_COUNTER_NUM.
4029 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
4030 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
4032 2003-07-10 Andreas Schwab <schwab@suse.de>
4034 * gcov-dump.c (dump_file): Fix missing address operator.
4036 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
4039 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
4041 (fold_single_bit_test): If sign_bit_p() fails, assume that the
4042 bit being tested is not a sign bit.
4044 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
4046 * config/h8300/h8300.md (a peephole2): New.
4048 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
4050 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
4051 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
4052 from ld-linux.so.2 to ld.so.1.
4053 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
4054 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
4055 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
4056 nor -Wl,-rpath-link.
4057 (LIB_SPEC): Add -rpath-link if !static.
4058 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
4059 * config/mn10300/mn10300.c (mn10300_protect_label): New
4061 * config/mn10300/linux.h (PRINT_OPERAND,
4062 PRINT_OPERAND_ADDRESS): Set it during their execution.
4063 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
4064 mn10300_protect_label is set.
4065 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
4067 (LIB_SPEC, STARTFILE_SPEC): Define.
4068 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
4069 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
4070 FLOAT_BIT_ORDER_MISMATCH.
4071 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
4072 * config.gcc (am33_2.0-*-linux*): Added.
4073 * config/mn10300/linux.h: New.
4074 * config/mn10300/t-linux: New.
4076 2003-07-10 Andreas Jaeger <aj@suse.de>
4078 * fold-const.c: Properly wrap prototypes.
4080 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
4082 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
4083 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
4085 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
4086 * config/mn10300/mn10300.h: GTY-declare it.
4087 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
4088 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
4089 prototype. Use incoming RTL argument.
4090 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
4091 * config/mn10300/mn10300.md (int_label): Move C statements...
4092 (GOTaddr2picreg): ... here.
4093 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
4094 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
4095 * config/mn10300/mn10300.c (mn10300_encode_section_info):
4096 ... here. New function.
4097 (TARGET_ENCODE_SECTION_INFO): Define to it.
4098 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
4099 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
4101 (mn10300_loadPC): Define as insn splittable after reload.
4102 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
4103 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
4104 be defined in .rodata even in PIC, now that the assembler
4106 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
4107 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
4108 symbol take an underscore prefix.
4109 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
4110 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
4111 legitimize_pic_address): Declare.
4112 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
4113 the PIC register as fixed.
4114 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
4115 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
4117 (LEGITIMATE_PIC_OPERAND_P): Define.
4118 (PIC_OFFSET_TABLE_REGNUM): Define.
4119 (GOT_SYMBOL_NAME): Define.
4120 (SYMBOLIC_CONST_P): Define.
4121 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
4123 (MN10300_GLOBAL_P): Test it.
4124 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
4125 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
4126 * config/mn10300/mn10300.c (print_operand): Handle unspec.
4127 (expand_prologue): Set PIC register.
4128 (call_address_operand): Don't match SYMBOL_REFs in PIC.
4129 (legitimize_address): Call legitimize_pic_address.
4130 (legitimize_pic_address): New fn.
4131 (legitimate_pic_operand_p): New fn.
4132 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
4133 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
4134 UNSPEC_PLT): New constants.
4135 (pop_pic_reg): New insn.
4136 (movsi): Adjust non-PIC addresses.
4137 (builtin_setjmp_receiver): Restore the PIC register.
4139 (call): Adjust non-PIC addresses.
4140 (int_label, GOTaddr2picreg): New expands.
4141 (am33_loadPC): New insn.
4142 (mn10300_loadPC): New expand.
4143 (call_next_insn): New insn.
4144 (add_GOT_to_pic_reg): New expand.
4145 (symGOT2reg, symGOT2reg_i): New expands.
4146 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
4147 (sym2PIC, sym2PLT): New expands.
4149 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
4151 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
4152 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
4153 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
4154 to flag_unsafe_math_optimizations.
4155 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
4156 * config/mn10300/mn10300.c (expand_prologue): Mark
4157 FP-register-saving insns as frame-related.
4158 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
4159 * config/mn10300/mn10300.c
4160 (mn10300_get_live_callee_saved_regs): Don't search past
4161 LAST_EXTENDED_REGNUM.
4162 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
4163 * config/mn10300/mn10300.md: Remove excessive line breaks from
4164 `@' output patterns that were accounted as additional
4166 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
4167 Re-introduce changes accidentally removed in Richard Sandiford's
4169 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
4170 Re-instate am33-2 lost in merge from net GCC.
4171 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
4172 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
4173 floating-point registers.
4174 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
4175 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
4176 pessimizations that had gone in on 2000-05-08.
4177 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
4178 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
4179 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
4180 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
4182 * (movhi): Likewise.
4183 * (movsi): Likewise.
4184 * (movsf): Likewise.
4185 * (movdi): Likewise.
4186 * (movdf): Likewise.
4187 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
4188 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
4189 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
4190 (expand_prologue, expand_epilogue): Save and restore FP regs.
4191 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
4192 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
4193 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
4194 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
4195 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
4197 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
4198 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
4199 Discourage the two-argument, longer opcodes.
4200 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
4202 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
4203 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
4204 * config/mn10300/mn10300.md (cmpsf): New pattern.
4205 (branch): Test mdep.fpCC and output fbCC.
4206 * config/mn10300/mn10300.c (print_operand): Output conditions.
4207 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
4208 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
4209 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
4210 mulsf3, divsf3): Use the `F' constraint for FP values.
4211 * config/mn10300/mn10300.c (const_1f_operand): New function.
4212 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
4213 * config/mn10300/mn10300.md (sqrtsf2): New expand.
4214 (rsqrtsf2): New insn.
4215 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
4216 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
4218 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
4219 * config/mn10300/mn10300.md (abssf2, negdf2): On
4220 TARGET_AM33_2, expand to...
4221 (abssf2_am33_2, negdf2_am33_2): New insns.
4222 (addsf3, subsf3, mulsf3, divsf3): Likewise.
4223 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
4224 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
4225 movdi, movdf): Added FP regs.
4226 * invoke.texi (-mam33-2, -mno-am33-2): Document.
4227 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
4228 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
4230 (REGNO_AM33_2_FP_P): Renamed to...
4231 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
4232 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
4233 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
4234 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
4235 regs from GENERAL_REGS.
4236 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
4237 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
4238 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
4239 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
4240 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
4241 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
4243 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
4244 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
4245 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
4246 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
4247 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
4248 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
4249 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
4250 AM33/2.0 floating-point registers.
4251 (CONDITIONAL_REGISTER_USAGE): Adjust.
4252 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
4253 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
4254 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
4255 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
4256 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
4257 (MULTILIB_DIRNAMES): Likewise.
4258 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
4259 `__AM33_2__' when `-mam33-2' is given.
4260 (TARGET_AM33_2): Define.
4261 (TARGET_SWITCHES): Adjust.
4262 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
4265 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
4267 * doc/install.texi: Add missing @.
4269 2003-07-09 Bob Wilson <bob.wilson@acm.org>
4271 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
4273 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
4276 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
4278 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
4281 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
4282 "x-crtfini.o" with "crtinit.o", "crtfini.o".
4284 * fixinc/inclhack.def (limits_ifndefs): Add select test.
4285 * fixinc/fixincl.x: Rebuild.
4287 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
4288 * fixinc/fixincl.x: Rebuild.
4290 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
4292 * doc/install.texi (Configuration): Document the valgrind option
4293 to --enable-checking.
4295 Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
4297 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
4299 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4301 * c-lex.c (cb_ident): Cast cstr.text to const char *.
4303 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
4305 * gcov-io.h: Update documentation.
4306 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
4308 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
4309 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
4310 (struct gcov_var): Change buffer's type. Add endian flag.
4311 (gcov_open): Remove mode in libgcov.
4312 (gcov_magic): Prototype.
4313 * gcov-io.c (from_file): New.
4314 (gcov_open): Clear endian flag.
4316 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
4318 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
4319 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
4320 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
4321 * gcov-iov.c (main): Correct cast.
4322 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
4324 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
4325 (coverage_init): Use GCOV_NOTE_SUFFIX.
4326 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
4327 Rename to gcov_version, and return flag.
4328 (gcov_exit): Use gcov_version.
4329 (__gcov_init): Use gcov_version.
4330 * Makefile.in (coverageexts): Update.
4331 * gcov.c (print_version): Remove endianness conversion.
4332 (create_file_names): Use GCOV_NOTE_SUFFIX.
4333 (read_graph_file): Use gcov_magic.
4334 (read_count_file): Likewise.
4335 * gcov-dump.c (dump_file): Remove endianness conversion, use
4338 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
4340 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
4342 * configure: Regenerated.
4343 * Makefile.in (ALL_CFLAGS): Correct its comment.
4345 2003-07-08 Mark Mitchell <mark@codesourcery.com>
4347 * fold-const.c (make_range): Do not access operand 1 for a
4348 zero-operand operator.
4350 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
4352 * toplev.c (warn_dummy, W_options): Die.
4353 (display_help): Don't print W_options.
4354 * common.opt: Add W_options help from toplev.c.
4356 2003-07-09 Andreas Jaeger <aj@suse.de>
4358 * opts.c (wrap_help): Only pass int arguments as arguments to
4359 printf's '*' modifier. Change argument of function.
4361 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
4363 * doc/invoke.texi: Fix misspelling of "@item".
4365 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
4367 * config/i386/i386.md: Remove an old comment about
4370 Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
4372 * cgraph.c (cgraph_node_name): New function.
4373 (dump_cgraph): Use it.
4374 * cgraph.h (cgraph_dump_file): Declare.
4375 (cgraph_node_name): Declare.
4376 * cgraphunit.c: Include timevar.h
4377 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
4378 (cgraph_optimize_function): Use TV_INTEGRATION.
4379 (cgraph_mark_local_functions): reorganize dumps.
4380 (cgraph_mark_functions_to_inline_once): Likewise.
4381 (cgraph_optimize): Likewise; use timevar.
4382 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
4383 * toplev.c (dump_file_index): Add DFI_cgraph.
4384 (dump_file_info): Likewise.
4385 (cgraph_dump_file): New global variable.
4386 (do_compile): Open and close cgraph dump.
4387 * invoke.texi (-d): Document new flag; renumber.
4389 2003-07-08 Roger Sayle <roger@eyesopen.com>
4392 * calls.c (emit_call_1): Don't bother popping the arguments off of
4393 the stack after a noreturn function call; The adjustment is dead.
4394 (expand_call): Likewise.
4396 2003-07-08 Geoffrey Keating <geoffk@apple.com>
4398 * expr.c (MOVE_MAX_PIECES): Move from here...
4399 * defaults.h (MOVE_MAX_PIECES): ... to here.
4401 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
4403 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
4405 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4407 * genattr.c (internal_dfa_insn_code): Don't prototype.
4408 * genattrtab.c (attr_desc): Add `static_p' field.
4409 (expand_units): Make blockage range and ready cost functions
4411 (write_attr_get): Don't add extern prototypes in C file. Mark
4412 static functions as appropriate.
4413 (find_attr, make_internal_attr): Initialize static_p.
4414 * genattrtab.h (ATTR_STATIC): New macro.
4415 * genautomata.c (output_internal_reset_func): Mark output function
4417 (make_internal_dfa_insn_code_attr): Mark output function as static.
4419 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4421 * genattrtab.h: Add new macros for attr `special' flags.
4422 * genattrtab.c (attr_desc): Reorder/resize fields better.
4423 Use attr `special' macros in all calls to make_internal_attr.
4424 * genautomata.c: Likewise.
4426 Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
4428 * c-common.c (c_estimate_num_insns_1): New static function.
4429 (c_estimate_num_insns): New global function.
4430 * c-common.h (DECL_NUM_STMTS): Rename to...
4431 (DECL_ESTIMATED_INSNS): ... this.
4432 (c_estimate_num_insns): Declare.
4433 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
4434 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
4435 * c-semantics.c (add_stmt): Do not account statements.
4436 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
4438 * langhooks.h (lang_hooks_for_tree_inlining): Add
4440 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
4442 (max-inline-insns): set to 300.
4443 (min-inline-insns): set to 10.
4444 * tree-inline.c (struct inline_data): Rename inlined_stmts to
4446 (INSNS_PER_STMT): Kill.
4447 (inlinable_function_p): Compute and store body size.
4448 (expand_call_inline): Likewise.
4449 (optimize_inline_calls): Likewise.
4451 2003-07-08 James E Wilson <wilson@tuliptree.org>
4454 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
4455 loop over new variable t2 instead of t.
4457 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
4460 * config/i386/winnt.c: Replace use of error(), warning() with
4461 error_with_decl(), warning_with_decl(), throughout.
4463 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
4465 * opts.c (wrap_help): Use unsigned int, not size_t.
4467 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
4469 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
4470 as .file/.loc directives are incompatible with linker relaxation.
4472 2003-07-08 Zack Weinberg <zack@codesourcery.com>
4474 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
4475 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
4476 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
4477 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
4478 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
4479 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
4480 Escape { and } characters which are not part of range expressions.
4481 * fixinc/fixincl.x: Regenerate.
4482 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
4484 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
4487 * tree-inline.c (find_alloca_call): Use
4488 walk_tree_without_duplicates, instead of walk_tree.
4489 (find_builtin_longjmp_call): Likewise.
4490 * c-objc-common.c (c_cannot_inline_fn): Likewise.
4491 * c-semantics.c (find_reachable_label): Likewise.
4493 2003-07-08 Jakub Jelinek <jakub@redhat.com>
4496 * config/i386/i386.c (ix86_check_movabs): New function.
4497 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
4498 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
4499 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
4501 2003-07-08 Chris Demetriou <cgd@broadcom.com>
4503 * Makefile.in (install-po): Cope with empty CATALOGS.
4505 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
4507 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4508 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
4509 (SECTION_FUNCTION_TEMPLATE): Delete.
4510 * config/mips/elf.h: As for elf64.h.
4511 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
4512 * config/mips/linux.h: As for elf.h
4513 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4514 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
4515 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
4516 of in_sdata from current_section_name and current_section_flags.
4517 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4518 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
4519 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
4520 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
4521 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
4522 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4523 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
4524 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
4525 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
4526 (override_options): Remove setting of MASK_GPOPT.
4527 (mips_output_external): Use mips_in_small_data_p to check whether a
4528 symbol needs an .extern directive. Don't emit such directives for
4529 TARGET_EXPLICIT_RELOCS.
4530 (mips_declare_object): Update accordingly.
4531 (mips_select_rtx_section): Call named_section rather than
4533 (mips_select_section): Use default_elf_section_section for everything
4534 except .text string constants.
4535 (mips_in_small_data_p): New function.
4536 (mips_encode_section_info): Remove small data handling.
4537 (mips_unique_section): Delete.
4538 (iris6_section_type_flags): New function.
4539 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
4541 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4544 * pa.md: Disparage all mtsar constraints.
4545 (extzv, extv, insv): Don't fail on length of {32|64}.
4547 2003-07-08 Zack Weinberg <zack@codesourcery.com>
4549 * system.h: Poison MAP_CHARACTER.
4550 * config/i370/i370-protos.h (mvs_map_char): Delete.
4551 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
4552 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
4553 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
4555 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
4557 * toplev.c (randomize): Correct call to time().
4559 2003-07-08 Jakub Jelinek <jakub@redhat.com>
4561 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
4562 REG_EQUIV notes as well.
4564 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
4566 * doc/md.texi: Fix the description of addmodecc.
4568 2003-07-07 Zack Weinberg <zack@codesourcery.com>
4570 * Makefile.in (top_builddir): Set to "..", not ".".
4571 (INTLLIBS, INTLDEPS): Delete.
4572 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
4573 (LIBDEPS): Add $(LIBICONV_DEP).
4574 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
4575 (INCLUDES): Replace -I../intl with @INCINTL@.
4576 ($(top_builddir)/intl/libintl.a): Delete rule.
4577 (stage2-start, stage3-start, stage4-start, stageprofile-start,
4578 stagefeedback-start): Use $$ for variable to be evaluated by
4580 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
4581 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
4582 * aclocal.m4: sinclude ../config/progtest.m4. Add
4583 contents of lcmessage.m4 from gettext distro.
4584 * configure.in: Check for wchar.h and setlocale. Set
4585 LIBICONV_DEP to the empty string and substitute it.
4586 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
4587 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
4588 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
4589 in $LIBINTL, to avoid linking it twice.
4590 * configure, config.in: Regenerate.
4592 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
4594 * fixinc/mkfixinc.sh: Remove winnt support.
4595 * fixinc/fixinc.winnt: Delete with extreme prejudice.
4597 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
4599 * Makefile.in: Update.
4600 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
4601 * c.opt: Update documentation.
4602 * common.opt: Add some help text.
4603 * opts.c: Include intl.h.
4604 (wrap_help, print_help): New.
4605 (find_opt, handle_option, common_handle_option): opt_text now
4606 contains the '-'. Use print_help to output help.
4607 * opts.h (struct cl_option): New member "help".
4608 * opts.sh: Update to handle help text output and to prepend
4610 * toplev.c (display_help): Remove some help text.
4612 2003-07-07 David Edelsohn <edelsohn@gnu.org>
4613 Fariborz Jahanian <fjahanian@apple.com>
4615 * configure.in: Test for PowerPC mfcr field support in assembler.
4616 * config.in, configure: Regenderated.
4618 * config/rs6000/power4.md: Add mfcrf reservation.
4619 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
4620 * config/rs6000/rs6000.c (mfcr_operation): Define.
4621 (print_operand): Add 'Q' case for mfcrf.
4622 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
4623 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
4624 (movcc_internal1): Emit optional field operand for mfcr and set
4625 "type" attribute appropriately.
4626 (mfcr SCC): Likewise.
4627 (movesi_from_cr_one): New.
4629 2003-07-07 Roger Sayle <roger@eyesopen.com>
4631 * config/i386/i386.md: Correct check-in of incorrect version.
4633 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4635 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
4636 adjacent stdio calls.
4637 * c-decl.c (c_print_identifier): Likewise.
4638 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
4639 * print-rtl.c (print_rtx): Likewise.
4640 * print-tree.c (print_node_brief, print_node): Likewise.
4641 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
4643 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
4644 * config.in, configure: Regenerated.
4646 2003-07-07 Roger Sayle <roger@eyesopen.com>
4649 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
4650 Changed to define_expand patterns that copy operand[1] to prevent
4651 it from being clobbered before emitting an atan2?f3_1 insn.
4652 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
4653 patterns that actually specify the behaviour of x87's FPATAN.
4655 2003-07-07 Jakub Jelinek <jakub@redhat.com>
4657 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
4658 clearing of SYMBOL_FLAG_LOCAL bit.
4659 If vcall_offset fits into signed 16-bit immediate, use
4660 one instruction for both addition and load.
4662 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
4664 * opts.c (common_handle_option): Correct handling of the
4665 -falign- switches that do and don't take an argument.
4667 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4669 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
4671 (pushhi1_h8300hs): Likewise.
4673 2003-07-07 Andreas Jaeger <aj@suse.de>
4675 * genextract.c: Convert remaining prototypes to ISO C90.
4677 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
4678 * fold-const.c (fold_single_bit_test): Likewise.
4679 * diagnostic.c (default_diagnostic_finalizer): Likewise.
4680 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
4682 * gengtype.c (write_array): Generate ISO C90 prototypes.
4684 * genflags.c (gen_proto): Generate ISO C90 prototypes.
4686 2003-07-07 Roger Sayle <roger@eyesopen.com>
4688 PR optimization/11059
4689 * expr.c (can_store_by_pieces): Return true if length is zero.
4690 (store_by_pieces): If length is zero and endp is two, abort,
4691 othwerise, if length is zero and endp is not two, return "to".
4692 (clear_by_pieces): Do nothing if length is zero.
4693 (clear_storage): Do nothing if length is zero.
4694 (store_constructor): Simplify code when size is zero, or the
4695 target has already been cleared. This avoids emitting a
4696 blockage instruction when initializing empty structures.
4698 2003-07-07 Andreas Jaeger <aj@suse.de>
4700 * mips-tfile.c: Convert prototypes to ISO C90.
4701 * mips-tdump.c: Convert prototypes to ISO C90.
4703 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
4705 * rtl.h (emit_line_note): Take a location_t.
4706 (emit_line_note_force): Remove.
4707 (set_file_and_line_for_statement): Take a location_t.
4708 * tree.g (emit_line_note): Take a location_t.
4709 * emit-rtl.c (emit_line_note): Take a location_t.
4710 (emit_line_note_force): Remove.
4711 * function.c (init_function_start): Adjust emit_line_note call.
4712 (expand_function_end): Use force_next_line_note, not
4713 emit_line_note_force.
4714 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
4715 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
4716 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
4717 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
4718 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
4719 genrtl_continue_stmt, genrtl_switch_stmt,
4720 genrtl_asm_stmt): Likewise.
4721 * expr.c (expand_expr): Likewise.
4722 * integrate.c (expand_inline_function): Likewise.
4723 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
4724 (expand_decl_init): Adjust emit_line_note call.
4726 2003-07-07 Dale Johannesen <dalej@apple.com>
4728 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
4730 2003-07-07 Andreas Jaeger <aj@suse.de>
4732 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
4733 * config/i386/i386.c: Likewise.
4735 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4737 * config/h8300/h8300.md: Use gen_int_mode instead of
4738 GEN_INT (trunc_int_for_mode (...)).
4740 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4742 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
4743 2 bytes and then subtract 2 from the stack pointer.
4744 (pushhi1_h8300hs): Likewise.
4746 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
4748 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
4750 * configure: Regenerated.
4751 * Makefile.in: Remove extraneous comment.
4752 * toplev.c (randomize): Protect against potential multiple calls.
4753 * doc/invoke.texi (-frandom-seed): Document use for in coverage
4756 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4757 Eric Botcazou <ebotcazou@libertysurf.fr>
4759 PR optimization/11198
4760 * alias.c (objects_must_conflict_p): Return 1 if the types have
4761 the same alias set, not if the alias sets only conflict.
4763 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
4765 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
4766 (convert_cset): Change inbuf to type ICONV_CONST char.
4767 * Makefile.in (LIBS): Add LIBICONV.
4769 * doc/invoke.texi (-falign-functions): Document that
4770 when n is zero then a machine-dependent default is used.
4771 (-falign-labels): Document that when n is zero then a
4772 machine-dependent default is used and that -falign-labels =1
4773 is equivalent to -fno-align-labels.
4774 (-falign-loops): Likewise.
4775 (-falign-jumps): Likewise.
4777 2003-07-06 Art Haas <ahaas@airmail.net>
4779 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
4782 2003-07-06 James E Wilson <wilson@tuliptree.org>
4784 PR optimization/9812
4785 * rtl.h (mem_for_const_double): Delete prototype.
4786 * varasm.c (mem_for_const_double): Delete function.
4787 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
4788 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
4789 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
4790 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
4791 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
4792 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
4793 comment about confused support for XFmode constants.
4795 Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
4797 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
4799 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
4801 * config/h8300/h8300.c: Fix comment typos.
4802 * config/h8300/h8300.md: Likewise.
4803 * config/i386/athlon.md: Likewise.
4804 * config/i386/i386.c: Likewise.
4805 * config/i386/pentium.md: Likewise.
4806 * config/ia64/ia64.c: Likewise.
4807 * config/ia64/itanium1.md: Likewise.
4808 * config/ia64/itanium2.md: Likewise.
4809 * config/m32r/m32r.md: Likewise.
4810 * config/m68hc11/m68hc11.c: Likewise.
4811 * config/mcore/mcore.c: Likewise.
4812 * config/mips/sr71k.md: Likewise.
4813 * config/mips/t-iris5-as: Likewise.
4814 * config/mmix/mmix.h: Likewise.
4815 * config/ns32k/ns32k.h: Likewise.
4816 * config/ns32k/NOTES: Fix a typo.
4818 2003-07-06 Andreas Jaeger <aj@suse.de>
4820 * stmt.c: Convert remaining prototypes to ISO C90.
4821 * cfglayout.c: Likewise.
4822 * dbxout.c: Likewise.
4824 * genemit.c: Likewise.
4826 * basic-block.h: Convert prototypes to ISO C90.
4827 * c-parse.in: Likewise.
4828 * c-pragma.h: Likewise.
4829 * c-typeck.c: Likewise.
4830 * cfghooks.h: Likewise.
4831 * cfgloopanal.c: Likewise.
4832 * dbxout.h: Likewise.
4833 * debug.h: Likewise.
4834 * dwarf2asm.h: Likewise.
4836 * gengtype-lex.l: Likewise.
4837 * sched-int.h: Likewise.
4838 * timevar.c: Likewise.
4840 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
4842 * c-common.h (c_comon_handle_filename,
4843 c_common_missing_arguement): New.
4844 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4845 LANG_HOOKS_MISSING_ARGUMENT): New.
4846 * c-opts.c (missing_arg): Rename c_common_missing_argument,
4847 update to be an appropriate langhook.
4848 (c_common_handle_option): Don't handle filenames.
4849 (c_common_handle_filename): New.
4850 * hooks.c (hook_void_constcharptr,
4851 hook_bool_constcharptr_size_t_false): New.
4852 * hooks.h (hook_void_constcharptr,
4853 hook_bool_constcharptr_size_t_false): New.
4854 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
4855 LANG_HOOKS_MISSING_ARGUMENT): New.
4856 (LANG_HOOKS_INITIALIZER): Update.
4857 * langhooks.h (struct lang_hooks): Add handle_filename and
4859 * opts.c (handle_option): Don't handle filenames here, but ...
4860 (handle_options): ... here.
4861 (common_handle_option): Don't handle missing arguments here.
4862 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4863 LANG_HOOKS_MISSING_ARGUMENT): New.
4865 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
4867 * Makfile.in: Remove traces of mbchar.
4868 * c-parse.in (MULTIBYTE_CHARS): Remove.
4869 * config.in (MULTIBYTE_CHARS): Remove.
4870 * configure: Remove --enable-mbchar.
4871 * configure.in: Remove --enable-mbchar.
4872 * mbchar.c, mbchar.h: Remove.
4873 * system.h: Poison MULTIBYTE_CHARS.
4874 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
4875 * config/linux.h (MULTIBYTE_CHARS): Remove.
4876 * config/svr4.h (MULTIBYTE_CHARS): Remove.
4877 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
4879 2003-07-06 Andreas Jaeger <aj@suse.de>
4881 * varray.c (varray_check_failed): Fix typo.
4883 * unroll.c: Convert prototypes to ISO C90.
4884 * varasm.c: Likewise.
4885 * varray.c: Likewise.
4886 * varray.h: Likewise.
4887 * vmsdbgout.c: Likewise.
4888 * xcoffout.c: Likewise.
4889 * xcoffout.h: Likewise.
4891 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4893 * gcov-io.h: Add a local time stamp.
4894 (struct gcov_info): Add stamp field.
4895 (gcov_truncate): New.
4896 * coverage.c (read_counts_file): Skip the stamp.
4897 (coverage_begin_output): Write the stamp.
4898 (build_gcov_info): Declare and init the stamp.
4899 (coverage_finish): Only unlink data file, if stamp is zero.
4900 * gcov-dump.c (dump_file): Dump the stamp.
4901 * gcov.c (bbg_stamp): New.
4902 (release_structures): Clear bbg_stamp.
4903 (read_graph_file): Read stamp.
4904 (read_count_file): Check stamp.
4905 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
4907 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4909 * tree.h (default_flag_random_seed): Remove.
4910 * toplev.h (local_tick): Declare.
4911 * tree.c (flag_random_seed, default_flag_random_seed): Move to
4913 (append_random_chars): Don't call default_flag_random_seed.
4914 * toplev.c (flag_random_seed): Define here. Set local_tick.
4915 (local_tick): Define.
4916 (randomize): New, moved from tree.c.
4917 (print_switch_values): Adjust.
4918 (toplev_main): Call randomize.
4920 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4922 * tree.h (crc32_string): Declare.
4923 * tree.c (append_random_chars): Remove.
4924 (crc32_string): New.
4925 (get_file_function_name_long): Use crc32_string here.
4927 2003-07-06 Andreas Jaeger <aj@suse.de>
4929 * gcc.c: Convert prototypes to ISO C90.
4931 * gcov-dump.c: Likewise.
4932 * gcov-iov.c: Likewise.
4934 * genattrtab.h: Likewise.
4936 * global.c: Likewise.
4937 * graph.c: Likewise.
4938 * graph.h: Likewise.
4939 * hosthooks.h: Likewise.
4940 * hooks.h: Likewise.
4941 * hooks.c: Likewise.
4942 * hashtable.h: Likewise.
4943 * hashtable.c: Likewise.
4944 * haifa-sched.c: Likewise.
4945 * integrate.h: Likewise.
4946 * integrate.c: Likewise.
4947 * input.h: Likewise.
4948 * ifcvt.c: Likewise.
4950 * langhooks-def.h: Likewise. Add extern to prototypes.
4951 * langhooks.c: Likewise.
4952 * langhooks.h: Likewise.
4954 * local-alloc.c: Likewise.
4955 * loop-init.c: Likewise.
4956 * loop-unroll.c: Likewise.
4957 * loop-unswitch.c: Likewise.
4959 * loop.h: Likewise. Add extern to prototypes.
4960 * machmode.h: Likewise.
4962 * mbchar.c: Likewise.
4963 * mbchar.h: Likewise.
4964 * mkdeps.c: Likewise.
4965 * mkdeps.h: Likewise.
4966 * optabs.c: Likewise.
4967 * optabs.h: Likewise.
4968 * output.h: Likewise.
4969 * gccspec.c: Likwise.
4970 * postreload.c: Likewise.
4971 * prefix.c: Likewise.
4972 * prefix.h: Likewise.
4973 * print-rtl.c: Likewise.
4974 * print-tree.c: Likewise.
4975 * profile.c: Likewise.
4976 * read-rtl.c: Likewise.
4979 * recog.c: Likewise.
4980 * recog.h: Likewise.
4981 * reg-stack.c: Likewise.
4982 * regclass.c: Likewise.
4983 * regmove.c: Likewise.
4984 * regrename.c: Likewise.
4986 * reload.c: Likewise.
4987 * reload.h: Likewise.
4988 * reload1.c: Likewise.
4989 * reorg.c: Likewise.
4990 * resource.c: Likewise.
4991 * resource.h: Likewise.
4992 * rtl-error.c: Likewise.
4995 * rtlanal.c: Likewise.
4996 * sbitmap.c: Likewise.
4997 * sbitmap.h: Likewise.
4998 * scan-decls.c: Likewise.
5000 * sched-deps.c: Likewise.
5001 * sched-ebb.c: Likewise.
5002 * sched-int.h: Likewise.
5003 * sched-rgn.c: Likewise.
5004 * sched-vis.c: Likewise.
5005 * sibcall.c: Likewise.
5006 * simplify-rtx.c: Likewise.
5007 * sreal.c: Likewise.
5008 * sreal.h: Likewise.
5009 * ssa-ccp.c: Likewise.
5010 * ssa-dce.c: Likewise.
5013 * stack.h: Likewise.
5015 * stor-layout.c: Likewise.
5016 * stringpool.c: Likewise.
5017 * target.h: Likewise.
5018 * timevar.c: Likewise.
5019 * timevar.h: Likewise.
5020 * tlink.c: Likewise.
5021 * tracer.c: Likewise.
5022 * tree-inline.c: Likewise.
5023 * tree-inline.h: Likewise.
5027 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
5029 * combine.c (nonzero_bits1): Fix a warning.
5031 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
5033 * config/h8300/h8300.c (compute_mov_length): Correct the
5034 length of loading CONST0_RTX (SFmode).
5036 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
5038 * toplev.c (output_clean_symbol_name): Remove.
5039 * toplev.h (output_clean_symbol_name): Remove.
5040 * config/alpha/alpha.c (unicosmk_output_module_name): Use
5041 lbasename & clean_symbol_name.
5043 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
5045 * ggc.h: Follow spelling conventions.
5046 * config/i386/i386.c: Likewise.
5047 * config/i386/winnt.c: Likewise.
5048 * config/rs6000/rs6000.c: Likewise.
5050 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
5052 * bt-load.c: Fix comment typos.
5053 * c-incpath.c: Likewise.
5055 * cfgcleanup.c: Likewise.
5056 * cfgloop.h: Likewise.
5057 * cfgloopmanip.c: Likewise.
5058 * cfgrtl.c: Likewise.
5059 * diagnostic.h: Likewise.
5060 * dwarfout.c: Likewise.
5061 * emit-rtl.c: Likewise.
5062 * et-forest.c: Likewise.
5063 * et-forest.h: Likewise.
5066 * genattr.c: Likewise.
5068 * langhooks.h: Likewise.
5069 * local-alloc.c: Likewise.
5070 * loop-unroll.c: Likewise.
5071 * loop-unswitch.c: Likewise.
5072 * ra-build.c: Likewise.
5073 * regclass.c: Likewise.
5074 * regmove.c: Likewise.
5075 * rtl.def: Likewise.
5076 * rtlanal.c: Likewise.
5077 * sched-ebb.c: Likewise.
5078 * sched-rgn.c: Likewise.
5079 * simplify-rtx.c: Likewise.
5081 * tracer.c: Likewise.
5084 2003-07-05 Zack Weinberg <zack@codesourcery.com>
5086 * cppcharset.c: Use the correct return type for the fallback iconv
5089 Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5091 Blame to Jan Hubicka <jh@suse.cz>
5092 * cfglayout.c (record_effective_endpoints): Split insns before
5093 first basic block correctly.
5095 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5097 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
5098 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
5099 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
5101 2003-07-05 Andreas Jaeger <aj@suse.de>
5103 * genattrtab.c (write_attr_get): Revert part of last patch to
5104 always write out a prototype.
5106 * genemit.c (gen_split): Readd lost unused attributes in last
5109 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5111 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
5112 different from header.
5114 2003-07-05 Andreas Schwab <schwab@suse.de>
5116 * config/m68k/m68k.c: Remove code protected by CRDS.
5117 * config/m68k/m68k.md: Likewise.
5119 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
5122 * c-opts.c (permit_fortran_options): New.
5123 (c_common_init_options): Accept fortran front end options if
5124 it looks like we might be preprocessing Fortran.
5125 (c_common_handle_option): Don't reject switch if permit_fotran_options.
5127 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5129 * genattr.c (internal_dfa_insn_code): Output prototype.
5130 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
5131 * genautomata.c: Likewise.
5132 * genconditions.c: Likewise.
5133 * genemit.c: Likewise.
5134 * genextract.c: Likewise.
5135 * gengenrtl.c: Likewise.
5136 * gengtype.c: Likewise.
5137 * genopinit.c: Likewise.
5138 * genoutput.c: Likewise.
5139 * genpeep.c: Likewise.
5140 * genrecog.c: Likewise.
5142 2003-07-04 Zack Weinberg <zack@codesourcery.com>
5144 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
5145 (struct cpp_options): Add narrow_charset, wide_charset,
5146 bytes_big_endian fields. Remove EBCDIC field.
5147 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
5149 * cpphash.h: Include <iconv.h> if we have it, otherwise
5150 provide a dummy definition of iconv_t.
5151 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
5152 (_cpp_valid_ucn): Update prototype.
5153 (_cpp_destroy_iconv): New prototype.
5155 * doc/cpp.texi: Document character set handling.
5156 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
5157 * doc/extend.texi: Delete entire section on multiline strings.
5158 Rewrite section on __FUNCTION__ etc now that these are
5161 * cppucnid.tab, cppucnid.pl: New files.
5162 * cppucnid.h: New generated file.
5163 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
5164 (iconv_open, iconv, iconv_close): Provide dummy definitions
5166 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
5167 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
5168 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
5169 cpp_interpret_string, narrow_str_to_charconst,
5170 wide_str_to_charconst): New.
5171 (ucn_valid_in_identifier): Use a binary search through the
5172 ucnranges table defined in cppucnid.h, not a long chain of if
5174 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
5175 character names are only valid in C++ and C99" to a warning.
5176 Issue the "meaning of \[uU] is different in traditional C"
5177 warning here. Take care not to let iconv see an invalid UCS
5178 value if we get a malformed UCN. Issue an error if we don't
5180 (cpp_interpret_charconst): Moved here from cpplex.c. Use
5181 cpp_interpret_string to do the heavy lifting.
5183 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
5184 narrow_charset, wide_charset fields of options structure.
5185 (cpp_destroy): Call _cpp_destroy_iconv.
5186 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
5187 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
5188 (cpp_interpret_charconst): Moved to cppcharset.c.
5189 * cpplib.c (dequote_string): Delete.
5190 (interpret_string_notranslate): New.
5191 (do_line, do_linemarker): Use interpret_string_notranslate.
5193 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
5195 * c-common.c (fname_string, combine_strings): Delete.
5196 * c-common.h (fname_string, combine_strings): Delete prototypes.
5197 * c-lex.c (ignore_escape_flag): Delete.
5198 (cb_ident): Use cpp_interpret_string, not lex_string.
5199 (get_nonpadding_token): New function.
5200 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
5201 Adjust calls to lex_string. Don't write *value twice.
5202 (lex_string): Now handles string constant concatenation.
5203 Most of the work handed off to cpp_interpret_string.
5204 Call fix_string_type here.
5205 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
5206 FUNC_NAME, throughout.
5207 (OBJC_STRING): New token type.
5208 (primary:STRING): No need to call fix_string_type here.
5209 (primary:objc_string): Make that OBJC_STRING.
5210 (objc_string nonterminal): Delete.
5211 (yylexname): Delete code to handle fake string constants.
5212 (yylexstring): Delete entirely.
5213 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
5214 to handle CPP_ATSIGN.
5216 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
5217 * c-opts.c (missing_arg, c_common_handle_option): Handle
5218 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
5219 (c_common_init): Set cpp_opts->bytes_big_endian, not
5220 cpp_opts->EBCDIC. Call cpp_init_iconv.
5221 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
5222 (TARGET_EBCDIC): Delete default definition.
5224 * objc/objc-act.c (build_objc_string_object): No need to
5225 handle string constant concatenation.
5227 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
5229 * doc/install.texi: Fix typos.
5230 * doc/invoke.texi: Likewise.
5231 * doc/tm.texi: Likewise.
5233 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
5235 * config/pa/fptr.c: Fix comment typos.
5236 * config/pa/pa-64.h: Likewise.
5237 * config/pa/pa.c: Likewise.
5238 * config/pa/pa.h: Likewise.
5239 * config/rs6000/603.md: Likewise.
5240 * config/rs6000/7xx.md: Likewise.
5241 * config/rs6000/darwin.h: Likewise.
5242 * config/rs6000/freebsd.h: Likewise.
5243 * config/rs6000/rs6000.c: Likewise.
5244 * config/rs6000/rs6000.md: Likewise.
5245 * config/rs6000/spe.h: Likewise.
5247 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
5249 * config/s390/2064.md: Change GNU CC to GCC.
5250 * config/s390/2084.md: Likewise.
5251 * config/s390/fixdfdi.h: Likewise.
5252 * config/s390/linux.h: Likewise.
5253 * config/s390/s390-modes.def: Likewise.
5254 * config/s390/s390-protos.h: Likewise.
5255 * config/s390/s390.c: Likewise.
5256 * config/s390/s390.h: Likewise.
5257 * config/s390/s390.md: Likewise.
5258 * config/s390/s390x.h: Likewise.
5260 2003-07-04 Jeff Law <law@redhat.com>
5263 * expr.c (do_store_flag): Pass in the correct result type
5264 when calling fold_single_bit_test.
5265 * fold-const.c (fold_single_bit_test): Use result_type for the
5266 result when folding a sign bit test.
5268 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
5270 * opts.c (common_handle_options): Negate sense of -falign- switches.
5272 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
5274 * Makefile.in: Replace PWD with PWD_COMMAND.
5276 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5278 * cfgloopanal.c (count_strange_loop_iterations): New static function.
5279 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
5280 Handle strange loops.
5282 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
5284 * install.texi: Even the g77 manpage is derived from
5285 the full g77 manual.
5287 2003-07-04 Zack Weinberg <zack@codesourcery.com>
5289 * ABOUT-NLS: Delete.
5290 * intl: Delete entire directory.
5291 * aclocal.m4: Include ../config/gettext.m4. Delete
5292 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
5293 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
5294 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
5295 Remove intl/Makefile from all_outputs.
5296 * configure, config.in: Regenerate.
5297 * Makefile.in: Expunge all references to intl subdirectory.
5298 Add -I../intl to INCLUDES.
5299 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
5301 2003-07-04 Roger Sayle <roger@eyesopen.com>
5303 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
5304 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
5306 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
5308 PR c++/5287, PR c++/7910, PR c++/11021
5309 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
5310 dllimport attribute if function is defined at declaration, but
5311 report error instead. Likewise for dllimport'd variable
5312 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
5313 declared within functions, Report error if dllimport or dllexport
5314 symbol is not global.
5315 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
5316 if defined after declaration or if inlined. Don't allow definition
5317 of static data members of C++ classes. Don't dllimport virtual
5319 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
5320 (i386_pe_mark_dllimport): Remove unnecessary checks.
5321 (i386_pe_encode_section_info): Warn if the dllimport attribute
5322 and symbol prefix have been instantiated and then overridden.
5324 * doc/extend.texi: Document dllimport and dllexport attributes.
5326 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
5328 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
5330 * config/kaos.h (CPP_PREDEFINES): Delete.
5331 (TARGET_OS_CPP_BUILTINS): New.
5333 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5335 * c-aux-info.c: Include toplev.h after c-tree.h.
5336 * c-common.c: Likewise.
5337 (GCC_DIAG_STYLE): Undef.
5338 * c-semantics.c (GCC_DIAG_STYLE): Define.
5339 * c-tree.h (GCC_DIAG_STYLE): Likewise.
5340 * diagnostic.h (inform): Move prototype to toplev.h.
5341 * jump.c: Include diagnostic.h before toplev.h.
5342 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
5343 (warning, error, fatal_error, pedwarn, sorry, inform,
5344 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
5346 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5348 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
5349 at all if edge is not specified.
5350 (can_copy_bbs_p, copy_bbs): New.
5351 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
5352 * cfgloop.c (get_loop_body): Comment more precisely.
5353 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
5354 (scale_bbs_frequencies): Fix comment typo.
5355 (can_duplicate_loop_p): Use can_copy_bbs_p.
5356 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
5358 2003-07-03 Devang Patel <dpatel@apple.com>
5360 * c-opts.c (c_common_parse_file): Remove extra
5361 debug_hooks->start_source_file call.
5363 2003-07-03 Roger Sayle <roger@eyesopen.com>
5365 * real.c (real_trunc, real_floor, real_ceil): New functions
5366 to implement trunc, floor and ceil respectively.
5367 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
5368 * builtins.c (integer_valued_real_p): New function to test if
5369 a floating point expression has an integer valued result.
5370 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
5371 foo(x) where foo is an integer rounding function. Similarly,
5372 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
5373 (double)(int)x when both foo and bar are integer rounding
5374 functions and we don't need to honor errno.
5375 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
5376 New functions to fold trunc, floor and ceil.
5377 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
5378 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
5379 to fold BUILT_IN_CEIL*.
5380 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
5381 the remaining integer rounding functions.
5383 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5385 * config/sparc/sparc.c (function_arg_partial_nregs): Use
5386 SPARC_INT_ARG_MAX to determine where to split unnamed
5387 complex FP arguments.
5389 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
5391 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
5392 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
5393 (merge_blocks_move_predecessor_nojumps,
5394 merge_blocks_move_successor_nojumps): Use merge_blocks.
5395 (try_optimize_cfg): Use merge_blocks_move.
5396 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
5397 (merge_blocks_nomove): Rename to rtl_merge_blocks.
5398 (cfg_layout_create_basic_block): New.
5399 (rtl_can_merge_blocks): New.
5400 (cfg_layout_split_block): Do not alloc aux by hand.
5401 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
5403 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
5404 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
5405 * cfgloopmanip.c (loop_split_edge_with): Likewise.
5406 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
5408 * basic-block.h (basic_block_def): Add field 'rbi'.
5409 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
5410 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
5411 * cfg.c (entry_exit_blocks): Add new field.
5412 * cfglayout.c: Include alloc-pool.h;
5413 (cfg_layout_pool): New.
5414 (record_effective_endpoints, fixup_reorder_chain,
5415 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
5417 (cfg_layout_initialize_rbi): New function.
5418 (cfg_layout_initialize): Use it.
5419 (cfg_layout_finalize): Clear rbi fields.
5420 * cfglayout.h (RBI): Kill.
5421 (cfg_layout_initialize_rbi): Declare.
5422 * cfgloopmanip.c (copy_bbs): Use rbi.
5423 (record_exit_edges): Likewise.
5424 (duplicate_loop_to_header_edge): Likewise.
5425 * cfgrtl.c (cfg_layout_create_basic_block): Use
5426 cfg_layout_initialize_rbi.
5427 (cfg_layout_split_block): Use rbi.
5428 (cfg_layout_delete_block): Likewise.
5429 * loop-init.c (loop_optimizer_finalize): Likewise.
5430 * loop-unswitch.c (unswitch_loop): Likewise.
5431 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
5433 * cfgrtl.c: Update comments.
5434 (try_redirect_by_replacing_jump): New argument.
5435 (redirect_branch_edge): Break out from ...
5436 (rtl_redirect_edge_and_branch): ... this one.
5437 (update_cfg_after_block_merging): Break out from ...
5438 (rtl_merge_blocks): ... this one.
5439 (cfg_layout_split_edge): New.
5440 (cfg_layout_merge_blocks): New.
5441 (cfg_layout_can_merge_blocks_p): New.
5442 (cfg_layout_redirect_edge_and_branch): Reorganize.
5443 (cfg_layout_rtl_cfg_hooks): Fill in.
5444 (cfg_layout_delete_block): Kill barriers.
5445 * cfganal.c (can_fallthru): Deal with exit blocks
5446 * cfglayout.c (cfg_layout_function_header): New function
5447 (record_effective_endpoints): Record function header.
5448 (fixup_reorder_chain): Fixup dead jumptables; place header
5450 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
5451 * bb-reorder.c (cfg_layout_initialize): Update call.
5452 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
5453 edges in cfglayout mode.
5454 * cfglayout.c (cleanup_unconditional_jumps): Kill.
5455 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
5456 * cfglayout.h (cfg_layout_initialize): Update prototype.
5457 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
5458 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
5459 * flow.c (propagate_block): Do not crash when basic block ends
5460 by first insn in the chain.
5461 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
5463 * tracer.c (tracer): Update call of cfg_layout_initialize.
5465 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5467 * Makefile.in: Use dependency variables in lieu of explicit
5470 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
5472 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
5473 * tree.h: ...to here.
5475 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
5477 * config/s390/2064.md: Fix comment typos.
5478 * config/s390/2084.md: Likewise.
5479 * config/s390/s390.c: Likewise.
5480 * config/s390/s390.md: Likewise.
5481 * config/sh/sh.c: Likewise.
5482 * config/sh/sh.h: Likewise.
5483 * config/sh/sh.md: Likewise.
5484 * config/sparc/sparc.c: Likewise.
5485 * config/sparc/sparc.h: Likewise.
5486 * config/sparc/sparc.md: Likewise.
5487 * config/stormy16/stormy16.c: Likewise.
5488 * config/stormy16/stormy16.h: Likewise.
5489 * config/stormy16/stormy-abi: Fix a typo.
5491 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
5493 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
5495 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5497 * config/mips/mips.h (save_argv): Delete.
5499 2003-07-03 Roger Sayle <roger@eyesopen.com>
5502 * fold-const.c (extract_muldiv_1): There's nothing that can be done
5503 if the expression is a SAVE_EXPR.
5505 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
5507 * config/m32r/m32r.c: Fix comment typos.
5508 * config/m68hc11/m68hc11.c: Likewise.
5509 * config/m68hc11/m68hc11.h: Likewise.
5510 * config/m68k/m68k.c: Likewise.
5511 * config/mcore/mcore.c: Likewise.
5512 * config/mcore/mcore.h: Likewise.
5513 * config/mcore/mcore.md: Likewise.
5514 * config/mips/mips.c: Likewise.
5515 * config/mips/mips.h: Likewise.
5516 * config/mips/mips.md: Likewise.
5517 * config/mips/netbsd.h: Likewise.
5518 * config/mn10300/mn10300.c: Likewise.
5520 2003-07-03 Andreas Schwab <schwab@suse.de>
5522 * dbxout.c (pending_bincls): Move decl down inside
5523 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
5525 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
5527 * rtl.h (NOTE_DATA): Refer to whole union.
5528 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
5530 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5532 PR optimization/11381
5533 * simplify-rtx.c (simplify_relational_operation): Check that
5534 two equal operands have no side-effects before simplifying
5537 2003-07-02 Jeff Law <law@redhat.com>
5539 * expr.c (do_store_flag): Remove special case folding for
5540 single bit tests. Instead call back into the commonized folder
5542 * fold-const.c (fold_single_bit_test): New function, mostly
5543 extracted from do_store_flag, with an additional case extracted
5545 (fold): Call fold_single_bit_test appropriately.
5546 * tree.h (fold_single_bit_test): Prototype.
5548 2003-07-02 Zack Weinberg <zack@codesourcery.com>
5550 * system.h: Include filenames.h.
5551 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
5552 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
5553 define based on HAVE_DOS_BASED_FILE_SYSTEM.
5554 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
5555 * config/i386/xm-mingw32.h: Don't define
5556 HAVE_DOS_BASED_FILE_SYSTEM,
5557 DIR_SEPARATOR, or DIR_SEPARATOR_2.
5558 * doc/hostconfig.texi: Update to match.
5560 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
5561 config/i386/cygwin.h:
5562 Use IS_ABSOLUTE_PATH throughout.
5563 * gcc.c (DIR_UP): Delete, unused.
5564 * protoize.c (IS_SAME_PATH): Define in terms of
5566 (is_abspath): Delete.
5568 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
5570 * config/i386/emmintrin.h: Fix comment typos.
5571 * config/i386/i386.c: Likewise.
5572 * config/i386/i386.h: Likewise.
5573 * config/i386/sco5.h: Likewise.
5574 * config/ia64/ia64.c: Likewise.
5575 * config/ia64/itanium2.md: Likewise.
5577 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
5579 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
5581 (emit_bincl_stab): Same.
5582 (emit_pending_bincls): Same.
5584 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
5586 * config/h8300/h8300.c (compute_mov_length): Fix the length of
5587 loading CONST0_RTX (SFmode).
5588 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
5589 'G' to CONST0_RTX (SFmode).
5590 * config/h8300/h8300.md (movsf_h8300): Change the first
5592 (movsf_h8300h): Likewise.
5594 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
5596 * c-common.h (c_common_init_options): New prototype.
5597 * c-opts.c (deferred_size): Remove.
5598 (defer_opt): Array is now pre-allocated.
5599 (c_common_init_options): Pre-allocate deferred_opts. Make
5600 lang_flags unsigned.
5601 (push_command_line_options): Free deferred_opts.
5602 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
5603 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
5604 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
5605 * langhooks.h (struct lang_hooks): New prototype for init_options.
5606 * main.c (main): Cast argv.
5607 * opts.c (handle_option, handle_options): Update prototypes.
5608 (decode_options): save_argc, save_argv are not global. Constify.
5609 * opts.h (decode_options): New prototype.
5610 * toplev.c (general_init): New protoype.
5611 (save_argv): Make static.
5612 (save_argc): Remove.
5613 (print_switch_values, general_init): Constify.
5614 (toplev_main): Save argv.
5615 * toplev.h (toplev_main): Update prototype.
5616 (save_argc, save_argv): Remove.
5618 2003-07-02 David Edelsohn <edelsohn@gnu.org>
5620 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
5621 (emit_bincl_stab): Same.
5622 (emit_pending_bincls): Same.
5624 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
5627 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
5629 2003-07-02 Andreas Schwab <schwab@suse.de>
5631 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
5633 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
5635 PR optimization/11210
5636 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
5637 about the behaviour with regard to bitfields.
5638 * fold-const (decode_field_reference): Record outermost type in
5639 case the expression is a NOP. Strip all NOPs. Set the signedness
5640 to that of the outermost type (if any) when the bitsize is equal
5641 to the size of the type.
5643 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
5645 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
5646 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
5647 (adddi3_internal_3, addsi3_internal_2): Likewise.
5649 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
5651 * config/mips/mips.c (machine_function): Add new fields:
5652 ignore_hazard_length_p and all_noreorder_p.
5653 (mips_flag_delayed_branch): New variable.
5654 (override_options): Treat '/' as an operand punctuation character.
5655 Set up mips_flag_delayed_branch.
5656 (print_operand): Handle '/'.
5657 (mips_output_function_prologue): Put the whole function in
5658 .set noreorder and .set nomacro if all_noreorder_p is true.
5659 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
5660 (mips16_optimize_gp): Remove "first insn" parameter.
5661 (mips16_lay_out_constants): New function, split out from mips_reorg.
5662 (mips_avoid_hazard, mips_avoid_hazards): New functions.
5663 (mips_reorg): For mips16 code, call mips16_lay_out_constant
5664 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
5665 do delayed-branch scheduling followed by hazard detection.
5666 (mips_adjust_insn_length): Only account for hazards if
5667 !ignore_hazard_length_p.
5668 (mips_output_load_label): Add a nop to the o32 sequence if
5669 the target suffers from load delays.
5670 (mips_output_conditional_branch): Add %/ to the end of branches.
5671 (mips_output_division): Fill the branch delay slot with %#.
5672 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
5673 instructions. End all other %* branches with %/.
5674 (ffssi2, ffsdi2): Fix lengths.
5675 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
5676 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
5677 (fix_truncsfsi2_macro): Likewise.
5678 (mov_lwl): Set hazard to "none".
5679 (ashldi3_internal): Fill the branch delay slot with %#.
5680 (ashrdi3_internal, lshrdi3_internal): Likewise.
5681 (exception_receiver): Explicitly set $28.
5682 (hazard_nop): New pattern.
5684 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
5686 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
5687 before calling tree_inlinable_function_p.
5689 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5691 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
5692 <internal/stdio_core.h> too.
5693 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
5694 <internal/wchar_core.h> too.
5695 Substitute va_list uses in inline definition.
5696 * fixinc/fixincl.x: Regenerate.
5698 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5700 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
5701 Undef before redefinition.
5702 (LABEL_AFTER_LOC): Likewise.
5703 (DEFAULT_SIGNED_CHAR): Likewise.
5704 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
5707 * config/mips/iris3.h: Remove, unused.
5708 * config/mips/iris4.h: Likewise.
5710 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
5712 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
5713 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
5716 * config/mips/iris5.h: Move explicit includes ...
5717 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
5719 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
5720 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
5723 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
5724 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
5727 * config/mips/iris6.h: Fix IRIX spelling.
5728 (MULTILIB_DEFAULTS): Undef before redefinition.
5730 * config/mips/iris6.h: Move explicit includes ...
5731 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
5733 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
5735 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
5736 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
5737 Use next_needed field instead of aux to maintain the queue.
5738 * cgraph.h (cgraph_node): Add next_needed.
5739 (cgraph_varpool_node): Add next_needed; remove aux.
5740 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
5742 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
5744 * cgraphunit.c (cgraph_finalize_function): Set finalized.
5745 (cgraph_finalize_function): Do not examine inlinablility.
5746 (cgraph_finalize_compilation_unit): Do it here.
5747 * cgraph.h (cgraph_local_info): Add finalized field.
5749 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5751 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
5752 (gt_pch_restore): Likewise.
5754 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5756 * config/alpha/alpha.c: Fix comment typos.
5757 * config/alpha/elf.h: Likewise.
5758 * config/arm/arm.c: Likewise.
5759 * config/arm/arm.h: Likewise.
5760 * config/arm/arm.md: Likewise.
5761 * config/arm/t-arm-coff: Likewise.
5762 * config/arm/t-strongarm-pe: Likewise.
5763 * config/arm/xscale-elf.h: Likewise.
5764 * config/avr/avr.h: Likewise.
5766 2003-07-01 Jeff Law <law@redhat.com>
5768 * stmt.c (any_pending_cleanups): Remove another redundant test.
5770 2003-07-01 David Edelsohn <edelsohn@gnu.org>
5771 J"orn Rennecke <joern.rennecke@superh.com>
5773 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
5776 2003-07-01 Devang Patel <dpatel@apple.com>
5778 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
5780 (struct dbx_file): New members - bincl_status, pending_bincl_name and
5782 (pending_bincls): New.
5783 (dbxout_init): Initialize new dbx_file members.
5784 (dbxout_start_source_file): Same.
5785 (emit_bincl_stab): New function.
5786 (emit_pending_bincls): Same.
5787 (emit_pending_bincls_if_required): Same.
5788 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
5790 (dbxout_begin_block): Emit pending BINCL stabs.
5791 (dbxout_end_block): Same.
5792 (dbxout_function_decl): Same.
5793 (dbxout_continue): Same.
5794 (dbxout_type): Same.
5795 (dbxout_class_name_qualifiers): Same.
5796 (dbxout_symbol): Same.
5797 (dbxout_symbol_location): Same.
5798 (dbxout_parms): Same.
5800 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5802 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
5803 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
5805 2003-07-01 Andreas Jaeger <aj@suse.de>
5807 * fold-const.c: Convert prototypes to ISO C90.
5808 * function.c: Likewise.
5809 * function.h: Likewise.
5811 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5813 * doc/contrib.texi: Fix typos.
5814 * doc/invoke.texi: Likewise.
5815 * doc/passes.texi: Likewise.
5816 * doc/sourcebuild.texi: Likewise.
5817 * doc/tm.texi: Likewise.
5819 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5821 * basic-block.h: Fix comment typos.
5822 * bb-reorder.c: Likewise.
5823 * c-format.c: Likewise.
5824 * cfgcleanup.c: Likewise.
5825 * cfghooks.h: Likewise.
5826 * cfgloop.c: Likewise.
5827 * cfgloopmanip.c: Likewise.
5828 * cfgrtl.c: Likewise.
5829 * cgraph.h: Likewise.
5830 * cgraphunit.c: Likewise.
5831 * combine.c: Likewise.
5832 * convert.c: Likewise.
5833 * dbxout.c: Likewise.
5836 * diagnostic.c: Likewise.
5837 * dwarf2out.c: Likewise.
5838 * et-forest.h: Likewise.
5840 * fold-const.c: Likewise.
5841 * function.h: Likewise.
5842 * gcov-io.h: Likewise.
5845 * genautomata.c: Likewise.
5846 * ggc-common.c: Likewise.
5847 * ggc-page.c: Likewise.
5848 * loop-unroll.c: Likewise.
5849 * loop-unswitch.c: Likewise.
5851 * mips-tfile.c: Likewise.
5852 * optabs.c: Likewise.
5853 * ra-build.c: Likewise.
5854 * ra-colorize.c: Likewise.
5855 * ra-rewrite.c: Likewise.
5857 * regmove.c: Likewise.
5858 * reload.c: Likewise.
5859 * rtlanal.c: Likewise.
5860 * sched-ebb.c: Likewise.
5861 * sched-int.h: Likewise.
5862 * sched-vis.c: Likewise.
5863 * sreal.c: Likewise.
5864 * ssa-ccp.c: Likewise.
5866 * toplev.c: Likewise.
5867 * tree-inline.c: Likewise.
5868 * value-prof.c: Likewise.
5869 * value-prof.h: Likewise.
5871 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
5873 * rtl.h (emit_line_note_after): Remove.
5874 (emit_note_copy_after, emit_note_copy): New.
5875 * emit-rtl.c (reorder_insns_with_line_notes): Replace
5876 emit_line_note_after with emit_note_copy_after.
5877 (emit_insn_after_with_line_notes): Likewise.
5878 (emit_line_note_after): Kill.
5879 (emit_note_copy_after): New.
5880 (emit_note_copy): New.
5881 * function.c (emit_return_into_block): Use emit_note_copy_after.
5882 (thread_prologue_and_epilogue_insns): Likewise.
5883 * integrate.c (expand_inline_function): Use emit_note_copy.
5884 (copy_insn_list): Likewise.
5885 * unroll.c (copy_loop_body): Likewise.
5886 * cfglayout.c (duplicate_insn_chain): Likewise.
5888 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
5890 * c-tree.h (define_label): Replace filename and lineno arguments
5892 * c-decl.c (poplevel): Adjust define_label call.
5893 (pop_label_level): Likewise.
5894 (define_label): Replace filename and lineno arguments with a
5896 (store_parm_decls): Use DECL_SOURCE_LOCATION.
5897 * c-parse.in (label): Adjust define_label call.
5899 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
5901 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
5902 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
5903 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
5904 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
5905 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
5907 2003-07-01 Andreas Jaeger <aj@suse.de>
5909 * final.c: Convert prototypes to ISO C90.
5911 * flags.h: Likewise.
5912 * gcov-io.c: Likewise.
5913 * gcov-io.h: Likewise.
5915 See ChangeLog.9 for earlier changes.