1 2003-08-22 Jason Eckhardt <jle@rice.edu>
3 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
4 (output_delayed_branch): Remove prototype.
5 (single_insn_src_p): Remove prototype.
6 * config/i860/i860.c (single_insn_src_p): Remove function.
7 (output_delayed_branch): Remove function.
8 (output_delay_insn): Remove function.
9 (va_start): Remove unconditional test and dead code, re-format.
10 Fix coding style and spelling problems in various comments.
11 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
12 (blockage pattern): ...and use it here.
13 (all define_peephole patterns related to delayed branches): Remove.
14 Fix coding style and spelling problems in various comments.
16 2003-08-22 Jason Eckhardt <jle@rice.edu>
18 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
19 Remove all uses of the PARAMS macro. Remove superflous prototypes.
20 Convert all function definitions from traditional to ISO C90 syntax.
21 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
22 with 'GCC'. Remove all uses of the PARAMS macro.
23 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
24 * config/i860/i860.md: Likewise.
25 * config/i860/sysv4.h: Likewise.
26 * config/i860/varargs.asm: Likewise.
28 2003-08-22 Jason Eckhardt <jle@rice.edu>
30 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
32 (tdesc_section): Add prototype.
33 Update copyright dates.
34 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
35 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
36 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
38 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
39 for '%d' where necessary.
40 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
41 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
42 by UNITS_PER_WORD when referencing (likewise for .floats).
43 (I860_SVR4_VARARGS): Rename...
44 (I860_SVR4_VA_LIST): ...to this.
45 Call build() with 't' rather than 'field'.
46 (i860_rtx_costs): New function.
47 (TARGET_RTX_COSTS): Define.
48 (i860_internal_label): New function.
49 (TARGET_ASM_INTERNAL_LABEL): Define.
50 (i860_file_start): New function.
51 Update copyright dates.
52 * config/i860/i860.h (CPP_PREDEFINES): Remove.
53 (TARGET_CPU_CPP_BUILTINS): Define.
54 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
55 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
56 (ASM_FILE_START): Remove.
57 (ASM_FILE_START_1): Remove.
58 (ASM_GLOBALIZE_LABEL): Remove.
59 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
60 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
61 with targetm.asm_out.internal_label.
62 Update copyright dates.
63 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
64 (CPP_PREDEFINES): Remove.
65 (TARGET_OS_CPP_BUILTINS): Define.
66 (GLOBAL_ASM_OP): Define.
67 (ASM_FILE_START): Remove.
68 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
69 (TARGET_ASM_FILE_START): Define.
70 Update copyright dates.
72 2003-08-22 Jason Eckhardt <jle@rice.edu>
74 * config.gcc (i860-*-sysv4*): Add target.
75 * config/i860/i860-protos.h: New.
76 * config/i860/i860.c: New.
77 * config/i860/i860.h: New.
78 * config/i860/i860.md: New.
79 * config/i860/sysv4.h: New.
80 * config/i860/varargs.asm: New.
81 * config/i860/x-sysv4: New.
83 2003-08-22 Jason Eckhardt <jle@rice.edu>
85 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
86 Remove all uses of PARAMS macro.
87 Convert all function definitions to ISO C90 syntax.
88 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
89 * config/pa/fptr.c: Likewise.
90 * config/pa/lib2funcs.asm: Likewise.
91 * config/pa/long_double.h: Likewise.
92 * config/pa/milli64.S: Likewise.
93 * config/pa/pa-64.h: Likewise.
94 * config/pa/pa-hpux.h: Likewise.
95 * config/pa/pa-hpux10.h: Likewise.
96 * config/pa/pa-hpux11.h: Likewise.
97 * config/pa/pa-linux.h: Likewise.
98 * config/pa/pa-modes.def: Likewise.
99 * config/pa/pa-osf.h: Likewise.
100 * config/pa/pa-pro-end.h: Likewise.
101 * config/pa/pa.md: Likewise.
102 * config/pa/pa32-linux.h: Likewise.
103 * config/pa/pa64-linux.h: Likewise.
104 * config/pa/pa64-hpux.h: Likewise.
105 * config/pa/pa64-regs.h: Likewise.
106 * config/pa/quadlib.c: Likewise.
107 * config/pa/rtems.h: Likewise.
108 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
109 all uses of the PARAMS macro.
110 * config/pa/pa.h: Likewise.
111 * config/pa/som.h: Likewise.
113 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
114 Remove all uses of PARAMS macro.
115 Convert all function definitions to ISO C90 syntax.
116 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
117 Remove all uses of PARAMS macro.
118 * config/iq2000.h: Remove all uses of PARAMS macro.
119 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
121 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
123 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
124 * config/s390/s390.c (gen_consttable): Remove.
125 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
126 (s390_output_pool_entry): New function.
127 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
128 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
129 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
130 (UNSPECV_POOL_ENTRY): ... this new constant.
131 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
132 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
133 ("*pool_entry"): ... and replace by this new insn.
134 ("literal_pool_31"): Do not emit anchor label if pool empty.
136 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
137 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
138 (s390_fixup_clobbered_return_reg): Remove.
139 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
140 (s390_return_addr_rtx): Always retrieve return address from save area
141 slot. Use save_return_addr_p to force slot to be filled.
142 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
144 2003-08-22 Chris Demetriou <cgd@broadcom.com>
146 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
147 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
148 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
149 around SB-1 errata if TARGET_FIX_SB1 is set.
150 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
151 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
153 2003-08-22 Roger Sayle <roger@eyesopen.com>
155 * hashtable.c (ht_expand): Avoid calculating rehash for the common
156 case that the first probe hits an empty hash table slot.
158 2003-08-22 Mark Mitchell <mark@codesourcery.com>
160 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
162 2003-08-22 Mark Mitchell <mark@codesourcery.com>
164 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
165 (ptr_extend_plus_imm): ... this.
166 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
168 (ia64_output_mi_thunk): Support ILP32 mode.
170 2003-08-22 bernardo innocenti <bernie@develer.com>
172 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
174 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
176 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
178 * config/i386/i386.c (const_int_1_operand): Simplify an
181 2003-08-22 Alan Modra <amodra@bigpond.net.au>
183 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
184 * config/rs6000/ppc64-fp.c: Likewise.
186 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
188 * cfgcleanup.c: Fix comment typos.
189 * emit-rtl.c: Likewise.
190 * optabs.c: Likewise.
191 * ra-build.c: Likewise.
192 * rtlanal.c: Likewise.
195 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
197 * c-decl.c: Fix comment formatting.
198 * cfgrtl.c: Likewise.
199 * combine.c: Likewise.
200 * convert.c: Likewise.
201 * dominance.c: Likewise.
202 * dwarf2out.c: Likewise.
203 * dwarfout.c: Likewise.
204 * expmed.c: Likewise.
205 * fold-const.c: Likewise.
207 * genattrtab.c: Likewise.
208 * ggc-common.c: Likewise.
209 * mips-tfile.c: Likewise.
210 * regmove.c: Likewise.
212 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
214 * builtin-attrs.def: Fix comment formatting.
215 * c-pretty-print.c: Likewise.
216 * diagnostic.h: Likewise.
217 * langhooks.h: Likewise.
219 * simplify-rtx.c: Likewise.
220 * tree.def: Likewise.
222 2003-08-22 Bernardo Innocenti <bernie@develer.com>
224 * config/m68k/m68k-protos.h: Convert to ISO C90.
225 * config/m68k/m68k.c: Likewise.
227 2003-08-21 Bernardo Innocenti <bernie@develer.com>
228 Paul Dale <pauli@snapgear.com>
229 Peter Barada <peter@baradas.org>
231 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
234 2003-08-21 Zack Weinberg <zack@codesourcery.com>
236 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
237 * config.gcc (*-*-openbsd): Don't set tm_file.
238 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
239 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
240 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
241 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
242 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
243 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
244 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
245 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
246 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
247 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
248 xscale-*-coff): Use explicit and complete lists of target headers
249 to include. Move definitions to tm_defines where appropriate.
250 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
251 not-yet-contributed configuration.
253 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
254 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
255 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
256 * config/i386/nto.h, config/iq2000/iq2000.h,
257 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
258 * config/m68k/linux.h, config/m68k/m68k-aout.h
259 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
260 * config/m68k/netbsd.h, config/m68k/openbsd.h
261 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
262 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
263 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
264 Remove includes of other target config headers, and
265 definitions of macros moved to tm_defines lists. Add #undefs
266 where now necessary to prevent redefinition warnings.
268 * config/h8300/coff.h: New file split out of...
269 * config/h8300/elf.h: ...here.
270 * config/m68k/hp320base.h: New file split out of...
271 * config/m68k/hp320.h: ...here.
272 * config/rs6000/lynxbase.h: New file split out of...
273 * config/rs6000/lynx.h: ...here.
275 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
276 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
278 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
279 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
280 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
281 Remove unnecessary #ifndef.
282 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
283 [under IN_LIBGCC2] with config/.
285 2003-08-21 Per Bothner <bothner@pbothner.com>
287 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
289 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
290 by return_at_eof check. Always call _cpp_pop_buffer at end.
292 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
295 * config/h8300/h8300.md (two anonymous patterns): Remove.
297 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
299 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
300 * config/mips/mips.c (function_arg_pass_by_reference): Never return
303 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
305 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
306 and similarly in (A | C) == D where C & ~D != 0.
308 2003-08-20 Geoffrey Keating <geoffk@apple.com>
311 * configure.in: When testing with_libs and with_headers, treat
312 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
313 * configure: Regenerate.
315 2003-08-20 Peter Barada <peter@baradas.org>
317 * longlong.h (umul_ppmm): Add ColdFire support.
319 2003-08-20 Peter Barada <peter@baradas.org>
320 Bernardo Innocenti <bernie@develer.com>
322 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
323 * config/m68k/m68k.h: Likewise.
324 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
325 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
326 * config/m68k/linux.h: Likewise.
327 * config/m68k/m68k.c: Likewise.
328 * config/m68k/m68k.md: Likewise.
329 * config/m68k/m68kelf.h: Likewise.
330 * config/m68k/netbsd-elf.h: Likewise.
331 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
333 2003-08-20 Bernardo Innocenti <bernie@develer.com>
335 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
336 * config/m68k/m68k.md: Likewise.
338 2003-08-20 Mark Mitchell <mark@codesourcery.com>
342 2003-08-19 Mark Mitchell <mark@codesourcery.com>
343 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
344 types with precisions other than those given by native machine
347 2003-08-20 Gunther Nikl <gni@gecko.de>
349 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
350 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
351 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
352 * config/m68k/m68k.md (anonymous define_insn): Likewise
353 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
354 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
355 code selected by NO_ASM_FMOVECR
357 2003-08-20 Gunther Nikl <gni@gecko.de>
359 * config/m68k/m68k.c (output_move_const_into_data_reg,
360 output_move_himode): unify MOTOROLA/MIT handling of moveq
361 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
364 2003-08-20 Gunther Nikl <gni@gecko.de>
366 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
368 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
369 HOST_WIDE_INT_PRINT_DEC with %wd
371 2003-08-20 Loren James Rittle <ljrittle@acm.org>
373 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
376 2003-08-20 Roger Sayle <roger@eyesopen.com>
379 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
380 operands before calling tree_int_cst_lt when performing associative
383 2003-08-20 Jason Merrill <jason@redhat.com>
385 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
386 (EXPR_CHECK): Don't check for 'r' or 's' if we're
387 checking IS_EXPR_CODE_CLASS.
388 * calls.c (calls_function_1): Likewise.
389 * fold-const.c (fold): Likewise.
390 * tree.c (iterative_hash_expr): Likewise.
391 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
393 2003-08-20 Gunther Nikl <gni@gecko.de>
395 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
396 depending on MOTOROLA_BSR
397 * config/m68k/m68k.md (anonymous define_insn): Likewise
399 2003-08-20 Jason Merrill <jason@redhat.com>
401 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
402 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
403 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
404 * dojump.c (do_jump): Likewise.
405 * fold-const.c (operand_equal_p, fold): Likewise.
406 (tree_expr_nonnegative_p): Likewise.
408 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
409 TYPE_USER_ALIGN for FIELD_DECLs.
411 * attribs.c (decl_attributes): Rebuild the function pointer type after
412 changing the target type.
413 * tree.c (get_qualified_type): Also check that the attributes match.
415 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
417 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
418 * objc/config-lang.in (stagestuff): ... to here.
420 2003-08-19 Mark Mitchell <mark@codesourcery.com>
423 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
424 NOP_EXPR) when necessary.
425 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
426 types with precisions other than those given by native machine
429 2003-08-19 Geoffrey Keating <geoffk@apple.com>
431 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
432 because some macro is defined.
434 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
436 * config/i386/darwin.h (ASM_SPEC): New.
437 (SUBTARGET_EXTRA_SPECS): New.
438 * config/rs6000/darwin.h (ASM_SPEC): New.
439 (SUBTARGET_EXTRA_SPECS): New.
440 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
441 a cross-compiler between two different processors on Darwin.
442 * configure: Regenerate.
444 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
446 * builtins.c: Fix comment typos.
447 * c-common.c: Likewise.
448 * c-decl.c: Likewise.
449 * c-pretty-print.c: Likewise.
450 * cfgbuild.c: Likewise.
451 * cfglayout.c: Likewise.
452 * cfgloopanal.c: Likewise.
453 * cgraphunit.c: Likewise.
454 * cppfiles.c: Likewise.
455 * dwarfout.c: Likewise.
457 * fold-const.c: Likewise.
459 * ggc-page.c: Likewise.
460 * haifa-sched.c: Likewise.
461 * pretty-print.c: Likewise.
464 * value-prof.c: Likewise.
466 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
468 * c-decl.c: Follow spelling conventions.
469 * cppfiles.c: Likewise.
471 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
473 * c-common.c: Fix comment formatting.
474 * c-common.h: Likewise.
475 * c-decl.c: Likewise.
476 * cppinit.c: Likewise.
477 * cpplib.h: Likewise.
478 * emit-rtl.c: Likewise.
480 * line-map.h: Likewise.
483 * simplify-rtx.c: Likewise.
485 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
487 * unwind-c.c: Add libgcc-style exception.
488 * unwind-dw2.c: Likewise.
489 * unwind-pe.h: Likewise.
490 * unwind-sjlj.c: Likewise.
491 * unwind.inc: Likewise.
493 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
495 PR c/5582 PR c++/10538
496 * langhooks-def.h (lhd_decl_uninit): Declare.
497 (LANG_HOOKS_DECL_UNINIT): New macro.
498 (LANG_HOOKS_INITIALIZER): Adjust.
499 * langhooks.h (struct lang_hooks): Add new field
501 * langhooks.c (lhd_decl_uninit): Define.
502 * c-common.c (c_decl_uninit_1): New function.
503 (c_decl_uninit): New function.
504 (warn_init_self): Define.
505 * c-common.h (c_decl_uninit): Declare.
506 (warn_init_self): Declare.
507 * c.opt: Introduce -Winit-self.
508 * c-opts.c (c_common_handle_options): Set warn_init_self.
509 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
510 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
511 * function.c (uninitialized_vars_warning): Call the language hook.
512 * doc/invoke.texi: Document -Winit-self.
514 2003-08-19 Chris Demetriou <cgd@broadcom.com>
516 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
517 to use better predicates and constraints. Define new
518 instruction to handle "trap_if" with DI-mode arguments.
519 (conditional_trap): FAIL if trap code is not 0.
521 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
523 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
524 strstr with $pb to a strcompare with "<pic base>"
525 (ix86_output_addr_diff_elt): Output the real pic base.
527 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
529 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
530 (LANG_HOOKS_INITIALIZER): Correct.
531 * c-lang.c: Likewise.
533 2003-08-19 Jan Hubicka <jh@suse.cz>
535 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
536 (cgraph_varpool_mark_needed_node): Likewise.
537 * cgraph.h (notice_global_symbol): Declare
538 * varasm.c (notice_global_symbol): Break out from ...
539 (assemble_start_function): ... here; update for variables.
540 (assemble_variable): Use notice_global_symbol.
542 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
544 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
545 expect SFmode and DFmode arguments to be passed in FPRs,
546 regardless of the underlying type.
548 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
551 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
552 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
554 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
557 * c-typeck.c (set_init_index): Check for negative index.
559 2003-08-18 Bob Wilson <bob.wilson@acm.org>
561 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
563 * config/xtensa/crtn.asm (_init, _fini): Likewise.
564 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
565 __umodsi3, __modsi3): Likewise.
566 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
569 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
571 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
573 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
575 * config/mips/mips.md: Quote C code in braces. Remove use of
576 fake const0_rtx operands. Remove double backslashes. Use \;.
577 Remove workarounds for bogus warnings.
579 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
581 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
582 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
583 rather than TARGET_MIPS4300.
584 (mulsf3_internal, mulsf3_r4300): Likewise.
586 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
588 * config/mips/mips.md: Renumber unspecs. Clean up comments.
590 2003-08-17 Roger Sayle <roger@eyesopen.com>
592 * simplify-rtx.c (associative_constant_p): New function to test
593 whether an RTX expression is an immediate constant.
594 (simplify_associative_operation): New function to perform some
595 reassociation optimizations of associative binary expressions.
596 (simplify_binary_operation): Use simplify_associative_operation
597 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
598 Floating point expressions are only reassociated when unsafe
599 math optimizations are permitted.
601 2003-08-17 Andreas Jaeger <aj@suse.de>
603 * config/alpha/alpha.md: Remove usage of PARAMS.
605 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
606 * config/i386/i386-interix.h: Likewise.
607 * config/i386/winnt.c: Likewise.
608 * config/i386/cygming.h: Likewise.
609 * config/i386/cygwin2.c: Likewise.
610 * config/darwin.c: Likewise.
611 * config/darwin-c.c: Likewise.
612 * config/darwin-protos.h: Likewise.
613 * config/darwin.h: Likewise.
614 * config/s390/s390-protos.h: Likewise.
615 * config/s390/s390.c: Likewise.
616 * config/ia64/ia64.c: Likewse
617 * config/ia64/ia64-protos.h: Likewise.
618 * config/ia64/ia64-c.c: Likewise.
620 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
622 * config/sparc/sparc.c: Convert to ISO C.
624 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
625 * config/sparc/sparc.c: Likewise.
627 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
630 * stmt.c (expand_expr_stmt_value): Don't warn about any void
633 2003-08-16 Jan Hubicka <jh@suse.cz>
635 * i386.c (ix86_fntype_regparm): Rename from ...
636 (ix86_function_regparm): ... this one; add fastcall and local
638 (ix86_function_ok_for_sibcall): Update.
639 (ix86_return_pops_args): Likewise.
640 (init_cumulative_args): Likewise.
641 (x86_can_output_mi_thunk): Likewise.
642 (function_arg): Fix formating.
643 (x86_this_parameter): Fix fastcall.
644 (x86_output_mi_thunk): Likewise.
646 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
647 body as reachable; mark nested functions as needed too.
648 (dump_cgraph): Do not output global.calls.
649 * cgraph.h (cgraph_global_info): Kill.
650 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
651 (record_call_1): Speedup.
652 (cgraph_analyze_function): Break out from ...; compute inlining
654 (cgraph_finalize_compilation_unit): ... here.
655 (cgraph_mark_inline): Kill computation of calls.
656 (cgraph_decide_inlining): Do not compute most of initial values.
658 2003-08-14 Roger Sayle <roger@eyesopen.com>
660 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
661 to negate if either operand is easy to negate, if we don't care
662 about sign-dependent rounding.
663 (negate_expr): Make the logic to negate a REAL_CST explicit.
664 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
665 that's easy to negate, if we don't honor sign-dependent rounding.
666 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
667 negate, and the symmetric A * -B as -A * B if A is easy to negate.
668 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
669 -C/D if B and C are cheap to negate. Add an explicit rule to
670 optimize X/-1.0 as -X when we don't care about signaling NaNs.
672 2003-08-14 Zack Weinberg <zack@codesourcery.com>
674 * Makefile.in (tm_file): Rename tm_include_list.
675 (tm_p_file): Rename tm_p_include_list.
676 (build_xm_file): Rename build_xm_include_list.
677 (host_xm_file): Rename host_xm_include_list.
678 (xm_file): Rename xm_include_list.
679 (xm_file_list): Add to be substituted.
680 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
682 (bt-load.o): Add missing dependency on $(TM_H).
683 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
684 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
685 build_xm_file, generate both *_file_list and *_include_list
686 values from it. (xm_file_list was formerly not being generated.)
687 In *_include_list, prefix the names of all headers found in
688 $(srcdir)/config with config/. In each loop, consider only
689 the special case files that can actually appear in that list.
690 AC_SUBST all *_file_list and all *_include_list variables; do
691 not AC_SUBST the plain *_file variables.
692 * configure: Regenerate.
694 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
696 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
698 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
700 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
702 (attr_length_call): Include it here. Improve length estimate for
704 (output_call): Use targetm.binds_local_p.
706 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
708 * builtins.c (CASE_MATHFN): New helper macro.
709 (mathfn_built_in): Simplify and sort.
711 * protoize.c (substr): Delete, callers changed to `strstr'.
713 2003-08-13 Zack Weinberg <zack@codesourcery.com>
715 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
716 * config/iq2000/xm-iq2000.h: Delete file.
718 2003-08-13 Geoffrey Keating <geoffk@apple.com>
720 * gengtype.c (walk_type): Process a subobject before processing
721 the pointer that points to the subobject.
723 2003-08-13 Per Bothner <pbothner@apple.com>
725 * regclass.c (init_reg_modes): Make non-static.
726 Rename to init_reg_modes_once per new naming convention.
727 (init_regs): Don't call init_reg_modes here.
728 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
729 * rtl.h (init_reg_modes_once): New declaration.
730 * toplev.c (backend_init): Call init_regs after init_emit_once.
732 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
734 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
735 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
737 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
739 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
740 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
742 2003-08-13 Dale Johannesen <dalej@apple.com>
744 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
745 handling of decrement-and-branch farther than 32 bits.
747 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
749 * configure.in (make_compare_target): Move test to ...
750 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
751 * configure: Regenerate.
753 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
755 * config/mips/iris6.h: Convert to C90 prototypes.
756 * config/mips/irix6-libc-compat.c: Likewise.
757 * config/mips/mips-protos.h: Likewise.
758 * config/mips/mips.c: Likewise.
760 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
762 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
763 for selected machines. Comment heavily.
764 fixinc/fixincl.x: Rebuild.
765 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
767 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
769 * config/mips/mips.h: Tweak various comments.
770 * config/mips/mips.c: Likewise.
772 2003-08-11 James E Wilson <wilson@tuliptree.org>
774 PR optimization/11319
776 * alias.c (find_base_value, case REG): Return 0 not src if no base
779 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
781 * gcse.c (gmalloc): Fix last change.
783 2003-08-11 Roger Sayle <roger@eyesopen.com>
785 * simplify-rtx.c (simplify_binary_operation): Replace calls to
786 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
787 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
788 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
790 2003-08-11 Roger Sayle <roger@eyesopen.com>
792 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
793 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
794 typecode for an ABS_EXPR.
796 * doc/c-tree.texi: Document ABS_EXPR.
798 2003-08-11 Roger Sayle <roger@eyesopen.com>
800 * fold-const.c (fold): Optimize any associative floating point
801 operator with -funsafe-math-optimizations, not just MULT_EXPR.
803 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
805 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
806 information in SHmedia case too.
807 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
809 (__set_fpscr): Use an access via GOT for PIC case.
811 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
813 * configure.in (intermodule): Make switch test more portable.
814 * configure: Regenerate.
816 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
818 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
821 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
823 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
824 (grealloc): Size argument is a size_t.
825 (gcalloc): New function. Use throughout in lieu of
828 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
830 * config/ia64/ia64.c (ia64_reorg): Likewise.
831 * conflict.c (conflict_graph_new): Likewise.
832 * fixinc/fixincl.c (run_compiles): Likewise.
833 * genattrtab.c (optimize_attrs): Likewise.
834 * genrecog.c (new_decision): Likewise.
835 * haifa-sched.c (schedule_block): Likewise.
836 * hashtable.c (ht_create): Likewise.
838 2003-08-11 Bob Wilson <bob.wilson@acm.org>
840 * config/xtensa/lib2funcs.S: Fix whitespace.
841 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
842 syntax where appropriate. Remove unnecessary backslash escapes.
843 Reformat comments and fix some code formatting.
844 (extendqisi2): Rearrange conditional.
845 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
846 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
849 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
851 * config/mips/mips.c: Various formatting fixes.
852 (override_options): Resync -mtune handling with gas.
853 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
854 * config/mips/mips.h: More formatting fixes.
855 (mips_abi): Move declaration.
856 * config/mips/mips.md (exception_receiver): Add mode to
859 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
861 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
863 (bdesc_1arg): Remove evsplati and evsplatfi.
865 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
867 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
870 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
872 * builtins.c (expand_builtin_strcat): Optimize constant strings.
874 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
876 * pretty-print.c (pp_base_indent): Rename from pp_indent.
877 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
878 (struct c_pretty_print_info): Add more fields.
879 (pp_c_left_paren): Move to c-pretty-print.c.
880 (pp_c_right_paren): Likewise.
881 (pp_c_left_brace): Likewise.
882 (pp_c_right_brace): Likewise.
883 (pp_c_left_bracket): Likewise.
884 (pp_c_right_bracket): Likewise.
885 (pp_c_declarator): Declare.
886 (pp_c_direct_declarator): Likewise.
887 (pp_c_specifier_qualifier_list): Likewise.
888 (pp_c_type_id): Likewise.
889 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
890 (pp_c_type_qualifier_list): New.
891 (pp_c_pointer): Likewise.
892 (pp_c_parameter_type_list): Likewise.
893 (pp_c_function_definition): Likewise.
894 (pp_c_id_expression): Likewise.
895 (pp_c_simple_type_specifier): Tidy.
896 (pp_c_unary_expression): Likewise.
897 (pp_c_expression): Likewise.
898 (pp_c_pretty_printer_init): Likewise.
899 (pp_c_specifier_qualifier_list): Rework..
900 (pp_c_abstract_declarator): Likewise.
901 (pp_c_postfix_expression): Likewise.
902 (pp_c_primary_expression): Likewise.
903 (pp_c_cast_expression): Likewise.
904 (pp_c_direct_abstract_declarator): Likewise.
905 (pp_c_storage_class_specifier): Likewise.
906 (pp_c_function_specifier): Likewise.
907 (pp_c_declaration_specifiers): Likewise.
908 (pp_c_direct_declarator): Likewise.
909 (pp_c_declarator): Likewise.
910 (pp_c_declaration): Likewise.
911 (pp_c_statement): Likewise.
912 (pp_c_integer_constant): Rename from pp_c_integer_literal.
913 (pp_c_character_constant): Rename from pp_c_character_literal.
914 (pp_c_bool_constant): Rename from pp_c_bool_literal.
915 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
916 (pp_c_floating_constant): Rename from pp_c_real_literal.
917 (pp_c_constant): Rename from pp_c_literal.
918 * c-lang.c: Include diagnostic.h and c-pretty-print.h
919 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
920 (c_initialize_diagnostics): New.
921 * Makefile.in (c-lang.o): Update dependency.
923 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
925 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
927 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
929 * config/mips/mips.c (mips_no_mips16_string): Remove.
930 (override_options): Don't handle -mips16 as part of -mipsN.
931 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
932 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
933 (TARGET_OPTIONS): Remove -mno-mips16.
935 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
937 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
938 (coprocessor2_operand): Likewise.
939 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
940 (lookup_name): Remove declaration.
941 (abort_with_insn): Remove. Replace all uses with fatal_insn.
942 (mips16, mips_abicalls): Remove.
943 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
944 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
945 (coprocessor_operand, coprocessor2_operand): Remove.
946 (override_options): Don't set mips16 or mips_abicalls.
947 (print_operand): Don't expect SIGN_EXTEND operands.
948 (mips_secondary_reload_class): Likewise.
949 (mips_output_conditional_branch): Remove disabled long-branch code.
950 * config/mips/mips.h (call_used_regs): Remove declaration.
951 (may_call_alloca): Likewise.
952 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
953 (mips_abicalls, mips16): Remove declarations.
954 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
955 (CC1_SPEC): Remove outdated comment.
956 (MIPS_VERSION, MACHINE_TYPE): Remove.
957 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
958 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
959 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
960 (PUSH_ROUNDING): Likewise.
961 (ASSEMBLER_SCRATCH_REGNUM): Remove.
962 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
963 and mips16 with TARGET_MIPS16.
965 2003-08-09 Per Bothner <pbothner@apple.com>
967 * cppinit.c (cpp_read_main_file): Split out source-independent
968 initialization to separate function ...
969 (cpp_post_options): New function.
970 * cppfiles.c (cpp_stack_file): Rename public name to ...
971 (_cpp_stack_file): New internal function name.
972 * cpplib.h: Update accordingly.
973 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
974 (cpp_read_main_file): Don't initialize line here.
975 * c-opts.c (c_common_post_options): Call cpp_post_options.
976 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
977 * fix-header.c (read_scan_file): Call cpp_post_options.
979 2003-08-09 Per Bothner <per@bothner.com>
981 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
983 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
985 * pa.c (pa_asm_output_mi_thunk): Fix typo.
987 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
989 PR preprocessor/11839
990 * cppfiles.c (open_file): Handle ENOTDIR.
992 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
995 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
997 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
999 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
1000 source/destination is not a register operand.
1002 2003-08-08 Richard Henderson <rth@redhat.com>
1005 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
1006 RETURN_ADDRESS_POINTER_REGNUM.
1007 (ia64_expand_prologue): Don't frob it.
1008 (ia64_output_function_epilogue): Likewise.
1009 (ia64_return_addr_rtx): New.
1010 (ia64_split_return_addr_rtx): New.
1011 * config/ia64/ia64-protos.h: Update.
1012 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
1013 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
1014 (GENERAL_REGNO_P): Don't check it.
1015 (AR_*_REGNUM): Renumber.
1016 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
1017 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
1018 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
1019 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
1020 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
1021 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
1022 (movdi_ret_addr): New.
1024 2003-08-08 Geoffrey Keating <geoffk@apple.com>
1026 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
1028 2003-08-08 Roger Sayle <roger@eyesopen.com>
1030 * tree.h (get_identifier) Define a macro form of get_identifier
1031 that calls get_identifier_with_length when the string is constant.
1032 (get_identifier_with_length): Change type of second argument to
1033 size_t in prototype.
1034 * stringpool.c (get_identifier): Undefine the macro before giving
1035 the function definition.
1036 (get_identifier_with_length): Change type of second argument to
1037 size_t in function definition.
1038 * hashtable.c (calc_hash): Change type of second argument to size_t.
1039 (ht_lookup): Change type of third argument to size_t. Reorganize
1040 to speed-up the cases where the hash table slot is empty, or the
1041 first probe matches (i.e. there isn't a collision).
1042 * hashtable.h (ht_lookup): Adjust function prototype.
1044 2003-08-08 Bernardo Innocenti <bernie@develer.com>
1048 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
1050 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
1052 * common.opt: Add debug switches.
1053 * flags.h (use_gnu_debug_info_extensions): Boolify.
1054 * opts.c (write_symbols, debug_info_level,
1055 use_gnu_debug_info_extensions): Move from toplev.c.
1056 (set_debug_level): New.
1057 (common_handle_options): Handle debug switches.
1058 (print_help): Display target options directly.
1059 * toplev.c (debug_hooks): Don't initialize.
1060 (write_symbols, debug_info_level,
1061 use_gnu_debug_info_extensions): Move to opts.c.
1062 (debug_args, display_help, decode_g_option): Remove.
1063 (process_options): Set no debug if level zero here,
1064 and no-debug-hooks. Error here if impossible debug format selected.
1065 * toplev.h (display_help, decode_g_option): Remove.
1067 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
1069 * tree.c (get_file_function_name_long): Fix size of alloca() area.
1071 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
1073 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
1074 and gcc_cv_prog_cmp_skip.
1075 * configure: Regenerate.
1077 2003-08-08 Stan Cox <scox@redhat.com>
1079 * config/iq2000: New port.
1080 * config.gcc (iq2000-*-elf): Added.
1081 * doc/install.texi (Specific): Add iq2000 description.
1083 2003-08-08 Andreas Schwab <schwab@suse.de>
1085 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
1086 and insert missing empty argument.
1087 * configure: Regenerate.
1089 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1091 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
1092 (attr_length_millicode_call): Likewise.
1093 (attr_length_call): Likewise. Revise some maximum insn lengths.
1094 (attr_length_indirect_call): Likewise.
1095 (output_call): Fix thinko that added extra nop.
1096 * pa.h (IN_NAMED_SECTION_P): Define.
1099 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
1100 __STDC_EXT__ when using C++ dialect.
1102 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
1104 * sh.c (calc_live_regs): If the return address pointer is live,
1106 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
1107 for saves / restores.
1108 (sh_expand_epilogue): If sh_media_register_for_return returns a
1109 register number, flag the instructions that restores PR_MEDIA_REG
1111 Remove dead update of offset.
1112 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
1113 we can use the result of get_hard_reg_initial_val.
1114 * sh.md (UNSPEC_RA): New constant.
1115 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
1116 (load_ra). Handle UNSPEC_RA.
1117 (sibcall_media): Use PR_MEDIA_REG.
1119 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
1120 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
1121 needs saving on SHmedia.
1123 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
1125 * config/s390/s390.md: Replace all occurrences of \\t with \t.
1127 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
1129 * local-alloc.c (combine_regs): Fix comment typo.
1131 2003-08-06 Zack Weinberg <zack@codesourcery.com>
1133 * c-decl.c (builtin_decls): Replace with first_builtin_decl
1134 and last_builtin_decl.
1135 (c_init_decl_processing): Initialize both.
1136 (c_reset_state): Iterate from first_builtin_decl to
1137 last_builtin_decl inclusive to reintroduce builtins.
1139 2003-08-06 David Mosberger <davidm@hpl.hp.com>
1141 * doc/extend.texi (Function Attributes): Document the IA-64 version
1142 of the "model" attribute.
1144 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
1145 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
1146 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
1148 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
1149 (ia64_encode_section_info): Likewise.
1150 (ia64_attribute_table): Add "model" attribute.
1151 (TARGET_ENCODE_SECTION_INFO): Define.
1152 (small_addr_symbolic_operand): New function.
1153 (got_symbolic_operand): Return 0 for a symbolref to an object
1154 in the small address area.
1155 (enum ia64_addr_area): New type.
1156 (small_ident1): New variable.
1157 (small_ident2): Likewise.
1158 (init_idents): New function.
1159 (ia64_get_addr_area): Likewise.
1160 (ia64_encode_addr_area): Likewise.
1161 (ia64_encode_section_info): Likewise.
1162 (ia64_expand_load_address): For symbolic references to objects in
1163 the small-address-area, load the address via gen_rtx_SET() (which,
1164 eventually, will expand into "addl").
1166 2003-08-06 Per Bothner <pbothner@apple.com>
1168 * line-map.h (fileline): New typedef.
1169 (struct line_map, linemap_add, linemap_lookup): Use it.
1170 * input.h (struct location_s): Comment notes that long-term we want
1171 to replace it by fileline.
1173 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
1175 Fix SHcompact exception handling:
1176 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
1177 by the prologue, return a MEM with return_address_pointer_rtx
1179 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
1180 (RETURN_ADDR_OFFSET): Don't define.
1181 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
1182 registers that are visible in compact mode. Show that SHmedia
1183 registers still exist in compact mode, even if there are not
1185 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
1186 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
1187 and DW_EH_PE_pcrel for pic data.
1188 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
1189 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
1190 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
1191 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
1192 * sh.md (movsi_media-1): New splitter.
1194 2003-08-06 Graeme Peterson <gp@qnx.com>
1196 * config/i386/nto.h: New.
1197 * config/i386/t-nto: New.
1198 * config.gcc (i[34567]86-*-nto-qnx*): New.
1200 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
1202 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
1204 2003-08-06 Alan Modra <amodra@bigpond.net.au>
1206 * calls.c (load_register_parameters): Arrange for call_fusage to
1207 report the whole register as used when shifting to the msb.
1209 2003-08-05 Roger Sayle <roger@eyesopen.com>
1211 * builtins.c (expand_builtin): When not optimizing, call the library
1212 function for all builtins that have library functions (except alloca).
1214 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
1216 * c.opt: Introduce -fworking-directory.
1217 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
1218 * c-common.h (flag_working_directory): Declare.
1219 * c-common.c (flag_working_directory): Define.
1220 * c-opts.c (c_common_handle_options): Set it.
1221 (sanitize_cpp_opts): Set...
1222 * cpplib.h (struct cpp_options): ... working_directory option.
1223 (struct cpp_callbacks): Add dir_change.
1224 * cppinit.c (read_original_filename): Call...
1225 (read_original_directory): New. Look for # 1 "directory//"
1227 (cpp_read_main_file): Call dir_change callback if working_directory
1229 * gcc.c (cpp_unique_options): Pass -g*.
1230 * c-lex.c (cb_dir_change): New.
1231 (init_c_lex): Set dir_change callback.
1232 * toplev.c (src_pwd): New static variable.
1233 (set_src_pwd, get_src_pwd): New functions.
1234 * toplev.h (get_src_pwd, set_src_pwd): Declare.
1235 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
1236 * dwarf2out.c (gen_compile_unit_die): Likewise.
1237 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
1239 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1241 * pretty-print.h (pp_set_line_maximum_length): Make macro.
1242 (pp_set_prefix): Likewise.
1243 (pp_destroy_prefix): Likewise.
1244 (pp_remaining_character_count_for_line): Likewise.
1245 (pp_clear_output_area): Likewise.
1246 (pp_formatted_text): Likewise.
1247 (pp_last_position_in_text): Likewise.
1248 (pp_emit_prefix): Likewise.
1249 (pp_append_text): Likewise.
1250 (pp_flush): Likewise.
1251 (pp_format_text): Likewise.
1252 (pp_format_verbatim): Likewise.
1253 (pp_tree_identifier): Tidy.
1254 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
1255 (pp_base_format_verbatim): Rename from pp_format_verbatim.
1256 (pp_base_flush): Rename from pp_flush.
1257 (pp_base_set_line_maximum_length): Rename from
1258 pp_set_line_maximum_length.
1259 (pp_base_clear_output_area): Rename from pp_clear_output_area.
1260 (pp_base_set_prefix): Rename from pp_set_prefix.
1261 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
1262 (pp_base_emit_prefix): Rename from pp_emit_prefix.
1263 (pp_base_append_text): Rename from pp_append_text.
1264 (pp_base_formatted_text): Rename from pp_formatted_text.
1265 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
1266 (pp_base_remaining_character_count_for_line): Rename from
1267 pp_remaining_character_count_for_line.
1268 * diagnostic.h (diagnostic_format_decoder): Tidy.
1269 (diagnostic_flush_buffer): Likewise.
1270 * c-pretty-print.h: (pp_c_string_literal): Declare.
1271 (pp_c_real_literal): Likewise.
1272 (pp_c_integer_literal): Likewise.
1273 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
1275 (pp_c_character_literal): Tidy.
1276 (pp_c_string_literal): Make public.
1277 (pp_c_bool_literal): Likewise.
1278 (pp_c_integer_literal): Likewise.
1279 (pp_c_real_literal): Likewise.
1281 * Makefile.in (C_PRETTY_PRINT_H): New variable.
1282 (c-pretty-print.o): Update dependence.
1284 2003-08-05 Chris Demetriou <cgd@broadcom.com>
1286 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
1287 ".set nomacro" state.
1288 (fix_truncsfsi2_macro): Likewise.
1290 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
1292 * tree.h (DID_INLINE_FUNC): Remove macro.
1293 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
1294 add tree check for FUNCTION_DECL.
1295 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
1296 (struct tree_decl): Rename inlined_function_flag to
1297 declared_inline_flag.
1298 * c-common.h (c_lang_decl): Remove.
1299 (DECL_ESTIMATED_INSNS): Remove.
1300 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
1301 (DECL_DECLARED_INLINE_P): Remove.
1302 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
1303 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
1304 (finish_function): Make uninlinable a bool. Fixup call to
1305 tree_inlinable_function_p() and fix some code style issues.
1306 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
1307 * cgraph.c (dump_cgraph): Likewise.
1308 * cgraphunit.c (cgraph_decide_inlining): Likewise
1309 (cgraph_finalize_compilation_unit): Likewise.
1310 Also update call to tree_inlinable_function_p().
1311 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
1312 look at DECL_DECLARED_INLINE and reverse logic.
1313 * print-tree.c (print_node): Likewise.
1314 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
1315 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
1317 * tree-inline.c (inlinable_function_p): Split up in this function to
1318 check for basic inlining inhibiting conditions, and new
1319 limits_allow_inlining() function. Warn if inlining is impossible
1320 because the inline candidate calls alloca or uses sjlj exceptions.
1321 (limits_allow_inlining): this new function to check if the inlining
1322 limits are satisfied. Throttle from currfn_max_inline_insns, not from
1323 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
1324 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
1326 (tree_inlinable_function_p): Make a bool. Update call to
1327 inlinable_function_p
1328 (expand_call_inline): Use limits_allow_inlining() when not in
1329 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
1330 instead see if the function was declared `inline'.
1332 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
1334 * gcse.c (try_replace_reg): Fix updating of note.
1336 2003-08-04 Roger Sayle <roger@eyesopen.com>
1339 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
1340 logic in negate_expr, i.e. we don't invert (A-B) for floating
1341 point types unless flag_unsafe_math_optimizations.
1343 2003-08-04 Roger Sayle <roger@eyesopen.com>
1345 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
1346 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
1347 for floating point expressions with -ffast-math.
1348 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
1349 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
1351 2003-08-04 Roger Sayle <roger@eyesopen.com>
1353 * c-common.c (flag_noniso_default_format_attributes): Delete.
1354 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
1355 (c_attrs_initialized): Delete.
1356 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
1357 always call c_init_attributes.
1358 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
1359 set c_attrs_initialized when done.
1360 (c_common_insert_default_attributes): Delete.
1361 * c-common.h (flag_noniso_default_format_attributes): Delete.
1362 (c_coomon_insert_default_attributes): Delete prototype.
1363 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
1364 flag_noniso_default_format_attributes.
1366 * c-decl.c (c_insert_default_attributes): Delete.
1367 * c-tree.h (c_insert_default_attributes): Delete prototype.
1369 * attribs.c (decl_attributes): Don't call insert_default_attributes
1370 langhook. Update function description comment.
1371 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
1372 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
1373 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
1374 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
1376 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
1379 2003-08-04 Richard Sandiford <rsandif@redhat.com>
1381 * config/mips/mips.c (override_options): Disable -G on targets that
1382 have no .section support.
1383 (mips_select_section): Use default_select_section for such targets.
1385 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
1387 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
1388 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
1389 * fixinc/fixincl.x: Rebuild.
1390 * fixinc/tests/base/regexp.h: New test.
1392 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
1394 * c-ppoutput.c (cb_line_change): Don't skip line changing while
1395 parsing macro arguments in the top-level context.
1397 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
1399 * config.in: Remove HAVE_LSTAT.
1400 * configure, configure.in: Don't test for lstat.
1402 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1404 * opts.c (decode_options): Do language-specific initialization for
1405 the global diagnostic context.
1406 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
1407 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
1408 (LANG_HOOKS_INITIALIZER): Adjust.
1409 * langhooks.h (struct lang_hooks): Add new field
1410 initialize_diagnostics.
1411 * langhooks.c (lhd_initialize_diagnostics): Define.
1413 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1415 * pretty-print.h: Adjust macro definitions.
1416 * pretty-print.c (pp_newline): Rename to pp_base_newline.
1417 (pp_character): Rename to pp_base_character.
1418 (pp_string): Rename to pp_base_string.
1419 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
1420 (pp_newline): Likewise. Adjust.
1421 (pp_c_char): Adjust.
1423 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1425 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
1426 BUILT_IN_LLABS): Move to miscellaneous section.
1428 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1430 PR preprocessor/11534
1431 * cppexp.c (parse_defined): Warn only if -pedantic.
1433 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1435 * cppfiles.c (stack_file): Use file path.
1437 2003-08-02 Roger Sayle <roger@eyesopen.com>
1439 * builtin-types.def (BT_SSIZE): New primitive type.
1440 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
1441 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
1442 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
1443 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
1444 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
1445 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
1446 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
1447 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
1448 few functions that define default attributes using it.
1449 * c-common.c (c_common_insert_default_attributes): Do nothing.
1451 * doc/extend.texi: Document these "new" builtins.
1453 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
1455 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
1456 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
1457 when -mieee-fp set and -shared not set.
1458 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
1460 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1462 * cppfiles.c (struct _cpp_file): Rename once_only_next to
1463 next_file. Remove import and pragma_once, add once_only.
1464 (find_file): Add new file structures to the all_files list.
1465 (should_stack_file): Mark #import-ed files once-only, and
1466 don't stack them if the file has already been stacked.
1467 (_cp_mark_file_once_only): Simplify.
1468 * cpphash.h (struct cpp_reader): Rename once_only_files
1469 to all_files. Rename saw_pragma_once to seen_once_only.
1470 (_cpp_mark_file_once_only): Update prototype.
1471 * cpplib.c (do_pragma_once): Update.
1473 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1475 * cppfiles.c (ENOTDIR): Remove.
1476 (open_file_in_dir): Rename find_file_in_dir. Handle errors
1477 other than ENOENT here.
1478 (once_only_file_p): Rename should_stack_file.
1479 (find_file, open_file_failed, read_file_guts): Report errors
1480 with full path name.
1481 (read_file): Move pch handling to should_stack_file.
1482 (should_stack_file): Handle PCH and once-only issues, and
1484 (stack_file): Don't do file reads.
1486 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1488 * libgcov.c (gcov_exit): Cleanup and fix.
1489 * profile.c (compute_value_histograms): Don't try to read profiles
1490 that are not present.
1492 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1494 * builtins.def: Categorize.
1496 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
1498 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
1500 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
1502 * config.gcc: Enable posix threads by default on darwin.
1504 2003-08-01 Jakub Jelinek <jakub@redhat.com>
1506 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
1507 even if nehedges1 is 0.
1509 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
1511 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
1512 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
1513 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
1516 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
1517 * fixinc/fixincl.x: Regenerate.
1518 * fixinc/tests/base/math.h: Regenerate to match test_text change.
1520 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1522 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
1524 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1526 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
1527 for accesses to exc_ptr.
1529 2003-08-01 Geoffrey Keating <geoffk@apple.com>
1531 * doc/sourcebuild.texi (Front End Directory): Don't make references
1532 to libsubdir, it's not part of the interface to frontends.
1533 * doc/install.texi (Configuration): Help users read faster by saying
1534 that GCC's configure options are the standard autoconf ones.
1535 Mention --libdir. Update the default rules for finding the
1536 assembler. Don't use libsubdir since we haven't said what it means.
1537 (Specific): In the Solaris 7 notes, update the place to put the
1539 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
1540 * doc/cpp.texi (Search Path): Actually, the search path
1541 depends on libdir, which can relocate with cpp.
1542 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
1543 now a private interface between the Makefile and the driver.
1545 2003-08-01 Richard Henderson <rth@redhat.com>
1547 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
1549 * varasm.c (lookup_constant_def): New function.
1550 * rtl.h (lookup_constant_def): Declare it.
1551 * dwarf2out.c (loc_descriptor_from_tree): Use it.
1552 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
1554 2003-08-01 Zack Weinberg <zack@codesourcery.com>
1556 * c-decl.c (gettags, pushdecl_function_level): Delete.
1557 (last_function_parm_vars): Rename last_function_parm_others.
1558 (current_function_parm_vars): Rename current_function_parm_others.
1559 (struct c_scope): Rewrite comment explaining this data structure.
1560 Add names_last, blocks_last, parms_last fields. Rename
1561 incomplete_list to incomplete.
1562 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
1563 (poplevel): Ignore second argument. No need to nreverse
1564 anything. Restructure such that each list is processed
1565 exactly once. Use 'const location_t *locus' syntactic sugar
1566 variable where useful. Issue unused variable warnings
1567 ourselves, do not rely on function.c.
1568 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
1569 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
1570 (implicitly_declare): decl cannot be error_mark_node.
1571 (undeclared_variable): Manipulate scope structure directly.
1572 (c_make_fname_decl): Likewise.
1573 (getdecls, c_init_decl_processing): Fix comment.
1574 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
1575 for 'last' variable.
1576 (grokparms): No need to nreverse parms list.
1577 (store_parm_decls_newstyle): Set up the parms_last and
1578 names_last fields of the new scope too.
1579 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
1580 on parms to begin with; check this under ENABLE_CHECKING. Set
1582 (check_for_loop_decls): Refer directly to current_scope->tags.
1583 Use consistent quote style in diagnostics.
1584 (c_write_global_declarations): The names list is not backward.
1586 * c-common.h: Don't prototype gettags.
1587 * c-parse.in: Call poplevel with second argument 0 always.
1589 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1591 * builtins.def: Resort builtins.
1593 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1595 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
1596 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
1597 Prepend "__builtin_" onto NAME with string concatenation. Remove
1598 explicit "__builtin_" from each macro call.
1600 Reformat entire file.
1602 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1604 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1605 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
1607 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
1609 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
1610 CCL1, or CCL2 modes with floating point operations.
1612 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
1613 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
1614 "*subdf3_cconly"): New insns.
1615 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
1617 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
1619 * Makefile.in: Refine dependencies.
1620 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
1621 * c.opt: Update help for -Wimport.
1622 * cppfiles.c: Include hashtab.h. Update comments.
1623 (stack_file): Read the file before updating dependencies.
1624 (once_only_file_p): Be smarter about marking once-only files.
1625 (_cpp_mark_file_once_only): Correct the check for existence on
1627 (open_file_failed): Use name not path, which is NULL.
1628 * cpphash.h: Don't include hashtab.h.
1629 (struct _cpp_file): Remove.
1630 (struct cpp_reader): Update.
1631 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
1632 * cpplib.h (struct cpp_options): Remove warn_import.
1633 (cpp_simplify_path): Remove.
1635 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
1638 * doc/extend.texi (Statement Expressions): Document C++ semantics.
1640 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1642 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
1644 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1646 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
1648 * builtins.def: Likewise.
1650 2003-07-31 Jason Merrill <jason@redhat.com>
1652 * Makefile.in (bubblestrap): Don't require a previous full
1655 * expr.c (mostly_zeros_p): No longer static.
1656 * tree.h: Declare it.
1657 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
1658 unless we need to do substitutions.
1660 2003-07-31 Roger Sayle <roger@eyesopen.com>
1662 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
1663 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
1664 as pow(x,2.0) when the latter will be expanded back into x*x.
1665 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
1666 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
1667 pow can never set errno when used with an integer exponent.
1668 Always use expand_powi when exponent is -1, 0, 1 or 2.
1669 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
1670 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
1671 the pow forms of these expressions.
1673 2003-07-31 Geoffrey Keating <geoffk@apple.com>
1675 * Makefile.in (libexecdir): New.
1676 (libsubdir): Use gcc instead of gcc-lib.
1677 (libexecsubdir): New.
1678 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
1679 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
1681 (installdirs): Make libexecsubdir.
1682 (install-common): Put executables in libexecsubdir.
1683 (itoolsdir): Use libexecsubdir.
1684 (itoolsdatadir): New.
1685 (install-mkheaders): Separate data files and executables.
1686 (install-collect2): Put executables in libexecsubdir.
1687 (uninstall): Remove libexecsubdir.
1688 * mkheaders.in: Update for new arrangement of files.
1690 (libexecsubdir): New.
1691 (itoolsdir): Use libexecsubdir.
1692 (itoolsdatadir): New.
1693 * gcc.c (gcc_libexec_prefix): New.
1694 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
1695 (standard_exec_prefix_1): Use libexec.
1696 (standard_exec_prefix_2): New.
1697 (standard_libexec_prefix): New.
1698 (process_command): Update for new arrangement of files. Compute
1699 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
1701 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
1703 * inclhack.def (stdio_va_list): Avoid bogus replacement which
1704 triggers on Interix.
1705 * fixincl.x: Regenerate.
1707 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1709 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
1710 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
1712 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1714 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
1716 2003-07-31 Per Bothner <pbothner@apple.com>
1718 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
1719 (add_input_filename): New function.
1720 (handle_options): Call add_input_filename directly instead of
1722 * opts.h (in_fnames, num_in_fnames): Moved here.
1723 (add_input_filename): Declare.
1724 * c-decl.c: Need to #include opts.h.
1725 * Makefile.in (c-decl.o): Also depends on opts.h.
1726 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
1727 (c_common_handle_filename): Replaced by add_input_filename.
1728 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
1730 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
1731 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1732 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
1733 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1735 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1737 * combine.c (try_combine): Set JUMP_LABEL for newly created
1740 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1742 * fold-const.c (fold): Fold some comparisons of bit operations.
1744 Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
1746 * cgraph.c (create_edge): Fix typo.
1747 * i386.c (pic_symbolic_operand): Reorder tests.
1749 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
1751 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
1753 (Gcov Data Files): Update.
1755 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1757 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
1760 * gthr-posix.c: New file.
1761 * gthr-posix.h: Define _REENTRANT if missing.
1762 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
1764 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
1766 * config/alpha/t-osf-pthread: New file.
1768 * fixinc/inclhack.def (alpha_pthread): New fix.
1769 * fixinc/fixincl.x: Regenerate.
1770 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
1772 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
1774 Fixes PR bootstrap/9330.
1776 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1778 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
1781 * configure: Regenerate.
1783 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
1785 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
1788 2003-07-30 Roger Sayle <roger@eyesopen.com>
1790 * builtins.def: Alphabetize.
1792 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1794 * doc/c-tree.texi: Normalize spellings of "lowercase" and
1796 * doc/cpp.texi: Likewise.
1797 * doc/md.texi: Likewise.
1798 * doc/rtl.texi: Likewise.
1799 * doc/tm.texi: Likewise.
1801 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1803 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
1804 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
1807 2003-07-30 Chris Demetriou <cgd@broadcom.com>
1809 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
1810 macros before defining them.
1812 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
1814 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
1815 UNSPECV_BLOCKAGE): New constants.
1816 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
1817 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
1818 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
1819 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
1821 (all insns and expanders): Write output control string as brace block
1822 where appropriate. Remove \-escapes for doublequote characters.
1824 Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
1826 * gcse.c (insert_store): Fix typo in previous patch.
1828 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
1830 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
1832 2003-07-30 Andi Kleen <ak@muc.de>
1834 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
1836 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1838 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
1839 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
1840 GCOV_N_VALUE_COUNTERS): New.
1841 * profile.c (compute_value_histograms): New static function.
1842 (branch_prob): Read back the value histograms.
1843 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
1844 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
1845 * value-prof.c: Add comment on reading the profile.
1846 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
1847 * doc/invoke.texi (-fprofile-values): Document behavior with
1848 -fbranch-probabilities.
1850 2003-07-30 David Edelsohn <edelsohn@gnu.org>
1852 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
1854 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
1856 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
1859 Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
1861 * gcse.c (insert_store): Ignore fake edges.
1863 * c-common.c (flag_vtable_gc): Kill.
1864 * c-common.g (flag_vtable_gc): Kill.
1865 * c-opts (c_common_handle_option): Kill.
1866 * c.opt (fvtable-gc): Kill.
1867 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
1868 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1869 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1871 * invoke.texi (-ftable-gc): Kill documentation.
1873 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
1874 just because function body is missing.
1876 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
1878 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
1880 * unwind-sjlj.c: Fix typo in file description.
1882 2003-07-30 Alan Modra <amodra@bigpond.net.au>
1884 * calls.c (load_register_parameters): When shifting reg sized values
1885 to the msb, move the value to a reg first.
1887 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1889 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
1890 * line-map.h (linemap_add): Update comments.
1891 * line-map.c (linemap_add): Update comments, interpret zero-length
1892 filename as "<stdin>".
1894 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
1896 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
1898 2003-07-29 Zack Weinberg <zack@codesourcery.com>
1900 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
1901 New static variables.
1902 (struct c_scope): Add parms and warned_forward_parm_decls
1903 fields; remove parm_order.
1904 (storedecls, storetags): Delete.
1905 (poplevel): Also clear bindings on the parms chain.
1906 (pushdecl): Handle forward declarations of parameters, and
1907 chain PARM_DECLs on the parms list, not the names list.
1908 (lookup_name_current_level): Check for PARM_DECLs on the parms
1910 (push_parm_decl): Don't update parm_order.
1911 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
1912 warning, only once per parameter list, and set TREE_ASM_WRITTEN
1913 on the decls here. Then move the forward decls to the names list.
1914 (grokparms): Set last_function_parm_vars.
1915 (get_parm_info): Don't use gettags or getdecls. No need to
1916 extract non-parms from the parms list, or reorganize the parms
1917 list. Feed nonparms back in the TREE_TYPE of the list node
1918 returned. Issue only one error per parameter list for "void"
1919 appearing more than once in said parameter list. Collapse
1920 parmlist_tags_warning into this function to avoid double scan
1922 (start_function): Set current_function_parm_vars.
1923 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
1924 directly. Get non-parms from current_function_parm_vars; no
1925 need to extract them from the parms chain. Properly bind tags
1927 (store_parm_decls_oldstyle): No need to extract non-parameters
1928 from the parms chain, nor to store them back afterward. Move
1929 declaration to top of function, restructure code reordering
1931 (store_parm_decls): No need to save and restore warn_shadow.
1932 * c-parse.in: Don't call parmlist_tags_warning nor
1933 clear_parm_order. Call mark_forward_parm_decls when forward
1934 parm decls are encountered.
1935 * c-tree.h: Prototype mark_forward_parm_decls; not
1936 clear_parm_order or parmlist_tags_warning.
1938 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1940 * c-common.c (allow_pch): Remove.
1941 * c-common.h (allow_pch): Remove.
1942 (c_common_no_more_pch): Declare.
1943 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
1944 * c-pch.c: Include hosthooks.h.
1945 (c_common_valid_pch): Don't check allow_pch.
1946 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
1947 (c_common_no_more_pch): New.
1948 * ggc-common.c: Include hosthooks.h.
1949 (gt_pch_save): Call gt_pch_get_address.
1950 (gt_pch_restore): Call gt_pch_use_address.
1951 * hooks.c (hook_voidp_size_t_null): New.
1952 (hook_bool_voidp_size_t_false): New.
1953 * hooks.h (hook_voidp_size_t_null): New.
1954 (hook_bool_voidp_size_t_false): New.
1955 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
1956 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
1957 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
1958 HOST_HOOKS_GT_PCH_USE_ADDRESS.
1959 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
1961 * doc/hostconfig.texi (Host Common): Document
1962 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
1963 * Makefile.in (c-pch.o): Depend on hosthooks.h.
1964 (ggc-common.o): Likewise.
1966 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
1967 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
1968 (pch_address_space): New.
1969 (darwin_rs6000_gt_pch_get_address): New.
1970 (darwin_rs6000_gt_pch_use_address): New.
1972 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
1974 PR preprocessor/11569
1975 PR preprocessor/11649
1976 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
1977 * cppfiles.c: Completely rewritten.
1978 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
1979 struct cpp_path is now struct cpp_dir.
1980 (remove_duplicates): Don't simplify path names.
1981 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
1983 * cpphash.h: Include hashtab.h.
1984 (_cpp_file): Declare.
1985 (struct cpp_buffer): struct include_file is now struct _cpp_file,
1986 and struct cpp_path is now struct cpp_dir. Rename members.
1987 (struct cpp_reader): Similarly. New members once_only_files,
1988 file_hash, file_hash_entries, quote_ignores_source_dir,
1989 no_search_path, saw_pragma_once. Remove all_include_files and
1990 max_include_len. Make some members bool.
1991 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
1992 (_cpp_stack_file): Renamed from _cpp_read_file.
1993 (_cpp_stack_include): Renamed from _cpp_execute_include.
1994 (_cpp_init_files): Renamed from _cpp_init_includes.
1995 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
1996 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
1997 (cpp_read_next_file): Rename and move to cppfiles.c.
1998 (cpp_read_main_file): Update.
1999 * cpplib.c (run_directive): Update for renamed members.
2000 (do_include_common, _cpp_pop_buffer): Update.
2001 (do_import): Undeprecate #import.
2002 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
2003 * cpplib.h: Remove file_name_map_list.
2004 (cpp_options): Remove map_list.
2005 (cpp_dir): Rename from cpp_path. New datatype for name_map.
2006 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
2008 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
2010 * Makefile.in: Make stamp-objdir safe for parallel builds.
2012 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
2014 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
2015 (info): Depend on stmp-docobjdir.
2017 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2019 * configure: Regenerate.
2021 Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
2024 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
2025 in !unit-at-a-time mode.
2027 2003-07-28 Geoffrey Keating <geoffk@apple.com>
2029 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
2032 2003-07-28 Mark Mitchell <mark@codesourcery.com>
2035 * c-common.c (shorten_compare): Take into account differences
2036 between C and C++ representation for enumeration types.
2037 * tree.h (set_min_and_max_values_for_integral_type): Declare.
2038 * stor-layout.c (set_min_and_max_values_for_integral_type): New
2039 function, broken out from ...
2040 (fixup_signed_type): ... here and ...
2041 (fixup_unsigned_type): ... here.
2043 2003-07-28 Zack Weinberg <zack@codesourcery.com>
2045 * c-decl.c: Update commentary, adjust blank lines throughout.
2046 (struct c_scope): Fix indentation. Reorder members so
2047 outer-context pointers come first, booleans last.
2048 (duplicate_decls, define_label): Use a 'locus' variable for
2049 diagnostic locations in a few more places.
2050 (warn_if_shadowing): Un-split a conditional that fits on one line.
2051 (c_init_decl_processing): No need to clear current_scope and
2052 current_function_scope.
2053 (start_decl): Merge if/else if statements with same action.
2054 (push_parm_decl): Rename old_immediate_size_expand to use
2055 save_foo convention; save/restore around entire function.
2056 (grokdeclarator): Remove unnecessary braces.
2058 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
2059 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
2061 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
2062 when warn_declaration_after_statement. Call pedwarn_c90, not
2063 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
2064 * c-common.c (warn_declaration_after_statement): Define.
2065 * c-common.h (warn_declaration_after_statement): Declare.
2066 * c.opt (Wdeclaration-after-statement): New.
2067 * c-errors.c (pedwarn_c90): New function.
2068 * c-opts.c (c_common_handle_option) <case
2069 OPT_Wdeclaration_after_statement>: New.
2070 * c-tree.h (pedwarn_c90): Declare.
2071 * doc/invoke.texi (Option Summary): Document
2072 -Wdeclaration-after-statement.
2073 (Warning Options): Ditto.
2075 Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
2077 * i386.md (memory attribute) Avoid accessing uninitialized memory
2078 for ishift1 type instructions.
2080 2003-07-28 Jakub Jelinek <jakub@redhat.com>
2082 * configure.in (--enable-checking): Add fold category.
2083 (ENABLE_FOLD_CHECKING): Define if requested.
2084 * configure: Rebuilt.
2085 * config.in: Rebuilt.
2086 * doc/install.texi: Document it.
2087 * fold-const.c: Include md5.h.
2088 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
2089 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
2090 print_fold_checksum): New functions.
2092 * fold-const.c (fold): Never modify argument passed to fold, instead
2093 change a copy and return it.
2094 * convert.c (convert_to_integer): Likewise.
2096 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
2098 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
2099 cleanup of junk after #else and #endif directives. Collapse repeated
2100 clauses into for statment.
2102 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
2104 2003-07-27 Zack Weinberg <zack@codesourcery.com>
2106 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
2107 (keep_next_if_subblocks): Rename next_is_function_body.
2108 (pushlevel): Adjust commentary. Always set ->keep on the
2109 outermost level of a function. Don't set ->keep_if_subblocks.
2110 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
2111 (store_parm_decls): Adjust to match.
2112 (finish_function): Adjust to match.
2113 Call poplevel with all three arguments zero.
2115 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
2116 New functions split out of store_parm_decls.
2117 Avoid unnecessary work. Use local variables consistently.
2118 (store_parm_decls): Likewise.
2120 (finish_function): No need to set functionbody flag on call to
2122 (struct language_function): Remove scope field.
2123 (c_push_function_context, c_pop_function_context): No need to
2124 save and restore current_scope.
2126 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
2128 * doc/extend.texi (Deprecated Features): Implicit typename is
2129 gone. Default args on types is going.
2131 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
2133 * Makefile.in (ifcvt.o): Depend on target.h
2134 * ifcvt.c (target.h): Include.
2135 (if_convert): Don't call mark_loop_exit_edges if we can't
2138 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2140 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
2142 2003-07-26 Richard Henderson <rth@redhat.com>
2145 * cse.c (count_reg_usage): Handle asm_operands properly.
2147 2003-07-26 Roger Sayle <roger@eyesopen.com>
2149 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
2150 (DEF_EXT_FALLBACK_BUILTIN): Delete.
2151 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
2152 the regular DEF_EXT_LIB_BUILTIN macro.
2153 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
2154 the regular DEF_LIB_BUILTIN macro.
2155 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
2156 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
2157 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
2158 DEF_EXT_LIB_BUILTIN macro.
2160 * c-decl.c (duplicate_decls): Remove code to handle builtin
2161 functions prototyped without an argument list.
2163 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
2165 * config/i386/winnt.c: Revert 2003-07-08 change.
2166 (i386_pe_section_type_flags): Remove error_with_decl here too.
2168 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
2170 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
2171 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
2172 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
2173 (v850_handle_data_area_attribute): Likewise.
2175 2003-07-26 Geoffrey Keating <geoffk@apple.com>
2177 * varasm.c (output_constant_def_contents): Use
2178 ASM_DECLARE_CONSTANT_NAME if defined.
2179 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
2180 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
2181 objects get at least one byte to prevent assembler problems.
2182 (ASM_DECLARE_CONSTANT_NAME): New.
2184 * Makefile.in (libbackend.o): Remove options_.h.
2185 (mostlyclean): Likewise.
2187 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
2188 insert a label at the end of an function under Mach-O.
2190 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
2192 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
2194 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
2196 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
2198 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
2200 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2202 * doc/passes.texi (Passes): Mention pretty-printing and
2205 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
2207 * doc/extend.texi (Function Attributes): GNU C++ does now allow
2208 unused parameter decls.
2209 (Attribute Syntax): GNU C++ does not allow label attributes to be
2212 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2214 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
2215 (objc_declare_class): Likewise.
2216 (error_with_ivar): Likewise.
2217 (start_class): Likewise.
2218 (warn_with_method): Likewise.
2220 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2222 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
2224 * calls.c (try_to_integrate): Don't use xxx_with_decl.
2225 (expand_call): Likewise.
2226 * dwarfout.c (output_reg_number): Likewise.
2227 * expr.c (expand_expr): Likewise.
2228 * function.c (assign_temp): Likewise.
2229 (uninitialized_vars_warning): Likewise.
2230 (setjmp_args_warning): Likewise.
2231 (expand_function_end): Likewise.
2232 * stmt.c (fixup_gotos): Likewise.
2233 (warn_about_unused_variables): Likewise.
2234 (expand_end_bindings): Likewise.
2235 * stor-layout.c (layout_decl): Likewise.
2236 (place_field): Likewise.
2237 * toplev.c (check_global_declarations): Likewise.
2238 (rest_of_handle_inlining): Likewise.
2239 (default_tree_printer): New function.
2240 (general_init): Initialize diagnostic machinery before routing
2241 signals to the ICE machinery. Set default tree printer.
2242 * toplev.h (pedwarn_with_decl): Remove declaration.
2243 (warning_with_decl): Likewise.
2244 (error_with_decl): Likewise.
2245 (pedwarn): Remove attribute for the time being.
2246 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
2247 * varasm.c (named_section): Likewise.
2248 (make_decl_rtl): Likewise.
2249 (assemble_variable): Likewise.
2250 (merge_weak): Likewise.
2251 (declare_weak): Likewise.
2253 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
2254 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
2255 (format_with_decl): Remove.
2256 (diagnostic_for_decl): Likewise.
2257 (pedwarn_with_decl): Likewise.
2258 (warning_with_decl): Likewise.
2259 (error_with_decl): Likewise.
2260 (diagnostic_initialize): Adjust.
2261 (diagnostic_count_diagnostic): Likewise.
2262 (announce_function): Likewise.
2263 (lhd_print_error_function): Likewise.
2264 (diagnostic_report_current_module): Likewise.
2265 (default_diagnostic_starter): Likewise.
2266 (diagnostic_report_diagnostic): Likewise.
2267 (default_diagnostic_finalizer): Likewise.
2268 (verbatim): Likewise.
2270 (warning): Likewise.
2271 * opts.c (common_handle_option): Likewise.
2272 * pretty-print.c: New file.
2273 * c-pretty-print.h (pp_base): Override.
2274 * c-pretty-print.c: Adjust use of macros throughout.
2275 (pp_buffer): New macro.
2276 (pp_newline): Likewise.
2277 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
2278 * Makefile.in (DIAGNOSTIC_H): New variable.
2279 (c-errors.o): Use it.
2280 (c-objc-common.o): Likewise.
2281 (c-common.o): Likewise.
2282 (c-opts.o): Likewise.
2283 (c-format.o): Likewise.
2284 (diagnostic.o): Likewise.
2286 (toplev.o): Likewise.
2287 (rtl-error.o): Likewise.
2288 (dwarf2out.o): Likewise.
2290 (pretty-print.o): New rule.
2292 2003-07-24 Roger Sayle <roger@eyesopen.com>
2294 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
2295 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
2296 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
2297 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
2298 (DEF_FRONT_END_LIB_BUILTIN): Delete.
2299 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
2300 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
2302 * builtins.c (build_string_literal): New function to construct
2303 a char* pointer to a string literal.
2304 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
2305 "rtx target" to be consistent with other expand_builtin_* functions.
2306 Change 3rd argument from "int unlocked" to "bool unlocked".
2307 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
2308 c-common.c to avoid front-end dependencies. Optimize printf("")
2309 as a no-op when the result isn't required. Handle embedded NULs
2311 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
2312 from c-common.c to avoid front-end dependencies. Likewise, optimize
2313 fprintf(fp,"") as a no-op when the result isn't required, evaluating
2314 fp for side-effects. Handle embedded NULs in format string.
2315 (expand_builtin_sprintf): Fix typo.
2316 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
2317 optimizing. Adjust calls of expand_builtin_fputs to match the API
2318 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
2319 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
2320 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
2322 * c-common.c (is_valid_printf_arglist): Delete.
2323 (c_expand_builtin): Delete.
2324 (c_expand_builtin_printf): Moved to builtins.c. Delete.
2325 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
2326 (c_expand_expr): No longer treat CALL_EXPRs specially.
2327 (CALLED_AS_BUILT_IN): Delete.
2329 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2331 PR optimization/11631
2332 * gcse.c (store_motion): Connect infinite loops to exit.
2334 2003-07-24 Jason Merrill <jason@redhat.com>
2336 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
2337 (boolean_true_node, boolean_false_node): Likewise.
2338 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
2339 * tree.c (build_common_tree_nodes): Init boolean_type_node.
2340 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
2341 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
2342 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
2343 (truthvalue_true_node): Renamed from boolean_true_node.
2344 (truthvalue_false_node): Renamed from boolean_false_node.
2345 * c-decl.c: Just set truthvalue_* to integer_*.
2346 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
2348 2003-07-24 Roger Sayle <roger@eyesopen.com>
2350 * c-decl.c (match_builtin_function_types): New subroutine of
2351 duplicate_decls to test whether a redeclaration of a builtin
2352 function is suitably close, i.e. the return type and all of
2353 the argument types have the same modes as the builtin expects.
2354 (duplicate_decls): Fuzzy type matching for builtin functions
2355 moved to match_builtin_function_types.
2357 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2359 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
2362 2003-07-24 Zack Weinberg <zack@codesourcery.com>
2364 * c-decl.c: Search-and-replace change 'binding level' to
2365 'scope' in commentary.
2366 (struct binding_level): Now struct c_scope.
2367 (current_binding_level): Now current_scope.
2368 (free_binding_level): Now scope_freelist.
2369 (current_function_level): Now current_function_scope.
2370 (global_binding_level): Now global_scope.
2371 (make_binding_level): Now make_scope.
2372 (pop_binding_level): Now pop_scope.
2374 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2376 * configure.in (libgcc_visibility): Add missing whitespace.
2378 2003-07-24 Richard Henderson <rth@redhat.com>
2380 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
2381 __gcc_personality_v0.
2383 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2385 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
2387 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
2389 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
2390 documentation missed from my 2003-07-09 patch.
2392 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
2394 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
2396 * configure: Rebuild.
2398 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
2401 * c-typeck.c (type_lists_compatible_p): Do not compare
2402 arguments if one of them is an error_mark_node
2404 2003-07-24 Alan Modra <amodra@bigpond.net.au>
2406 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
2407 if current_function_calls_eh_return.
2409 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2411 * doc/c-tree.texi (OFFSET_TYPE): Update description.
2413 2003-07-23 Bob Wilson <bob.wilson@acm.org>
2415 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
2416 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
2417 __umodsi3, __modsi3): Increase frame size to 32.
2419 2003-07-23 Geoffrey Keating <geoffk@apple.com>
2421 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
2424 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2426 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
2428 PR optimization/10679
2429 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
2431 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2433 PR target/11607 and PR target/11516
2434 * pa.md (extzv, extv, insv): Revert latter half of last patch.
2436 2003-07-22 Mark Mitchell <mark@codesourcery.com>
2438 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
2439 * varasam.c (output_constant): Likewise.
2441 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2443 * alias.c: Fix comment formatting.
2444 * c-common.c: Likewise.
2445 * c-decl.c: Likewise.
2446 * c-opts.c: Likewise.
2447 * combine.c: Likewise.
2448 * cpplib.c: Likewise.
2449 * diagnostic.c: Likewise.
2450 * dojump.c: Likewise.
2451 * final.c: Likewise.
2452 * fold-const.c: Likewise.
2455 * ggc-page.c: Likewise.
2458 * mips-tfile.c: Likewise.
2459 * recog.c: Likewise.
2460 * regclass.c: Likewise.
2461 * regmove.c: Likewise.
2465 2003-07-22 Per Bothner <pbothner@apple.com>
2467 * line-map.c (add_line_map): Handle invalid LEAVE request.
2468 Fixes PR preprocessor/11361.
2470 2003-07-22 Per Bothner <pbothner@apple.com>
2472 * diagnostic.c.(diagnostic_report_current_module): Update to match
2473 2003-06-05 changes to push_srcloc and pop_srcloc.
2475 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
2477 * doc/trouble.texi: Better document two-stage name lookup.
2479 2003-07-22 Eric Christopher <echristo@redhat.com>
2481 * config/s390.c (s390_valid_pointer_mode): New.
2482 (TARGET_VALID_POINTER_MODE): Use.
2483 (s390_emit_prologue): Add tpf profiling hooks.
2484 (s390_emit_epilogue): Ditto.
2485 * config/s390.h (MASK_TPF): New.
2487 (POINTERS_EXTEND_UNSIGNED): Define.
2488 * config/s390.md (ptr_extend): New pattern.
2490 2003-07-22 Zack Weinberg <zack@codesourcery.com>
2492 * hashtable.c (approx_sqrt): Make static.
2493 * hashtable.h: Don't prototype approx_sqrt.
2494 * line-map.c (init_line_maps): Rename linemap_init.
2495 (free_line_maps): Rename linemap_free.
2496 (add_line_map): Rename linemap_add.
2497 (lookup_line): Rename linemap_lookup.
2498 (print_containing_files): Rename linemap_print_containing_files.
2499 * linemap.h: Update to match.
2501 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
2502 linemap routines to use new names.
2504 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
2506 * c-common.c (handle_packed_attribute): Don't pack a struct via a
2507 typedef. Propagate packedness from a main variant.
2509 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
2511 * Makefile.in (install-common): Add dependency on installdirs.
2513 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
2515 * c-common.c (c_common_type_for_mode): Return integer types for
2518 2003-07-22 Geoffrey Keating <geoffk@apple.com>
2520 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
2521 (finish_decl): Call maybe_apply_pragma_weak here.
2522 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
2523 TREE_PUBLIC and TREE_STATIC are decided.
2524 (start_function): Move call to maybe_apply_pragma_weak. Check that
2525 DECL_ASSEMBLER_NAME isn't set too early.
2527 * cpplex.c (_cpp_process_line_notes): Mention option name in
2530 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2532 * combine.c (if_then_else_cond): Simplify the comparison of
2533 rtx against -1, 0, and 1.
2534 * loop.c (check_dbra_loop): Likewise.
2535 * optabs.c (emit_conditional_move): Likewise.
2536 (emit_conditional_add): Likewise.
2537 * config/i386/i386.md (*movsi_or): Likewise.
2538 (*movdi_or_rex6): Likewise.
2540 Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
2542 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
2544 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
2546 * cppfiles.c (open_file_pch): Don't put unused entries in the
2547 splay tree. Remove dead code.
2549 2003-07-21 Geoffrey Keating <geoffk@apple.com>
2551 * c-common.h (num_in_fnames): Declare.
2552 (c_static_assembler_name): Move from here...
2553 * c-tree.h (c_static_assembler_name): ... to here.
2554 * c-opts.c: Don't include langhooks-def.h.
2555 (c_static_assembler_name): Move to c-decl.c.
2556 (num_in_fnames): Make externally visible.
2557 * c-decl.c: Include langhooks-def.h.
2558 (c_static_assembler_name): Move from c-opts.c.
2559 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
2560 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
2562 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
2563 when it's not needed.
2565 2003-07-21 Jakub Jelinek <jakub@redhat.com>
2567 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
2568 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
2569 (rs6000_emit_prologue): Save FPRs inline if set.
2571 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
2573 * config/ia64/ia64.md (prefetch): Support predicate.
2575 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
2577 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
2578 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
2581 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2583 PR optimization/11536
2584 * unroll.c (loop_iterations): Do not replace a register holding
2585 the final value by its equivalent before the loop if it is not
2588 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
2590 * doc/extend.texi: Fixes to spelling, grammar, and diction.
2592 2003-07-21 Ben Elliston <bje@wasabisystems.com>
2594 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
2595 (V850 Options): Spelling fixes.
2597 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
2599 * doc/invoke.texi: Fixes to style, grammar and diction.
2601 2003-07-20 Roger Sayle <roger@eyesopen.com>
2603 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
2604 * system.h (SMALL_STACK): Poison obsolete target macro.
2605 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
2607 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
2609 * configure.in: Cache the results of testing for cmp's capabilities.
2610 * configure: Regenerate.
2612 2003-07-20 Mark Mitchell <mark@codesourcery.com>
2615 * dwarf2out.c (gen_enumeration_type_die): Remember that
2616 enumerators can be unsigned.
2618 2003-07-19 Zack Weinberg <zack@codesourcery.com>
2620 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
2621 (push_label_level, pop_label_level): Kill.
2622 (struct binding_level): Rename level_chain to outer.
2623 Add outer_function field. Change parm_flag, function_body,
2624 keep, keep_if_subblocks to 1-bit bitfields of type bool.
2625 (current_function_level): New variable.
2626 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
2627 (keep_next_level, declare_parm_level, warn_if_shadowing):
2629 (struct language_function): Kill named_labels, shadowed_labels fields.
2630 (c_init_decl_processing, start_function, c_push__function_context)
2631 (c_pop_function_context): No need to muck with named_labels nor
2634 (make_binding_level): No need to clear the structure here.
2635 (pop_binding_level): Always operate on current_binding_level.
2636 Update current_function_level if necessary.
2637 (pushlevel): Don't clear named_labels. Update current_function_level
2638 if necessary. Use "true" and "false" where appropriate.
2639 (poplevel): Diagnose labels defined but not used, or vice
2640 versa, and clear out label-meanings leaving scope, while
2641 walking down the decls list, for all binding levels.
2642 Handle LABEL_DECLs appearing in the shadowed list.
2643 pop_binding_level takes no arguments.
2644 (pushdecl_function_level): Use current_function_level.
2646 (make_label, bind_label): New static functions.
2647 (declare_label): New exported function.
2648 (lookup_label, define_label): Rewritten for new data structure.
2649 (shadow_label): Kill.
2651 * c-tree.h: Prototype declare_label; don't prototype
2652 push_label_level, pop_label_level, nor shadow_label.
2653 * c-parse.in: Remove all calls to push_label_level and
2654 pop_label_level. Use declare_label for __label__ decls.
2656 * doc/extend.texi: Clarify that __label__ can be used to
2657 declare labels with local scope in any nested block, not
2658 just statement expressions. Cross-reference nested functions
2659 section from local labels section.
2661 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2663 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
2665 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
2667 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
2669 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2671 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
2672 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
2674 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
2676 * config/s390/s390.c (legitimize_pic_address): Access local symbols
2677 relative to the GOT instead of relative to the literal pool base.
2678 (s390_output_symbolic_const): Handle new GOT-relative accesses.
2679 * config/s390/s390.md ("call"): Access local functions and PLT stubs
2680 relative to the GOT instead of relative to the literal pool base.
2681 ("call_value"): Likewise.
2682 ("call_value_tls"): Likewise.
2684 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
2685 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
2686 (s390_chunkify_finish): Likewise.
2687 (s390_chunkify_cancel): Likewise.
2688 (s390_reorg): Adapt caller.
2689 (find_base_register_in_addr,
2690 find_base_register_ref, replace_base_register_ref): Delete.
2691 (find_ltrel_base, replace_ltrel_base): New functions.
2692 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
2693 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
2694 base vs. index register usage.
2695 (struct constant_pool): Remove 'anchor'.
2696 (s390_add_anchor): Delete.
2697 (s390_dump_pool): Remove anchor handling.
2698 * config/s390/s390.md ("reload_anchor"): Remove.
2700 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
2701 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
2702 (s390_emit_prologue): Use it.
2703 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
2704 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
2705 hard-code register 14.
2706 * config/s390/s390-protos.h (s390_load_got): Declare.
2708 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
2709 Support TImode constants.
2710 * config/s390/s390.md ("consttable_ti"): New.
2711 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
2713 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
2714 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
2715 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
2716 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
2717 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
2718 New symbolic constants.
2719 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
2720 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
2721 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
2722 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
2723 symbolic UNSPEC values.
2724 * config/s390/s390.c (larl_operand, s390_short_displacement,
2725 bras_sym_operand, s390_cannot_force_const_mem,
2726 s390_delegitimize_address, s390_decompose_address,
2727 legitimize_pic_address, s390_output_symbolic_const,
2728 s390_function_profiler): Use symbolic UNSPEC values.
2730 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2732 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
2733 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
2734 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
2735 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
2736 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
2737 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
2738 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
2739 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
2740 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
2741 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
2742 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
2743 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
2744 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
2745 postreload.c prefix.c print-tree.c protoize.c ra-build.c
2746 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
2747 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
2748 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
2749 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
2750 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
2751 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
2754 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2756 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
2757 * toplev.h (warning): Remove attribute.
2759 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2761 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
2762 (pop_label_level): Likewise.
2763 (duplicate_decls): Likewise.
2764 (implicitly_declare): Likewise.
2765 (shadow_label): Likewise.
2766 (start_decl): Likewise.
2767 (finish_decl): Likewise.
2768 (grokdeclarator): Likewise.
2769 (get_parm_info): Likewise.
2770 (detect_field_duplicates): Likewise.
2771 (finish_struct): Likewise.
2772 (start_function): Likewise.
2773 (store_parm_decls): Likewise.
2774 (finish_function): Likewise.
2775 (c_expand_body_1): Likewise.
2776 (check_for_loop_decls): Likewise.
2777 (merge_translation_unit_decls): Likewise.
2779 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
2781 * common.opt: Document --param.
2782 * opts.c (columns, undocumented_msg): New.
2783 (print_help): Get number of columns from environment. Print
2784 --param help. Tweak newline handling.
2785 (print_param_help): New.
2786 (print_filtered_help): Better handling of duplicates. Complain
2787 about undocumented switches.
2788 (print_switch): New.
2789 (wrap_help): Improve wrapping, use COLUMNS.
2790 * opts.sh: Ignore comments in records.
2791 * params.def: Fix typos and remove trailing periods.
2792 * toplev.c (display_help): Don't dump --param help.
2793 * doc/sourcebuild.texi: Update.
2795 2003-07-18 Richard Henderson <rth@redhat.com>
2798 * optabs.c (prepare_operand): Fail gracefully instead of abort
2799 if the predicate doesn't satisfy.
2800 (gen_cond_trap): Allow prepare_operand to fail.
2802 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2804 * c-common.c: Don't undefine GCC_DIAG_STYLE.
2805 (fname_decl): Don't use xxx_with_decl.
2806 (c_add_case_label): Likewise.
2807 (handle_section_attribute): Likewise.
2808 (handle_alias_attribute): Likewise.
2809 (handle_no_instrument_function_attribute): Likewise.
2810 (handle_no_limit_stack_attribute): Likewise.
2811 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
2812 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
2814 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2816 * Makefile.in (ifcvt.o): Add cfgloop.h.
2817 * basic-block.h (EDGE_LOOP_EXIT): New flag.
2818 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
2819 * ifcvt.c: Include cfgloop.h.
2820 (mark_loop_exit_edges): New static function.
2821 (if_convert): Call it.
2822 (find_if_header): Ignore branches out of loops.
2824 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
2826 * combine.c (simplify_comparison): Don't share rtx when converting
2827 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
2829 2003-07-18 David Edelsohn <edelsohn@gnu.org>
2831 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
2832 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2833 (MUST_PASS_IN_STACK): Define.
2834 (BLOCK_REG_PADDING): Define.
2836 2003-07-18 Richard Henderson <rth@redhat.com>
2838 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
2839 to skip the addr_vec.
2841 Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
2843 * combine.c (combinable_i3pat): Don't forbid occurrences of
2844 i2dest or i1dest in inner_dest if inner_dest is a mem.
2846 Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
2848 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
2850 2003-07-17 Jakub Jelinek <jakub@redhat.com>
2853 * loop.c (basic_induction_var): Check if convert_modes emitted any
2854 instructions. Remove them and return 0 if so.
2856 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
2858 PR optimization/11083
2859 * toplev.c (rest_of_handle_addresof): Rename into
2860 rest_of_handle_addressof. Delete unreachable blocks
2861 if dead edges were purged after the addressof pass.
2863 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
2865 * Makefile.in, configure, configure.in: Remove handling of
2866 lang-options.h and options_.h.
2867 * toplev.c (struct lang_opt, documented_lang_options): Remove.
2868 (display_help): Don't use documented_lang_options.
2870 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2872 * c-decl.c (pushdecl_function_level): Make static, return nothing.
2873 (kept_level_p): Fold into poplevel.
2874 (undeclared_variable): Moved here from c-typeck.c. Export.
2875 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
2876 (undeclared_variable): Prototype here. Don't prototype
2877 kept_level_p nor pushdecl_function_level.
2878 * c-parse.in: Change first argument to poplevel from
2879 "kept_level_p()" to "KEEP_MAYBE".
2880 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
2882 2003-07-17 Roger Sayle <roger@eyesopen.com>
2884 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
2885 commutative operands instead of modifying the RTL in-place.
2887 2003-07-17 Mark Mitchell <mark@codesourcery.com>
2889 PR optimization/11557
2890 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
2891 unless we know which function is being called.
2893 2003-07-17 Roger Sayle <roger@eyesopen.com>
2895 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
2896 whether to reorder the operands of a commutative binary operator.
2898 2003-07-17 Roger Sayle <roger@eyesopen.com>
2900 * fold-const.c (const_binop): Avoid performing the FP operation at
2901 compile-time, if either operand is NaN and we honor signaling NaNs,
2902 or if we're dividing by zero and either flag_trapping_math is set
2903 or the desired mode doesn't support infinities.
2904 (fold_initializer): New function to fold an expression ignoring any
2905 potential run-time exceptions or traps.
2906 * tree.h (fold_initializer): Prototype here.
2907 * c-typeck.c (build_binary_op): Move to the end of the file so
2908 that intializer_stack is in scope. If constructing an initializer,
2909 i.e. when initializer_stack is not NULL, use fold_initializer to
2911 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
2912 performing FP operations at compile-time, if they would raise an
2913 exception at run-time.
2915 2003-07-17 Geoffrey Keating <geoffk@apple.com>
2918 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
2919 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
2920 (GTFILES): Add langhooks.c.
2921 (gt-langhooks.h): New.
2922 * c-common.h (c_static_assembler_name): Prototype.
2923 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2924 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2925 * c-opts.c: Include langhooks-def.h.
2926 (c_static_assembler_name): New.
2927 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
2929 (lhd_set_decl_assembler_name): Give static objects with context
2931 * varasm.c (var_labelno): Delete.
2932 (make_decl_rtl): Don't change the assembler name once it's set.
2934 * c-opts.c (this_input_filename): New.
2935 (finish_options): Take new parameter, name of file being compiled.
2936 Update callers. Set this_input_filename.
2937 (push_command_line_include): Use this_input_filename not
2938 main_input_filename.
2940 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2942 * Makefile.in: Depend .pot generation on options.c.
2943 * po/exgettext: Add an extra_files variable containing additional
2946 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2948 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
2949 c_write_global_declarations.
2951 * c-decl.c: Fix typos in several comments. Remove all
2952 #if 0 blocks; reindent as needed. Remove unused argument
2953 to declare_parm_level; all callers changed.
2954 * c-parse.in: Update calls to declare_parm_level. Avoid
2955 issuing a double warning in some circumstances.
2956 * c-typeck.c: Update calls to declare_parm_level.
2957 * c-tree.h: Update prototype of declare_parm_level.
2959 * c-pragma.c (apply_pragma_weak): Don't complain about a
2960 redundant #pragma weak.
2962 * objc/objc-act.c (forward_declare_categories,
2963 build_selector_reference_decl, build_class_reference_decl,
2964 build_objc_string_decl, synth_forward_declarations,
2965 build_protocol_reference): Set TREE_PUBLIC on synthetic
2966 forward decl to 0, consistent with eventual definition.
2967 Correct comments to match.
2969 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
2970 in regexp that don't form a range expression.
2971 * fixinc/fixincl.def: Regenerate.
2973 2003-07-17 Richard Henderson <rth@redhat.com>
2976 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
2977 even with !TARGET_CONST_GP.
2978 (ia64_function_ok_for_sibcall): Reject non-local functions.
2980 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
2982 * c-common.c (c_estimate_num_insns_1): Don't handle
2984 * expr.c (safe_from_p): Likewise.
2985 * gengtype.c (adjust_field_tree_exp): Likewise.
2986 * stmt.c (warn_if_unused_value): Likewise
2987 * tree.c (first_rtl_op): Likewise.
2988 * tree.def: Don't define METHOD_CALL_EXPR.
2989 * java/lang.c (java_estimate_num_insns_1): Don't handle
2992 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2995 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
2996 and its restrictions for the SPARC64 port.
2997 Move the entry of "-mimpure-text" before that of "-mv8".
2999 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3000 Phil Edwards <phil@jaj.com>
3002 * doc/install.texi (*-*-solaris2*): Document the step-by-step
3003 procedure to bootstrap and install.
3004 Document the preference for the legacy Sun tools in /usr/bin
3005 over the POSIX tools in /usr/xpg4/bin for the build process.
3007 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
3009 * c.opt: Document Uncodumented; use it. Document ObjC options.
3010 * opts.c (print_filtered_help): Skip undocumented switches.
3011 * opts.h (CL_UNDOCUMENTED): New.
3012 * opts.sh: Handle Undocumented.
3013 * toplev.c (documented_lang_options): Prevent its becoming empty.
3015 * lang-options.h: Remove.
3017 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
3019 * loop.c (check_ext_dependent_givs): Pass const struct loop *
3020 instead of struct loop_info * as argument. Accept BIVs with
3021 increment +/- 1 provided there is a friendly exit test against
3022 a loop-invariant value.
3023 (strength_reduce): Adapt call to check_ext_dependent_givs.
3025 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
3026 Con Bradley <con.bradley@superh.com>
3028 * sh-protos.h (sh_get_pr_initial_val): Declare.
3029 * sh.c (regno_reg_class): Make its elements type enum reg_class.
3030 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
3031 and live_regs_mask arguments. Changed all callers.
3032 (save_schedule_s): New structure.
3033 (save_schedule): New typedef.
3034 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
3035 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
3036 In interrupts handlers, also save registers that are usually
3037 partially saved, and make sure there is at least one general purpose
3038 register saved if a target register needs saving.
3039 Add casts in comparisons to avoid warnings.
3040 (sh_media_register_for_return): return -1 for interrupt handlers.
3041 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
3042 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
3043 registers used are available.
3044 Set RTX_FRAME_RELATED_P where appropriate.
3045 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
3046 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
3047 (initial_elimination_offset): Likewise.
3048 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
3049 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
3050 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
3051 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
3052 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
3053 and for target registers.
3054 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
3055 (regno_reg_class): Make its elements type enum reg_class.
3056 (CONSTRAINT_LEN): Don't use isdigit.
3057 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
3058 (FUNCTION_ARG): Add parentheses to avoid warnings.
3059 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
3060 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
3061 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
3062 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
3063 * sh.md (xordi3+1): Remove unused variable regno.
3064 (return_media): Check that tr0 is available before using it.
3066 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
3068 * c.opt: Document more options.
3070 2003-07-16 Roger Sayle <roger@eyesopen.com>
3072 * combine.c (subst): Also handle (subreg (const_double ...)) case
3073 if created by a substitution, by using the original inner mode.
3075 2003-07-16 Roger Sayle <roger@eyesopen.com>
3077 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
3078 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
3079 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
3081 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
3083 * doc/install.texi (--without-headers): New.
3085 Partial Fix PR/10129
3086 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
3087 (machopic_output_function_base_name): New; print the true pic label.
3088 (machopic_classify_ident): Pic Base is always a defined data.
3089 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
3090 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
3092 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
3093 if they are not floating point registers.
3096 * ggc.h: Add header guards.
3097 * c-decl.c (finish_struct): Sort fields if
3098 number greater than 15 and there are no
3099 anonymous structs/unions.
3100 * c-common.h: Include ggc.h.
3101 (sorted_fields_type): New struct.
3102 (field_decl_cmp): New prototype.
3103 (resort_sorted_fields): New prototype.
3104 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
3105 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
3106 as s, removing other fields.
3107 * c-typeck.c (lookup_field): Use s in lang_type.
3108 These were mostly moved from cp/class.c:
3109 * c-common.c (field_decl_cmp): New static function.
3110 (field_decl_cmp): New function.
3111 (resort_sorted_fields): New function.
3113 2003-07-16 Geoffrey Keating <geoffk@apple.com>
3115 * config/darwin.c (machopic_select_section): Use decl_readonly_section
3116 to do most of the work.
3118 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
3120 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
3121 * config/mmix/mmix.c: Convert functions to ISO C90.
3122 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
3124 (mmix_get_hard_reg_initial_val): Tweak section head comment.
3126 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
3128 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
3130 2003-07-16 Jakub Jelinek <jakub@redhat.com>
3132 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
3133 (uw_update_context_1): Use it.
3134 * config/rs6000/rs6000.c (insn_after_throw): Remove.
3135 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
3136 in parent frame if _Unwind_* called directly instead of through
3138 (rs6000_emit_eh_toc_restore): Remove.
3139 (rs6000_emit_prologue): Update stack pointer before doing any saving
3140 if current_function_calls_eh_return. Generate unwind info for $r2.
3141 (rs6000_emit_epilogue): Restore stack pointer after doing all
3142 restoring if current_function_calls_eh_return. Restore $r2.
3143 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
3144 * config/rs6000/rs6000.md (eh_return): Remove call to
3145 rs6000_emit_eh_toc_restore.
3146 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
3147 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
3149 2003-07-15 Jakub Jelinek <jakub@redhat.com>
3151 * expr.c (emit_block_move): Don't move anything if size is const 0.
3152 (clear_storage): Test against const0_rtx instead of comparing INTVAL
3155 2003-07-15 David S. Miller <davem@redhat.com>
3157 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
3158 emit nop if the last real insn is CALL_INSN.
3160 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
3162 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
3164 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
3166 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
3168 * config/i386/winnt.c (associated_type): Artificial methods are not
3169 affected by the import/export status of their class unless they are
3171 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
3173 * config/i386/winnt.c: Fix GCC copyright comment.
3175 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
3178 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
3179 not recursing on hard error.
3180 (diagnostic_for_decl): Likewise.
3181 * diagnostic.def: Rearrange.
3183 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
3185 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
3186 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
3188 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
3189 Richard Henderson <rth@redhat.com>
3191 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
3192 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
3193 (_Unwind_SetGR): Likewise.
3194 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
3195 (Unwind_SpTmp): New typedef.
3196 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
3197 (uw_update_context): Use _Unwind_GetPtr.
3198 (init_dwarf_reg_size_table): Move above uw_init_context_1.
3199 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
3200 Use _Unwind_SetSpColumn.
3201 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
3204 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
3206 * c.opt: Document more options.
3207 * toplev.c (documented_lang_options): Remove all local help strings.
3209 2003-07-15 Mark Mitchell <mark@codesourcery.com>
3212 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
3215 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
3218 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
3219 swap comparison operands if doing so would generate an
3220 unrecognizable insn.
3222 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
3224 PR optimization/11320
3225 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
3226 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
3227 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
3228 current_sched_info->compute_jump_reg_dependencies. Record which
3229 registers are used and which registers are set by the jump.
3230 Clear deps->reg_conditional_sets after a barrier.
3231 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
3232 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
3233 (init_deps): Initialize reg_conditional_sets.
3234 (free_deps): Clear reg_conditional_sets.
3235 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
3236 Mark registers live on entry of the fallthrough block and conditionally
3237 set as set by the jump. Mark registers live on entry of non-fallthrough
3238 blocks as used by the jump.
3239 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
3240 Mark new parameters as unused.
3242 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3244 * doc/invoke.texi: Resync MIPS -march documentation.
3246 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3248 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
3249 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
3250 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
3251 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
3252 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
3253 (mips_issue_rate): Handle PROCESSOR_R9000.
3254 (mips_use_dfa_pipeline_interface): Likewise.
3255 * config/mips/9000.md: New file.
3256 * config/mips/mips.md: Include it.
3257 (define_attr cpu): Add r9000.
3258 (mulsi3_mult3): Use "mul" for rm9000 code.
3260 2003-07-15 Stan Cox <scox@redhat.com>
3262 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
3263 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
3264 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
3265 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
3266 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
3267 (mips_issue_rate): Handle PROCESSOR_R7000.
3268 (mips_use_dfa_pipeline_interface): Likewise.
3269 * config/mips/7000.md: New file.
3270 * config/mips/mips.md: Include it.
3271 (define_attr cpu): Add r7000.
3272 (mulsi3_mult3): Use "mul" for rm7000 code.
3274 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3276 * config/mips/mips.md (define_attr type): Add condmove. Use it for
3277 the conditional move patterns.
3278 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
3279 Check for condmove type.
3280 (ir_vr54_arith): Add move type.
3281 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
3282 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
3284 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
3286 * c-opts.c (print_help): Remove.
3287 (c_common_handle_option): Don't handle --help.
3288 * c.opt: Document some options.
3290 * opts.c (print_filtered_help): New.
3291 (print_help): Use it.
3293 2003-07-14 Geoffrey Keating <geoffk@apple.com>
3295 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
3296 * tree.c: (build_common_tree_nodes_2): Likewise.
3297 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
3298 (V4DF_type_node): New.
3300 * c-opts.c (push_command_line_include): Don't free deferred_opts,
3302 (finish_options): Reset init_cursor.
3304 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
3306 * expr.c (expand_assignment): Remove an unused argument
3308 * expr.h: Update the prototype.
3309 * function.c: Update the callers.
3312 2003-07-14 Mark Mitchell <mark@codesourcery.com>
3315 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
3318 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3320 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
3321 with __cplusplus, not "we must use the C++ compiler's type"
3322 * fixinc/inclhack.def (void_null): Note that Interix needs this.
3323 * fixinc/fixincl.x: Regenerate.
3325 2003-07-14 Geoffrey Keating <geoffk@apple.com>
3327 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
3328 and unseen_objects from the global data before calling
3329 __deregister_frame_info_bases.
3330 (examine_objects): Insert objects into the seen_objects list,
3332 (_Unwind_Find_FDE): Always unlock the global object lists, even if
3333 we couldn't allocate a data structure to put in it.
3335 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
3336 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
3337 (SET_TYPE_PROTOCOL_LIST): New.
3338 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
3339 (get_object_reference): Likewise.
3341 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
3343 * cfglayout.c (locator_file): Break out from ....
3344 (insn_file): ... here.
3345 (locator_line): Break out from ....
3346 (insn_line): ... here.
3347 * rtl.h (locator_file, locator_line): Declare.
3348 (final_start_function): Set proper line/file info.
3350 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
3352 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
3353 handled by pp_c_cast_expression.
3355 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3357 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
3358 allocate 32768 bytes of stack. Use addition rather than subtraction
3359 when a single insn is enough.
3360 * config/mips/mips.md: Remove insns and splitters for subtracting
3362 (subsi3): Only accept register operands.
3363 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
3364 (subdi3_internal_3, subsi3_internal_2): Likewise.
3365 (casesi): Use expand_binop to subtract the lower bound.
3367 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3369 * config/mips/mips.c (mips_in_small_data_p): Don't handle
3370 TARGET_MIPS16 specially.
3372 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3374 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
3375 mips_output_aligned_bss.
3376 * config/mips/linux.h: Likewise.
3377 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
3378 * config/mips/mips.c (mips_output_aligned_bss): New function.
3380 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
3381 * config/mips/elf64.h: Likewise.
3383 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
3384 mips_declare_object_name.
3385 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
3386 * config/mips/elf64.h: As for elf.h.
3387 * config/mips/iris6.h: Likewise.
3388 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
3389 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
3390 do...while (0) block.
3391 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
3392 (mips_finish_declare_object): Declare.
3393 * config/mips/mips.c (mips_declare_object_name): New function.
3394 (mips_finish_declare_object): New function.
3396 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
3397 * config/mips/linux.h: Likewise.
3399 * config/mips/mips.c (inside_function): Delete.
3400 (file_in_function_warning, ignore_line_number): Delete.
3401 (mips_output_filename): Don't warn about changing filenames within
3403 (mips_output_lineno): Update accordingly.
3404 (mips_output_function_prologue): Don't reset the deleted variables.
3405 * config/mips/mips.h (inside_function): Delete.
3406 (file_in_function_warning, ignore_line_number): Delete.
3408 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
3409 * config/mips/elf64.h: Likewise.
3410 * config/mips/openbsd.h: Likewise.
3411 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
3412 * config/mips/linux.h: Likewise.
3413 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
3414 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
3416 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
3417 to the list of include files when using gas.
3418 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
3419 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
3420 * config/mips/elf64.h: Likewise.
3421 * config/mips/iris5.h: Likewise.
3422 * config/mips/linux.h: Likewise.
3423 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
3424 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
3425 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
3426 * config/mips/sdb.h: ...this new file.
3428 2003-07-14 Douglas Rupp <rupp@gnat.com>
3430 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
3431 argument to getcwd; use fixed buffer instead.
3433 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3435 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
3436 * fixinc/fixinc.wrap: Delete.
3438 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3440 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
3443 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3445 * ggc-page.c (struct globals): Add new fields to keep track of the
3446 total allocated memory and overhead.
3447 (ggc_print_statistics): Print them.
3448 (ggc_alloc): Keep track of the total allocated memory and the
3451 * tree.c (dump_tree_statistics): Increase spacing.
3452 (enum tree_node_kind): Move to ...
3453 * tree.h (enum tree_node_kind): ... here.
3454 (tree_node_counts, tree_node_sizes): Declare.
3456 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
3458 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
3460 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3462 PR optimization/11440
3463 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
3466 2003-07-14 Alan Modra <amodra@bigpond.net.au>
3468 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
3469 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
3470 (emit_group_load, emit_group_store): Adjust declarations.
3471 Remove most occurrences of #ifdef TREE_CODE.
3472 * expr.c (emit_group_load): Add "type" param, and use
3473 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
3474 aligned accesses if !SLOW_UNALIGNED_ACCESS.
3475 (emit_group_store): Likewise.
3476 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
3477 emit_group_load and emit_group_store calls.
3478 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
3479 BLOCK_REG_PADDING to determine whether we need endian_correction.
3480 (load_register_parameters): Localize vars. Handle shifting of
3481 small values to the correct end of regs. Adjust emit_group_load
3483 (expand_call, emit_library_call_value_1): Adjust emit_group_load
3484 and emit_group_store calls.
3485 * function.c (assign_parms): Set mem alignment for stack slots.
3486 Adjust emit_group_store call. Store values at the "wrong" end
3487 of regs to the stack. Use BLOCK_REG_PADDING.
3488 (locate_and_pad_parm): Save where_pad.
3489 (expand_function_end): Adjust emit_group_load call.
3490 * stmt.c (expand_value_return): Adjust emit_group_load call.
3491 * Makefile.in (calls.o): Depend on $(OPTABS_H).
3492 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
3493 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
3494 (MUST_PASS_IN_STACK): Define.
3495 (BLOCK_REG_PADDING): Define.
3496 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
3497 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
3498 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
3499 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
3500 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
3502 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
3504 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
3506 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3508 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
3509 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
3511 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3514 * toplev.c: Don't cut off option names.
3516 2003-07-13 Andreas Jaeger <aj@suse.de>
3518 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
3519 to integer of different size.
3521 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
3523 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
3524 to (eq (and X 1) 0).
3526 2003-07-13 Andreas Jaeger <aj@suse.de>
3528 * config.gcc: Add pmmintrin.h for x86_64-*-*.
3530 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3532 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
3533 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
3534 list. Move these all together down by cpplib.
3536 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
3537 definition of CPPCHAR_SIGNED_T.
3539 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
3540 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
3541 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
3543 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
3544 * cppinit.c (cpp_create_reader): Likewise.
3546 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
3547 * cpptrad.c: Likewise. All callers changed.
3548 * cpplib.c: All callers changed.
3549 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
3550 * hashtable.h: Define GTY(x) to nothing here too.
3552 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3554 * stor-layout.c (compute_record_mode): Remove very obsolete test
3555 that forces BLKmode for records with fields crossing word boundary.
3557 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3559 * Makefile.in: Remove orphan reference to acconfig.h.
3561 2003-07-13 Andreas Jaeger <aj@suse.de>
3563 * cgraphunit.c: Convert prototypes to ISO C90.
3565 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3567 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
3569 * fixinc/fixincl.x: Rebuild.
3571 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3573 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
3574 i?86-*-*. Use correct name of cache variable.
3575 * configure: Regenerate.
3577 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3579 * config/alpha/alpha.c: Fix comment typos.
3580 * config/alpha/alpha.md: Likewise.
3581 * config/arm/arm.c: Likewise.
3582 * config/arm/arm.md: Likewise.
3583 * config/arm/lib1funcs.asm: Likewise.
3584 * config/avr/avr.md: Likewise.
3585 * config/arm/README-interworking: Fix typos.
3587 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3589 * c-format.c: Fix comment formatting.
3590 * c-typeck.c: Likewise.
3591 * coverage.c: Likewise.
3592 * cppcharset.c: Likewise.
3593 * cpplib.c: Likewise.
3594 * dbxout.c: Likewise.
3595 * gcov-io.h: Likewise.
3596 * toplev.c: Likewise.
3598 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3600 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
3603 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3605 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
3606 uses three-argument AC_DEFINE so no acconfig.h entries are
3608 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
3609 which contains the GAS version number as a scaled integer.
3610 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
3611 ability to check for ELF assembler.
3612 (gcc_GAS_CHECK_FEATURE): New macro.
3613 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
3614 assembler feature checks using gcc_GAS_CHECK_FEATURE.
3615 Use three-argument AC_DEFINE everywhere.
3616 * acconfig.h: Deleted.
3617 * config.in, configure: Regenerate.
3619 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3621 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
3623 * fixinc/fixincl.x: Regenerate.
3625 * fixinc/inclhack.def (gnu_types): Improve comment.
3627 2003-07-12 Andreas Jaeger <aj@suse.de>
3629 * fp-test.c (main): Use ISO C90 prototype.
3631 * version.c: Remove unneded include of ansidecl.h.
3633 * cgraph.h: Convert prototypes to ISO C90.
3634 * cgraph.c: Likewise.
3635 * fix-header.c: Likewise.
3637 * protoize.c: Likewise.
3639 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
3641 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
3644 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
3645 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3647 * cgraph.c (cgraph_max_uid): New global variable.
3648 (cgraph_node): Set uid field.
3649 (create_edge): Keep inline flags consistent.
3650 (dump_cgraph): Dump more info.
3651 * cgraph.h (struct cgraph_local_info): Remove inline_many and
3652 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
3653 (struct cgraph_global_info): Add insns, calls, cloned_times,
3655 (struct cgraph_node): Add uid.
3656 (struct cgraph_edge): Add inline_call.
3657 (cgraph_max_uid, cgraph_inline_p): Declare.
3658 * cgraph.c: Include params.h and fibheap.h
3659 (cgraph_mark_functions_to_inline_once): Kill.
3660 (INSNS_PER_CALL): New constant.
3661 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
3663 (cgraph_finalize_function): Do not analyze inlining.
3664 (cgraph_finalize_compilation_unit): Set inlining attributes.
3665 (cgraph_mark_functions_to_output): More consistency checks.
3666 (cgraph_optimize_function): Set current_function_decl to NULL.
3667 (cgraph_expand_function): Use new inline flags.
3668 (cgraph_postorder): Expand from cgraph_expand_functions.
3669 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
3670 (cgraph_inlined_into, cgraph_inlined_callees,
3671 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
3672 cgraph_mark_inline, cgraph_check_inline_limits,
3673 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
3674 cgraph_decide_inlining, cgraph_inline_p): New functions.
3675 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
3676 PARAM_INLINE_UNIT_GROWTH): New parameters.
3677 * tree-inline.c (struct inline_data): New field current_decl.
3678 (expand_call_inline): Avoid forward declarations; use
3679 inlinable_function_p.
3680 (optimize_inline_calls): Set id.current_decl.
3682 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
3684 * configure.in: Remove wrongly added definition of
3686 * configure: Regenerate.
3688 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
3690 * rtl.def (NOTE): Do not use padding.
3692 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
3694 * doc/install.tex: Update required binutils for i?86-*-linux*
3696 2003-07-11 Richard Henderson <rth@redhat.com>
3698 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
3700 2003-07-11 Mark Mitchell <mark@codesourcery.com>
3702 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
3703 TRANSLATION_UNIT_DECL as top_level.
3705 2003-07-11 Jakub Jelinek <jakub@redhat.com>
3707 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
3708 then fall back to cmpstrM.
3709 * builtins.c (expand_builtin_memcmp): Likewise.
3710 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
3711 (s390_expand_cmpmem): ... this.
3712 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
3713 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
3714 from cmpstr* patterns. Rename call to s390_expand_cmpstr
3715 to s390_expand_cmpmem.
3716 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
3717 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
3719 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
3721 * doc/md.texi (cmpstrM): Describe as String compare insn, not
3725 2003-07-11 Loren James Rittle <ljrittle@acm.org>
3727 * config/i386/freebsd.h (SET_ASM_OP): Remove.
3728 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
3729 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
3730 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
3732 2003-07-11 Richard Henderson <rth@redhat.com>
3734 * function.c (assign_parms): Don't recombine complex args if
3735 fnargs is unchanged from orig_fnargs.
3736 (split_complex_args): Return args without complex before copying.
3737 Re-layout the modified parameters.
3739 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
3741 * regclass.c (choose_hard_reg_mode): Add third argument.
3742 Changed all callers.
3743 * rtl.h (choose_hard_reg_mode): Update declaration.
3744 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
3745 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
3747 2003-07-11 Geoffrey Keating <geoffk@apple.com>
3749 * c-decl.c (finish_decl): Handle 'used' here...
3750 * cgraphunit.c (cgraph_finalize_function): ... and here ...
3751 * c-common.c: (handle_used_attribute): ... not here.
3753 * configure.in (onstep): Support --enable-intermodule.
3754 * Makefile.in (OBJS-common): New.
3756 (OBJS-archive): New.
3757 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
3758 (OBJS-onestep): New.
3759 (libbackend.a): Support @onestep@.
3760 (libbackend.o): New.
3761 * configure: Regenerate.
3763 * c-common.h (c_reset_state): New prototype.
3764 (c_parse_file): New prototype.
3765 (finish_file): Move prototype from c-tree.h.
3766 * c-decl.c: Include <hashtab.h>.
3767 (builtin_decls): New.
3768 (current_file_decl): New.
3769 (duplicate_decls): Add extra parameter. Change all callers. Don't
3770 output duplicate common symbols.
3771 (link_hash_hash): New.
3772 (link_hash_eq): New.
3773 (poplevel): Handle popping of the top level.
3774 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
3775 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
3776 (pushdecl_top_level): Likewise.
3777 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
3778 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
3779 (finish_decl): Handle TRANSLATION_UNIT_DECL.
3780 (merge_translation_unit_decls): New.
3781 (c_write_global_declarations): New.
3782 (c_reset_state): New.
3783 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
3784 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
3785 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
3786 TRANSLATION_UNIT_DECL.
3787 (c_objc_common_finish_file): Call merge_translation_unit_decls.
3788 * c-opts.c (in_fnames): Rename from in_fname.
3789 (c_common_decode_option): Handle multiple input filenames.
3790 (c_common_post_options): Likewise.
3791 (c_common_parse_file): Likewise; also, call c_parse_file rather than
3793 * c-parse.in: Move cleanup code to c_parse_file.
3794 (free_parser_stacks): Move contents to c_parse_file.
3795 (c_parse_file): New.
3796 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
3798 (C_DECL_FILE_SCOPE): New.
3799 (finish_file): Move prototype to c-common.h.
3800 (merge_translation_unit_decls): New prototype.
3801 (comptypes): Add extra parameter to prototype.
3802 (c_write_global_declarations): New prototype.
3803 * c-typeck.c (tagged_types_tu_compatible_p): New.
3804 (function_types_compatible_p): Add extra parameter, change all callers.
3805 (type_lists_compatible_p): Likewise.
3806 (comptypes): Likewise.
3807 (struct tagged_tu_seen): New.
3808 (tagged_tu_seen_base): New.
3809 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
3810 (c_mark_addressable): Remove #if 0 code.
3811 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
3812 comment explaining why it shouldn't have to.
3813 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
3815 * cppinit.c (cpp_read_next_file): New.
3816 (cpp_read_main_file): Use it.
3817 * cpplib.c (undefine_macros): New.
3818 (cpp_undef_all): New.
3819 * cpplib.h (cpp_read_next_file): Prototype.
3820 (cpp_undef_all): Prototype.
3821 * langhooks-def.h (write_global_declarations): Remove prototype.
3822 * toplev.h (write_global_declarations): Add prototype.
3823 * tree.c (decl_type_context): Use switch statement, handle
3824 TRANSLATION_UNIT_DECL.
3825 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
3826 (TRANSLATION_UNIT_DECL): New kind of tree.
3827 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
3828 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
3829 * doc/invoke.texi: Make attempt to document new functionality.
3831 2003-05-19 Per Bothner <bothner@apple.com>
3833 * gcc.c (combine_inputs): New.
3834 (process_command): Set combine_inputs.
3835 (do_spec_1): Handle combine_inputs.
3838 2003-07-10 James E Wilson <wilson@tuliptree.org>
3840 PR optimization/9745
3841 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
3842 loop_insn_emit_before.
3843 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
3845 2003-07-10 Zack Weinberg <zack@codesourcery.com>
3847 * cppcharset.c: Fix comment.
3848 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
3849 (EILSEQ): #define to EINVAL if not already defined.
3850 (convert_using_iconv): #if out when !HAVE_ICONV.
3851 (init_iconv_desc): Handle !HAVE_ICONV here...
3852 (cpp_init_iconv): ...not here.
3854 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
3856 * common.opt: More --help messages.
3857 * opts.c (print_help): Use puts().
3858 * toplev.c (f_options): Remove help text.
3859 (display_help): Don't dump f_options.
3861 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
3863 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
3864 Move i?86-*-interix* to the don't-fix list.
3865 * fixinc/fixinc.interix: Delete with extreme prejudice.
3867 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
3870 * doc/install.texi: Document requirements for ia64-*-hpux* target.
3872 2003-07-10 Roger Sayle <roger@eyesopen.com>
3874 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
3876 2003-07-10 Zack Weinberg <zack@codesourcery.com>
3878 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
3879 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
3880 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
3881 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
3882 convert_no_conversion, convert_using_iconv): New functions.
3883 (APPLY_CONVERSION): New macro.
3884 (struct conversion, conversion_tab): New data structure.
3885 (init_iconv_desc): Check conversion_tab for a custom conversion
3886 primitive before trying to use iconv.
3887 (convert_cset): Deleted.
3888 (cpp_init_iconv): Use UTF- terminology, not UCS-.
3889 (_cpp_destroy_iconv): Update to match.
3890 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
3891 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
3892 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
3893 (_cpp_interpret_string_notranslate): New function, moved here
3896 * cpphash.h (convert_f, struct cset_converter): New types.
3897 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
3898 are now struct cset_converter, not bare iconv_t.
3900 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
3901 all callers changed.
3903 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
3905 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
3906 to opts.sh command line.
3907 * opts.sh: Write to temporary files with a move-if-change at the end.
3909 2003-07-10 Denis Chertykov <denisc@overta.ru>
3910 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3912 * combine.c (gen_binary): Handle the CLOBBER rtx and
3913 don't build a binary operation with it.
3915 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3917 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
3918 store_killed_after, store_killed_before): Keep track of the correct
3919 dependency function to use.
3921 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
3922 * toplev.c (do_compile): Don't try to open dump files before
3923 lang_dependent_init initializes dump_base_name.
3925 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3927 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
3929 * config/frv/frv.c (frv_expand_builtin): Likewise.
3930 * config/sh/sh.c (sh_media_init_builtins): Likewise.
3932 2003-07-09 Mark Mitchell <mark@codesourcery.com>
3935 * doc/invoke.texi (C++ Dialect Options): Change documentation of
3938 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
3940 * tm.texi (RETURN_ADDR_OFFSET): Document.
3942 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
3944 * gcov-io.h: Update documentation.
3945 (GCOV_UNSIGNED2STRING): New.
3946 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
3947 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
3948 GCOV_TAG_SUMMARY_LENGTH): Adjust.
3949 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
3950 GCOV_TAG_COUNTER_NUM): New.
3951 (GCOV_BLOCK_SIZE): Number of words.
3952 (gcov_var): Adjust buffer type.
3953 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
3954 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
3955 count, not byte count.
3956 (gcov_open): Adjust overread init.
3957 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
3958 gcov_write_string, gcov_write_tag, gcov_write_length,
3959 gcov_write_tag_length): Adjust.
3960 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
3961 (gcov_sync, gcov_seek): Adjust.
3962 * gcov-dump.c (print_usage): Show gcc version only.
3963 (dump_file): Use GCOV_UNSIGNED2STRING.
3964 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
3965 * gcov.c (print_version): Show gcc version only.
3966 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
3967 GCOV_TAG_*_NUM macros.
3968 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
3969 GCOV_TAG_COUNTER_LENGTH.
3970 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
3971 Use GCOV_TAG_COUNTER_NUM.
3972 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
3973 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
3975 2003-07-10 Andreas Schwab <schwab@suse.de>
3977 * gcov-dump.c (dump_file): Fix missing address operator.
3979 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
3982 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
3984 (fold_single_bit_test): If sign_bit_p() fails, assume that the
3985 bit being tested is not a sign bit.
3987 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
3989 * config/h8300/h8300.md (a peephole2): New.
3991 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
3993 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
3994 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
3995 from ld-linux.so.2 to ld.so.1.
3996 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
3997 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
3998 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
3999 nor -Wl,-rpath-link.
4000 (LIB_SPEC): Add -rpath-link if !static.
4001 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
4002 * config/mn10300/mn10300.c (mn10300_protect_label): New
4004 * config/mn10300/linux.h (PRINT_OPERAND,
4005 PRINT_OPERAND_ADDRESS): Set it during their execution.
4006 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
4007 mn10300_protect_label is set.
4008 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
4010 (LIB_SPEC, STARTFILE_SPEC): Define.
4011 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
4012 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
4013 FLOAT_BIT_ORDER_MISMATCH.
4014 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
4015 * config.gcc (am33_2.0-*-linux*): Added.
4016 * config/mn10300/linux.h: New.
4017 * config/mn10300/t-linux: New.
4019 2003-07-10 Andreas Jaeger <aj@suse.de>
4021 * fold-const.c: Properly wrap prototypes.
4023 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
4025 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
4026 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
4028 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
4029 * config/mn10300/mn10300.h: GTY-declare it.
4030 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
4031 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
4032 prototype. Use incoming RTL argument.
4033 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
4034 * config/mn10300/mn10300.md (int_label): Move C statements...
4035 (GOTaddr2picreg): ... here.
4036 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
4037 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
4038 * config/mn10300/mn10300.c (mn10300_encode_section_info):
4039 ... here. New function.
4040 (TARGET_ENCODE_SECTION_INFO): Define to it.
4041 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
4042 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
4044 (mn10300_loadPC): Define as insn splittable after reload.
4045 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
4046 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
4047 be defined in .rodata even in PIC, now that the assembler
4049 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
4050 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
4051 symbol take an underscore prefix.
4052 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
4053 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
4054 legitimize_pic_address): Declare.
4055 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
4056 the PIC register as fixed.
4057 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
4058 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
4060 (LEGITIMATE_PIC_OPERAND_P): Define.
4061 (PIC_OFFSET_TABLE_REGNUM): Define.
4062 (GOT_SYMBOL_NAME): Define.
4063 (SYMBOLIC_CONST_P): Define.
4064 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
4066 (MN10300_GLOBAL_P): Test it.
4067 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
4068 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
4069 * config/mn10300/mn10300.c (print_operand): Handle unspec.
4070 (expand_prologue): Set PIC register.
4071 (call_address_operand): Don't match SYMBOL_REFs in PIC.
4072 (legitimize_address): Call legitimize_pic_address.
4073 (legitimize_pic_address): New fn.
4074 (legitimate_pic_operand_p): New fn.
4075 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
4076 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
4077 UNSPEC_PLT): New constants.
4078 (pop_pic_reg): New insn.
4079 (movsi): Adjust non-PIC addresses.
4080 (builtin_setjmp_receiver): Restore the PIC register.
4082 (call): Adjust non-PIC addresses.
4083 (int_label, GOTaddr2picreg): New expands.
4084 (am33_loadPC): New insn.
4085 (mn10300_loadPC): New expand.
4086 (call_next_insn): New insn.
4087 (add_GOT_to_pic_reg): New expand.
4088 (symGOT2reg, symGOT2reg_i): New expands.
4089 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
4090 (sym2PIC, sym2PLT): New expands.
4092 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
4094 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
4095 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
4096 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
4097 to flag_unsafe_math_optimizations.
4098 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
4099 * config/mn10300/mn10300.c (expand_prologue): Mark
4100 FP-register-saving insns as frame-related.
4101 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
4102 * config/mn10300/mn10300.c
4103 (mn10300_get_live_callee_saved_regs): Don't search past
4104 LAST_EXTENDED_REGNUM.
4105 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
4106 * config/mn10300/mn10300.md: Remove excessive line breaks from
4107 `@' output patterns that were accounted as additional
4109 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
4110 Re-introduce changes accidentally removed in Richard Sandiford's
4112 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
4113 Re-instate am33-2 lost in merge from net GCC.
4114 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
4115 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
4116 floating-point registers.
4117 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
4118 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
4119 pessimizations that had gone in on 2000-05-08.
4120 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
4121 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
4122 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
4123 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
4125 * (movhi): Likewise.
4126 * (movsi): Likewise.
4127 * (movsf): Likewise.
4128 * (movdi): Likewise.
4129 * (movdf): Likewise.
4130 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
4131 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
4132 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
4133 (expand_prologue, expand_epilogue): Save and restore FP regs.
4134 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
4135 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
4136 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
4137 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
4138 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
4140 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
4141 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
4142 Discourage the two-argument, longer opcodes.
4143 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
4145 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
4146 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
4147 * config/mn10300/mn10300.md (cmpsf): New pattern.
4148 (branch): Test mdep.fpCC and output fbCC.
4149 * config/mn10300/mn10300.c (print_operand): Output conditions.
4150 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
4151 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
4152 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
4153 mulsf3, divsf3): Use the `F' constraint for FP values.
4154 * config/mn10300/mn10300.c (const_1f_operand): New function.
4155 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
4156 * config/mn10300/mn10300.md (sqrtsf2): New expand.
4157 (rsqrtsf2): New insn.
4158 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
4159 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
4161 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
4162 * config/mn10300/mn10300.md (abssf2, negdf2): On
4163 TARGET_AM33_2, expand to...
4164 (abssf2_am33_2, negdf2_am33_2): New insns.
4165 (addsf3, subsf3, mulsf3, divsf3): Likewise.
4166 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
4167 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
4168 movdi, movdf): Added FP regs.
4169 * invoke.texi (-mam33-2, -mno-am33-2): Document.
4170 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
4171 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
4173 (REGNO_AM33_2_FP_P): Renamed to...
4174 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
4175 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
4176 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
4177 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
4178 regs from GENERAL_REGS.
4179 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
4180 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
4181 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
4182 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
4183 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
4184 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
4186 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
4187 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
4188 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
4189 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
4190 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
4191 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
4192 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
4193 AM33/2.0 floating-point registers.
4194 (CONDITIONAL_REGISTER_USAGE): Adjust.
4195 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
4196 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
4197 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
4198 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
4199 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
4200 (MULTILIB_DIRNAMES): Likewise.
4201 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
4202 `__AM33_2__' when `-mam33-2' is given.
4203 (TARGET_AM33_2): Define.
4204 (TARGET_SWITCHES): Adjust.
4205 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
4208 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
4210 * doc/install.texi: Add missing @.
4212 2003-07-09 Bob Wilson <bob.wilson@acm.org>
4214 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
4216 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
4219 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
4221 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
4224 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
4225 "x-crtfini.o" with "crtinit.o", "crtfini.o".
4227 * fixinc/inclhack.def (limits_ifndefs): Add select test.
4228 * fixinc/fixincl.x: Rebuild.
4230 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
4231 * fixinc/fixincl.x: Rebuild.
4233 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
4235 * doc/install.texi (Configuration): Document the valgrind option
4236 to --enable-checking.
4238 Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
4240 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
4242 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4244 * c-lex.c (cb_ident): Cast cstr.text to const char *.
4246 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
4248 * gcov-io.h: Update documentation.
4249 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
4251 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
4252 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
4253 (struct gcov_var): Change buffer's type. Add endian flag.
4254 (gcov_open): Remove mode in libgcov.
4255 (gcov_magic): Prototype.
4256 * gcov-io.c (from_file): New.
4257 (gcov_open): Clear endian flag.
4259 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
4261 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
4262 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
4263 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
4264 * gcov-iov.c (main): Correct cast.
4265 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
4267 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
4268 (coverage_init): Use GCOV_NOTE_SUFFIX.
4269 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
4270 Rename to gcov_version, and return flag.
4271 (gcov_exit): Use gcov_version.
4272 (__gcov_init): Use gcov_version.
4273 * Makefile.in (coverageexts): Update.
4274 * gcov.c (print_version): Remove endianness conversion.
4275 (create_file_names): Use GCOV_NOTE_SUFFIX.
4276 (read_graph_file): Use gcov_magic.
4277 (read_count_file): Likewise.
4278 * gcov-dump.c (dump_file): Remove endianness conversion, use
4281 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
4283 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
4285 * configure: Regenerated.
4286 * Makefile.in (ALL_CFLAGS): Correct its comment.
4288 2003-07-08 Mark Mitchell <mark@codesourcery.com>
4290 * fold-const.c (make_range): Do not access operand 1 for a
4291 zero-operand operator.
4293 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
4295 * toplev.c (warn_dummy, W_options): Die.
4296 (display_help): Don't print W_options.
4297 * common.opt: Add W_options help from toplev.c.
4299 2003-07-09 Andreas Jaeger <aj@suse.de>
4301 * opts.c (wrap_help): Only pass int arguments as arguments to
4302 printf's '*' modifier. Change argument of function.
4304 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
4306 * doc/invoke.texi: Fix misspelling of "@item".
4308 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
4310 * config/i386/i386.md: Remove an old comment about
4313 Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
4315 * cgraph.c (cgraph_node_name): New function.
4316 (dump_cgraph): Use it.
4317 * cgraph.h (cgraph_dump_file): Declare.
4318 (cgraph_node_name): Declare.
4319 * cgraphunit.c: Include timevar.h
4320 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
4321 (cgraph_optimize_function): Use TV_INTEGRATION.
4322 (cgraph_mark_local_functions): reorganize dumps.
4323 (cgraph_mark_functions_to_inline_once): Likewise.
4324 (cgraph_optimize): Likewise; use timevar.
4325 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
4326 * toplev.c (dump_file_index): Add DFI_cgraph.
4327 (dump_file_info): Likewise.
4328 (cgraph_dump_file): New global variable.
4329 (do_compile): Open and close cgraph dump.
4330 * invoke.texi (-d): Document new flag; renumber.
4332 2003-07-08 Roger Sayle <roger@eyesopen.com>
4335 * calls.c (emit_call_1): Don't bother popping the arguments off of
4336 the stack after a noreturn function call; The adjustment is dead.
4337 (expand_call): Likewise.
4339 2003-07-08 Geoffrey Keating <geoffk@apple.com>
4341 * expr.c (MOVE_MAX_PIECES): Move from here...
4342 * defaults.h (MOVE_MAX_PIECES): ... to here.
4344 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
4346 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
4348 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4350 * genattr.c (internal_dfa_insn_code): Don't prototype.
4351 * genattrtab.c (attr_desc): Add `static_p' field.
4352 (expand_units): Make blockage range and ready cost functions
4354 (write_attr_get): Don't add extern prototypes in C file. Mark
4355 static functions as appropriate.
4356 (find_attr, make_internal_attr): Initialize static_p.
4357 * genattrtab.h (ATTR_STATIC): New macro.
4358 * genautomata.c (output_internal_reset_func): Mark output function
4360 (make_internal_dfa_insn_code_attr): Mark output function as static.
4362 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4364 * genattrtab.h: Add new macros for attr `special' flags.
4365 * genattrtab.c (attr_desc): Reorder/resize fields better.
4366 Use attr `special' macros in all calls to make_internal_attr.
4367 * genautomata.c: Likewise.
4369 Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
4371 * c-common.c (c_estimate_num_insns_1): New static function.
4372 (c_estimate_num_insns): New global function.
4373 * c-common.h (DECL_NUM_STMTS): Rename to...
4374 (DECL_ESTIMATED_INSNS): ... this.
4375 (c_estimate_num_insns): Declare.
4376 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
4377 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
4378 * c-semantics.c (add_stmt): Do not account statements.
4379 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
4381 * langhooks.h (lang_hooks_for_tree_inlining): Add
4383 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
4385 (max-inline-insns): set to 300.
4386 (min-inline-insns): set to 10.
4387 * tree-inline.c (struct inline_data): Rename inlined_stmts to
4389 (INSNS_PER_STMT): Kill.
4390 (inlinable_function_p): Compute and store body size.
4391 (expand_call_inline): Likewise.
4392 (optimize_inline_calls): Likewise.
4394 2003-07-08 James E Wilson <wilson@tuliptree.org>
4397 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
4398 loop over new variable t2 instead of t.
4400 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
4403 * config/i386/winnt.c: Replace use of error(), warning() with
4404 error_with_decl(), warning_with_decl(), throughout.
4406 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
4408 * opts.c (wrap_help): Use unsigned int, not size_t.
4410 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
4412 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
4413 as .file/.loc directives are incompatible with linker relaxation.
4415 2003-07-08 Zack Weinberg <zack@codesourcery.com>
4417 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
4418 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
4419 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
4420 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
4421 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
4422 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
4423 Escape { and } characters which are not part of range expressions.
4424 * fixinc/fixincl.x: Regenerate.
4425 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
4427 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
4430 * tree-inline.c (find_alloca_call): Use
4431 walk_tree_without_duplicates, instead of walk_tree.
4432 (find_builtin_longjmp_call): Likewise.
4433 * c-objc-common.c (c_cannot_inline_fn): Likewise.
4434 * c-semantics.c (find_reachable_label): Likewise.
4436 2003-07-08 Jakub Jelinek <jakub@redhat.com>
4439 * config/i386/i386.c (ix86_check_movabs): New function.
4440 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
4441 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
4442 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
4444 2003-07-08 Chris Demetriou <cgd@broadcom.com>
4446 * Makefile.in (install-po): Cope with empty CATALOGS.
4448 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
4450 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4451 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
4452 (SECTION_FUNCTION_TEMPLATE): Delete.
4453 * config/mips/elf.h: As for elf64.h.
4454 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
4455 * config/mips/linux.h: As for elf.h
4456 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4457 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
4458 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
4459 of in_sdata from current_section_name and current_section_flags.
4460 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4461 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
4462 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
4463 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
4464 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
4465 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4466 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
4467 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
4468 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
4469 (override_options): Remove setting of MASK_GPOPT.
4470 (mips_output_external): Use mips_in_small_data_p to check whether a
4471 symbol needs an .extern directive. Don't emit such directives for
4472 TARGET_EXPLICIT_RELOCS.
4473 (mips_declare_object): Update accordingly.
4474 (mips_select_rtx_section): Call named_section rather than
4476 (mips_select_section): Use default_elf_section_section for everything
4477 except .text string constants.
4478 (mips_in_small_data_p): New function.
4479 (mips_encode_section_info): Remove small data handling.
4480 (mips_unique_section): Delete.
4481 (iris6_section_type_flags): New function.
4482 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
4484 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4487 * pa.md: Disparage all mtsar constraints.
4488 (extzv, extv, insv): Don't fail on length of {32|64}.
4490 2003-07-08 Zack Weinberg <zack@codesourcery.com>
4492 * system.h: Poison MAP_CHARACTER.
4493 * config/i370/i370-protos.h (mvs_map_char): Delete.
4494 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
4495 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
4496 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
4498 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
4500 * toplev.c (randomize): Correct call to time().
4502 2003-07-08 Jakub Jelinek <jakub@redhat.com>
4504 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
4505 REG_EQUIV notes as well.
4507 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
4509 * doc/md.texi: Fix the description of addmodecc.
4511 2003-07-07 Zack Weinberg <zack@codesourcery.com>
4513 * Makefile.in (top_builddir): Set to "..", not ".".
4514 (INTLLIBS, INTLDEPS): Delete.
4515 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
4516 (LIBDEPS): Add $(LIBICONV_DEP).
4517 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
4518 (INCLUDES): Replace -I../intl with @INCINTL@.
4519 ($(top_builddir)/intl/libintl.a): Delete rule.
4520 (stage2-start, stage3-start, stage4-start, stageprofile-start,
4521 stagefeedback-start): Use $$ for variable to be evaluated by
4523 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
4524 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
4525 * aclocal.m4: sinclude ../config/progtest.m4. Add
4526 contents of lcmessage.m4 from gettext distro.
4527 * configure.in: Check for wchar.h and setlocale. Set
4528 LIBICONV_DEP to the empty string and substitute it.
4529 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
4530 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
4531 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
4532 in $LIBINTL, to avoid linking it twice.
4533 * configure, config.in: Regenerate.
4535 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
4537 * fixinc/mkfixinc.sh: Remove winnt support.
4538 * fixinc/fixinc.winnt: Delete with extreme prejudice.
4540 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
4542 * Makefile.in: Update.
4543 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
4544 * c.opt: Update documentation.
4545 * common.opt: Add some help text.
4546 * opts.c: Include intl.h.
4547 (wrap_help, print_help): New.
4548 (find_opt, handle_option, common_handle_option): opt_text now
4549 contains the '-'. Use print_help to output help.
4550 * opts.h (struct cl_option): New member "help".
4551 * opts.sh: Update to handle help text output and to prepend
4553 * toplev.c (display_help): Remove some help text.
4555 2003-07-07 David Edelsohn <edelsohn@gnu.org>
4556 Fariborz Jahanian <fjahanian@apple.com>
4558 * configure.in: Test for PowerPC mfcr field support in assembler.
4559 * config.in, configure: Regenderated.
4561 * config/rs6000/power4.md: Add mfcrf reservation.
4562 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
4563 * config/rs6000/rs6000.c (mfcr_operation): Define.
4564 (print_operand): Add 'Q' case for mfcrf.
4565 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
4566 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
4567 (movcc_internal1): Emit optional field operand for mfcr and set
4568 "type" attribute appropriately.
4569 (mfcr SCC): Likewise.
4570 (movesi_from_cr_one): New.
4572 2003-07-07 Roger Sayle <roger@eyesopen.com>
4574 * config/i386/i386.md: Correct check-in of incorrect version.
4576 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4578 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
4579 adjacent stdio calls.
4580 * c-decl.c (c_print_identifier): Likewise.
4581 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
4582 * print-rtl.c (print_rtx): Likewise.
4583 * print-tree.c (print_node_brief, print_node): Likewise.
4584 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
4586 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
4587 * config.in, configure: Regenerated.
4589 2003-07-07 Roger Sayle <roger@eyesopen.com>
4592 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
4593 Changed to define_expand patterns that copy operand[1] to prevent
4594 it from being clobbered before emitting an atan2?f3_1 insn.
4595 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
4596 patterns that actually specify the behaviour of x87's FPATAN.
4598 2003-07-07 Jakub Jelinek <jakub@redhat.com>
4600 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
4601 clearing of SYMBOL_FLAG_LOCAL bit.
4602 If vcall_offset fits into signed 16-bit immediate, use
4603 one instruction for both addition and load.
4605 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
4607 * opts.c (common_handle_option): Correct handling of the
4608 -falign- switches that do and don't take an argument.
4610 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4612 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
4614 (pushhi1_h8300hs): Likewise.
4616 2003-07-07 Andreas Jaeger <aj@suse.de>
4618 * genextract.c: Convert remaining prototypes to ISO C90.
4620 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
4621 * fold-const.c (fold_single_bit_test): Likewise.
4622 * diagnostic.c (default_diagnostic_finalizer): Likewise.
4623 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
4625 * gengtype.c (write_array): Generate ISO C90 prototypes.
4627 * genflags.c (gen_proto): Generate ISO C90 prototypes.
4629 2003-07-07 Roger Sayle <roger@eyesopen.com>
4631 PR optimization/11059
4632 * expr.c (can_store_by_pieces): Return true if length is zero.
4633 (store_by_pieces): If length is zero and endp is two, abort,
4634 othwerise, if length is zero and endp is not two, return "to".
4635 (clear_by_pieces): Do nothing if length is zero.
4636 (clear_storage): Do nothing if length is zero.
4637 (store_constructor): Simplify code when size is zero, or the
4638 target has already been cleared. This avoids emitting a
4639 blockage instruction when initializing empty structures.
4641 2003-07-07 Andreas Jaeger <aj@suse.de>
4643 * mips-tfile.c: Convert prototypes to ISO C90.
4644 * mips-tdump.c: Convert prototypes to ISO C90.
4646 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
4648 * rtl.h (emit_line_note): Take a location_t.
4649 (emit_line_note_force): Remove.
4650 (set_file_and_line_for_statement): Take a location_t.
4651 * tree.g (emit_line_note): Take a location_t.
4652 * emit-rtl.c (emit_line_note): Take a location_t.
4653 (emit_line_note_force): Remove.
4654 * function.c (init_function_start): Adjust emit_line_note call.
4655 (expand_function_end): Use force_next_line_note, not
4656 emit_line_note_force.
4657 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
4658 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
4659 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
4660 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
4661 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
4662 genrtl_continue_stmt, genrtl_switch_stmt,
4663 genrtl_asm_stmt): Likewise.
4664 * expr.c (expand_expr): Likewise.
4665 * integrate.c (expand_inline_function): Likewise.
4666 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
4667 (expand_decl_init): Adjust emit_line_note call.
4669 2003-07-07 Dale Johannesen <dalej@apple.com>
4671 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
4673 2003-07-07 Andreas Jaeger <aj@suse.de>
4675 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
4676 * config/i386/i386.c: Likewise.
4678 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4680 * config/h8300/h8300.md: Use gen_int_mode instead of
4681 GEN_INT (trunc_int_for_mode (...)).
4683 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4685 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
4686 2 bytes and then subtract 2 from the stack pointer.
4687 (pushhi1_h8300hs): Likewise.
4689 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
4691 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
4693 * configure: Regenerated.
4694 * Makefile.in: Remove extraneous comment.
4695 * toplev.c (randomize): Protect against potential multiple calls.
4696 * doc/invoke.texi (-frandom-seed): Document use for in coverage
4699 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4700 Eric Botcazou <ebotcazou@libertysurf.fr>
4702 PR optimization/11198
4703 * alias.c (objects_must_conflict_p): Return 1 if the types have
4704 the same alias set, not if the alias sets only conflict.
4706 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
4708 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
4709 (convert_cset): Change inbuf to type ICONV_CONST char.
4710 * Makefile.in (LIBS): Add LIBICONV.
4712 * doc/invoke.texi (-falign-functions): Document that
4713 when n is zero then a machine-dependent default is used.
4714 (-falign-labels): Document that when n is zero then a
4715 machine-dependent default is used and that -falign-labels =1
4716 is equivalent to -fno-align-labels.
4717 (-falign-loops): Likewise.
4718 (-falign-jumps): Likewise.
4720 2003-07-06 Art Haas <ahaas@airmail.net>
4722 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
4725 2003-07-06 James E Wilson <wilson@tuliptree.org>
4727 PR optimization/9812
4728 * rtl.h (mem_for_const_double): Delete prototype.
4729 * varasm.c (mem_for_const_double): Delete function.
4730 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
4731 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
4732 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
4733 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
4734 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
4735 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
4736 comment about confused support for XFmode constants.
4738 Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
4740 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
4742 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
4744 * config/h8300/h8300.c: Fix comment typos.
4745 * config/h8300/h8300.md: Likewise.
4746 * config/i386/athlon.md: Likewise.
4747 * config/i386/i386.c: Likewise.
4748 * config/i386/pentium.md: Likewise.
4749 * config/ia64/ia64.c: Likewise.
4750 * config/ia64/itanium1.md: Likewise.
4751 * config/ia64/itanium2.md: Likewise.
4752 * config/m32r/m32r.md: Likewise.
4753 * config/m68hc11/m68hc11.c: Likewise.
4754 * config/mcore/mcore.c: Likewise.
4755 * config/mips/sr71k.md: Likewise.
4756 * config/mips/t-iris5-as: Likewise.
4757 * config/mmix/mmix.h: Likewise.
4758 * config/ns32k/ns32k.h: Likewise.
4759 * config/ns32k/NOTES: Fix a typo.
4761 2003-07-06 Andreas Jaeger <aj@suse.de>
4763 * stmt.c: Convert remaining prototypes to ISO C90.
4764 * cfglayout.c: Likewise.
4765 * dbxout.c: Likewise.
4767 * genemit.c: Likewise.
4769 * basic-block.h: Convert prototypes to ISO C90.
4770 * c-parse.in: Likewise.
4771 * c-pragma.h: Likewise.
4772 * c-typeck.c: Likewise.
4773 * cfghooks.h: Likewise.
4774 * cfgloopanal.c: Likewise.
4775 * dbxout.h: Likewise.
4776 * debug.h: Likewise.
4777 * dwarf2asm.h: Likewise.
4779 * gengtype-lex.l: Likewise.
4780 * sched-int.h: Likewise.
4781 * timevar.c: Likewise.
4783 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
4785 * c-common.h (c_comon_handle_filename,
4786 c_common_missing_arguement): New.
4787 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4788 LANG_HOOKS_MISSING_ARGUMENT): New.
4789 * c-opts.c (missing_arg): Rename c_common_missing_argument,
4790 update to be an appropriate langhook.
4791 (c_common_handle_option): Don't handle filenames.
4792 (c_common_handle_filename): New.
4793 * hooks.c (hook_void_constcharptr,
4794 hook_bool_constcharptr_size_t_false): New.
4795 * hooks.h (hook_void_constcharptr,
4796 hook_bool_constcharptr_size_t_false): New.
4797 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
4798 LANG_HOOKS_MISSING_ARGUMENT): New.
4799 (LANG_HOOKS_INITIALIZER): Update.
4800 * langhooks.h (struct lang_hooks): Add handle_filename and
4802 * opts.c (handle_option): Don't handle filenames here, but ...
4803 (handle_options): ... here.
4804 (common_handle_option): Don't handle missing arguments here.
4805 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4806 LANG_HOOKS_MISSING_ARGUMENT): New.
4808 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
4810 * Makfile.in: Remove traces of mbchar.
4811 * c-parse.in (MULTIBYTE_CHARS): Remove.
4812 * config.in (MULTIBYTE_CHARS): Remove.
4813 * configure: Remove --enable-mbchar.
4814 * configure.in: Remove --enable-mbchar.
4815 * mbchar.c, mbchar.h: Remove.
4816 * system.h: Poison MULTIBYTE_CHARS.
4817 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
4818 * config/linux.h (MULTIBYTE_CHARS): Remove.
4819 * config/svr4.h (MULTIBYTE_CHARS): Remove.
4820 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
4822 2003-07-06 Andreas Jaeger <aj@suse.de>
4824 * varray.c (varray_check_failed): Fix typo.
4826 * unroll.c: Convert prototypes to ISO C90.
4827 * varasm.c: Likewise.
4828 * varray.c: Likewise.
4829 * varray.h: Likewise.
4830 * vmsdbgout.c: Likewise.
4831 * xcoffout.c: Likewise.
4832 * xcoffout.h: Likewise.
4834 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4836 * gcov-io.h: Add a local time stamp.
4837 (struct gcov_info): Add stamp field.
4838 (gcov_truncate): New.
4839 * coverage.c (read_counts_file): Skip the stamp.
4840 (coverage_begin_output): Write the stamp.
4841 (build_gcov_info): Declare and init the stamp.
4842 (coverage_finish): Only unlink data file, if stamp is zero.
4843 * gcov-dump.c (dump_file): Dump the stamp.
4844 * gcov.c (bbg_stamp): New.
4845 (release_structures): Clear bbg_stamp.
4846 (read_graph_file): Read stamp.
4847 (read_count_file): Check stamp.
4848 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
4850 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4852 * tree.h (default_flag_random_seed): Remove.
4853 * toplev.h (local_tick): Declare.
4854 * tree.c (flag_random_seed, default_flag_random_seed): Move to
4856 (append_random_chars): Don't call default_flag_random_seed.
4857 * toplev.c (flag_random_seed): Define here. Set local_tick.
4858 (local_tick): Define.
4859 (randomize): New, moved from tree.c.
4860 (print_switch_values): Adjust.
4861 (toplev_main): Call randomize.
4863 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4865 * tree.h (crc32_string): Declare.
4866 * tree.c (append_random_chars): Remove.
4867 (crc32_string): New.
4868 (get_file_function_name_long): Use crc32_string here.
4870 2003-07-06 Andreas Jaeger <aj@suse.de>
4872 * gcc.c: Convert prototypes to ISO C90.
4874 * gcov-dump.c: Likewise.
4875 * gcov-iov.c: Likewise.
4877 * genattrtab.h: Likewise.
4879 * global.c: Likewise.
4880 * graph.c: Likewise.
4881 * graph.h: Likewise.
4882 * hosthooks.h: Likewise.
4883 * hooks.h: Likewise.
4884 * hooks.c: Likewise.
4885 * hashtable.h: Likewise.
4886 * hashtable.c: Likewise.
4887 * haifa-sched.c: Likewise.
4888 * integrate.h: Likewise.
4889 * integrate.c: Likewise.
4890 * input.h: Likewise.
4891 * ifcvt.c: Likewise.
4893 * langhooks-def.h: Likewise. Add extern to prototypes.
4894 * langhooks.c: Likewise.
4895 * langhooks.h: Likewise.
4897 * local-alloc.c: Likewise.
4898 * loop-init.c: Likewise.
4899 * loop-unroll.c: Likewise.
4900 * loop-unswitch.c: Likewise.
4902 * loop.h: Likewise. Add extern to prototypes.
4903 * machmode.h: Likewise.
4905 * mbchar.c: Likewise.
4906 * mbchar.h: Likewise.
4907 * mkdeps.c: Likewise.
4908 * mkdeps.h: Likewise.
4909 * optabs.c: Likewise.
4910 * optabs.h: Likewise.
4911 * output.h: Likewise.
4912 * gccspec.c: Likwise.
4913 * postreload.c: Likewise.
4914 * prefix.c: Likewise.
4915 * prefix.h: Likewise.
4916 * print-rtl.c: Likewise.
4917 * print-tree.c: Likewise.
4918 * profile.c: Likewise.
4919 * read-rtl.c: Likewise.
4922 * recog.c: Likewise.
4923 * recog.h: Likewise.
4924 * reg-stack.c: Likewise.
4925 * regclass.c: Likewise.
4926 * regmove.c: Likewise.
4927 * regrename.c: Likewise.
4929 * reload.c: Likewise.
4930 * reload.h: Likewise.
4931 * reload1.c: Likewise.
4932 * reorg.c: Likewise.
4933 * resource.c: Likewise.
4934 * resource.h: Likewise.
4935 * rtl-error.c: Likewise.
4938 * rtlanal.c: Likewise.
4939 * sbitmap.c: Likewise.
4940 * sbitmap.h: Likewise.
4941 * scan-decls.c: Likewise.
4943 * sched-deps.c: Likewise.
4944 * sched-ebb.c: Likewise.
4945 * sched-int.h: Likewise.
4946 * sched-rgn.c: Likewise.
4947 * sched-vis.c: Likewise.
4948 * sibcall.c: Likewise.
4949 * simplify-rtx.c: Likewise.
4950 * sreal.c: Likewise.
4951 * sreal.h: Likewise.
4952 * ssa-ccp.c: Likewise.
4953 * ssa-dce.c: Likewise.
4956 * stack.h: Likewise.
4958 * stor-layout.c: Likewise.
4959 * stringpool.c: Likewise.
4960 * target.h: Likewise.
4961 * timevar.c: Likewise.
4962 * timevar.h: Likewise.
4963 * tlink.c: Likewise.
4964 * tracer.c: Likewise.
4965 * tree-inline.c: Likewise.
4966 * tree-inline.h: Likewise.
4970 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4972 * combine.c (nonzero_bits1): Fix a warning.
4974 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4976 * config/h8300/h8300.c (compute_mov_length): Correct the
4977 length of loading CONST0_RTX (SFmode).
4979 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
4981 * toplev.c (output_clean_symbol_name): Remove.
4982 * toplev.h (output_clean_symbol_name): Remove.
4983 * config/alpha/alpha.c (unicosmk_output_module_name): Use
4984 lbasename & clean_symbol_name.
4986 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4988 * ggc.h: Follow spelling conventions.
4989 * config/i386/i386.c: Likewise.
4990 * config/i386/winnt.c: Likewise.
4991 * config/rs6000/rs6000.c: Likewise.
4993 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4995 * bt-load.c: Fix comment typos.
4996 * c-incpath.c: Likewise.
4998 * cfgcleanup.c: Likewise.
4999 * cfgloop.h: Likewise.
5000 * cfgloopmanip.c: Likewise.
5001 * cfgrtl.c: Likewise.
5002 * diagnostic.h: Likewise.
5003 * dwarfout.c: Likewise.
5004 * emit-rtl.c: Likewise.
5005 * et-forest.c: Likewise.
5006 * et-forest.h: Likewise.
5009 * genattr.c: Likewise.
5011 * langhooks.h: Likewise.
5012 * local-alloc.c: Likewise.
5013 * loop-unroll.c: Likewise.
5014 * loop-unswitch.c: Likewise.
5015 * ra-build.c: Likewise.
5016 * regclass.c: Likewise.
5017 * regmove.c: Likewise.
5018 * rtl.def: Likewise.
5019 * rtlanal.c: Likewise.
5020 * sched-ebb.c: Likewise.
5021 * sched-rgn.c: Likewise.
5022 * simplify-rtx.c: Likewise.
5024 * tracer.c: Likewise.
5027 2003-07-05 Zack Weinberg <zack@codesourcery.com>
5029 * cppcharset.c: Use the correct return type for the fallback iconv
5032 Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5034 Blame to Jan Hubicka <jh@suse.cz>
5035 * cfglayout.c (record_effective_endpoints): Split insns before
5036 first basic block correctly.
5038 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5040 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
5041 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
5042 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
5044 2003-07-05 Andreas Jaeger <aj@suse.de>
5046 * genattrtab.c (write_attr_get): Revert part of last patch to
5047 always write out a prototype.
5049 * genemit.c (gen_split): Readd lost unused attributes in last
5052 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5054 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
5055 different from header.
5057 2003-07-05 Andreas Schwab <schwab@suse.de>
5059 * config/m68k/m68k.c: Remove code protected by CRDS.
5060 * config/m68k/m68k.md: Likewise.
5062 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
5065 * c-opts.c (permit_fortran_options): New.
5066 (c_common_init_options): Accept fortran front end options if
5067 it looks like we might be preprocessing Fortran.
5068 (c_common_handle_option): Don't reject switch if permit_fotran_options.
5070 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5072 * genattr.c (internal_dfa_insn_code): Output prototype.
5073 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
5074 * genautomata.c: Likewise.
5075 * genconditions.c: Likewise.
5076 * genemit.c: Likewise.
5077 * genextract.c: Likewise.
5078 * gengenrtl.c: Likewise.
5079 * gengtype.c: Likewise.
5080 * genopinit.c: Likewise.
5081 * genoutput.c: Likewise.
5082 * genpeep.c: Likewise.
5083 * genrecog.c: Likewise.
5085 2003-07-04 Zack Weinberg <zack@codesourcery.com>
5087 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
5088 (struct cpp_options): Add narrow_charset, wide_charset,
5089 bytes_big_endian fields. Remove EBCDIC field.
5090 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
5092 * cpphash.h: Include <iconv.h> if we have it, otherwise
5093 provide a dummy definition of iconv_t.
5094 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
5095 (_cpp_valid_ucn): Update prototype.
5096 (_cpp_destroy_iconv): New prototype.
5098 * doc/cpp.texi: Document character set handling.
5099 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
5100 * doc/extend.texi: Delete entire section on multiline strings.
5101 Rewrite section on __FUNCTION__ etc now that these are
5104 * cppucnid.tab, cppucnid.pl: New files.
5105 * cppucnid.h: New generated file.
5106 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
5107 (iconv_open, iconv, iconv_close): Provide dummy definitions
5109 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
5110 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
5111 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
5112 cpp_interpret_string, narrow_str_to_charconst,
5113 wide_str_to_charconst): New.
5114 (ucn_valid_in_identifier): Use a binary search through the
5115 ucnranges table defined in cppucnid.h, not a long chain of if
5117 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
5118 character names are only valid in C++ and C99" to a warning.
5119 Issue the "meaning of \[uU] is different in traditional C"
5120 warning here. Take care not to let iconv see an invalid UCS
5121 value if we get a malformed UCN. Issue an error if we don't
5123 (cpp_interpret_charconst): Moved here from cpplex.c. Use
5124 cpp_interpret_string to do the heavy lifting.
5126 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
5127 narrow_charset, wide_charset fields of options structure.
5128 (cpp_destroy): Call _cpp_destroy_iconv.
5129 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
5130 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
5131 (cpp_interpret_charconst): Moved to cppcharset.c.
5132 * cpplib.c (dequote_string): Delete.
5133 (interpret_string_notranslate): New.
5134 (do_line, do_linemarker): Use interpret_string_notranslate.
5136 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
5138 * c-common.c (fname_string, combine_strings): Delete.
5139 * c-common.h (fname_string, combine_strings): Delete prototypes.
5140 * c-lex.c (ignore_escape_flag): Delete.
5141 (cb_ident): Use cpp_interpret_string, not lex_string.
5142 (get_nonpadding_token): New function.
5143 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
5144 Adjust calls to lex_string. Don't write *value twice.
5145 (lex_string): Now handles string constant concatenation.
5146 Most of the work handed off to cpp_interpret_string.
5147 Call fix_string_type here.
5148 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
5149 FUNC_NAME, throughout.
5150 (OBJC_STRING): New token type.
5151 (primary:STRING): No need to call fix_string_type here.
5152 (primary:objc_string): Make that OBJC_STRING.
5153 (objc_string nonterminal): Delete.
5154 (yylexname): Delete code to handle fake string constants.
5155 (yylexstring): Delete entirely.
5156 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
5157 to handle CPP_ATSIGN.
5159 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
5160 * c-opts.c (missing_arg, c_common_handle_option): Handle
5161 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
5162 (c_common_init): Set cpp_opts->bytes_big_endian, not
5163 cpp_opts->EBCDIC. Call cpp_init_iconv.
5164 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
5165 (TARGET_EBCDIC): Delete default definition.
5167 * objc/objc-act.c (build_objc_string_object): No need to
5168 handle string constant concatenation.
5170 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
5172 * doc/install.texi: Fix typos.
5173 * doc/invoke.texi: Likewise.
5174 * doc/tm.texi: Likewise.
5176 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
5178 * config/pa/fptr.c: Fix comment typos.
5179 * config/pa/pa-64.h: Likewise.
5180 * config/pa/pa.c: Likewise.
5181 * config/pa/pa.h: Likewise.
5182 * config/rs6000/603.md: Likewise.
5183 * config/rs6000/7xx.md: Likewise.
5184 * config/rs6000/darwin.h: Likewise.
5185 * config/rs6000/freebsd.h: Likewise.
5186 * config/rs6000/rs6000.c: Likewise.
5187 * config/rs6000/rs6000.md: Likewise.
5188 * config/rs6000/spe.h: Likewise.
5190 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
5192 * config/s390/2064.md: Change GNU CC to GCC.
5193 * config/s390/2084.md: Likewise.
5194 * config/s390/fixdfdi.h: Likewise.
5195 * config/s390/linux.h: Likewise.
5196 * config/s390/s390-modes.def: Likewise.
5197 * config/s390/s390-protos.h: Likewise.
5198 * config/s390/s390.c: Likewise.
5199 * config/s390/s390.h: Likewise.
5200 * config/s390/s390.md: Likewise.
5201 * config/s390/s390x.h: Likewise.
5203 2003-07-04 Jeff Law <law@redhat.com>
5206 * expr.c (do_store_flag): Pass in the correct result type
5207 when calling fold_single_bit_test.
5208 * fold-const.c (fold_single_bit_test): Use result_type for the
5209 result when folding a sign bit test.
5211 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
5213 * opts.c (common_handle_options): Negate sense of -falign- switches.
5215 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
5217 * Makefile.in: Replace PWD with PWD_COMMAND.
5219 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5221 * cfgloopanal.c (count_strange_loop_iterations): New static function.
5222 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
5223 Handle strange loops.
5225 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
5227 * install.texi: Even the g77 manpage is derived from
5228 the full g77 manual.
5230 2003-07-04 Zack Weinberg <zack@codesourcery.com>
5232 * ABOUT-NLS: Delete.
5233 * intl: Delete entire directory.
5234 * aclocal.m4: Include ../config/gettext.m4. Delete
5235 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
5236 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
5237 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
5238 Remove intl/Makefile from all_outputs.
5239 * configure, config.in: Regenerate.
5240 * Makefile.in: Expunge all references to intl subdirectory.
5241 Add -I../intl to INCLUDES.
5242 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
5244 2003-07-04 Roger Sayle <roger@eyesopen.com>
5246 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
5247 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
5249 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
5251 PR c++/5287, PR c++/7910, PR c++/11021
5252 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
5253 dllimport attribute if function is defined at declaration, but
5254 report error instead. Likewise for dllimport'd variable
5255 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
5256 declared within functions, Report error if dllimport or dllexport
5257 symbol is not global.
5258 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
5259 if defined after declaration or if inlined. Don't allow definition
5260 of static data members of C++ classes. Don't dllimport virtual
5262 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
5263 (i386_pe_mark_dllimport): Remove unnecessary checks.
5264 (i386_pe_encode_section_info): Warn if the dllimport attribute
5265 and symbol prefix have been instantiated and then overridden.
5267 * doc/extend.texi: Document dllimport and dllexport attributes.
5269 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
5271 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
5273 * config/kaos.h (CPP_PREDEFINES): Delete.
5274 (TARGET_OS_CPP_BUILTINS): New.
5276 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5278 * c-aux-info.c: Include toplev.h after c-tree.h.
5279 * c-common.c: Likewise.
5280 (GCC_DIAG_STYLE): Undef.
5281 * c-semantics.c (GCC_DIAG_STYLE): Define.
5282 * c-tree.h (GCC_DIAG_STYLE): Likewise.
5283 * diagnostic.h (inform): Move prototype to toplev.h.
5284 * jump.c: Include diagnostic.h before toplev.h.
5285 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
5286 (warning, error, fatal_error, pedwarn, sorry, inform,
5287 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
5289 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5291 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
5292 at all if edge is not specified.
5293 (can_copy_bbs_p, copy_bbs): New.
5294 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
5295 * cfgloop.c (get_loop_body): Comment more precisely.
5296 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
5297 (scale_bbs_frequencies): Fix comment typo.
5298 (can_duplicate_loop_p): Use can_copy_bbs_p.
5299 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
5301 2003-07-03 Devang Patel <dpatel@apple.com>
5303 * c-opts.c (c_common_parse_file): Remove extra
5304 debug_hooks->start_source_file call.
5306 2003-07-03 Roger Sayle <roger@eyesopen.com>
5308 * real.c (real_trunc, real_floor, real_ceil): New functions
5309 to implement trunc, floor and ceil respectively.
5310 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
5311 * builtins.c (integer_valued_real_p): New function to test if
5312 a floating point expression has an integer valued result.
5313 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
5314 foo(x) where foo is an integer rounding function. Similarly,
5315 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
5316 (double)(int)x when both foo and bar are integer rounding
5317 functions and we don't need to honor errno.
5318 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
5319 New functions to fold trunc, floor and ceil.
5320 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
5321 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
5322 to fold BUILT_IN_CEIL*.
5323 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
5324 the remaining integer rounding functions.
5326 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5328 * config/sparc/sparc.c (function_arg_partial_nregs): Use
5329 SPARC_INT_ARG_MAX to determine where to split unnamed
5330 complex FP arguments.
5332 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
5334 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
5335 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
5336 (merge_blocks_move_predecessor_nojumps,
5337 merge_blocks_move_successor_nojumps): Use merge_blocks.
5338 (try_optimize_cfg): Use merge_blocks_move.
5339 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
5340 (merge_blocks_nomove): Rename to rtl_merge_blocks.
5341 (cfg_layout_create_basic_block): New.
5342 (rtl_can_merge_blocks): New.
5343 (cfg_layout_split_block): Do not alloc aux by hand.
5344 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
5346 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
5347 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
5348 * cfgloopmanip.c (loop_split_edge_with): Likewise.
5349 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
5351 * basic-block.h (basic_block_def): Add field 'rbi'.
5352 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
5353 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
5354 * cfg.c (entry_exit_blocks): Add new field.
5355 * cfglayout.c: Include alloc-pool.h;
5356 (cfg_layout_pool): New.
5357 (record_effective_endpoints, fixup_reorder_chain,
5358 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
5360 (cfg_layout_initialize_rbi): New function.
5361 (cfg_layout_initialize): Use it.
5362 (cfg_layout_finalize): Clear rbi fields.
5363 * cfglayout.h (RBI): Kill.
5364 (cfg_layout_initialize_rbi): Declare.
5365 * cfgloopmanip.c (copy_bbs): Use rbi.
5366 (record_exit_edges): Likewise.
5367 (duplicate_loop_to_header_edge): Likewise.
5368 * cfgrtl.c (cfg_layout_create_basic_block): Use
5369 cfg_layout_initialize_rbi.
5370 (cfg_layout_split_block): Use rbi.
5371 (cfg_layout_delete_block): Likewise.
5372 * loop-init.c (loop_optimizer_finalize): Likewise.
5373 * loop-unswitch.c (unswitch_loop): Likewise.
5374 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
5376 * cfgrtl.c: Update comments.
5377 (try_redirect_by_replacing_jump): New argument.
5378 (redirect_branch_edge): Break out from ...
5379 (rtl_redirect_edge_and_branch): ... this one.
5380 (update_cfg_after_block_merging): Break out from ...
5381 (rtl_merge_blocks): ... this one.
5382 (cfg_layout_split_edge): New.
5383 (cfg_layout_merge_blocks): New.
5384 (cfg_layout_can_merge_blocks_p): New.
5385 (cfg_layout_redirect_edge_and_branch): Reorganize.
5386 (cfg_layout_rtl_cfg_hooks): Fill in.
5387 (cfg_layout_delete_block): Kill barriers.
5388 * cfganal.c (can_fallthru): Deal with exit blocks
5389 * cfglayout.c (cfg_layout_function_header): New function
5390 (record_effective_endpoints): Record function header.
5391 (fixup_reorder_chain): Fixup dead jumptables; place header
5393 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
5394 * bb-reorder.c (cfg_layout_initialize): Update call.
5395 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
5396 edges in cfglayout mode.
5397 * cfglayout.c (cleanup_unconditional_jumps): Kill.
5398 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
5399 * cfglayout.h (cfg_layout_initialize): Update prototype.
5400 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
5401 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
5402 * flow.c (propagate_block): Do not crash when basic block ends
5403 by first insn in the chain.
5404 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
5406 * tracer.c (tracer): Update call of cfg_layout_initialize.
5408 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5410 * Makefile.in: Use dependency variables in lieu of explicit
5413 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
5415 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
5416 * tree.h: ...to here.
5418 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
5420 * config/s390/2064.md: Fix comment typos.
5421 * config/s390/2084.md: Likewise.
5422 * config/s390/s390.c: Likewise.
5423 * config/s390/s390.md: Likewise.
5424 * config/sh/sh.c: Likewise.
5425 * config/sh/sh.h: Likewise.
5426 * config/sh/sh.md: Likewise.
5427 * config/sparc/sparc.c: Likewise.
5428 * config/sparc/sparc.h: Likewise.
5429 * config/sparc/sparc.md: Likewise.
5430 * config/stormy16/stormy16.c: Likewise.
5431 * config/stormy16/stormy16.h: Likewise.
5432 * config/stormy16/stormy-abi: Fix a typo.
5434 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
5436 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
5438 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5440 * config/mips/mips.h (save_argv): Delete.
5442 2003-07-03 Roger Sayle <roger@eyesopen.com>
5445 * fold-const.c (extract_muldiv_1): There's nothing that can be done
5446 if the expression is a SAVE_EXPR.
5448 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
5450 * config/m32r/m32r.c: Fix comment typos.
5451 * config/m68hc11/m68hc11.c: Likewise.
5452 * config/m68hc11/m68hc11.h: Likewise.
5453 * config/m68k/m68k.c: Likewise.
5454 * config/mcore/mcore.c: Likewise.
5455 * config/mcore/mcore.h: Likewise.
5456 * config/mcore/mcore.md: Likewise.
5457 * config/mips/mips.c: Likewise.
5458 * config/mips/mips.h: Likewise.
5459 * config/mips/mips.md: Likewise.
5460 * config/mips/netbsd.h: Likewise.
5461 * config/mn10300/mn10300.c: Likewise.
5463 2003-07-03 Andreas Schwab <schwab@suse.de>
5465 * dbxout.c (pending_bincls): Move decl down inside
5466 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
5468 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
5470 * rtl.h (NOTE_DATA): Refer to whole union.
5471 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
5473 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5475 PR optimization/11381
5476 * simplify-rtx.c (simplify_relational_operation): Check that
5477 two equal operands have no side-effects before simplifying
5480 2003-07-02 Jeff Law <law@redhat.com>
5482 * expr.c (do_store_flag): Remove special case folding for
5483 single bit tests. Instead call back into the commonized folder
5485 * fold-const.c (fold_single_bit_test): New function, mostly
5486 extracted from do_store_flag, with an additional case extracted
5488 (fold): Call fold_single_bit_test appropriately.
5489 * tree.h (fold_single_bit_test): Prototype.
5491 2003-07-02 Zack Weinberg <zack@codesourcery.com>
5493 * system.h: Include filenames.h.
5494 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
5495 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
5496 define based on HAVE_DOS_BASED_FILE_SYSTEM.
5497 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
5498 * config/i386/xm-mingw32.h: Don't define
5499 HAVE_DOS_BASED_FILE_SYSTEM,
5500 DIR_SEPARATOR, or DIR_SEPARATOR_2.
5501 * doc/hostconfig.texi: Update to match.
5503 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
5504 config/i386/cygwin.h:
5505 Use IS_ABSOLUTE_PATH throughout.
5506 * gcc.c (DIR_UP): Delete, unused.
5507 * protoize.c (IS_SAME_PATH): Define in terms of
5509 (is_abspath): Delete.
5511 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
5513 * config/i386/emmintrin.h: Fix comment typos.
5514 * config/i386/i386.c: Likewise.
5515 * config/i386/i386.h: Likewise.
5516 * config/i386/sco5.h: Likewise.
5517 * config/ia64/ia64.c: Likewise.
5518 * config/ia64/itanium2.md: Likewise.
5520 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
5522 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
5524 (emit_bincl_stab): Same.
5525 (emit_pending_bincls): Same.
5527 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
5529 * config/h8300/h8300.c (compute_mov_length): Fix the length of
5530 loading CONST0_RTX (SFmode).
5531 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
5532 'G' to CONST0_RTX (SFmode).
5533 * config/h8300/h8300.md (movsf_h8300): Change the first
5535 (movsf_h8300h): Likewise.
5537 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
5539 * c-common.h (c_common_init_options): New prototype.
5540 * c-opts.c (deferred_size): Remove.
5541 (defer_opt): Array is now pre-allocated.
5542 (c_common_init_options): Pre-allocate deferred_opts. Make
5543 lang_flags unsigned.
5544 (push_command_line_options): Free deferred_opts.
5545 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
5546 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
5547 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
5548 * langhooks.h (struct lang_hooks): New prototype for init_options.
5549 * main.c (main): Cast argv.
5550 * opts.c (handle_option, handle_options): Update prototypes.
5551 (decode_options): save_argc, save_argv are not global. Constify.
5552 * opts.h (decode_options): New prototype.
5553 * toplev.c (general_init): New protoype.
5554 (save_argv): Make static.
5555 (save_argc): Remove.
5556 (print_switch_values, general_init): Constify.
5557 (toplev_main): Save argv.
5558 * toplev.h (toplev_main): Update prototype.
5559 (save_argc, save_argv): Remove.
5561 2003-07-02 David Edelsohn <edelsohn@gnu.org>
5563 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
5564 (emit_bincl_stab): Same.
5565 (emit_pending_bincls): Same.
5567 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
5570 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
5572 2003-07-02 Andreas Schwab <schwab@suse.de>
5574 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
5576 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
5578 PR optimization/11210
5579 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
5580 about the behaviour with regard to bitfields.
5581 * fold-const (decode_field_reference): Record outermost type in
5582 case the expression is a NOP. Strip all NOPs. Set the signedness
5583 to that of the outermost type (if any) when the bitsize is equal
5584 to the size of the type.
5586 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
5588 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
5589 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
5590 (adddi3_internal_3, addsi3_internal_2): Likewise.
5592 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
5594 * config/mips/mips.c (machine_function): Add new fields:
5595 ignore_hazard_length_p and all_noreorder_p.
5596 (mips_flag_delayed_branch): New variable.
5597 (override_options): Treat '/' as an operand punctuation character.
5598 Set up mips_flag_delayed_branch.
5599 (print_operand): Handle '/'.
5600 (mips_output_function_prologue): Put the whole function in
5601 .set noreorder and .set nomacro if all_noreorder_p is true.
5602 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
5603 (mips16_optimize_gp): Remove "first insn" parameter.
5604 (mips16_lay_out_constants): New function, split out from mips_reorg.
5605 (mips_avoid_hazard, mips_avoid_hazards): New functions.
5606 (mips_reorg): For mips16 code, call mips16_lay_out_constant
5607 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
5608 do delayed-branch scheduling followed by hazard detection.
5609 (mips_adjust_insn_length): Only account for hazards if
5610 !ignore_hazard_length_p.
5611 (mips_output_load_label): Add a nop to the o32 sequence if
5612 the target suffers from load delays.
5613 (mips_output_conditional_branch): Add %/ to the end of branches.
5614 (mips_output_division): Fill the branch delay slot with %#.
5615 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
5616 instructions. End all other %* branches with %/.
5617 (ffssi2, ffsdi2): Fix lengths.
5618 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
5619 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
5620 (fix_truncsfsi2_macro): Likewise.
5621 (mov_lwl): Set hazard to "none".
5622 (ashldi3_internal): Fill the branch delay slot with %#.
5623 (ashrdi3_internal, lshrdi3_internal): Likewise.
5624 (exception_receiver): Explicitly set $28.
5625 (hazard_nop): New pattern.
5627 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
5629 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
5630 before calling tree_inlinable_function_p.
5632 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5634 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
5635 <internal/stdio_core.h> too.
5636 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
5637 <internal/wchar_core.h> too.
5638 Substitute va_list uses in inline definition.
5639 * fixinc/fixincl.x: Regenerate.
5641 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5643 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
5644 Undef before redefinition.
5645 (LABEL_AFTER_LOC): Likewise.
5646 (DEFAULT_SIGNED_CHAR): Likewise.
5647 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
5650 * config/mips/iris3.h: Remove, unused.
5651 * config/mips/iris4.h: Likewise.
5653 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
5655 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
5656 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
5659 * config/mips/iris5.h: Move explicit includes ...
5660 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
5662 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
5663 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
5666 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
5667 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
5670 * config/mips/iris6.h: Fix IRIX spelling.
5671 (MULTILIB_DEFAULTS): Undef before redefinition.
5673 * config/mips/iris6.h: Move explicit includes ...
5674 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
5676 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
5678 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
5679 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
5680 Use next_needed field instead of aux to maintain the queue.
5681 * cgraph.h (cgraph_node): Add next_needed.
5682 (cgraph_varpool_node): Add next_needed; remove aux.
5683 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
5685 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
5687 * cgraphunit.c (cgraph_finalize_function): Set finalized.
5688 (cgraph_finalize_function): Do not examine inlinablility.
5689 (cgraph_finalize_compilation_unit): Do it here.
5690 * cgraph.h (cgraph_local_info): Add finalized field.
5692 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5694 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
5695 (gt_pch_restore): Likewise.
5697 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5699 * config/alpha/alpha.c: Fix comment typos.
5700 * config/alpha/elf.h: Likewise.
5701 * config/arm/arm.c: Likewise.
5702 * config/arm/arm.h: Likewise.
5703 * config/arm/arm.md: Likewise.
5704 * config/arm/t-arm-coff: Likewise.
5705 * config/arm/t-strongarm-pe: Likewise.
5706 * config/arm/xscale-elf.h: Likewise.
5707 * config/avr/avr.h: Likewise.
5709 2003-07-01 Jeff Law <law@redhat.com>
5711 * stmt.c (any_pending_cleanups): Remove another redundant test.
5713 2003-07-01 David Edelsohn <edelsohn@gnu.org>
5714 J"orn Rennecke <joern.rennecke@superh.com>
5716 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
5719 2003-07-01 Devang Patel <dpatel@apple.com>
5721 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
5723 (struct dbx_file): New members - bincl_status, pending_bincl_name and
5725 (pending_bincls): New.
5726 (dbxout_init): Initialize new dbx_file members.
5727 (dbxout_start_source_file): Same.
5728 (emit_bincl_stab): New function.
5729 (emit_pending_bincls): Same.
5730 (emit_pending_bincls_if_required): Same.
5731 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
5733 (dbxout_begin_block): Emit pending BINCL stabs.
5734 (dbxout_end_block): Same.
5735 (dbxout_function_decl): Same.
5736 (dbxout_continue): Same.
5737 (dbxout_type): Same.
5738 (dbxout_class_name_qualifiers): Same.
5739 (dbxout_symbol): Same.
5740 (dbxout_symbol_location): Same.
5741 (dbxout_parms): Same.
5743 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5745 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
5746 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
5748 2003-07-01 Andreas Jaeger <aj@suse.de>
5750 * fold-const.c: Convert prototypes to ISO C90.
5751 * function.c: Likewise.
5752 * function.h: Likewise.
5754 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5756 * doc/contrib.texi: Fix typos.
5757 * doc/invoke.texi: Likewise.
5758 * doc/passes.texi: Likewise.
5759 * doc/sourcebuild.texi: Likewise.
5760 * doc/tm.texi: Likewise.
5762 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5764 * basic-block.h: Fix comment typos.
5765 * bb-reorder.c: Likewise.
5766 * c-format.c: Likewise.
5767 * cfgcleanup.c: Likewise.
5768 * cfghooks.h: Likewise.
5769 * cfgloop.c: Likewise.
5770 * cfgloopmanip.c: Likewise.
5771 * cfgrtl.c: Likewise.
5772 * cgraph.h: Likewise.
5773 * cgraphunit.c: Likewise.
5774 * combine.c: Likewise.
5775 * convert.c: Likewise.
5776 * dbxout.c: Likewise.
5779 * diagnostic.c: Likewise.
5780 * dwarf2out.c: Likewise.
5781 * et-forest.h: Likewise.
5783 * fold-const.c: Likewise.
5784 * function.h: Likewise.
5785 * gcov-io.h: Likewise.
5788 * genautomata.c: Likewise.
5789 * ggc-common.c: Likewise.
5790 * ggc-page.c: Likewise.
5791 * loop-unroll.c: Likewise.
5792 * loop-unswitch.c: Likewise.
5794 * mips-tfile.c: Likewise.
5795 * optabs.c: Likewise.
5796 * ra-build.c: Likewise.
5797 * ra-colorize.c: Likewise.
5798 * ra-rewrite.c: Likewise.
5800 * regmove.c: Likewise.
5801 * reload.c: Likewise.
5802 * rtlanal.c: Likewise.
5803 * sched-ebb.c: Likewise.
5804 * sched-int.h: Likewise.
5805 * sched-vis.c: Likewise.
5806 * sreal.c: Likewise.
5807 * ssa-ccp.c: Likewise.
5809 * toplev.c: Likewise.
5810 * tree-inline.c: Likewise.
5811 * value-prof.c: Likewise.
5812 * value-prof.h: Likewise.
5814 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
5816 * rtl.h (emit_line_note_after): Remove.
5817 (emit_note_copy_after, emit_note_copy): New.
5818 * emit-rtl.c (reorder_insns_with_line_notes): Replace
5819 emit_line_note_after with emit_note_copy_after.
5820 (emit_insn_after_with_line_notes): Likewise.
5821 (emit_line_note_after): Kill.
5822 (emit_note_copy_after): New.
5823 (emit_note_copy): New.
5824 * function.c (emit_return_into_block): Use emit_note_copy_after.
5825 (thread_prologue_and_epilogue_insns): Likewise.
5826 * integrate.c (expand_inline_function): Use emit_note_copy.
5827 (copy_insn_list): Likewise.
5828 * unroll.c (copy_loop_body): Likewise.
5829 * cfglayout.c (duplicate_insn_chain): Likewise.
5831 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
5833 * c-tree.h (define_label): Replace filename and lineno arguments
5835 * c-decl.c (poplevel): Adjust define_label call.
5836 (pop_label_level): Likewise.
5837 (define_label): Replace filename and lineno arguments with a
5839 (store_parm_decls): Use DECL_SOURCE_LOCATION.
5840 * c-parse.in (label): Adjust define_label call.
5842 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
5844 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
5845 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
5846 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
5847 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
5848 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
5850 2003-07-01 Andreas Jaeger <aj@suse.de>
5852 * final.c: Convert prototypes to ISO C90.
5854 * flags.h: Likewise.
5855 * gcov-io.c: Likewise.
5856 * gcov-io.h: Likewise.
5858 See ChangeLog.9 for earlier changes.