]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
Index: ChangeLog
[gcc.git] / gcc / ChangeLog
CommitLineData
02ac9ec6
BI
12003-08-22 bernardo innocenti <bernie@develer.com>
2
3 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
4 function.
5 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
6
dac4a0de
KH
72003-08-22 Kazu Hirata <kazu@cs.umass.edu>
8
9 * config/i386/i386.c (const_int_1_operand): Simplify an
10 integer comparison.
11
65dbc870
AM
122003-08-22 Alan Modra <amodra@bigpond.net.au>
13
14 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
15 * config/rs6000/ppc64-fp.c: Likewise.
16
dcc24678
KH
172003-08-22 Kazu Hirata <kazu@cs.umass.edu>
18
19 * cfgcleanup.c: Fix comment typos.
20 * emit-rtl.c: Likewise.
21 * optabs.c: Likewise.
22 * ra-build.c: Likewise.
23 * rtlanal.c: Likewise.
24 * tree.h: Likewise.
25
beb235f8
KH
262003-08-22 Kazu Hirata <kazu@cs.umass.edu>
27
28 * c-decl.c: Fix comment formatting.
29 * cfgrtl.c: Likewise.
30 * combine.c: Likewise.
31 * convert.c: Likewise.
32 * dominance.c: Likewise.
33 * dwarf2out.c: Likewise.
34 * dwarfout.c: Likewise.
35 * expmed.c: Likewise.
36 * fold-const.c: Likewise.
37 * gcov.c: Likewise.
38 * genattrtab.c: Likewise.
39 * ggc-common.c: Likewise.
40 * mips-tfile.c: Likewise.
41 * regmove.c: Likewise.
42
2b72593e
KH
432003-08-22 Kazu Hirata <kazu@cs.umass.edu>
44
45 * builtin-attrs.def: Fix comment formatting.
46 * c-pretty-print.c: Likewise.
47 * diagnostic.h: Likewise.
48 * langhooks.h: Likewise.
49 * recog.c: Likewise.
50 * simplify-rtx.c: Likewise.
51 * tree.def: Likewise.
52
8a4a2253
BI
532003-08-22 Bernardo Innocenti <bernie@develer.com>
54
55 * config/m68k/m68k-protos.h: Convert to ISO C90.
56 * config/m68k/m68k.c: Likewise.
57
eb849993
BI
582003-08-21 Bernardo Innocenti <bernie@develer.com>
59 Paul Dale <pauli@snapgear.com>
60 Peter Barada <peter@baradas.org>
61
62 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
63 ColdFire cores.
64
ca11c37c
ZW
652003-08-21 Zack Weinberg <zack@codesourcery.com>
66
67 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
68 * config.gcc (*-*-openbsd): Don't set tm_file.
69 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
70 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
71 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
72 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
73 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
74 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
75 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
76 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
77 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
78 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
79 xscale-*-coff): Use explicit and complete lists of target headers
80 to include. Move definitions to tm_defines where appropriate.
81 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
82 not-yet-contributed configuration.
83
84 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
85 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
86 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
87 * config/i386/nto.h, config/iq2000/iq2000.h,
88 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
89 * config/m68k/linux.h, config/m68k/m68k-aout.h
90 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
91 * config/m68k/netbsd.h, config/m68k/openbsd.h
92 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
93 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
94 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
95 Remove includes of other target config headers, and
96 definitions of macros moved to tm_defines lists. Add #undefs
97 where now necessary to prevent redefinition warnings.
98
99 * config/h8300/coff.h: New file split out of...
100 * config/h8300/elf.h: ...here.
101 * config/m68k/hp320base.h: New file split out of...
102 * config/m68k/hp320.h: ...here.
103 * config/rs6000/lynxbase.h: New file split out of...
104 * config/rs6000/lynx.h: ...here.
105
106 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
107 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
108
109 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
110 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
111 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
112 Remove unnecessary #ifndef.
113 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
114 [under IN_LIBGCC2] with config/.
115
ac650a0a
PB
1162003-08-21 Per Bothner <bothner@pbothner.com>
117
118 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
119 to cpp_push_buffer.
120 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
121 by return_at_eof check. Always call _cpp_pop_buffer at end.
122
43c446b8
KH
1232003-08-21 Kazu Hirata <kazu@cs.umass.edu>
124
125 PR target/11805
126 * config/h8300/h8300.md (two anonymous patterns): Remove.
127
7bc22451
RS
1282003-08-21 Richard Sandiford <rsandifo@redhat.com>
129
130 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
131 * config/mips/mips.c (function_arg_pass_by_reference): Never return
132 true for n32 & n64.
133
ed6f90f7
JZ
1342003-08-21 Josef Zlomek <zlomekj@suse.cz>
135
136 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
137 and similarly in (A | C) == D where C & ~D != 0.
138
e50084fa
GK
1392003-08-20 Geoffrey Keating <geoffk@apple.com>
140
141 PR 8180
142 * configure.in: When testing with_libs and with_headers, treat
143 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
144 * configure: Regenerate.
ca11c37c 145
e50084fa 1462003-08-20 Peter Barada <peter@baradas.org>
bab4470d
PB
147
148 * longlong.h (umul_ppmm): Add ColdFire support.
149
e50084fa 1502003-08-20 Peter Barada <peter@baradas.org>
ca11c37c 151 Bernardo Innocenti <bernie@develer.com>
9425fb04
PB
152
153 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
154 * config/m68k/m68k.h: Likewise.
155 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
156 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
157 * config/m68k/linux.h: Likewise.
158 * config/m68k/m68k.c: Likewise.
159 * config/m68k/m68k.md: Likewise.
160 * config/m68k/m68kelf.h: Likewise.
161 * config/m68k/netbsd-elf.h: Likewise.
162 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
163
d1b87863
BI
1642003-08-20 Bernardo Innocenti <bernie@develer.com>
165
166 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
167 * config/m68k/m68k.md: Likewise.
168
b6343a33
MM
1692003-08-20 Mark Mitchell <mark@codesourcery.com>
170
171 PR java/11996
172 Revert this change:
173 2003-08-19 Mark Mitchell <mark@codesourcery.com>
174 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
175 types with precisions other than those given by native machine
176 modes.
177
bf4563cb
GN
1782003-08-20 Gunther Nikl <gni@gecko.de>
179
180 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
181 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
182 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
183 * config/m68k/m68k.md (anonymous define_insn): Likewise
184 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
185 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
186 code selected by NO_ASM_FMOVECR
187
0fb8241d
GN
1882003-08-20 Gunther Nikl <gni@gecko.de>
189
190 * config/m68k/m68k.c (output_move_const_into_data_reg,
191 output_move_himode): unify MOTOROLA/MIT handling of moveq
192 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
193 Likewise
194
c23b0b90
GN
1952003-08-20 Gunther Nikl <gni@gecko.de>
196
197 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
198 label name
199 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
200 HOST_WIDE_INT_PRINT_DEC with %wd
201
9e68a9dc
LR
2022003-08-20 Loren James Rittle <ljrittle@acm.org>
203
204 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
205 redefine warning.
206
2cf099a5
RS
2072003-08-20 Roger Sayle <roger@eyesopen.com>
208
209 PR middle-end/11984
210 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
211 operands before calling tree_int_cst_lt when performing associative
212 transformations.
213
68ad9159
JM
2142003-08-20 Jason Merrill <jason@redhat.com>
215
216 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
217 (EXPR_CHECK): Don't check for 'r' or 's' if we're
218 checking IS_EXPR_CODE_CLASS.
219 * calls.c (calls_function_1): Likewise.
220 * fold-const.c (fold): Likewise.
221 * tree.c (iterative_hash_expr): Likewise.
222 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
223
c8e60672
GN
2242003-08-20 Gunther Nikl <gni@gecko.de>
225
226 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
227 depending on MOTOROLA_BSR
228 * config/m68k/m68k.md (anonymous define_insn): Likewise
229
3acef2ae
JM
2302003-08-20 Jason Merrill <jason@redhat.com>
231
2f503025 232 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
ca11c37c 233 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
2f503025
JM
234 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
235 * dojump.c (do_jump): Likewise.
236 * fold-const.c (operand_equal_p, fold): Likewise.
237 (tree_expr_nonnegative_p): Likewise.
238
3acef2ae
JM
239 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
240 TYPE_USER_ALIGN for FIELD_DECLs.
ca11c37c 241
3acef2ae
JM
242 * attribs.c (decl_attributes): Rebuild the function pointer type after
243 changing the target type.
244 * tree.c (get_qualified_type): Also check that the attributes match.
245
8f7d850c
MK
2462003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
247
248 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
249 * objc/config-lang.in (stagestuff): ... to here.
250
4b0d3cbe
MM
2512003-08-19 Mark Mitchell <mark@codesourcery.com>
252
253 PR c++/11946
254 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
255 NOP_EXPR) when necessary.
256 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
257 types with precisions other than those given by native machine
258 modes.
259
3a7e8b87
GK
2602003-08-19 Geoffrey Keating <geoffk@apple.com>
261
ccc01444
GK
262 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
263 because some macro is defined.
264
3a7e8b87
GK
265 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
266 options.
267 * config/i386/darwin.h (ASM_SPEC): New.
268 (SUBTARGET_EXTRA_SPECS): New.
269 * config/rs6000/darwin.h (ASM_SPEC): New.
270 (SUBTARGET_EXTRA_SPECS): New.
271 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
272 a cross-compiler between two different processors on Darwin.
273 * configure: Regenerate.
274
a98ebe2e
KH
2752003-08-19 Kazu Hirata <kazu@cs.umass.edu>
276
277 * builtins.c: Fix comment typos.
278 * c-common.c: Likewise.
279 * c-decl.c: Likewise.
280 * c-pretty-print.c: Likewise.
281 * cfgbuild.c: Likewise.
282 * cfglayout.c: Likewise.
283 * cfgloopanal.c: Likewise.
284 * cgraphunit.c: Likewise.
285 * cppfiles.c: Likewise.
286 * dwarfout.c: Likewise.
287 * expr.c: Likewise.
288 * fold-const.c: Likewise.
289 * gcse.c: Likewise.
290 * ggc-page.c: Likewise.
291 * haifa-sched.c: Likewise.
292 * pretty-print.c: Likewise.
293 * tree.c: Likewise.
294 * tree.h: Likewise.
295 * value-prof.c: Likewise.
296
02fa63cd
KH
2972003-08-19 Kazu Hirata <kazu@cs.umass.edu>
298
299 * c-decl.c: Follow spelling conventions.
300 * cppfiles.c: Likewise.
301
59e4e217
KH
3022003-08-19 Kazu Hirata <kazu@cs.umass.edu>
303
304 * c-common.c: Fix comment formatting.
305 * c-common.h: Likewise.
306 * c-decl.c: Likewise.
307 * cppinit.c: Likewise.
308 * cpplib.h: Likewise.
309 * emit-rtl.c: Likewise.
310 * input.h: Likewise.
311 * line-map.h: Likewise.
312 * opts.c: Likewise.
313 * opts.h: Likewise.
314 * simplify-rtx.c: Likewise.
315
1ee93c1b
DJ
3162003-08-19 Daniel Jacobowitz <drow@mvista.com>
317
318 * unwind-c.c: Add libgcc-style exception.
319 * unwind-dw2.c: Likewise.
320 * unwind-pe.h: Likewise.
321 * unwind-sjlj.c: Likewise.
322 * unwind.inc: Likewise.
323
f5e7af77
AP
3242003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
325
326 PR c/5582 PR c++/10538
327 * langhooks-def.h (lhd_decl_uninit): Declare.
328 (LANG_HOOKS_DECL_UNINIT): New macro.
329 (LANG_HOOKS_INITIALIZER): Adjust.
330 * langhooks.h (struct lang_hooks): Add new field
331 decl_uninit.
332 * langhooks.c (lhd_decl_uninit): Define.
333 * c-common.c (c_decl_uninit_1): New function.
334 (c_decl_uninit): New function.
335 (warn_init_self): Define.
336 * c-common.h (c_decl_uninit): Declare.
337 (warn_init_self): Declare.
338 * c.opt: Introduce -Winit-self.
339 * c-opts.c (c_common_handle_options): Set warn_init_self.
340 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
341 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
342 * function.c (uninitialized_vars_warning): Call the language hook.
343 * doc/invoke.texi: Document -Winit-self.
344
d68f4cc4
CD
3452003-08-19 Chris Demetriou <cgd@broadcom.com>
346
347 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
348 to use better predicates and constraints. Define new
349 instruction to handle "trap_if" with DI-mode arguments.
350 (conditional_trap): FAIL if trap code is not 0.
351
86ecdfb6
AP
3522003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
353
354 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
355 strstr with $pb to a strcompare with "<pic base>"
356 (ix86_output_addr_diff_elt): Output the real pic base.
357
fc95cf70
GDR
3582003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
359
360 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
361 (LANG_HOOKS_INITIALIZER): Correct.
362 * c-lang.c: Likewise.
363
810db579
JH
3642003-08-19 Jan Hubicka <jh@suse.cz>
365
366 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
367 (cgraph_varpool_mark_needed_node): Likewise.
368 * cgraph.h (notice_global_symbol): Declare
369 * varasm.c (notice_global_symbol): Break out from ...
370 (assemble_start_function): ... here; update for variables.
371 (assemble_variable): Use notice_global_symbol.
372
fc4fe9e4
RS
3732003-08-19 Richard Sandiford <rsandifo@redhat.com>
374
375 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
376 expect SFmode and DFmode arguments to be passed in FPRs,
377 regardless of the underlying type.
378
4b8174ff
RS
3792003-08-19 Richard Sandiford <rsandifo@redhat.com>
380
381 PR target/11924
382 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
383 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
384
622adc7e
MK
3852003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
386
387 PR c/11207
388 * c-typeck.c (set_init_index): Check for negative index.
389
dfccfad9
BW
3902003-08-18 Bob Wilson <bob.wilson@acm.org>
391
392 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
393 call0 ABI.
394 * config/xtensa/crtn.asm (_init, _fini): Likewise.
395 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
396 __umodsi3, __modsi3): Likewise.
397 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
398 $(INCLUDES).
399
fe9c3a97
AH
4002003-08-18 Aldy Hernandez <aldyh@redhat.com>
401
402 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
403
431d5fdd
RS
4042003-08-18 Richard Sandiford <rsandifo@redhat.com>
405
406 * config/mips/mips.md: Quote C code in braces. Remove use of
407 fake const0_rtx operands. Remove double backslashes. Use \;.
408 Remove workarounds for bogus warnings.
409
4195786e
RS
4102003-08-18 Richard Sandiford <rsandifo@redhat.com>
411
412 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
413 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
414 rather than TARGET_MIPS4300.
415 (mulsf3_internal, mulsf3_r4300): Likewise.
416
6d4ede5f
RS
4172003-08-18 Richard Sandiford <rsandifo@redhat.com>
418
419 * config/mips/mips.md: Renumber unspecs. Clean up comments.
420
dd61aa98
RS
4212003-08-17 Roger Sayle <roger@eyesopen.com>
422
423 * simplify-rtx.c (associative_constant_p): New function to test
424 whether an RTX expression is an immediate constant.
425 (simplify_associative_operation): New function to perform some
426 reassociation optimizations of associative binary expressions.
427 (simplify_binary_operation): Use simplify_associative_operation
428 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
429 Floating point expressions are only reassociated when unsafe
430 math optimizations are permitted.
431
9c808aad
AJ
4322003-08-17 Andreas Jaeger <aj@suse.de>
433
434 * config/alpha/alpha.md: Remove usage of PARAMS.
435
436 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
437 * config/i386/i386-interix.h: Likewise.
438 * config/i386/winnt.c: Likewise.
439 * config/i386/cygming.h: Likewise.
440 * config/i386/cygwin2.c: Likewise.
441 * config/darwin.c: Likewise.
442 * config/darwin-c.c: Likewise.
443 * config/darwin-protos.h: Likewise.
444 * config/darwin.h: Likewise.
445 * config/s390/s390-protos.h: Likewise.
446 * config/s390/s390.c: Likewise.
447 * config/ia64/ia64.c: Likewse
448 * config/ia64/ia64-protos.h: Likewise.
fde46628 449 * config/ia64/ia64-c.c: Likewise.
9c808aad 450
e80d5f80
KG
4512003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
452
fc27d102
KG
453 * config/sparc/sparc.c: Convert to ISO C.
454
e80d5f80
KG
455 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
456 * config/sparc/sparc.c: Likewise.
457
e895113a
NS
4582003-08-16 Nathan Sidwell <nathan@codesourcery.com>
459
460 PR c++/11512
461 * stmt.c (expand_expr_stmt_value): Don't warn about any void
462 typed expression.
463
e767b5be
JH
4642003-08-16 Jan Hubicka <jh@suse.cz>
465
466 * i386.c (ix86_fntype_regparm): Rename from ...
467 (ix86_function_regparm): ... this one; add fastcall and local
468 functions.
469 (ix86_function_ok_for_sibcall): Update.
470 (ix86_return_pops_args): Likewise.
471 (init_cumulative_args): Likewise.
472 (x86_can_output_mi_thunk): Likewise.
473 (function_arg): Fix formating.
474 (x86_this_parameter): Fix fastcall.
475 (x86_output_mi_thunk): Likewise.
476
477 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
478 body as reachable; mark nested functions as needed too.
479 (dump_cgraph): Do not output global.calls.
480 * cgraph.h (cgraph_global_info): Kill.
481 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
482 (record_call_1): Speedup.
483 (cgraph_analyze_function): Break out from ...; compute inlining
484 parameters.
485 (cgraph_finalize_compilation_unit): ... here.
486 (cgraph_mark_inline): Kill computation of calls.
487 (cgraph_decide_inlining): Do not compute most of initial values.
488
8ab49fef
RS
4892003-08-14 Roger Sayle <roger@eyesopen.com>
490
491 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
492 to negate if either operand is easy to negate, if we don't care
493 about sign-dependent rounding.
494 (negate_expr): Make the logic to negate a REAL_CST explicit.
495 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
496 that's easy to negate, if we don't honor sign-dependent rounding.
497 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
498 negate, and the symmetric A * -B as -A * B if A is easy to negate.
499 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
500 -C/D if B and C are cheap to negate. Add an explicit rule to
501 optimize X/-1.0 as -X when we don't care about signaling NaNs.
502
e22340b0
ZW
5032003-08-14 Zack Weinberg <zack@codesourcery.com>
504
505 * Makefile.in (tm_file): Rename tm_include_list.
506 (tm_p_file): Rename tm_p_include_list.
507 (build_xm_file): Rename build_xm_include_list.
508 (host_xm_file): Rename host_xm_include_list.
509 (xm_file): Rename xm_include_list.
510 (xm_file_list): Add to be substituted.
511 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
512 Update to match.
513 (bt-load.o): Add missing dependency on $(TM_H).
514 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
515 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
516 build_xm_file, generate both *_file_list and *_include_list
517 values from it. (xm_file_list was formerly not being generated.)
518 In *_include_list, prefix the names of all headers found in
519 $(srcdir)/config with config/. In each loop, consider only
520 the special case files that can actually appear in that list.
521 AC_SUBST all *_file_list and all *_include_list variables; do
522 not AC_SUBST the plain *_file variables.
523 * configure: Regenerate.
524
4139675b
ZD
5252003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
526
527 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
528
32562302
JDA
5292003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
530
531 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
532 direct calls.
533 (attr_length_call): Include it here. Improve length estimate for
534 local calls.
535 (output_call): Use targetm.binds_local_p.
536
9e46226d
KG
5372003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
538
daa027cc
KG
539 * builtins.c (CASE_MATHFN): New helper macro.
540 (mathfn_built_in): Simplify and sort.
541
9e46226d
KG
542 * protoize.c (substr): Delete, callers changed to `strstr'.
543
c5d19037
ZW
5442003-08-13 Zack Weinberg <zack@codesourcery.com>
545
546 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
547 * config/iq2000/xm-iq2000.h: Delete file.
548
4da6879c
GK
5492003-08-13 Geoffrey Keating <geoffk@apple.com>
550
551 * gengtype.c (walk_type): Process a subobject before processing
552 the pointer that points to the subobject.
553
28420116
PB
5542003-08-13 Per Bothner <pbothner@apple.com>
555
556 * regclass.c (init_reg_modes): Make non-static.
557 Rename to init_reg_modes_once per new naming convention.
558 (init_regs): Don't call init_reg_modes here.
559 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
560 * rtl.h (init_reg_modes_once): New declaration.
561 * toplev.c (backend_init): Call init_regs after init_emit_once.
562
235b4b36
KK
5632003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
564
565 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
566 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
567
dce20bbc
R
5682003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
569
570 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
571 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
572
5a195cb5
DJ
5732003-08-13 Dale Johannesen <dalej@apple.com>
574
575 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
576 handling of decrement-and-branch farther than 32 bits.
577
3a000df0
KC
5782003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
579
580 * configure.in (make_compare_target): Move test to ...
581 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
582 * configure: Regenerate.
583
b4966b1b
RS
5842003-08-12 Richard Sandiford <rsandifo@redhat.com>
585
586 * config/mips/iris6.h: Convert to C90 prototypes.
587 * config/mips/irix6-libc-compat.c: Likewise.
588 * config/mips/mips-protos.h: Likewise.
589 * config/mips/mips.c: Likewise.
590
825d7d64
NN
5912003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
592
593 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
594 for selected machines. Comment heavily.
595 fixinc/fixincl.x: Rebuild.
596 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
597
dfad12b5
RS
5982003-08-12 Richard Sandiford <rsandifo@redhat.com>
599
600 * config/mips/mips.h: Tweak various comments.
601 * config/mips/mips.c: Likewise.
602
e3f049a8
JW
6032003-08-11 James E Wilson <wilson@tuliptree.org>
604
605 PR optimization/11319
606 PR target/10021
607 * alias.c (find_base_value, case REG): Return 0 not src if no base
608 found.
609
4ac11022
KG
6102003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
611
612 * gcse.c (gmalloc): Fix last change.
613
ae351e1e
RS
6142003-08-11 Roger Sayle <roger@eyesopen.com>
615
616 * simplify-rtx.c (simplify_binary_operation): Replace calls to
617 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
618 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
619 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
620
11017cc7
RS
6212003-08-11 Roger Sayle <roger@eyesopen.com>
622
623 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
624 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
625 typecode for an ABS_EXPR.
626
627 * doc/c-tree.texi: Document ABS_EXPR.
628
af7b5c1c
RS
6292003-08-11 Roger Sayle <roger@eyesopen.com>
630
631 * fold-const.c (fold): Optimize any associative floating point
632 operator with -funsafe-math-optimizations, not just MULT_EXPR.
633
e3bf220a
KK
6342003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
635
636 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
637 information in SHmedia case too.
638 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
639 Likewise.
640 (__set_fpscr): Use an access via GOT for PIC case.
641
0c46c5c7
KC
6422003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
643
644 * configure.in (intermodule): Make switch test more portable.
645 * configure: Regenerate.
646
727793cb
KC
6472003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
648
649 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
650 (restrap): Likewise.
651
29da5c92
KG
6522003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
653
9fe15a12
KG
654 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
655 (grealloc): Size argument is a size_t.
656 (gcalloc): New function. Use throughout in lieu of
657 gmalloc/memset.
658
29da5c92
KG
659 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
660 xmalloc/memset.
661 * config/ia64/ia64.c (ia64_reorg): Likewise.
662 * conflict.c (conflict_graph_new): Likewise.
663 * fixinc/fixincl.c (run_compiles): Likewise.
664 * genattrtab.c (optimize_attrs): Likewise.
665 * genrecog.c (new_decision): Likewise.
666 * haifa-sched.c (schedule_block): Likewise.
667 * hashtable.c (ht_create): Likewise.
668
13fb3a61
BW
6692003-08-11 Bob Wilson <bob.wilson@acm.org>
670
671 * config/xtensa/lib2funcs.S: Fix whitespace.
672 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
673 syntax where appropriate. Remove unnecessary backslash escapes.
674 Reformat comments and fix some code formatting.
675 (extendqisi2): Rearrange conditional.
676 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
677 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
678 of fatal_insn.
679
f1d5187e
RS
6802003-08-11 Richard Sandiford <rsandifo@redhat.com>
681
682 * config/mips/mips.c: Various formatting fixes.
683 (override_options): Resync -mtune handling with gas.
684 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
685 * config/mips/mips.h: More formatting fixes.
686 (mips_abi): Move declaration.
687 * config/mips/mips.md (exception_receiver): Add mode to
688 unspec_volatile.
689
00332c9f
AH
6902003-08-11 Aldy Hernandez <aldyh@redhat.com>
691
692 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
693 evsplatfi here.
694 (bdesc_1arg): Remove evsplati and evsplatfi.
695
a5c414e0
R
6962003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
697
698 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
699 into account.
700
0235f855
KG
7012003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
702
703 * builtins.c (expand_builtin_strcat): Optimize constant strings.
704
4b780675
GDR
7052003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
706
707 * pretty-print.c (pp_base_indent): Rename from pp_indent.
708 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
709 (struct c_pretty_print_info): Add more fields.
710 (pp_c_left_paren): Move to c-pretty-print.c.
711 (pp_c_right_paren): Likewise.
712 (pp_c_left_brace): Likewise.
713 (pp_c_right_brace): Likewise.
714 (pp_c_left_bracket): Likewise.
715 (pp_c_right_bracket): Likewise.
716 (pp_c_declarator): Declare.
717 (pp_c_direct_declarator): Likewise.
718 (pp_c_specifier_qualifier_list): Likewise.
719 (pp_c_type_id): Likewise.
720 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
721 (pp_c_type_qualifier_list): New.
722 (pp_c_pointer): Likewise.
723 (pp_c_parameter_type_list): Likewise.
724 (pp_c_function_definition): Likewise.
725 (pp_c_id_expression): Likewise.
726 (pp_c_simple_type_specifier): Tidy.
727 (pp_c_unary_expression): Likewise.
728 (pp_c_expression): Likewise.
729 (pp_c_pretty_printer_init): Likewise.
730 (pp_c_specifier_qualifier_list): Rework..
731 (pp_c_abstract_declarator): Likewise.
732 (pp_c_postfix_expression): Likewise.
733 (pp_c_primary_expression): Likewise.
734 (pp_c_cast_expression): Likewise.
735 (pp_c_direct_abstract_declarator): Likewise.
736 (pp_c_storage_class_specifier): Likewise.
737 (pp_c_function_specifier): Likewise.
738 (pp_c_declaration_specifiers): Likewise.
739 (pp_c_direct_declarator): Likewise.
740 (pp_c_declarator): Likewise.
741 (pp_c_declaration): Likewise.
742 (pp_c_statement): Likewise.
743 (pp_c_integer_constant): Rename from pp_c_integer_literal.
744 (pp_c_character_constant): Rename from pp_c_character_literal.
745 (pp_c_bool_constant): Rename from pp_c_bool_literal.
746 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
747 (pp_c_floating_constant): Rename from pp_c_real_literal.
748 (pp_c_constant): Rename from pp_c_literal.
749 * c-lang.c: Include diagnostic.h and c-pretty-print.h
750 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
751 (c_initialize_diagnostics): New.
752 * Makefile.in (c-lang.o): Update dependency.
753
bae39a73
NS
7542003-08-10 Nathan Sidwell <nathan@codesourcery.com>
755
756 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
757
3372178c
RS
7582003-08-10 Richard Sandiford <rsandifo@redhat.com>
759
760 * config/mips/mips.c (mips_no_mips16_string): Remove.
761 (override_options): Don't handle -mips16 as part of -mipsN.
762 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
763 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
764 (TARGET_OPTIONS): Remove -mno-mips16.
765
1d5565cd
RS
7662003-08-10 Richard Sandiford <rsandifo@redhat.com>
767
768 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
769 (coprocessor2_operand): Likewise.
770 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
771 (lookup_name): Remove declaration.
772 (abort_with_insn): Remove. Replace all uses with fatal_insn.
773 (mips16, mips_abicalls): Remove.
774 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
775 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
776 (coprocessor_operand, coprocessor2_operand): Remove.
777 (override_options): Don't set mips16 or mips_abicalls.
778 (print_operand): Don't expect SIGN_EXTEND operands.
779 (mips_secondary_reload_class): Likewise.
780 (mips_output_conditional_branch): Remove disabled long-branch code.
781 * config/mips/mips.h (call_used_regs): Remove declaration.
782 (may_call_alloca): Likewise.
783 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
784 (mips_abicalls, mips16): Remove declarations.
785 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
786 (CC1_SPEC): Remove outdated comment.
787 (MIPS_VERSION, MACHINE_TYPE): Remove.
788 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
789 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
790 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
791 (PUSH_ROUNDING): Likewise.
792 (ASSEMBLER_SCRATCH_REGNUM): Remove.
793 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
794 and mips16 with TARGET_MIPS16.
795
4169c321
PB
7962003-08-09 Per Bothner <pbothner@apple.com>
797
c5d19037
ZW
798 * cppinit.c (cpp_read_main_file): Split out source-independent
799 initialization to separate function ...
800 (cpp_post_options): New function.
801 * cppfiles.c (cpp_stack_file): Rename public name to ...
802 (_cpp_stack_file): New internal function name.
803 * cpplib.h: Update accordingly.
804 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
805 (cpp_read_main_file): Don't initialize line here.
806 * c-opts.c (c_common_post_options): Call cpp_post_options.
807 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
808 * fix-header.c (read_scan_file): Call cpp_post_options.
809
3d93cdfa
PB
8102003-08-09 Per Bothner <per@bothner.com>
811
812 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
813
dfd8db86
JDA
8142003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
815
816 * pa.c (pa_asm_output_mi_thunk): Fix typo.
817
a54c550f
NB
8182003-08-09 Neil Booth <neil@daikokuya.co.uk>
819
820 PR preprocessor/11839
821 * cppfiles.c (open_file): Handle ENOTDIR.
822
142ee136
RS
8232003-08-09 Richard Sandiford <rsandifo@redhat.com>
824
825 PR target/11699
826 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
827
561af708
JDA
8282003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
829
830 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
831 source/destination is not a register operand.
832
af1e5518
RH
8332003-08-08 Richard Henderson <rth@redhat.com>
834
c5d19037
ZW
835 PR target/11535
836 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
837 RETURN_ADDRESS_POINTER_REGNUM.
838 (ia64_expand_prologue): Don't frob it.
839 (ia64_output_function_epilogue): Likewise.
840 (ia64_return_addr_rtx): New.
841 (ia64_split_return_addr_rtx): New.
842 * config/ia64/ia64-protos.h: Update.
843 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
844 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
845 (GENERAL_REGNO_P): Don't check it.
846 (AR_*_REGNUM): Renumber.
847 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
848 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
849 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
850 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
851 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
852 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
853 (movdi_ret_addr): New.
af1e5518 854
5dddb920
GK
8552003-08-08 Geoffrey Keating <geoffk@apple.com>
856
857 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
858
7bb3fbbb
RS
8592003-08-08 Roger Sayle <roger@eyesopen.com>
860
861 * tree.h (get_identifier) Define a macro form of get_identifier
862 that calls get_identifier_with_length when the string is constant.
863 (get_identifier_with_length): Change type of second argument to
864 size_t in prototype.
865 * stringpool.c (get_identifier): Undefine the macro before giving
866 the function definition.
867 (get_identifier_with_length): Change type of second argument to
868 size_t in function definition.
869 * hashtable.c (calc_hash): Change type of second argument to size_t.
870 (ht_lookup): Change type of third argument to size_t. Reorganize
871 to speed-up the cases where the hash table slot is empty, or the
872 first probe matches (i.e. there isn't a collision).
873 * hashtable.h (ht_lookup): Adjust function prototype.
874
32247ce9
BI
8752003-08-08 Bernardo Innocenti <bernie@develer.com>
876
877 PR target/9697
878 PR target/11777
879 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
880
df38ffef
NB
8812003-08-08 Neil Booth <neil@daikokuya.co.uk>
882
883 * common.opt: Add debug switches.
884 * flags.h (use_gnu_debug_info_extensions): Boolify.
885 * opts.c (write_symbols, debug_info_level,
886 use_gnu_debug_info_extensions): Move from toplev.c.
887 (set_debug_level): New.
888 (common_handle_options): Handle debug switches.
889 (print_help): Display target options directly.
890 * toplev.c (debug_hooks): Don't initialize.
891 (write_symbols, debug_info_level,
892 use_gnu_debug_info_extensions): Move to opts.c.
893 (debug_args, display_help, decode_g_option): Remove.
894 (process_options): Set no debug if level zero here,
895 and no-debug-hooks. Error here if impossible debug format selected.
896 * toplev.h (display_help, decode_g_option): Remove.
897
679c4092
RS
8982003-08-08 Richard Sandiford <rsandifo@redhat.com>
899
900 * tree.c (get_file_function_name_long): Fix size of alloca() area.
901
c8b5beb8
KC
9022003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
903
904 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
c5d19037 905 and gcc_cv_prog_cmp_skip.
c8b5beb8
KC
906 * configure: Regenerate.
907
6b3d1e47
SC
9082003-08-08 Stan Cox <scox@redhat.com>
909
910 * config/iq2000: New port.
911 * config.gcc (iq2000-*-elf): Added.
912 * doc/install.texi (Specific): Add iq2000 description.
913
cfa9ee99
AS
9142003-08-08 Andreas Schwab <schwab@suse.de>
915
7ce27ffb 916 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
cfa9ee99
AS
917 and insert missing empty argument.
918 * configure: Regenerate.
919
cb99b61a
JDA
9202003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
921
62910663
JDA
922 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
923 (attr_length_millicode_call): Likewise.
924 (attr_length_call): Likewise. Revise some maximum insn lengths.
925 (attr_length_indirect_call): Likewise.
926 (output_call): Fix thinko that added extra nop.
927 * pa.h (IN_NAMED_SECTION_P): Define.
928
cb99b61a
JDA
929 PR c++/11712
930 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
931 __STDC_EXT__ when using C++ dialect.
932
97b3d0f0
R
9332003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
934
7d73a2ba
R
935 * sh.c (calc_live_regs): If the return address pointer is live,
936 force pr live.
937 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
938 for saves / restores.
939 (sh_expand_epilogue): If sh_media_register_for_return returns a
940 register number, flag the instructions that restores PR_MEDIA_REG
941 as possibly dead.
942 Remove dead update of offset.
943 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
944 we can use the result of get_hard_reg_initial_val.
945 * sh.md (UNSPEC_RA): New constant.
946 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
947 (load_ra). Handle UNSPEC_RA.
948 (sibcall_media): Use PR_MEDIA_REG.
949
97b3d0f0
R
950 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
951 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
952 needs saving on SHmedia.
953
d40c829f
UW
9542003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
955
956 * config/s390/s390.md: Replace all occurrences of \\t with \t.
957
a5342656
RS
9582003-08-07 Richard Sandiford <rsandifo@redhat.com>
959
960 * local-alloc.c (combine_regs): Fix comment typo.
961
fdc49e10
ZW
9622003-08-06 Zack Weinberg <zack@codesourcery.com>
963
964 * c-decl.c (builtin_decls): Replace with first_builtin_decl
965 and last_builtin_decl.
966 (c_init_decl_processing): Initialize both.
967 (c_reset_state): Iterate from first_builtin_decl to
968 last_builtin_decl inclusive to reintroduce builtins.
969
a32767e4
DM
9702003-08-06 David Mosberger <davidm@hpl.hp.com>
971
fdc49e10
ZW
972 * doc/extend.texi (Function Attributes): Document the IA-64 version
973 of the "model" attribute.
974
975 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
976 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
977 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
978
979 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
980 (ia64_encode_section_info): Likewise.
981 (ia64_attribute_table): Add "model" attribute.
982 (TARGET_ENCODE_SECTION_INFO): Define.
983 (small_addr_symbolic_operand): New function.
984 (got_symbolic_operand): Return 0 for a symbolref to an object
985 in the small address area.
986 (enum ia64_addr_area): New type.
987 (small_ident1): New variable.
988 (small_ident2): Likewise.
989 (init_idents): New function.
990 (ia64_get_addr_area): Likewise.
991 (ia64_encode_addr_area): Likewise.
992 (ia64_encode_section_info): Likewise.
993 (ia64_expand_load_address): For symbolic references to objects in
994 the small-address-area, load the address via gen_rtx_SET() (which,
995 eventually, will expand into "addl").
a32767e4 996
8b82c528
PB
9972003-08-06 Per Bothner <pbothner@apple.com>
998
999 * line-map.h (fileline): New typedef.
fdc49e10 1000 (struct line_map, linemap_add, linemap_lookup): Use it.
8b82c528
PB
1001 * input.h (struct location_s): Comment notes that long-term we want
1002 to replace it by fileline.
1003
b869f904
R
10042003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
1005
1006 Fix SHcompact exception handling:
1007 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
1008 by the prologue, return a MEM with return_address_pointer_rtx
1009 as address.
1010 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
1011 (RETURN_ADDR_OFFSET): Don't define.
1012 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
1013 registers that are visible in compact mode. Show that SHmedia
1014 registers still exist in compact mode, even if there are not
1015 readily accessible.
1016 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
1017 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
1018 and DW_EH_PE_pcrel for pic data.
1019 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
1020 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
1021 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
1022 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
1023 * sh.md (movsi_media-1): New splitter.
1024
f2feed2c
GP
10252003-08-06 Graeme Peterson <gp@qnx.com>
1026
1027 * config/i386/nto.h: New.
1028 * config/i386/t-nto: New.
1029 * config.gcc (i[34567]86-*-nto-qnx*): New.
1030
1cba0a4e
PE
10312003-08-06 Phil Edwards <pme@gcc.gnu.org>
1032
1033 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
1034
980f6e8e
AM
10352003-08-06 Alan Modra <amodra@bigpond.net.au>
1036
1037 * calls.c (load_register_parameters): Arrange for call_fusage to
1038 report the whole register as used when shifting to the msb.
1039
d25225de
RS
10402003-08-05 Roger Sayle <roger@eyesopen.com>
1041
1042 * builtins.c (expand_builtin): When not optimizing, call the library
1043 function for all builtins that have library functions (except alloca).
1044
b20d9f0c
AO
10452003-08-05 Alexandre Oliva <aoliva@redhat.com>
1046
1047 * c.opt: Introduce -fworking-directory.
1048 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
1049 * c-common.h (flag_working_directory): Declare.
1050 * c-common.c (flag_working_directory): Define.
1051 * c-opts.c (c_common_handle_options): Set it.
1052 (sanitize_cpp_opts): Set...
1053 * cpplib.h (struct cpp_options): ... working_directory option.
1054 (struct cpp_callbacks): Add dir_change.
1055 * cppinit.c (read_original_filename): Call...
1056 (read_original_directory): New. Look for # 1 "directory//"
1057 and process it.
1058 (cpp_read_main_file): Call dir_change callback if working_directory
1059 option is set.
1060 * gcc.c (cpp_unique_options): Pass -g*.
1061 * c-lex.c (cb_dir_change): New.
1062 (init_c_lex): Set dir_change callback.
1063 * toplev.c (src_pwd): New static variable.
1064 (set_src_pwd, get_src_pwd): New functions.
1065 * toplev.h (get_src_pwd, set_src_pwd): Declare.
1066 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
1067 * dwarf2out.c (gen_compile_unit_die): Likewise.
1068 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
1069
e1a4dd13
GDR
10702003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1071
1072 * pretty-print.h (pp_set_line_maximum_length): Make macro.
1073 (pp_set_prefix): Likewise.
1074 (pp_destroy_prefix): Likewise.
1075 (pp_remaining_character_count_for_line): Likewise.
1076 (pp_clear_output_area): Likewise.
1077 (pp_formatted_text): Likewise.
1078 (pp_last_position_in_text): Likewise.
1079 (pp_emit_prefix): Likewise.
1080 (pp_append_text): Likewise.
1081 (pp_flush): Likewise.
1082 (pp_format_text): Likewise.
1083 (pp_format_verbatim): Likewise.
1084 (pp_tree_identifier): Tidy.
1085 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
1086 (pp_base_format_verbatim): Rename from pp_format_verbatim.
1087 (pp_base_flush): Rename from pp_flush.
1088 (pp_base_set_line_maximum_length): Rename from
1089 pp_set_line_maximum_length.
1090 (pp_base_clear_output_area): Rename from pp_clear_output_area.
1091 (pp_base_set_prefix): Rename from pp_set_prefix.
1092 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
1093 (pp_base_emit_prefix): Rename from pp_emit_prefix.
1094 (pp_base_append_text): Rename from pp_append_text.
1095 (pp_base_formatted_text): Rename from pp_formatted_text.
1096 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
1097 (pp_base_remaining_character_count_for_line): Rename from
1098 pp_remaining_character_count_for_line.
1099 * diagnostic.h (diagnostic_format_decoder): Tidy.
1100 (diagnostic_flush_buffer): Likewise.
1101 * c-pretty-print.h: (pp_c_string_literal): Declare.
1102 (pp_c_real_literal): Likewise.
1103 (pp_c_integer_literal): Likewise.
1104 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
fdc49e10 1105 pp_identifier.
e1a4dd13
GDR
1106 (pp_c_character_literal): Tidy.
1107 (pp_c_string_literal): Make public.
1108 (pp_c_bool_literal): Likewise.
1109 (pp_c_integer_literal): Likewise.
1110 (pp_c_real_literal): Likewise.
1111
1112 * Makefile.in (C_PRETTY_PRINT_H): New variable.
1113 (c-pretty-print.o): Update dependence.
1114
8c98b170
CD
11152003-08-05 Chris Demetriou <cgd@broadcom.com>
1116
1117 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
1118 ".set nomacro" state.
1119 (fix_truncsfsi2_macro): Likewise.
1120
b3c3af2f
SB
11212003-08-05 Steven Bosscher <steven@gcc.gnu.org>
1122
1123 * tree.h (DID_INLINE_FUNC): Remove macro.
1124 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
1125 add tree check for FUNCTION_DECL.
1126 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
1127 (struct tree_decl): Rename inlined_function_flag to
1128 declared_inline_flag.
1129 * c-common.h (c_lang_decl): Remove.
1130 (DECL_ESTIMATED_INSNS): Remove.
1131 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
1132 (DECL_DECLARED_INLINE_P): Remove.
1133 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
1134 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
1135 (finish_function): Make uninlinable a bool. Fixup call to
1136 tree_inlinable_function_p() and fix some code style issues.
1137 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
1138 * cgraph.c (dump_cgraph): Likewise.
1139 * cgraphunit.c (cgraph_decide_inlining): Likewise
1140 (cgraph_finalize_compilation_unit): Likewise.
1141 Also update call to tree_inlinable_function_p().
1142 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
1143 look at DECL_DECLARED_INLINE and reverse logic.
1144 * print-tree.c (print_node): Likewise.
1145 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
1146 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
1147 prototype.
1148 * tree-inline.c (inlinable_function_p): Split up in this function to
1149 check for basic inlining inhibiting conditions, and new
1150 limits_allow_inlining() function. Warn if inlining is impossible
1151 because the inline candidate calls alloca or uses sjlj exceptions.
1152 (limits_allow_inlining): this new function to check if the inlining
1153 limits are satisfied. Throttle from currfn_max_inline_insns, not from
1154 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
1155 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
1156 Update prototypes.
1157 (tree_inlinable_function_p): Make a bool. Update call to
1158 inlinable_function_p
1159 (expand_call_inline): Use limits_allow_inlining() when not in
1160 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
1161 instead see if the function was declared `inline'.
1162
ed8395a0
JZ
11632003-08-05 Josef Zlomek <zlomekj@suse.cz>
1164
1165 * gcse.c (try_replace_reg): Fix updating of note.
1166
02a1994c
RS
11672003-08-04 Roger Sayle <roger@eyesopen.com>
1168
1169 PR middle-end/11771
1170 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
1171 logic in negate_expr, i.e. we don't invert (A-B) for floating
1172 point types unless flag_unsafe_math_optimizations.
1173
f2593a66
RS
11742003-08-04 Roger Sayle <roger@eyesopen.com>
1175
1176 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
1177 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
1178 for floating point expressions with -ffast-math.
1179 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
1180 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
1181
03aa99d4
RS
11822003-08-04 Roger Sayle <roger@eyesopen.com>
1183
1184 * c-common.c (flag_noniso_default_format_attributes): Delete.
1185 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
1186 (c_attrs_initialized): Delete.
1187 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
1188 always call c_init_attributes.
1189 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
1190 set c_attrs_initialized when done.
1191 (c_common_insert_default_attributes): Delete.
1192 * c-common.h (flag_noniso_default_format_attributes): Delete.
1193 (c_coomon_insert_default_attributes): Delete prototype.
1194 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
1195 flag_noniso_default_format_attributes.
1196
1197 * c-decl.c (c_insert_default_attributes): Delete.
1198 * c-tree.h (c_insert_default_attributes): Delete prototype.
1199
1200 * attribs.c (decl_attributes): Don't call insert_default_attributes
1201 langhook. Update function description comment.
1202 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
1203 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
1204 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
1205 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
1206
1207 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
1208 define.
1209
38e596df
RS
12102003-08-04 Richard Sandiford <rsandif@redhat.com>
1211
1212 * config/mips/mips.c (override_options): Disable -G on targets that
1213 have no .section support.
1214 (mips_select_section): Use default_select_section for such targets.
1215
76d2e2c5
NN
12162003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
1217
1218 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
1219 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
1220 * fixinc/fixincl.x: Rebuild.
1221 * fixinc/tests/base/regexp.h: New test.
1222
b2734c68
AO
12232003-08-04 Alexandre Oliva <aoliva@redhat.com>
1224
1225 * c-ppoutput.c (cb_line_change): Don't skip line changing while
1226 parsing macro arguments in the top-level context.
1227
4e87a651
NB
12282003-08-04 Neil Booth <neil@daikokuya.co.uk>
1229
1230 * config.in: Remove HAVE_LSTAT.
1231 * configure, configure.in: Don't test for lstat.
1232
21ecc5a7
GDR
12332003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1234
1235 * opts.c (decode_options): Do language-specific initialization for
1236 the global diagnostic context.
1237 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
1238 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
1239 (LANG_HOOKS_INITIALIZER): Adjust.
fdc49e10
ZW
1240 * langhooks.h (struct lang_hooks): Add new field
1241 initialize_diagnostics.
21ecc5a7
GDR
1242 * langhooks.c (lhd_initialize_diagnostics): Define.
1243
12442003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1245
1246 * pretty-print.h: Adjust macro definitions.
1247 * pretty-print.c (pp_newline): Rename to pp_base_newline.
1248 (pp_character): Rename to pp_base_character.
1249 (pp_string): Rename to pp_base_string.
1250 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
1251 (pp_newline): Likewise. Adjust.
1252 (pp_c_char): Adjust.
1253
d82f81dd
KG
12542003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1255
1256 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
1257 BUILT_IN_LLABS): Move to miscellaneous section.
1258
335d03ec
NB
12592003-08-03 Neil Booth <neil@daikokuya.co.uk>
1260
cb6eb88a 1261 PR preprocessor/11534
335d03ec
NB
1262 * cppexp.c (parse_defined): Warn only if -pedantic.
1263
76bf2c97
NB
12642003-08-03 Neil Booth <neil@daikokuya.co.uk>
1265
1266 * cppfiles.c (stack_file): Use file path.
1267
178b2b9f
RS
12682003-08-02 Roger Sayle <roger@eyesopen.com>
1269
1270 * builtin-types.def (BT_SSIZE): New primitive type.
1271 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
1272 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
1273 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
1274 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
1275 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
1276 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
1277 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
1278 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
1279 few functions that define default attributes using it.
1280 * c-common.c (c_common_insert_default_attributes): Do nothing.
1281
1282 * doc/extend.texi: Document these "new" builtins.
1283
469146c1
KK
12842003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
1285
1286 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
1287 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
1288 when -mieee-fp set and -shared not set.
1289 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
1290
49634b3a
NB
12912003-08-02 Neil Booth <neil@daikokuya.co.uk>
1292
1293 * cppfiles.c (struct _cpp_file): Rename once_only_next to
1294 next_file. Remove import and pragma_once, add once_only.
1295 (find_file): Add new file structures to the all_files list.
1296 (should_stack_file): Mark #import-ed files once-only, and
1297 don't stack them if the file has already been stacked.
1298 (_cp_mark_file_once_only): Simplify.
1299 * cpphash.h (struct cpp_reader): Rename once_only_files
1300 to all_files. Rename saw_pragma_once to seen_once_only.
1301 (_cpp_mark_file_once_only): Update prototype.
1302 * cpplib.c (do_pragma_once): Update.
1303
cf1ee30c
NB
13042003-08-02 Neil Booth <neil@daikokuya.co.uk>
1305
1306 * cppfiles.c (ENOTDIR): Remove.
1307 (open_file_in_dir): Rename find_file_in_dir. Handle errors
1308 other than ENOENT here.
1309 (once_only_file_p): Rename should_stack_file.
1310 (find_file, open_file_failed, read_file_guts): Report errors
1311 with full path name.
1312 (read_file): Move pch handling to should_stack_file.
1313 (should_stack_file): Handle PCH and once-only issues, and
1314 reading the file.
1315 (stack_file): Don't do file reads.
1316
50612a04
ZD
13172003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1318
1319 * libgcov.c (gcov_exit): Cleanup and fix.
1320 * profile.c (compute_value_histograms): Don't try to read profiles
1321 that are not present.
1322
f6a46818
KG
13232003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1324
f53b62e1
KG
1325 * builtins.def: Categorize.
1326
f6a46818
KG
1327 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
1328 Mind fp rounding.
1329 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
1330
12550591
AT
13312003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
1332
1333 * config.gcc: Enable posix threads by default on darwin.
1334
5f77fbd4
JJ
13352003-08-01 Jakub Jelinek <jakub@redhat.com>
1336
1337 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
1338 even if nehedges1 is 0.
1339
f4dbf936
NN
13402003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
1341
1342 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
1343 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
1344 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
1345 and defintions.
1346
1347 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
1348 * fixinc/fixincl.x: Regenerate.
1349 * fixinc/tests/base/math.h: Regenerate to match test_text change.
1350
c76becbd
RO
13512003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1352
1353 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
1354
f920765d
RK
13552003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1356
1357 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
1358 for accesses to exc_ptr.
1359
8e5f33ff
GK
13602003-08-01 Geoffrey Keating <geoffk@apple.com>
1361
1362 * doc/sourcebuild.texi (Front End Directory): Don't make references
1363 to libsubdir, it's not part of the interface to frontends.
1364 * doc/install.texi (Configuration): Help users read faster by saying
1365 that GCC's configure options are the standard autoconf ones.
1366 Mention --libdir. Update the default rules for finding the
1367 assembler. Don't use libsubdir since we haven't said what it means.
1368 (Specific): In the Solaris 7 notes, update the place to put the
1369 assembler.
1370 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
1371 * doc/cpp.texi (Search Path): Actually, the search path
1372 depends on libdir, which can relocate with cpp.
1373 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
1374 now a private interface between the Makefile and the driver.
1375
75c20980
RH
13762003-08-01 Richard Henderson <rth@redhat.com>
1377
1378 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
1379
1380 * varasm.c (lookup_constant_def): New function.
1381 * rtl.h (lookup_constant_def): Declare it.
fdc49e10 1382 * dwarf2out.c (loc_descriptor_from_tree): Use it.
75c20980
RH
1383 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
1384
f91f41b2
ZW
13852003-08-01 Zack Weinberg <zack@codesourcery.com>
1386
1387 * c-decl.c (gettags, pushdecl_function_level): Delete.
1388 (last_function_parm_vars): Rename last_function_parm_others.
1389 (current_function_parm_vars): Rename current_function_parm_others.
1390 (struct c_scope): Rewrite comment explaining this data structure.
1391 Add names_last, blocks_last, parms_last fields. Rename
1392 incomplete_list to incomplete.
1393 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
1394 (poplevel): Ignore second argument. No need to nreverse
1395 anything. Restructure such that each list is processed
1396 exactly once. Use 'const location_t *locus' syntactic sugar
1397 variable where useful. Issue unused variable warnings
1398 ourselves, do not rely on function.c.
1399 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
1400 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
1401 (implicitly_declare): decl cannot be error_mark_node.
1402 (undeclared_variable): Manipulate scope structure directly.
1403 (c_make_fname_decl): Likewise.
1404 (getdecls, c_init_decl_processing): Fix comment.
1405 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
1406 for 'last' variable.
1407 (grokparms): No need to nreverse parms list.
1408 (store_parm_decls_newstyle): Set up the parms_last and
1409 names_last fields of the new scope too.
1410 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
1411 on parms to begin with; check this under ENABLE_CHECKING. Set
1412 up parms_last.
1413 (check_for_loop_decls): Refer directly to current_scope->tags.
1414 Use consistent quote style in diagnostics.
1415 (c_write_global_declarations): The names list is not backward.
1416
1417 * c-common.h: Don't prototype gettags.
1418 * c-parse.in: Call poplevel with second argument 0 always.
1419
a8eb1db5
KG
14202003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1421
1422 * builtins.def: Resort builtins.
1423
da7cfe13
KG
14242003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1425
1426 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
1427 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
1428 Prepend "__builtin_" onto NAME with string concatenation. Remove
1429 explicit "__builtin_" from each macro call.
1430
1431 Reformat entire file.
1432
ea8eb0b9
KG
14332003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1434
1435 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1436 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
1437
61152e48 14382003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
3ef093a8
AK
1439
1440 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
1441 CCL1, or CCL2 modes with floating point operations.
1442
1443 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
1444 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
1445 "*subdf3_cconly"): New insns.
1446 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
1447
bf42e45b
NB
14482003-08-01 Neil Booth <neil@daikokuya.co.uk>
1449
1450 * Makefile.in: Refine dependencies.
1451 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
1452 * c.opt: Update help for -Wimport.
1453 * cppfiles.c: Include hashtab.h. Update comments.
1454 (stack_file): Read the file before updating dependencies.
1455 (once_only_file_p): Be smarter about marking once-only files.
1456 (_cpp_mark_file_once_only): Correct the check for existence on
1457 the list.
1458 (open_file_failed): Use name not path, which is NULL.
1459 * cpphash.h: Don't include hashtab.h.
1460 (struct _cpp_file): Remove.
1461 (struct cpp_reader): Update.
1462 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
1463 * cpplib.h (struct cpp_options): Remove warn_import.
1464 (cpp_simplify_path): Remove.
1465
a5bcc582
NS
14662003-08-01 Nathan Sidwell <nathan@codesourcery.com>
1467
1468 PR c++/11295
1469 * doc/extend.texi (Statement Expressions): Document C++ semantics.
1470
2fdd01a0
ST
14712003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1472
1473 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
1474
3c260e1d
KG
14752003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1476
1477 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
1478 throughout.
1479 * builtins.def: Likewise.
1480
40209195
JM
14812003-07-31 Jason Merrill <jason@redhat.com>
1482
1483 * Makefile.in (bubblestrap): Don't require a previous full
1484 bootstrap.
1485
1486 * expr.c (mostly_zeros_p): No longer static.
1487 * tree.h: Declare it.
1488 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
1489 unless we need to do substitutions.
1490
2598550f
RS
14912003-07-31 Roger Sayle <roger@eyesopen.com>
1492
1493 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
1494 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
1495 as pow(x,2.0) when the latter will be expanded back into x*x.
1496 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
1497 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
1498 pow can never set errno when used with an integer exponent.
1499 Always use expand_powi when exponent is -1, 0, 1 or 2.
1500 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
1501 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
1502 the pow forms of these expressions.
1503
a8ee6e2d
GK
15042003-07-31 Geoffrey Keating <geoffk@apple.com>
1505
1506 * Makefile.in (libexecdir): New.
1507 (libsubdir): Use gcc instead of gcc-lib.
1508 (libexecsubdir): New.
1509 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
1510 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
1511 gcc-lib.
1512 (installdirs): Make libexecsubdir.
1513 (install-common): Put executables in libexecsubdir.
1514 (itoolsdir): Use libexecsubdir.
1515 (itoolsdatadir): New.
1516 (install-mkheaders): Separate data files and executables.
1517 (install-collect2): Put executables in libexecsubdir.
1518 (uninstall): Remove libexecsubdir.
1519 * mkheaders.in: Update for new arrangement of files.
1520 (libexecdir): New.
1521 (libexecsubdir): New.
1522 (itoolsdir): Use libexecsubdir.
1523 (itoolsdatadir): New.
1524 * gcc.c (gcc_libexec_prefix): New.
1525 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
1526 (standard_exec_prefix_1): Use libexec.
1527 (standard_exec_prefix_2): New.
1528 (standard_libexec_prefix): New.
1529 (process_command): Update for new arrangement of files. Compute
1530 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
1531
631099c9
NN
15322003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
1533
1534 * inclhack.def (stdio_va_list): Avoid bogus replacement which
1535 triggers on Interix.
1536 * fixincl.x: Regenerate.
1537
a132b6a8
JJ
15382003-07-31 Jakub Jelinek <jakub@redhat.com>
1539
1540 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
1541 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
1542
c67b2a58
RK
15432003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1544
1545 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
1546
40e941af
PB
15472003-07-31 Per Bothner <pbothner@apple.com>
1548
1549 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
1550 (add_input_filename): New function.
1551 (handle_options): Call add_input_filename directly instead of
1552 with a lang hook.
1553 * opts.h (in_fnames, num_in_fnames): Moved here.
1554 (add_input_filename): Declare.
1555 * c-decl.c: Need to #include opts.h.
1556 * Makefile.in (c-decl.o): Also depends on opts.h.
1557 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
1558 (c_common_handle_filename): Replaced by add_input_filename.
1559 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
1560 Remove.
1561 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
1562 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1563 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
1564 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1565
9143c6b7
ZD
15662003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1567
1568 * combine.c (try_combine): Set JUMP_LABEL for newly created
1569 unconditional jump.
1570
b7de5864
ZD
15712003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1572
1573 * fold-const.c (fold): Fold some comparisons of bit operations.
1574
fdacb904
JH
1575Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
1576
1577 * cgraph.c (create_edge): Fix typo.
1578 * i386.c (pic_symbolic_operand): Reorder tests.
1579
8100063e
NS
15802003-07-31 Nathan Sidwell <nathan@codesourcery.com>
1581
1582 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
1583 more fully.
1584 (Gcov Data Files): Update.
1585
2a4e8ebc
RO
15862003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1587
1588 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
1589 default.
1590
1591 * gthr-posix.c: New file.
1592 * gthr-posix.h: Define _REENTRANT if missing.
1593 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
1594
1595 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
1596 by gthr-posix.o.
1597 * config/alpha/t-osf-pthread: New file.
1598
1599 * fixinc/inclhack.def (alpha_pthread): New fix.
1600 * fixinc/fixincl.x: Regenerate.
1601 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
1602
1603 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
1604 warning.
1605 Fixes PR bootstrap/9330.
1606
689a714d
RO
16072003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1608
1609 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
1610 without GNU ld.
1611 Update comment.
1612 * configure: Regenerate.
1613
caf819ae
VM
16142003-07-31 Vladimir Makarov <vmakarov@redhat.com>
1615
f91f41b2
ZW
1616 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
1617 setter.
caf819ae 1618
1aa0a5f6
RS
16192003-07-30 Roger Sayle <roger@eyesopen.com>
1620
1621 * builtins.def: Alphabetize.
1622
4bd0bee9
MK
16232003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1624
1625 * doc/c-tree.texi: Normalize spellings of "lowercase" and
1626 "uppercase".
1627 * doc/cpp.texi: Likewise.
1628 * doc/md.texi: Likewise.
1629 * doc/rtl.texi: Likewise.
1630 * doc/tm.texi: Likewise.
1631
7f02cb5c
MK
16322003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1633
1634 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
1635 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
1636 of cc1obj.
1637
498887c8
CD
16382003-07-30 Chris Demetriou <cgd@broadcom.com>
1639
1640 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
1641 macros before defining them.
1642
10bbf137
UW
16432003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
1644
f91f41b2 1645 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
10bbf137
UW
1646 UNSPECV_BLOCKAGE): New constants.
1647 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
1648 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
1649 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
1650 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
1651
1652 (all insns and expanders): Write output control string as brace block
1653 where appropriate. Remove \-escapes for doublequote characters.
1654
3f2eae23
JH
1655Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
1656
1657 * gcse.c (insert_store): Fix typo in previous patch.
1658
f0babc9a
NB
16592003-07-30 Neil Booth <neil@daikokuya.co.uk>
1660
1661 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
1662
edeac5de
AK
16632003-07-30 Andi Kleen <ak@muc.de>
1664
1665 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
1666
6e885ee3
ZD
16672003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1668
1669 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
1670 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
1671 GCOV_N_VALUE_COUNTERS): New.
1672 * profile.c (compute_value_histograms): New static function.
1673 (branch_prob): Read back the value histograms.
1674 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
1675 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
1676 * value-prof.c: Add comment on reading the profile.
1677 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
1678 * doc/invoke.texi (-fprofile-values): Document behavior with
1679 -fbranch-probabilities.
1680
0e6cb2cb
DE
16812003-07-30 David Edelsohn <edelsohn@gnu.org>
1682
1683 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
1684
656ec3b1
UW
16852003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
1686
1687 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
1688 symbolically.
1689
a0c8285b
JH
1690Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
1691
1692 * gcse.c (insert_store): Ignore fake edges.
1693
1694 * c-common.c (flag_vtable_gc): Kill.
1695 * c-common.g (flag_vtable_gc): Kill.
1696 * c-opts (c_common_handle_option): Kill.
1697 * c.opt (fvtable-gc): Kill.
1698 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
1699 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1700 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1701
1702 * invoke.texi (-ftable-gc): Kill documentation.
1703
1704 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
1705 just because function body is missing.
1706
1707 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
1708
b2e863b8
RM
17092003-07-30 Ranjit Mathew <rmathew@hotmail.com>
1710
1711 * unwind-sjlj.c: Fix typo in file description.
1712
9206d736
AM
17132003-07-30 Alan Modra <amodra@bigpond.net.au>
1714
1715 * calls.c (load_register_parameters): When shifting reg sized values
1716 to the msb, move the value to a reg first.
1717
9074464c
GK
17182003-07-29 Geoffrey Keating <geoffk@apple.com>
1719
1720 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
1721 * line-map.h (linemap_add): Update comments.
1722 * line-map.c (linemap_add): Update comments, interpret zero-length
1723 filename as "<stdin>".
1724
e55e4f68
NN
17252003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
1726
1727 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
1728
55d54003
ZW
17292003-07-29 Zack Weinberg <zack@codesourcery.com>
1730
1731 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
1732 New static variables.
1733 (struct c_scope): Add parms and warned_forward_parm_decls
1734 fields; remove parm_order.
1735 (storedecls, storetags): Delete.
1736 (poplevel): Also clear bindings on the parms chain.
1737 (pushdecl): Handle forward declarations of parameters, and
1738 chain PARM_DECLs on the parms list, not the names list.
1739 (lookup_name_current_level): Check for PARM_DECLs on the parms
1740 list too.
1741 (push_parm_decl): Don't update parm_order.
1742 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
1743 warning, only once per parameter list, and set TREE_ASM_WRITTEN
1744 on the decls here. Then move the forward decls to the names list.
1745 (grokparms): Set last_function_parm_vars.
1746 (get_parm_info): Don't use gettags or getdecls. No need to
1747 extract non-parms from the parms list, or reorganize the parms
1748 list. Feed nonparms back in the TREE_TYPE of the list node
1749 returned. Issue only one error per parameter list for "void"
1750 appearing more than once in said parameter list. Collapse
1751 parmlist_tags_warning into this function to avoid double scan
1752 of tags list.
1753 (start_function): Set current_function_parm_vars.
1754 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
1755 directly. Get non-parms from current_function_parm_vars; no
1756 need to extract them from the parms chain. Properly bind tags
1757 in the new scope.
1758 (store_parm_decls_oldstyle): No need to extract non-parameters
1759 from the parms chain, nor to store them back afterward. Move
1760 declaration to top of function, restructure code reordering
1761 DECL_ARGUMENTS.
1762 (store_parm_decls): No need to save and restore warn_shadow.
1763 * c-parse.in: Don't call parmlist_tags_warning nor
1764 clear_parm_order. Call mark_forward_parm_decls when forward
1765 parm decls are encountered.
1766 * c-tree.h: Prototype mark_forward_parm_decls; not
1767 clear_parm_order or parmlist_tags_warning.
1768
18c81520
GK
17692003-07-29 Geoffrey Keating <geoffk@apple.com>
1770
1771 * c-common.c (allow_pch): Remove.
1772 * c-common.h (allow_pch): Remove.
1773 (c_common_no_more_pch): Declare.
1774 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
1775 * c-pch.c: Include hosthooks.h.
1776 (c_common_valid_pch): Don't check allow_pch.
1777 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
1778 (c_common_no_more_pch): New.
1779 * ggc-common.c: Include hosthooks.h.
1780 (gt_pch_save): Call gt_pch_get_address.
1781 (gt_pch_restore): Call gt_pch_use_address.
1782 * hooks.c (hook_voidp_size_t_null): New.
1783 (hook_bool_voidp_size_t_false): New.
1784 * hooks.h (hook_voidp_size_t_null): New.
1785 (hook_bool_voidp_size_t_false): New.
1786 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
1787 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
1788 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
1789 HOST_HOOKS_GT_PCH_USE_ADDRESS.
1790 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
1791 gt_pch_use_address.
1792 * doc/hostconfig.texi (Host Common): Document
1793 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
1794 * Makefile.in (c-pch.o): Depend on hosthooks.h.
1795 (ggc-common.o): Likewise.
1796
1797 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
1798 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
1799 (pch_address_space): New.
1800 (darwin_rs6000_gt_pch_get_address): New.
1801 (darwin_rs6000_gt_pch_use_address): New.
1802
8f9b4009
NB
18032003-07-29 Neil Booth <neil@daikokuya.co.uk>
1804
cb6eb88a
NB
1805 PR preprocessor/11569
1806 PR preprocessor/11649
8f9b4009
NB
1807 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
1808 * cppfiles.c: Completely rewritten.
1809 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
1810 struct cpp_path is now struct cpp_dir.
1811 (remove_duplicates): Don't simplify path names.
1812 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
1813 cpp_stack_file.
1814 * cpphash.h: Include hashtab.h.
1815 (_cpp_file): Declare.
1816 (struct cpp_buffer): struct include_file is now struct _cpp_file,
1817 and struct cpp_path is now struct cpp_dir. Rename members.
1818 (struct cpp_reader): Similarly. New members once_only_files,
1819 file_hash, file_hash_entries, quote_ignores_source_dir,
1820 no_search_path, saw_pragma_once. Remove all_include_files and
1821 max_include_len. Make some members bool.
1822 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
1823 (_cpp_stack_file): Renamed from _cpp_read_file.
1824 (_cpp_stack_include): Renamed from _cpp_execute_include.
1825 (_cpp_init_files): Renamed from _cpp_init_includes.
1826 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
1827 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
1828 (cpp_read_next_file): Rename and move to cppfiles.c.
1829 (cpp_read_main_file): Update.
1830 * cpplib.c (run_directive): Update for renamed members.
1831 (do_include_common, _cpp_pop_buffer): Update.
1832 (do_import): Undeprecate #import.
1833 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
1834 * cpplib.h: Remove file_name_map_list.
1835 (cpp_options): Remove map_list.
1836 (cpp_dir): Rename from cpp_path. New datatype for name_map.
1837 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
1838
a6400add
PE
18392003-07-29 Phil Edwards <pme@gcc.gnu.org>
1840
1841 * Makefile.in: Make stamp-objdir safe for parallel builds.
1842
b2790407
PE
18432003-07-29 Phil Edwards <pme@gcc.gnu.org>
1844
1845 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
1846 (info): Depend on stmp-docobjdir.
1847
8e3940b2
RO
18482003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1849
1850 * configure: Regenerate.
1851
987bf56f
JH
1852Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
1853
1854 PR C++/11131
1855 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
1856 in !unit-at-a-time mode.
1857
5f0eabcc
GK
18582003-07-28 Geoffrey Keating <geoffk@apple.com>
1859
1860 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
1861 main function.
1862
7b6d72fc
MM
18632003-07-28 Mark Mitchell <mark@codesourcery.com>
1864
1865 PR c++/11667
1866 * c-common.c (shorten_compare): Take into account differences
1867 between C and C++ representation for enumeration types.
1868 * tree.h (set_min_and_max_values_for_integral_type): Declare.
1869 * stor-layout.c (set_min_and_max_values_for_integral_type): New
1870 function, broken out from ...
1871 (fixup_signed_type): ... here and ...
1872 (fixup_unsigned_type): ... here.
1873
14077d68
ZW
18742003-07-28 Zack Weinberg <zack@codesourcery.com>
1875
1876 * c-decl.c: Update commentary, adjust blank lines throughout.
1877 (struct c_scope): Fix indentation. Reorder members so
1878 outer-context pointers come first, booleans last.
1879 (duplicate_decls, define_label): Use a 'locus' variable for
1880 diagnostic locations in a few more places.
1881 (warn_if_shadowing): Un-split a conditional that fits on one line.
1882 (c_init_decl_processing): No need to clear current_scope and
1883 current_function_scope.
1884 (start_decl): Merge if/else if statements with same action.
1885 (push_parm_decl): Rename old_immediate_size_expand to use
1886 save_foo convention; save/restore around entire function.
1887 (grokdeclarator): Remove unnecessary braces.
1888
85617eba
HPN
18892003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
1890 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
1891
1892 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
1893 when warn_declaration_after_statement. Call pedwarn_c90, not
1894 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
1895 * c-common.c (warn_declaration_after_statement): Define.
1896 * c-common.h (warn_declaration_after_statement): Declare.
1897 * c.opt (Wdeclaration-after-statement): New.
1898 * c-errors.c (pedwarn_c90): New function.
1899 * c-opts.c (c_common_handle_option) <case
1900 OPT_Wdeclaration_after_statement>: New.
1901 * c-tree.h (pedwarn_c90): Declare.
1902 * doc/invoke.texi (Option Summary): Document
1903 -Wdeclaration-after-statement.
1904 (Warning Options): Ditto.
1905
f527d196
JH
1906Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
1907
1908 * i386.md (memory attribute) Avoid accessing uninitialized memory
1909 for ishift1 type instructions.
1910
5dfa45d0
JJ
19112003-07-28 Jakub Jelinek <jakub@redhat.com>
1912
1913 * configure.in (--enable-checking): Add fold category.
1914 (ENABLE_FOLD_CHECKING): Define if requested.
1915 * configure: Rebuilt.
1916 * config.in: Rebuilt.
1917 * doc/install.texi: Document it.
1918 * fold-const.c: Include md5.h.
1919 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
1920 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
1921 print_fold_checksum): New functions.
1922
1923 * fold-const.c (fold): Never modify argument passed to fold, instead
1924 change a copy and return it.
1925 * convert.c (convert_to_integer): Likewise.
1926
447673de
NN
19272003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
1928
14077d68 1929 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
447673de
NN
1930 cleanup of junk after #else and #endif directives. Collapse repeated
1931 clauses into for statment.
1932
1933 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
1934
66db6b62
ZW
19352003-07-27 Zack Weinberg <zack@codesourcery.com>
1936
a8ccdffe
ZW
1937 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
1938 (keep_next_if_subblocks): Rename next_is_function_body.
1939 (pushlevel): Adjust commentary. Always set ->keep on the
1940 outermost level of a function. Don't set ->keep_if_subblocks.
1941 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
1942 (store_parm_decls): Adjust to match.
1943 (finish_function): Adjust to match.
1944 Call poplevel with all three arguments zero.
1945
66db6b62
ZW
1946 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
1947 New functions split out of store_parm_decls.
1948 Avoid unnecessary work. Use local variables consistently.
1949 (store_parm_decls): Likewise.
1950
1951 (finish_function): No need to set functionbody flag on call to
1952 poplevel.
1953 (struct language_function): Remove scope field.
1954 (c_push_function_context, c_pop_function_context): No need to
1955 save and restore current_scope.
1956
90ea7324
NS
19572003-07-27 Nathan Sidwell <nathan@codesourcery.com>
1958
1959 * doc/extend.texi (Deprecated Features): Implicit typename is
1960 gone. Default args on types is going.
1961
11a004ef
R
19622003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
1963
1964 * Makefile.in (ifcvt.o): Depend on target.h
1965 * ifcvt.c (target.h): Include.
1966 (if_convert): Don't call mark_loop_exit_edges if we can't
1967 modify jumps.
1968
6cbf57c9
GP
19692003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1970
1971 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
1972
a6c14a64
RH
19732003-07-26 Richard Henderson <rth@redhat.com>
1974
1975 PR inline-asm/11676
1976 * cse.c (count_reg_usage): Handle asm_operands properly.
1977
cc42f5f5
RS
19782003-07-26 Roger Sayle <roger@eyesopen.com>
1979
1980 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
1981 (DEF_EXT_FALLBACK_BUILTIN): Delete.
1982 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
1983 the regular DEF_EXT_LIB_BUILTIN macro.
1984 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
1985 the regular DEF_LIB_BUILTIN macro.
1986 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
1987 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
1988 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
1989 DEF_EXT_LIB_BUILTIN macro.
1990
1991 * c-decl.c (duplicate_decls): Remove code to handle builtin
1992 functions prototyped without an argument list.
1993
92e7a6ef
DS
19942003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
1995
1996 * config/i386/winnt.c: Revert 2003-07-08 change.
1997 (i386_pe_section_type_flags): Remove error_with_decl here too.
1998
ba9cfcb5
GDR
19992003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
2000
2001 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
2002 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
2003 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
2004 (v850_handle_data_area_attribute): Likewise.
2005
0e5da0be
GK
20062003-07-26 Geoffrey Keating <geoffk@apple.com>
2007
66db6b62 2008 * varasm.c (output_constant_def_contents): Use
18f3e349
GK
2009 ASM_DECLARE_CONSTANT_NAME if defined.
2010 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
2011 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
2012 objects get at least one byte to prevent assembler problems.
2013 (ASM_DECLARE_CONSTANT_NAME): New.
2014
d2908a50
GK
2015 * Makefile.in (libbackend.o): Remove options_.h.
2016 (mostlyclean): Likewise.
2017
0e5da0be
GK
2018 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
2019 insert a label at the end of an function under Mach-O.
863d3dfb
GK
2020
2021 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
2022
36252949
AH
20232003-07-25 Aldy Hernandez <aldyh@redhat.com>
2024
2025 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
2026 equality.
2027 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
2028
2029 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
2030
0fe37f68
GDR
20312003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2032
2033 * doc/passes.texi (Passes): Mention pretty-printing and
2034 diagnostic files.
2035
50fc59e7
NS
20362003-07-25 Nathan Sidwell <nathan@codesourcery.com>
2037
2038 * doc/extend.texi (Function Attributes): GNU C++ does now allow
2039 unused parameter decls.
2040 (Attribute Syntax): GNU C++ does not allow label attributes to be
2041 after the ':'.
2042
cd475805
GDR
20432003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2044
2045 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
2046 (objc_declare_class): Likewise.
2047 (error_with_ivar): Likewise.
2048 (start_class): Likewise.
2049 (warn_with_method): Likewise.
2050
b6fe0bb8
GDR
20512003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2052
2053 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
66db6b62 2054 from GCC.
b6fe0bb8
GDR
2055 * calls.c (try_to_integrate): Don't use xxx_with_decl.
2056 (expand_call): Likewise.
2057 * dwarfout.c (output_reg_number): Likewise.
2058 * expr.c (expand_expr): Likewise.
2059 * function.c (assign_temp): Likewise.
2060 (uninitialized_vars_warning): Likewise.
2061 (setjmp_args_warning): Likewise.
2062 (expand_function_end): Likewise.
2063 * stmt.c (fixup_gotos): Likewise.
2064 (warn_about_unused_variables): Likewise.
2065 (expand_end_bindings): Likewise.
2066 * stor-layout.c (layout_decl): Likewise.
2067 (place_field): Likewise.
2068 * toplev.c (check_global_declarations): Likewise.
2069 (rest_of_handle_inlining): Likewise.
2070 (default_tree_printer): New function.
2071 (general_init): Initialize diagnostic machinery before routing
2072 signals to the ICE machinery. Set default tree printer.
2073 * toplev.h (pedwarn_with_decl): Remove declaration.
2074 (warning_with_decl): Likewise.
2075 (error_with_decl): Likewise.
66db6b62 2076 (pedwarn): Remove attribute for the time being.
b6fe0bb8
GDR
2077 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
2078 * varasm.c (named_section): Likewise.
2079 (make_decl_rtl): Likewise.
2080 (assemble_variable): Likewise.
2081 (merge_weak): Likewise.
2082 (declare_weak): Likewise.
2083
2084 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
2085 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
2086 (format_with_decl): Remove.
2087 (diagnostic_for_decl): Likewise.
2088 (pedwarn_with_decl): Likewise.
2089 (warning_with_decl): Likewise.
2090 (error_with_decl): Likewise.
2091 (diagnostic_initialize): Adjust.
2092 (diagnostic_count_diagnostic): Likewise.
2093 (announce_function): Likewise.
2094 (lhd_print_error_function): Likewise.
2095 (diagnostic_report_current_module): Likewise.
2096 (default_diagnostic_starter): Likewise.
2097 (diagnostic_report_diagnostic): Likewise.
2098 (default_diagnostic_finalizer): Likewise.
2099 (verbatim): Likewise.
2100 (error): Likewise.
2101 (warning): Likewise.
2102 * opts.c (common_handle_option): Likewise.
2103 * pretty-print.c: New file.
2104 * c-pretty-print.h (pp_base): Override.
2105 * c-pretty-print.c: Adjust use of macros throughout.
2106 (pp_buffer): New macro.
2107 (pp_newline): Likewise.
2108 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
2109 * Makefile.in (DIAGNOSTIC_H): New variable.
2110 (c-errors.o): Use it.
2111 (c-objc-common.o): Likewise.
2112 (c-common.o): Likewise.
2113 (c-opts.o): Likewise.
2114 (c-format.o): Likewise.
2115 (diagnostic.o): Likewise.
2116 (opts.o): Likewise.
2117 (toplev.o): Likewise.
2118 (rtl-error.o): Likewise.
2119 (dwarf2out.o): Likewise.
2120 (jump.o): Likewise.
2121 (pretty-print.o): New rule.
2122
868b8cda
RS
21232003-07-24 Roger Sayle <roger@eyesopen.com>
2124
2125 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
2126 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
2127 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
2128 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
2129 (DEF_FRONT_END_LIB_BUILTIN): Delete.
2130 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
2131 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
2132
2133 * builtins.c (build_string_literal): New function to construct
2134 a char* pointer to a string literal.
2135 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
2136 "rtx target" to be consistent with other expand_builtin_* functions.
2137 Change 3rd argument from "int unlocked" to "bool unlocked".
2138 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
2139 c-common.c to avoid front-end dependencies. Optimize printf("")
2140 as a no-op when the result isn't required. Handle embedded NULs
2141 in format string.
2142 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
2143 from c-common.c to avoid front-end dependencies. Likewise, optimize
2144 fprintf(fp,"") as a no-op when the result isn't required, evaluating
2145 fp for side-effects. Handle embedded NULs in format string.
2146 (expand_builtin_sprintf): Fix typo.
2147 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
2148 optimizing. Adjust calls of expand_builtin_fputs to match the API
2149 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
2150 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
2151 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
2152
2153 * c-common.c (is_valid_printf_arglist): Delete.
2154 (c_expand_builtin): Delete.
2155 (c_expand_builtin_printf): Moved to builtins.c. Delete.
2156 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
2157 (c_expand_expr): No longer treat CALL_EXPRs specially.
2158 (CALLED_AS_BUILT_IN): Delete.
2159
2a868ea4
ZD
21602003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2161
2162 PR optimization/11631
2163 * gcse.c (store_motion): Connect infinite loops to exit.
2164
de7df9eb
JM
21652003-07-24 Jason Merrill <jason@redhat.com>
2166
2167 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
2168 (boolean_true_node, boolean_false_node): Likewise.
2169 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
2170 * tree.c (build_common_tree_nodes): Init boolean_type_node.
2171 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
2172 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
2173 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
2174 (truthvalue_true_node): Renamed from boolean_true_node.
2175 (truthvalue_false_node): Renamed from boolean_false_node.
2176 * c-decl.c: Just set truthvalue_* to integer_*.
2177 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
2178
6907ddd3
RS
21792003-07-24 Roger Sayle <roger@eyesopen.com>
2180
2181 * c-decl.c (match_builtin_function_types): New subroutine of
2182 duplicate_decls to test whether a redeclaration of a builtin
2183 function is suitably close, i.e. the return type and all of
2184 the argument types have the same modes as the builtin expects.
2185 (duplicate_decls): Fuzzy type matching for builtin functions
2186 moved to match_builtin_function_types.
2187
84d45ad1
ZD
21882003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2189
2190 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
2191 flag correctly.
2192
f8521984
ZW
21932003-07-24 Zack Weinberg <zack@codesourcery.com>
2194
2195 * c-decl.c: Search-and-replace change 'binding level' to
2196 'scope' in commentary.
2197 (struct binding_level): Now struct c_scope.
2198 (current_binding_level): Now current_scope.
2199 (free_binding_level): Now scope_freelist.
2200 (current_function_level): Now current_function_scope.
2201 (global_binding_level): Now global_scope.
2202 (make_binding_level): Now make_scope.
2203 (pop_binding_level): Now pop_scope.
2204
0f31374d
RO
22052003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2206
2207 * configure.in (libgcc_visibility): Add missing whitespace.
2208
270606ac
RH
22092003-07-24 Richard Henderson <rth@redhat.com>
2210
2211 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
2212 __gcc_personality_v0.
f8521984 2213
5f08e44f
RO
22142003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2215
2216 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
2217
a4878735
NS
22182003-07-24 Nathan Sidwell <nathan@codesourcery.com>
2219
2220 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
2221 documentation missed from my 2003-07-09 patch.
2222
5aaaf0e8
NN
22232003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
2224
2225 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
2226 it's not provided.
2227 * configure: Rebuild.
2228
8f5b6d29
SB
22292003-07-24 Steven Bosscher <steven@gcc.gnu.org>
2230
2231 PR c/10602
2232 * c-typeck.c (type_lists_compatible_p): Do not compare
2233 arguments if one of them is an error_mark_node
2234
acd0b319
AM
22352003-07-24 Alan Modra <amodra@bigpond.net.au>
2236
2237 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
2238 if current_function_calls_eh_return.
2239
28b619b2
MM
22402003-07-23 Mark Mitchell <mark@codesourcery.com>
2241
2242 * doc/c-tree.texi (OFFSET_TYPE): Update description.
2243
07154156
BW
22442003-07-23 Bob Wilson <bob.wilson@acm.org>
2245
2246 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
2247 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
2248 __umodsi3, __modsi3): Increase frame size to 32.
2249
5f5bfdd0
GK
22502003-07-23 Geoffrey Keating <geoffk@apple.com>
2251
2252 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
2253 prototype.
2254
11b8e71c
MM
22552003-07-23 Mark Mitchell <mark@codesourcery.com>
2256
28b619b2
MM
2257 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
2258
11b8e71c
MM
2259 PR optimization/10679
2260 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
2261
9d6b7c09
JDA
22622003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2263
2264 PR target/11607 and PR target/11516
2265 * pa.md (extzv, extv, insv): Revert latter half of last patch.
2266
a5ac359a
MM
22672003-07-22 Mark Mitchell <mark@codesourcery.com>
2268
2269 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
2270 * varasam.c (output_constant): Likewise.
2271
938d968e
KH
22722003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2273
2274 * alias.c: Fix comment formatting.
2275 * c-common.c: Likewise.
2276 * c-decl.c: Likewise.
2277 * c-opts.c: Likewise.
2278 * combine.c: Likewise.
2279 * cpplib.c: Likewise.
2280 * diagnostic.c: Likewise.
2281 * dojump.c: Likewise.
2282 * final.c: Likewise.
2283 * fold-const.c: Likewise.
2284 * gcc.c: Likewise.
2285 * gcse.c: Likewise.
2286 * ggc-page.c: Likewise.
2287 * jump.c: Likewise.
2288 * loop.c: Likewise.
2289 * mips-tfile.c: Likewise.
2290 * recog.c: Likewise.
2291 * regclass.c: Likewise.
2292 * regmove.c: Likewise.
2293 * tree.c: Likewise.
2294 * tree.h: Likewise.
2295
b3147029
PB
22962003-07-22 Per Bothner <pbothner@apple.com>
2297
2298 * line-map.c (add_line_map): Handle invalid LEAVE request.
2299 Fixes PR preprocessor/11361.
2300
53f72d60
PB
23012003-07-22 Per Bothner <pbothner@apple.com>
2302
2303 * diagnostic.c.(diagnostic_report_current_module): Update to match
2304 2003-06-05 changes to push_srcloc and pop_srcloc.
2305
5cf0212f
WB
23062003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
2307
2308 * doc/trouble.texi: Better document two-stage name lookup.
2309
c7453384
EC
23102003-07-22 Eric Christopher <echristo@redhat.com>
2311
2312 * config/s390.c (s390_valid_pointer_mode): New.
2313 (TARGET_VALID_POINTER_MODE): Use.
2314 (s390_emit_prologue): Add tpf profiling hooks.
2315 (s390_emit_epilogue): Ditto.
2316 * config/s390.h (MASK_TPF): New.
2317 (TARGET_TPF): Use.
2318 (POINTERS_EXTEND_UNSIGNED): Define.
2319 * config/s390.md (ptr_extend): New pattern.
2320
a2f7be91
ZW
23212003-07-22 Zack Weinberg <zack@codesourcery.com>
2322
2323 * hashtable.c (approx_sqrt): Make static.
2324 * hashtable.h: Don't prototype approx_sqrt.
2325 * line-map.c (init_line_maps): Rename linemap_init.
2326 (free_line_maps): Rename linemap_free.
2327 (add_line_map): Rename linemap_add.
2328 (lookup_line): Rename linemap_lookup.
2329 (print_containing_files): Rename linemap_print_containing_files.
2330 * linemap.h: Update to match.
2331
2332 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
2333 linemap routines to use new names.
2334
c6e4cc53
NS
23352003-07-16 Nathan Sidwell <nathan@codesourcery.com>
2336
2337 * c-common.c (handle_packed_attribute): Don't pack a struct via a
2338 typedef. Propagate packedness from a main variant.
2339
55de4f08
NN
23402003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
2341
2342 * Makefile.in (install-common): Add dependency on installdirs.
2343
fb5d2a87
AO
23442003-07-21 Alexandre Oliva <aoliva@redhat.com>
2345
2346 * c-common.c (c_common_type_for_mode): Return integer types for
2347 pointer modes.
2348
905bd7b5
GK
23492003-07-22 Geoffrey Keating <geoffk@apple.com>
2350
d05cc98e
GK
2351 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
2352 (finish_decl): Call maybe_apply_pragma_weak here.
2353 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
2354 TREE_PUBLIC and TREE_STATIC are decided.
2355 (start_function): Move call to maybe_apply_pragma_weak. Check that
2356 DECL_ASSEMBLER_NAME isn't set too early.
2357
905bd7b5
GK
2358 * cpplex.c (_cpp_process_line_notes): Mention option name in
2359 trigraphs warning.
2360
87d9741e
KH
23612003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2362
2363 * combine.c (if_then_else_cond): Simplify the comparison of
2364 rtx against -1, 0, and 1.
2365 * loop.c (check_dbra_loop): Likewise.
2366 * optabs.c (emit_conditional_move): Likewise.
2367 (emit_conditional_add): Likewise.
2368 * config/i386/i386.md (*movsi_or): Likewise.
2369 (*movdi_or_rex6): Likewise.
2370
b67d7f4a
JH
2371Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
2372
2373 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
2374
8d973a83
NB
23752003-07-21 Neil Booth <neil@daikokuya.co.uk>
2376
2377 * cppfiles.c (open_file_pch): Don't put unused entries in the
2378 splay tree. Remove dead code.
2379
49a64b24
GK
23802003-07-21 Geoffrey Keating <geoffk@apple.com>
2381
48873ed2
GK
2382 * c-common.h (num_in_fnames): Declare.
2383 (c_static_assembler_name): Move from here...
2384 * c-tree.h (c_static_assembler_name): ... to here.
2385 * c-opts.c: Don't include langhooks-def.h.
2386 (c_static_assembler_name): Move to c-decl.c.
2387 (num_in_fnames): Make externally visible.
2388 * c-decl.c: Include langhooks-def.h.
2389 (c_static_assembler_name): Move from c-opts.c.
2390 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
2391 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
2392
49a64b24
GK
2393 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
2394 when it's not needed.
2395
8c29550d
JJ
23962003-07-21 Jakub Jelinek <jakub@redhat.com>
2397
2398 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
2399 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
2400 (rs6000_emit_prologue): Save FPRs inline if set.
2401
92cbea22
L
24022003-07-21 H.J. Lu <hongjiu.lu@intel.com>
2403
2404 * config/ia64/ia64.md (prefetch): Support predicate.
2405
ee735eef
JZ
24062003-07-21 Josef Zlomek <zlomekj@suse.cz>
2407
2408 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
2409 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
2410 table.
2411
bbda30a4
EB
24122003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2413
a2f7be91 2414 PR optimization/11536
bbda30a4
EB
2415 * unroll.c (loop_iterations): Do not replace a register holding
2416 the final value by its equivalent before the loop if it is not
2417 invariant.
2418
64c18e57
DF
24192003-07-21 Dave Fluri <dave.fluri@onlink.net>
2420
2421 * doc/extend.texi: Fixes to spelling, grammar, and diction.
2422
b222f49a
BE
24232003-07-21 Ben Elliston <bje@wasabisystems.com>
2424
2425 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
2426 (V850 Options): Spelling fixes.
2427
9eff22bc
LG
24282003-07-20 Lisa M. Goldstein <opus@gnu.org>
2429
a2f7be91 2430 * doc/invoke.texi: Fixes to style, grammar and diction.
9eff22bc 2431
6a6c0154
RS
24322003-07-20 Roger Sayle <roger@eyesopen.com>
2433
2434 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
2435 * system.h (SMALL_STACK): Poison obsolete target macro.
2436 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
2437
d38b3a8d
PE
24382003-07-20 Phil Edwards <pme@gcc.gnu.org>
2439
2440 * configure.in: Cache the results of testing for cmp's capabilities.
2441 * configure: Regenerate.
2442
35dc2bd8
MM
24432003-07-20 Mark Mitchell <mark@codesourcery.com>
2444
2445 PR debug/11279
2446 * dwarf2out.c (gen_enumeration_type_die): Remember that
2447 enumerators can be unsigned.
2448
14e33ee8
ZW
24492003-07-19 Zack Weinberg <zack@codesourcery.com>
2450
2451 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
2452 (push_label_level, pop_label_level): Kill.
2453 (struct binding_level): Rename level_chain to outer.
2454 Add outer_function field. Change parm_flag, function_body,
2455 keep, keep_if_subblocks to 1-bit bitfields of type bool.
2456 (current_function_level): New variable.
2457 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
2458 (keep_next_level, declare_parm_level, warn_if_shadowing):
2459 Update to match.
2460 (struct language_function): Kill named_labels, shadowed_labels fields.
2461 (c_init_decl_processing, start_function, c_push__function_context)
2462 (c_pop_function_context): No need to muck with named_labels nor
2463 shadowed_labels.
2464
2465 (make_binding_level): No need to clear the structure here.
2466 (pop_binding_level): Always operate on current_binding_level.
2467 Update current_function_level if necessary.
2468 (pushlevel): Don't clear named_labels. Update current_function_level
2469 if necessary. Use "true" and "false" where appropriate.
2470 (poplevel): Diagnose labels defined but not used, or vice
2471 versa, and clear out label-meanings leaving scope, while
2472 walking down the decls list, for all binding levels.
2473 Handle LABEL_DECLs appearing in the shadowed list.
2474 pop_binding_level takes no arguments.
2475 (pushdecl_function_level): Use current_function_level.
2476
2477 (make_label, bind_label): New static functions.
2478 (declare_label): New exported function.
2479 (lookup_label, define_label): Rewritten for new data structure.
2480 (shadow_label): Kill.
2481
2482 * c-tree.h: Prototype declare_label; don't prototype
2483 push_label_level, pop_label_level, nor shadow_label.
2484 * c-parse.in: Remove all calls to push_label_level and
2485 pop_label_level. Use declare_label for __label__ decls.
2486
2487 * doc/extend.texi: Clarify that __label__ can be used to
2488 declare labels with local scope in any nested block, not
2489 just statement expressions. Cross-reference nested functions
2490 section from local labels section.
2491
8a6b9b7f
ZD
24922003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2493
2494 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
2495
026fe6c8
PE
24962003-07-19 Phil Edwards <pme@gcc.gnu.org>
2497
2498 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
2499
c68b0a84
KG
25002003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2501
2502 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
2503 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
2504
fd7643fb
UW
25052003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
2506
14e33ee8 2507 * config/s390/s390.c (legitimize_pic_address): Access local symbols
fd7643fb
UW
2508 relative to the GOT instead of relative to the literal pool base.
2509 (s390_output_symbolic_const): Handle new GOT-relative accesses.
2510 * config/s390/s390.md ("call"): Access local functions and PLT stubs
2511 relative to the GOT instead of relative to the literal pool base.
2512 ("call_value"): Likewise.
2513 ("call_value_tls"): Likewise.
2514
14e33ee8 2515 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
fd7643fb
UW
2516 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
2517 (s390_chunkify_finish): Likewise.
2518 (s390_chunkify_cancel): Likewise.
2519 (s390_reorg): Adapt caller.
2520 (find_base_register_in_addr,
2521 find_base_register_ref, replace_base_register_ref): Delete.
2522 (find_ltrel_base, replace_ltrel_base): New functions.
2523 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
2524 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
2525 base vs. index register usage.
2526 (struct constant_pool): Remove 'anchor'.
2527 (s390_add_anchor): Delete.
2528 (s390_dump_pool): Remove anchor handling.
2529 * config/s390/s390.md ("reload_anchor"): Remove.
2530
2531 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
2532 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
2533 (s390_emit_prologue): Use it.
14e33ee8
ZW
2534 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
2535 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
fd7643fb
UW
2536 hard-code register 14.
2537 * config/s390/s390-protos.h (s390_load_got): Declare.
2538
14e33ee8 2539 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
fd7643fb
UW
2540 Support TImode constants.
2541 * config/s390/s390.md ("consttable_ti"): New.
2542 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
2543
2544 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
2545 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
2546 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
2547 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
2548 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
2549 New symbolic constants.
2550 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
2551 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
2552 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
2553 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
2554 symbolic UNSPEC values.
14e33ee8 2555 * config/s390/s390.c (larl_operand, s390_short_displacement,
fd7643fb
UW
2556 bras_sym_operand, s390_cannot_force_const_mem,
2557 s390_delegitimize_address, s390_decompose_address,
2558 legitimize_pic_address, s390_output_symbolic_const,
2559 s390_function_profiler): Use symbolic UNSPEC values.
2560
703ad42b
KG
25612003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2562
2563 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
2564 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
2565 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
2566 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
2567 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
2568 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
2569 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
2570 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
2571 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
2572 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
2573 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
2574 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
2575 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
2576 postreload.c prefix.c print-tree.c protoize.c ra-build.c
2577 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
2578 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
2579 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
2580 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
2581 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
2582 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
2583 casts.
2584
308ca868
GDR
25852003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2586
2587 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
2588 * toplev.h (warning): Remove attribute.
2589
435ab236
GDR
25902003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2591
2592 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
2593 (pop_label_level): Likewise.
2594 (duplicate_decls): Likewise.
2595 (implicitly_declare): Likewise.
2596 (shadow_label): Likewise.
2597 (start_decl): Likewise.
2598 (finish_decl): Likewise.
2599 (grokdeclarator): Likewise.
2600 (get_parm_info): Likewise.
2601 (detect_field_duplicates): Likewise.
2602 (finish_struct): Likewise.
2603 (start_function): Likewise.
2604 (store_parm_decls): Likewise.
2605 (finish_function): Likewise.
2606 (c_expand_body_1): Likewise.
2607 (check_for_loop_decls): Likewise.
2608 (merge_translation_unit_decls): Likewise.
2609
2cc98056
NB
26102003-07-19 Neil Booth <neil@daikokuya.co.uk>
2611
2612 * common.opt: Document --param.
2613 * opts.c (columns, undocumented_msg): New.
2614 (print_help): Get number of columns from environment. Print
2615 --param help. Tweak newline handling.
2616 (print_param_help): New.
2617 (print_filtered_help): Better handling of duplicates. Complain
2618 about undocumented switches.
2619 (print_switch): New.
2620 (wrap_help): Improve wrapping, use COLUMNS.
2621 * opts.sh: Ignore comments in records.
2622 * params.def: Fix typos and remove trailing periods.
2623 * toplev.c (display_help): Don't dump --param help.
2624 * doc/sourcebuild.texi: Update.
2625
d893ccde
RH
26262003-07-18 Richard Henderson <rth@redhat.com>
2627
0e38b30b 2628 PR target/11556
d893ccde
RH
2629 * optabs.c (prepare_operand): Fail gracefully instead of abort
2630 if the predicate doesn't satisfy.
2631 (gen_cond_trap): Allow prepare_operand to fail.
2632
eb8221ea
GDR
26332003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2634
2635 * c-common.c: Don't undefine GCC_DIAG_STYLE.
2636 (fname_decl): Don't use xxx_with_decl.
2637 (c_add_case_label): Likewise.
2638 (handle_section_attribute): Likewise.
2639 (handle_alias_attribute): Likewise.
2640 (handle_no_instrument_function_attribute): Likewise.
2641 (handle_no_limit_stack_attribute): Likewise.
2642 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
2643 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
2644
65f43cdf
ZD
26452003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2646
2647 * Makefile.in (ifcvt.o): Add cfgloop.h.
2648 * basic-block.h (EDGE_LOOP_EXIT): New flag.
2649 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
2650 * ifcvt.c: Include cfgloop.h.
2651 (mark_loop_exit_edges): New static function.
2652 (if_convert): Call it.
2653 (find_if_header): Ignore branches out of loops.
2654
e5686da7
KH
26552003-07-18 Kazu Hirata <kazu@cs.umass.edu>
2656
14e33ee8 2657 * combine.c (simplify_comparison): Don't share rtx when converting
e5686da7
KH
2658 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
2659
8d05ebaa
DE
26602003-07-18 David Edelsohn <edelsohn@gnu.org>
2661
2662 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
2663 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2664 (MUST_PASS_IN_STACK): Define.
2665 (BLOCK_REG_PADDING): Define.
2666
79019985
RH
26672003-07-18 Richard Henderson <rth@redhat.com>
2668
2669 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
2670 to skip the addr_vec.
2671
0595d388
AO
2672Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
2673
2674 * combine.c (combinable_i3pat): Don't forbid occurrences of
2675 i2dest or i1dest in inner_dest if inner_dest is a mem.
2676
2ee1067b
JH
2677Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
2678
2679 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
2680
16f6812f
JJ
26812003-07-17 Jakub Jelinek <jakub@redhat.com>
2682
2683 PR target/11087
2684 * loop.c (basic_induction_var): Check if convert_modes emitted any
2685 instructions. Remove them and return 0 if so.
2686
f129791c
EB
26872003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
2688
2689 PR optimization/11083
2690 * toplev.c (rest_of_handle_addresof): Rename into
2691 rest_of_handle_addressof. Delete unreachable blocks
2692 if dead edges were purged after the addressof pass.
2693
b2e608ca
NB
26942003-07-18 Neil Booth <neil@daikokuya.co.uk>
2695
2696 * Makefile.in, configure, configure.in: Remove handling of
2697 lang-options.h and options_.h.
2698 * toplev.c (struct lang_opt, documented_lang_options): Remove.
2699 (display_help): Don't use documented_lang_options.
2700
9cd51ef6
ZW
27012003-07-17 Zack Weinberg <zack@codesourcery.com>
2702
2703 * c-decl.c (pushdecl_function_level): Make static, return nothing.
2704 (kept_level_p): Fold into poplevel.
2705 (undeclared_variable): Moved here from c-typeck.c. Export.
2706 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
2707 (undeclared_variable): Prototype here. Don't prototype
2708 kept_level_p nor pushdecl_function_level.
2709 * c-parse.in: Change first argument to poplevel from
2710 "kept_level_p()" to "KEEP_MAYBE".
2711 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
2712
cf6bcbd0
RS
27132003-07-17 Roger Sayle <roger@eyesopen.com>
2714
2715 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
2716 commutative operands instead of modifying the RTL in-place.
2717
2b187c63
MM
27182003-07-17 Mark Mitchell <mark@codesourcery.com>
2719
2720 PR optimization/11557
2721 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
2722 unless we know which function is being called.
2723
c715abdd
RS
27242003-07-17 Roger Sayle <roger@eyesopen.com>
2725
2726 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
2727 whether to reorder the operands of a commutative binary operator.
2728
3e4093b6
RS
27292003-07-17 Roger Sayle <roger@eyesopen.com>
2730
2731 * fold-const.c (const_binop): Avoid performing the FP operation at
2732 compile-time, if either operand is NaN and we honor signaling NaNs,
2733 or if we're dividing by zero and either flag_trapping_math is set
2734 or the desired mode doesn't support infinities.
2735 (fold_initializer): New function to fold an expression ignoring any
2736 potential run-time exceptions or traps.
2737 * tree.h (fold_initializer): Prototype here.
2738 * c-typeck.c (build_binary_op): Move to the end of the file so
2739 that intializer_stack is in scope. If constructing an initializer,
2740 i.e. when initializer_stack is not NULL, use fold_initializer to
2741 fold expressions.
2742 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
2743 performing FP operations at compile-time, if they would raise an
2744 exception at run-time.
2745
89e9faee
GK
27462003-07-17 Geoffrey Keating <geoffk@apple.com>
2747
26e0dcb3
GK
2748 PR 11498
2749 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
2750 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
2751 (GTFILES): Add langhooks.c.
2752 (gt-langhooks.h): New.
2753 * c-common.h (c_static_assembler_name): Prototype.
2754 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2755 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2756 * c-opts.c: Include langhooks-def.h.
2757 (c_static_assembler_name): New.
2758 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
2759 (var_labelno): New.
2760 (lhd_set_decl_assembler_name): Give static objects with context
2761 unique names.
2762 * varasm.c (var_labelno): Delete.
2763 (make_decl_rtl): Don't change the assembler name once it's set.
2764
89e9faee
GK
2765 * c-opts.c (this_input_filename): New.
2766 (finish_options): Take new parameter, name of file being compiled.
2767 Update callers. Set this_input_filename.
2768 (push_command_line_include): Use this_input_filename not
2769 main_input_filename.
2770
6ec3f553
NB
27712003-07-17 Neil Booth <neil@daikokuya.co.uk>
2772
2773 * Makefile.in: Depend .pot generation on options.c.
2774 * po/exgettext: Add an extra_files variable containing additional
2775 files to scan.
2776
78ff95dc
ZW
27772003-07-17 Zack Weinberg <zack@codesourcery.com>
2778
36c6d174
ZW
2779 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
2780 c_write_global_declarations.
2781
eb1dfbb2
ZW
2782 * c-decl.c: Fix typos in several comments. Remove all
2783 #if 0 blocks; reindent as needed. Remove unused argument
2784 to declare_parm_level; all callers changed.
2785 * c-parse.in: Update calls to declare_parm_level. Avoid
2786 issuing a double warning in some circumstances.
2787 * c-typeck.c: Update calls to declare_parm_level.
2788 * c-tree.h: Update prototype of declare_parm_level.
2789
2790 * c-pragma.c (apply_pragma_weak): Don't complain about a
2791 redundant #pragma weak.
2792
2793 * objc/objc-act.c (forward_declare_categories,
2794 build_selector_reference_decl, build_class_reference_decl,
2795 build_objc_string_decl, synth_forward_declarations,
2796 build_protocol_reference): Set TREE_PUBLIC on synthetic
2797 forward decl to 0, consistent with eventual definition.
2798 Correct comments to match.
2799
78ff95dc
ZW
2800 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
2801 in regexp that don't form a range expression.
2802 * fixinc/fixincl.def: Regenerate.
2803
b23ba0b8
RH
28042003-07-17 Richard Henderson <rth@redhat.com>
2805
78ff95dc
ZW
2806 PR target/10907
2807 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
2808 even with !TARGET_CONST_GP.
2809 (ia64_function_ok_for_sibcall): Reject non-local functions.
b23ba0b8 2810
d944c82d
SB
28112003-07-17 Steven Bosscher <steven@gcc.gnu.org>
2812
2813 * c-common.c (c_estimate_num_insns_1): Don't handle
2814 METHOD_CALL_EXPR.
2815 * expr.c (safe_from_p): Likewise.
2816 * gengtype.c (adjust_field_tree_exp): Likewise.
2817 * stmt.c (warn_if_unused_value): Likewise
2818 * tree.c (first_rtl_op): Likewise.
2819 * tree.def: Don't define METHOD_CALL_EXPR.
2820 * java/lang.c (java_estimate_num_insns_1): Don't handle
2821 METHOD_CALL_EXPR.
2822
54284728
EB
28232003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2824
2825 PR other/11466
2826 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
2827 and its restrictions for the SPARC64 port.
2828 Move the entry of "-mimpure-text" before that of "-mv8".
2829
bc890961 28302003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
78ff95dc 2831 Phil Edwards <phil@jaj.com>
bc890961
EB
2832
2833 * doc/install.texi (*-*-solaris2*): Document the step-by-step
2834 procedure to bootstrap and install.
2835 Document the preference for the legacy Sun tools in /usr/bin
2836 over the POSIX tools in /usr/xpg4/bin for the build process.
2837
f2ac9964
NB
28382003-07-17 Neil Booth <neil@daikokuya.co.uk>
2839
2840 * c.opt: Document Uncodumented; use it. Document ObjC options.
2841 * opts.c (print_filtered_help): Skip undocumented switches.
2842 * opts.h (CL_UNDOCUMENTED): New.
2843 * opts.sh: Handle Undocumented.
2844 * toplev.c (documented_lang_options): Prevent its becoming empty.
2845objc:
2846 * lang-options.h: Remove.
2847
03988cac
UW
28482003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
2849
2850 * loop.c (check_ext_dependent_givs): Pass const struct loop *
2851 instead of struct loop_info * as argument. Accept BIVs with
2852 increment +/- 1 provided there is a friendly exit test against
2853 a loop-invariant value.
2854 (strength_reduce): Adapt call to check_ext_dependent_givs.
2855
fada1961
R
28562003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2857 Con Bradley <con.bradley@superh.com>
2858
2859 * sh-protos.h (sh_get_pr_initial_val): Declare.
2860 * sh.c (regno_reg_class): Make its elements type enum reg_class.
2861 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
2862 and live_regs_mask arguments. Changed all callers.
2863 (save_schedule_s): New structure.
2864 (save_schedule): New typedef.
2865 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
2866 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
2867 In interrupts handlers, also save registers that are usually
2868 partially saved, and make sure there is at least one general purpose
2869 register saved if a target register needs saving.
2870 Add casts in comparisons to avoid warnings.
2871 (sh_media_register_for_return): return -1 for interrupt handlers.
2872 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
2873 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
2874 registers used are available.
2875 Set RTX_FRAME_RELATED_P where appropriate.
2876 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
2877 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
2878 (initial_elimination_offset): Likewise.
2879 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
2880 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
2881 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
2882 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
2883 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
2884 and for target registers.
2885 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
2886 (regno_reg_class): Make its elements type enum reg_class.
2887 (CONSTRAINT_LEN): Don't use isdigit.
2888 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
2889 (FUNCTION_ARG): Add parentheses to avoid warnings.
2890 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
2891 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
2892 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
2893 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
2894 * sh.md (xordi3+1): Remove unused variable regno.
2895 (return_media): Check that tr0 is available before using it.
2896
bae92bf3
NB
28972003-07-16 Neil Booth <neil@daikokuya.co.uk>
2898
2899 * c.opt: Document more options.
2900
cc8c96fd
RS
29012003-07-16 Roger Sayle <roger@eyesopen.com>
2902
2903 * combine.c (subst): Also handle (subreg (const_double ...)) case
2904 if created by a substitution, by using the original inner mode.
2905
d41ba56f
RS
29062003-07-16 Roger Sayle <roger@eyesopen.com>
2907
2908 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
2909 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
2910 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
2911
264d65c1 29122003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
78ff95dc 2913
264d65c1 2914 * doc/install.texi (--without-headers): New.
1622229c
AP
2915
2916 Partial Fix PR/10129
2917 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
2918 (machopic_output_function_base_name): New; print the true pic label.
2919 (machopic_classify_ident): Pic Base is always a defined data.
2920 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
2921 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
2922
db2f435b
AP
2923 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
2924 if they are not floating point registers.
2925
d07605f5
AP
2926 PR c/10962
2927 * ggc.h: Add header guards.
2928 * c-decl.c (finish_struct): Sort fields if
2929 number greater than 15 and there are no
2930 anonymous structs/unions.
2931 * c-common.h: Include ggc.h.
2932 (sorted_fields_type): New struct.
2933 (field_decl_cmp): New prototype.
2934 (resort_sorted_fields): New prototype.
2935 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
2936 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
2937 as s, removing other fields.
2938 * c-typeck.c (lookup_field): Use s in lang_type.
2939 These were mostly moved from cp/class.c:
2940 * c-common.c (field_decl_cmp): New static function.
2941 (field_decl_cmp): New function.
2942 (resort_sorted_fields): New function.
2943
3d7964d5
GK
29442003-07-16 Geoffrey Keating <geoffk@apple.com>
2945
2946 * config/darwin.c (machopic_select_section): Use decl_readonly_section
2947 to do most of the work.
2948
4e58524e
HPN
29492003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
2950
2951 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
2952 * config/mmix/mmix.c: Convert functions to ISO C90.
2953 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
2954 formatting.
2955 (mmix_get_hard_reg_initial_val): Tweak section head comment.
2956
1e0343dd
R
29572003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2958
2959 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
2960
fc4767bb
JJ
29612003-07-16 Jakub Jelinek <jakub@redhat.com>
2962
2963 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
2964 (uw_update_context_1): Use it.
2965 * config/rs6000/rs6000.c (insn_after_throw): Remove.
2966 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
2967 in parent frame if _Unwind_* called directly instead of through
2968 .plt.
2969 (rs6000_emit_eh_toc_restore): Remove.
2970 (rs6000_emit_prologue): Update stack pointer before doing any saving
2971 if current_function_calls_eh_return. Generate unwind info for $r2.
2972 (rs6000_emit_epilogue): Restore stack pointer after doing all
2973 restoring if current_function_calls_eh_return. Restore $r2.
2974 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
2975 * config/rs6000/rs6000.md (eh_return): Remove call to
2976 rs6000_emit_eh_toc_restore.
2977 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
2978 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
2979
6972c506
JJ
29802003-07-15 Jakub Jelinek <jakub@redhat.com>
2981
2982 * expr.c (emit_block_move): Don't move anything if size is const 0.
2983 (clear_storage): Test against const0_rtx instead of comparing INTVAL
2984 against 0.
2985
ac59ed37
DM
29862003-07-15 David S. Miller <davem@redhat.com>
2987
2988 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
2989 emit nop if the last real insn is CALL_INSN.
2990
b828d124
DS
29912003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2992
2993 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
2994 as "nul".
2995 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
2996
d5648e12
DS
29972003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2998
2999 * config/i386/winnt.c (associated_type): Artificial methods are not
3000 affected by the import/export status of their class unless they are
3001 COMDAT.
3002 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
3003
3004 * config/i386/winnt.c: Fix GCC copyright comment.
3005
b0e3f7ec
GDR
30062003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
3007
3008 PR c++/11531
3009 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
3010 not recursing on hard error.
3011 (diagnostic_for_decl): Likewise.
3012 * diagnostic.def: Rearrange.
3013
71628aa0
R
30142003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
3015
3016 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
3017 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
3018
30192003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
3020 Richard Henderson <rth@redhat.com>
3021
3022 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
3023 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
3024 (_Unwind_SetGR): Likewise.
3025 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
3026 (Unwind_SpTmp): New typedef.
3027 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
3028 (uw_update_context): Use _Unwind_GetPtr.
3029 (init_dwarf_reg_size_table): Move above uw_init_context_1.
3030 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
3031 Use _Unwind_SetSpColumn.
3032 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
3033 Use _Unwind_GetPtr.
3034
5a170a05
NB
30352003-07-15 Neil Booth <neil@daikokuya.co.uk>
3036
3037 * c.opt: Document more options.
3038 * toplev.c (documented_lang_options): Remove all local help strings.
3039
b0afa2fc
MM
30402003-07-15 Mark Mitchell <mark@codesourcery.com>
3041
3042 PR debug/11473
3043 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
3044 base classes.
3045
5df90541
KH
30462003-07-15 Kazu Hirata <kazu@cs.umass.edu>
3047
3048 PR target/10795
3049 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
3050 swap comparison operands if doing so would generate an
3051 unrecognizable insn.
3052
5a257872
EB
30532003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
3054
3055 PR optimization/11320
3056 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
3057 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
3058 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
3059 current_sched_info->compute_jump_reg_dependencies. Record which
3060 registers are used and which registers are set by the jump.
3061 Clear deps->reg_conditional_sets after a barrier.
3062 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
3063 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
3064 (init_deps): Initialize reg_conditional_sets.
3065 (free_deps): Clear reg_conditional_sets.
3066 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
3067 Mark registers live on entry of the fallthrough block and conditionally
3068 set as set by the jump. Mark registers live on entry of non-fallthrough
3069 blocks as used by the jump.
3070 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
3071 Mark new parameters as unused.
3072
3cec3f83
RS
30732003-07-15 Richard Sandiford <rsandifo@redhat.com>
3074
3075 * doc/invoke.texi: Resync MIPS -march documentation.
3076
98450f0d
RS
30772003-07-15 Richard Sandiford <rsandifo@redhat.com>
3078
3079 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
3080 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
3081 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
3082 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
3083 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
3084 (mips_issue_rate): Handle PROCESSOR_R9000.
3085 (mips_use_dfa_pipeline_interface): Likewise.
3086 * config/mips/9000.md: New file.
3087 * config/mips/mips.md: Include it.
3088 (define_attr cpu): Add r9000.
3089 (mulsi3_mult3): Use "mul" for rm9000 code.
3090
5fe25f47
SC
30912003-07-15 Stan Cox <scox@redhat.com>
3092
3093 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
3094 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
3095 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
3096 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
3097 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
3098 (mips_issue_rate): Handle PROCESSOR_R7000.
3099 (mips_use_dfa_pipeline_interface): Likewise.
3100 * config/mips/7000.md: New file.
3101 * config/mips/mips.md: Include it.
3102 (define_attr cpu): Add r7000.
3103 (mulsi3_mult3): Use "mul" for rm7000 code.
3104
5a2515e6
RS
31052003-07-15 Richard Sandiford <rsandifo@redhat.com>
3106
3107 * config/mips/mips.md (define_attr type): Add condmove. Use it for
3108 the conditional move patterns.
3109 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
3110 Check for condmove type.
3111 (ir_vr54_arith): Add move type.
3112 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
3113 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
3114
72de27ea
NB
31152003-07-15 Neil Booth <neil@daikokuya.co.uk>
3116
3117 * c-opts.c (print_help): Remove.
3118 (c_common_handle_option): Don't handle --help.
3119 * c.opt: Document some options.
3120 (--help): Remove.
3121 * opts.c (print_filtered_help): New.
3122 (print_help): Use it.
3123
e6ebd07b
GK
31242003-07-14 Geoffrey Keating <geoffk@apple.com>
3125
2d799c09
GK
3126 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
3127 * tree.c: (build_common_tree_nodes_2): Likewise.
3128 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
3129 (V4DF_type_node): New.
3130
e6ebd07b
GK
3131 * c-opts.c (push_command_line_include): Don't free deferred_opts,
3132 we'll need it.
3133 (finish_options): Reset init_cursor.
3134
b90f141a
KH
31352003-07-15 Kazu Hirata <kazu@cs.umass.edu>
3136
3137 * expr.c (expand_assignment): Remove an unused argument
3138 SUGGEST_REG.
3139 * expr.h: Update the prototype.
3140 * function.c: Update the callers.
3141 * stmt.c: Likewise.
3142
1e7ee6ad
MM
31432003-07-14 Mark Mitchell <mark@codesourcery.com>
3144
3145 PR debug/11098
3146 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
3147 as DECL_ABSTRACT.
3148
bf66f7b0
NN
31492003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3150
3151 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
3152 with __cplusplus, not "we must use the C++ compiler's type"
3153 * fixinc/inclhack.def (void_null): Note that Interix needs this.
3154 * fixinc/fixincl.x: Regenerate.
3155
18009d03
GK
31562003-07-14 Geoffrey Keating <geoffk@apple.com>
3157
ea00486e
GK
3158 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
3159 and unseen_objects from the global data before calling
3160 __deregister_frame_info_bases.
3161 (examine_objects): Insert objects into the seen_objects list,
3162 not unseen_objects.
3163 (_Unwind_Find_FDE): Always unlock the global object lists, even if
3164 we couldn't allocate a data structure to put in it.
3165
18009d03
GK
3166 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
3167 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
3168 (SET_TYPE_PROTOCOL_LIST): New.
3169 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
3170 (get_object_reference): Likewise.
3171
9ae130f8
JH
3172Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
3173
3174 * cfglayout.c (locator_file): Break out from ....
3175 (insn_file): ... here.
3176 (locator_line): Break out from ....
3177 (insn_line): ... here.
3178 * rtl.h (locator_file, locator_line): Declare.
3179 (final_start_function): Set proper line/file info.
3180
e07d4821
GDR
31812003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
3182
3183 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
3184 handled by pp_c_cast_expression.
3185
121d69e6
RS
31862003-07-14 Richard Sandiford <rsandifo@redhat.com>
3187
3188 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
3189 allocate 32768 bytes of stack. Use addition rather than subtraction
3190 when a single insn is enough.
3191 * config/mips/mips.md: Remove insns and splitters for subtracting
3192 constants.
3193 (subsi3): Only accept register operands.
3194 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
3195 (subdi3_internal_3, subsi3_internal_2): Likewise.
3196 (casesi): Use expand_binop to subtract the lower bound.
3197
3485245e
RS
31982003-07-14 Richard Sandiford <rsandifo@redhat.com>
3199
3200 * config/mips/mips.c (mips_in_small_data_p): Don't handle
3201 TARGET_MIPS16 specially.
3202
6627b7f9
RS
32032003-07-14 Richard Sandiford <rsandifo@redhat.com>
3204
6d0b50a4
RS
3205 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
3206 mips_output_aligned_bss.
3207 * config/mips/linux.h: Likewise.
3208 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
3209 * config/mips/mips.c (mips_output_aligned_bss): New function.
3210
8d50bd19
RS
3211 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
3212 * config/mips/elf64.h: Likewise.
3213
c1115ccd
RS
3214 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
3215 mips_declare_object_name.
3216 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
3217 * config/mips/elf64.h: As for elf.h.
3218 * config/mips/iris6.h: Likewise.
3219 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
3220 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
3221 do...while (0) block.
3222 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
3223 (mips_finish_declare_object): Declare.
3224 * config/mips/mips.c (mips_declare_object_name): New function.
3225 (mips_finish_declare_object): New function.
3226
060ff934
RS
3227 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
3228 * config/mips/linux.h: Likewise.
3229
d82783b6
RS
3230 * config/mips/mips.c (inside_function): Delete.
3231 (file_in_function_warning, ignore_line_number): Delete.
3232 (mips_output_filename): Don't warn about changing filenames within
3233 a function.
3234 (mips_output_lineno): Update accordingly.
3235 (mips_output_function_prologue): Don't reset the deleted variables.
3236 * config/mips/mips.h (inside_function): Delete.
3237 (file_in_function_warning, ignore_line_number): Delete.
3238
373f8df7
RS
3239 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
3240 * config/mips/elf64.h: Likewise.
3241 * config/mips/openbsd.h: Likewise.
3242 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
3243 * config/mips/linux.h: Likewise.
3244 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
3245 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
3246
6627b7f9
RS
3247 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
3248 to the list of include files when using gas.
3249 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
3250 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
3251 * config/mips/elf64.h: Likewise.
3252 * config/mips/iris5.h: Likewise.
3253 * config/mips/linux.h: Likewise.
3254 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
3255 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
3256 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
3257 * config/mips/sdb.h: ...this new file.
3258
c18b00c0
NN
32592003-07-14 Douglas Rupp <rupp@gnat.com>
3260
3261 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
3262 argument to getcwd; use fixed buffer instead.
3263
32642003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3265
3266 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
3267 * fixinc/fixinc.wrap: Delete.
3268
adc4adcd
GP
32692003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3270
3271 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
3272 don't have 2.
3273
32742003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3275
3276 * ggc-page.c (struct globals): Add new fields to keep track of the
3277 total allocated memory and overhead.
3278 (ggc_print_statistics): Print them.
3279 (ggc_alloc): Keep track of the total allocated memory and the
3280 overhead.
3281
3282 * tree.c (dump_tree_statistics): Increase spacing.
3283 (enum tree_node_kind): Move to ...
3284 * tree.h (enum tree_node_kind): ... here.
3285 (tree_node_counts, tree_node_sizes): Declare.
3286
32872003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
3288
3289 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
3290
bbd288a4
FS
32912003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3292
3293 PR optimization/11440
3294 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
3295 SIGN_EXTRACT SETs.
3296
6e985040
AM
32972003-07-14 Alan Modra <amodra@bigpond.net.au>
3298
3299 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
3300 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
3301 (emit_group_load, emit_group_store): Adjust declarations.
3302 Remove most occurrences of #ifdef TREE_CODE.
3303 * expr.c (emit_group_load): Add "type" param, and use
3304 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
3305 aligned accesses if !SLOW_UNALIGNED_ACCESS.
3306 (emit_group_store): Likewise.
3307 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
3308 emit_group_load and emit_group_store calls.
3309 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
3310 BLOCK_REG_PADDING to determine whether we need endian_correction.
3311 (load_register_parameters): Localize vars. Handle shifting of
3312 small values to the correct end of regs. Adjust emit_group_load
3313 call.
3314 (expand_call, emit_library_call_value_1): Adjust emit_group_load
3315 and emit_group_store calls.
3316 * function.c (assign_parms): Set mem alignment for stack slots.
3317 Adjust emit_group_store call. Store values at the "wrong" end
3318 of regs to the stack. Use BLOCK_REG_PADDING.
3319 (locate_and_pad_parm): Save where_pad.
3320 (expand_function_end): Adjust emit_group_load call.
3321 * stmt.c (expand_value_return): Adjust emit_group_load call.
3322 * Makefile.in (calls.o): Depend on $(OPTABS_H).
3323 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
3324 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
3325 (MUST_PASS_IN_STACK): Define.
3326 (BLOCK_REG_PADDING): Define.
3327 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
3328 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
3329 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
3330 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
3331 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
3332
4fab535e
AL
33332003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
3334
3335 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
3336
8d2e5f72
RK
33372003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3338
3339 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
3340 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
3341
7eaab492
NN
33422003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3343
3344 PR other/11123
3345 * toplev.c: Don't cut off option names.
3346
9d4a30f2
AJ
33472003-07-13 Andreas Jaeger <aj@suse.de>
3348
3349 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
3350 to integer of different size.
3351
34ed3bb0
KH
33522003-07-13 Kazu Hirata <kazu@cs.umass.edu>
3353
3354 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
3355 to (eq (and X 1) 0).
3356
1a7d0840
AJ
33572003-07-13 Andreas Jaeger <aj@suse.de>
3358
3359 * config.gcc: Add pmmintrin.h for x86_64-*-*.
3360
43839642
ZW
33612003-07-13 Zack Weinberg <zack@codesourcery.com>
3362
3363 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
3364 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
3365 list. Move these all together down by cpplib.
3366
3367 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
3368 definition of CPPCHAR_SIGNED_T.
3369
3370 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
3371 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
3372 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
3373
3374 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
3375 * cppinit.c (cpp_create_reader): Likewise.
3376
3377 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
3378 * cpptrad.c: Likewise. All callers changed.
3379 * cpplib.c: All callers changed.
3380 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
3381 * hashtable.h: Define GTY(x) to nothing here too.
3382
0acf4f88
RK
33832003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3384
3385 * stor-layout.c (compute_record_mode): Remove very obsolete test
3386 that forces BLKmode for records with fields crossing word boundary.
3387
46db61e7
ZW
33882003-07-13 Zack Weinberg <zack@codesourcery.com>
3389
3390 * Makefile.in: Remove orphan reference to acconfig.h.
3391
db0e878d
AJ
33922003-07-13 Andreas Jaeger <aj@suse.de>
3393
3394 * cgraphunit.c: Convert prototypes to ISO C90.
3395
4146d8d0
NN
33962003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3397
3398 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
3399 (for OpenBSD).
3400 * fixinc/fixincl.x: Rebuild.
3401
6f3ca281
ZW
34022003-07-12 Zack Weinberg <zack@codesourcery.com>
3403
3404 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
3405 i?86-*-*. Use correct name of cache variable.
3406 * configure: Regenerate.
3407
9a9f7594
KH
34082003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3409
3410 * config/alpha/alpha.c: Fix comment typos.
3411 * config/alpha/alpha.md: Likewise.
3412 * config/arm/arm.c: Likewise.
3413 * config/arm/arm.md: Likewise.
3414 * config/arm/lib1funcs.asm: Likewise.
3415 * config/avr/avr.md: Likewise.
3416 * config/arm/README-interworking: Fix typos.
3417
4ed43216
KH
34182003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3419
3420 * c-format.c: Fix comment formatting.
3421 * c-typeck.c: Likewise.
3422 * coverage.c: Likewise.
3423 * cppcharset.c: Likewise.
3424 * cpplib.c: Likewise.
3425 * dbxout.c: Likewise.
3426 * gcov-io.h: Likewise.
3427 * toplev.c: Likewise.
3428
c3a5b1e9
NN
34292003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3430
6f3ca281 3431 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
c3a5b1e9
NN
3432 fix.
3433
8ada417f
ZW
34342003-07-12 Zack Weinberg <zack@codesourcery.com>
3435
3436 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
3437 uses three-argument AC_DEFINE so no acconfig.h entries are
3438 needed.
3439 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
3440 which contains the GAS version number as a scaled integer.
3441 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
3442 ability to check for ELF assembler.
3443 (gcc_GAS_CHECK_FEATURE): New macro.
3444 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
3445 assembler feature checks using gcc_GAS_CHECK_FEATURE.
3446 Use three-argument AC_DEFINE everywhere.
3447 * acconfig.h: Deleted.
3448 * config.in, configure: Regenerate.
3449
d5d16b5f
NN
34502003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3451
3b57c563
NN
3452 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
3453 (on OpenBSD).
d33fb69b 3454 * fixinc/fixincl.x: Regenerate.
3b57c563 3455
d5d16b5f
NN
3456 * fixinc/inclhack.def (gnu_types): Improve comment.
3457
439f7bc3
AJ
34582003-07-12 Andreas Jaeger <aj@suse.de>
3459
3460 * fp-test.c (main): Use ISO C90 prototype.
3461
3462 * version.c: Remove unneded include of ansidecl.h.
3463
3464 * cgraph.h: Convert prototypes to ISO C90.
3465 * cgraph.c: Likewise.
3466 * fix-header.c: Likewise.
3467 * ra.h: Likewise.
3468 * protoize.c: Likewise.
3469
1a5c5701
JH
3470Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
3471
3472 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
3473 warning.
3474
b58b1157
JH
3475Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
3476 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3477
3478 * cgraph.c (cgraph_max_uid): New global variable.
3479 (cgraph_node): Set uid field.
3480 (create_edge): Keep inline flags consistent.
3481 (dump_cgraph): Dump more info.
3482 * cgraph.h (struct cgraph_local_info): Remove inline_many and
3483 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
3484 (struct cgraph_global_info): Add insns, calls, cloned_times,
3485 will_be_output.
3486 (struct cgraph_node): Add uid.
3487 (struct cgraph_edge): Add inline_call.
3488 (cgraph_max_uid, cgraph_inline_p): Declare.
3489 * cgraph.c: Include params.h and fibheap.h
3490 (cgraph_mark_functions_to_inline_once): Kill.
3491 (INSNS_PER_CALL): New constant.
3492 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
3493 static variables.
3494 (cgraph_finalize_function): Do not analyze inlining.
3495 (cgraph_finalize_compilation_unit): Set inlining attributes.
3496 (cgraph_mark_functions_to_output): More consistency checks.
3497 (cgraph_optimize_function): Set current_function_decl to NULL.
3498 (cgraph_expand_function): Use new inline flags.
3499 (cgraph_postorder): Expand from cgraph_expand_functions.
3500 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
3501 (cgraph_inlined_into, cgraph_inlined_callees,
3502 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
3503 cgraph_mark_inline, cgraph_check_inline_limits,
439f7bc3 3504 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
b58b1157
JH
3505 cgraph_decide_inlining, cgraph_inline_p): New functions.
3506 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
3507 PARAM_INLINE_UNIT_GROWTH): New parameters.
3508 * tree-inline.c (struct inline_data): New field current_decl.
3509 (expand_call_inline): Avoid forward declarations; use
3510 inlinable_function_p.
3511 (optimize_inline_calls): Set id.current_decl.
3512
27b8e366
AP
35132003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
3514
3515 * configure.in: Remove wrongly added definition of
3516 local_prefix.
3517 * configure: Regenerate.
3518
80fa0b4c
DN
35192003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
3520
3521 * rtl.def (NOTE): Do not use padding.
3522
1ea6f4c8
DH
35232003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
3524
3525 * doc/install.tex: Update required binutils for i?86-*-linux*
3526
ed2d8944
RH
35272003-07-11 Richard Henderson <rth@redhat.com>
3528
3529 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
3530
a44cea75
MM
35312003-07-11 Mark Mitchell <mark@codesourcery.com>
3532
3533 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
3534 TRANSLATION_UNIT_DECL as top_level.
3535
358b8f01
JJ
35362003-07-11 Jakub Jelinek <jakub@redhat.com>
3537
3538 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
3539 then fall back to cmpstrM.
3540 * builtins.c (expand_builtin_memcmp): Likewise.
3541 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
3542 (s390_expand_cmpmem): ... this.
3543 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
3544 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
3545 from cmpstr* patterns. Rename call to s390_expand_cmpstr
3546 to s390_expand_cmpmem.
3547 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
3548 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
3549 to cmpmem*.
3550 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
3551 cmpstr* patterns.
3552 * doc/md.texi (cmpstrM): Describe as String compare insn, not
3553 Block compare insn.
3554 (cmpmemM): Add.
3555
8634e925
LR
35562003-07-11 Loren James Rittle <ljrittle@acm.org>
3557
3558 * config/i386/freebsd.h (SET_ASM_OP): Remove.
3559 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
3560 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
3561 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
3562
48144cd4
RH
35632003-07-11 Richard Henderson <rth@redhat.com>
3564
3565 * function.c (assign_parms): Don't recombine complex args if
3566 fnargs is unchanged from orig_fnargs.
3567 (split_complex_args): Return args without complex before copying.
3568 Re-layout the modified parameters.
3569
fee226d2
R
35702003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
3571
3572 * regclass.c (choose_hard_reg_mode): Add third argument.
3573 Changed all callers.
3574 * rtl.h (choose_hard_reg_mode): Update declaration.
3575 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
3576 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
3577
d1bd0ded
GK
35782003-07-11 Geoffrey Keating <geoffk@apple.com>
3579
3580 * c-decl.c (finish_decl): Handle 'used' here...
3581 * cgraphunit.c (cgraph_finalize_function): ... and here ...
3582 * c-common.c: (handle_used_attribute): ... not here.
439f7bc3 3583
d1bd0ded
GK
3584 * configure.in (onstep): Support --enable-intermodule.
3585 * Makefile.in (OBJS-common): New.
3586 (OBJS-md): New.
3587 (OBJS-archive): New.
3588 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
3589 (OBJS-onestep): New.
3590 (libbackend.a): Support @onestep@.
3591 (libbackend.o): New.
3592 * configure: Regenerate.
439f7bc3 3593
d1bd0ded
GK
3594 * c-common.h (c_reset_state): New prototype.
3595 (c_parse_file): New prototype.
3596 (finish_file): Move prototype from c-tree.h.
3597 * c-decl.c: Include <hashtab.h>.
3598 (builtin_decls): New.
3599 (current_file_decl): New.
3600 (duplicate_decls): Add extra parameter. Change all callers. Don't
3601 output duplicate common symbols.
3602 (link_hash_hash): New.
3603 (link_hash_eq): New.
3604 (poplevel): Handle popping of the top level.
3605 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
3606 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
3607 (pushdecl_top_level): Likewise.
3608 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
3609 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
3610 (finish_decl): Handle TRANSLATION_UNIT_DECL.
3611 (merge_translation_unit_decls): New.
3612 (c_write_global_declarations): New.
3613 (c_reset_state): New.
3614 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
3615 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
3616 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
3617 TRANSLATION_UNIT_DECL.
3618 (c_objc_common_finish_file): Call merge_translation_unit_decls.
3619 * c-opts.c (in_fnames): Rename from in_fname.
3620 (c_common_decode_option): Handle multiple input filenames.
3621 (c_common_post_options): Likewise.
3622 (c_common_parse_file): Likewise; also, call c_parse_file rather than
3623 yyparse.
3624 * c-parse.in: Move cleanup code to c_parse_file.
3625 (free_parser_stacks): Move contents to c_parse_file.
3626 (c_parse_file): New.
3627 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
3628 for integer types.
3629 (C_DECL_FILE_SCOPE): New.
3630 (finish_file): Move prototype to c-common.h.
3631 (merge_translation_unit_decls): New prototype.
3632 (comptypes): Add extra parameter to prototype.
3633 (c_write_global_declarations): New prototype.
3634 * c-typeck.c (tagged_types_tu_compatible_p): New.
3635 (function_types_compatible_p): Add extra parameter, change all callers.
3636 (type_lists_compatible_p): Likewise.
3637 (comptypes): Likewise.
3638 (struct tagged_tu_seen): New.
3639 (tagged_tu_seen_base): New.
3640 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
3641 (c_mark_addressable): Remove #if 0 code.
3642 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
3643 comment explaining why it shouldn't have to.
3644 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
3645 options.
3646 * cppinit.c (cpp_read_next_file): New.
3647 (cpp_read_main_file): Use it.
3648 * cpplib.c (undefine_macros): New.
3649 (cpp_undef_all): New.
3650 * cpplib.h (cpp_read_next_file): Prototype.
3651 (cpp_undef_all): Prototype.
3652 * langhooks-def.h (write_global_declarations): Remove prototype.
3653 * toplev.h (write_global_declarations): Add prototype.
3654 * tree.c (decl_type_context): Use switch statement, handle
3655 TRANSLATION_UNIT_DECL.
3656 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
3657 (TRANSLATION_UNIT_DECL): New kind of tree.
3658 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
3659 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
3660 * doc/invoke.texi: Make attempt to document new functionality.
3661
3662 2003-05-19 Per Bothner <bothner@apple.com>
3663
3664 * gcc.c (combine_inputs): New.
3665 (process_command): Set combine_inputs.
3666 (do_spec_1): Handle combine_inputs.
3667 (main): Likewise.
3668
ac8354b1
JW
36692003-07-10 James E Wilson <wilson@tuliptree.org>
3670
3671 PR optimization/9745
3672 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
3673 loop_insn_emit_before.
3674 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
439f7bc3 3675
dea55da5
ZW
36762003-07-10 Zack Weinberg <zack@codesourcery.com>
3677
3678 * cppcharset.c: Fix comment.
3679 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
3680 (EILSEQ): #define to EINVAL if not already defined.
3681 (convert_using_iconv): #if out when !HAVE_ICONV.
3682 (init_iconv_desc): Handle !HAVE_ICONV here...
3683 (cpp_init_iconv): ...not here.
3684
f3fdaec4
NB
36852003-07-11 Neil Booth <neil@daikokuya.co.uk>
3686
3687 * common.opt: More --help messages.
3688 * opts.c (print_help): Use puts().
3689 * toplev.c (f_options): Remove help text.
3690 (display_help): Don't dump f_options.
3691
7ebbf1ea
NN
36922003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
3693
3694 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
3695 Move i?86-*-interix* to the don't-fix list.
3696 * fixinc/fixinc.interix: Delete with extreme prejudice.
3697
959a73a4
DH
36982003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
3699
3700 PR bootstrap/10758
3701 * doc/install.texi: Document requirements for ia64-*-hpux* target.
3702
9959901c
RS
37032003-07-10 Roger Sayle <roger@eyesopen.com>
3704
3705 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
3706
6b88314c
ZW
37072003-07-10 Zack Weinberg <zack@codesourcery.com>
3708
3709 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
3710 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
3711 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
3712 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
3713 convert_no_conversion, convert_using_iconv): New functions.
3714 (APPLY_CONVERSION): New macro.
3715 (struct conversion, conversion_tab): New data structure.
3716 (init_iconv_desc): Check conversion_tab for a custom conversion
3717 primitive before trying to use iconv.
3718 (convert_cset): Deleted.
3719 (cpp_init_iconv): Use UTF- terminology, not UCS-.
3720 (_cpp_destroy_iconv): Update to match.
3721 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
3722 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
3723 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
3724 (_cpp_interpret_string_notranslate): New function, moved here
3725 from cpplib.c.
3726
3727 * cpphash.h (convert_f, struct cset_converter): New types.
3728 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
3729 are now struct cset_converter, not bare iconv_t.
3730 Update prototypes.
3731 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
3732 all callers changed.
3733
38f4680f 37342003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
6b88314c 3735
38f4680f
KC
3736 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
3737 to opts.sh command line.
3738 * opts.sh: Write to temporary files with a move-if-change at the end.
3739
2a868fac 37402003-07-10 Denis Chertykov <denisc@overta.ru>
6b88314c 3741 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9db367b4
DC
3742
3743 * combine.c (gen_binary): Handle the CLOBBER rtx and
3744 don't build a binary operation with it.
3745
3b14e3af
ZD
37462003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3747
3748 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
3749 store_killed_after, store_killed_before): Keep track of the correct
3750 dependency function to use.
3751
a9189cc0
SB
37522003-07-10 Steven Bosscher <steven@gcc.gnu.org>
3753 * toplev.c (do_compile): Don't try to open dump files before
3754 lang_dependent_init initializes dump_base_name.
3755
e97a46ce
KG
37562003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3757
3758 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
3759 Use ARRAY_SIZE.
3760 * config/frv/frv.c (frv_expand_builtin): Likewise.
3761 * config/sh/sh.c (sh_media_init_builtins): Likewise.
3762
4a386498
MM
37632003-07-09 Mark Mitchell <mark@codesourcery.com>
3764
3765 PR c++/10032
3766 * doc/invoke.texi (C++ Dialect Options): Change documentation of
3767 -fpermissive.
3768
1e60c057
R
37692003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
3770
3771 * tm.texi (RETURN_ADDR_OFFSET): Document.
3772
330d2e2a
NS
37732003-07-10 Nathan Sidwell <nathan@codesourcery.com>
3774
3775 * gcov-io.h: Update documentation.
3776 (GCOV_UNSIGNED2STRING): New.
3777 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
3778 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
3779 GCOV_TAG_SUMMARY_LENGTH): Adjust.
3780 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
3781 GCOV_TAG_COUNTER_NUM): New.
3782 (GCOV_BLOCK_SIZE): Number of words.
3783 (gcov_var): Adjust buffer type.
3784 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
3785 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
3786 count, not byte count.
3787 (gcov_open): Adjust overread init.
3788 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
3789 gcov_write_string, gcov_write_tag, gcov_write_length,
3790 gcov_write_tag_length): Adjust.
3791 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
3792 (gcov_sync, gcov_seek): Adjust.
3793 * gcov-dump.c (print_usage): Show gcc version only.
3794 (dump_file): Use GCOV_UNSIGNED2STRING.
3795 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
3796 * gcov.c (print_version): Show gcc version only.
3797 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
3798 GCOV_TAG_*_NUM macros.
3799 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
3800 GCOV_TAG_COUNTER_LENGTH.
3801 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
3802 Use GCOV_TAG_COUNTER_NUM.
3803 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
3804 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
3805
3dbb446e
AS
38062003-07-10 Andreas Schwab <schwab@suse.de>
3807
3808 * gcov-dump.c (dump_file): Fix missing address operator.
3809
11791dbc
KH
38102003-07-10 Kazu Hirata <kazu@cs.umass.edu>
3811
3812 PR c/11449
3813 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
3814 of HOST_WIDE_INT.
3815 (fold_single_bit_test): If sign_bit_p() fails, assume that the
3816 bit being tested is not a sign bit.
3817
ae12c666
KH
38182003-07-10 Kazu Hirata <kazu@cs.umass.edu>
3819
3820 * config/h8300/h8300.md (a peephole2): New.
3821
2beef00e
AO
38222003-07-10 Alexandre Oliva <aoliva@redhat.com>
3823
3824 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
3825 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
3826 from ld-linux.so.2 to ld.so.1.
3827 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
3828 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
3829 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
3830 nor -Wl,-rpath-link.
3831 (LIB_SPEC): Add -rpath-link if !static.
3832 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
3833 * config/mn10300/mn10300.c (mn10300_protect_label): New
3834 variable.
3835 * config/mn10300/linux.h (PRINT_OPERAND,
3836 PRINT_OPERAND_ADDRESS): Set it during their execution.
3837 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
3838 mn10300_protect_label is set.
3839 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
3840 -Wl,-rpath-link.
3841 (LIB_SPEC, STARTFILE_SPEC): Define.
3842 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
3843 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
3844 FLOAT_BIT_ORDER_MISMATCH.
3845 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
3846 * config.gcc (am33_2.0-*-linux*): Added.
3847 * config/mn10300/linux.h: New.
3848 * config/mn10300/t-linux: New.
3849
75040a04
AJ
38502003-07-10 Andreas Jaeger <aj@suse.de>
3851
3852 * fold-const.c: Properly wrap prototypes.
3853
d1776069
AO
38542003-07-09 Alexandre Oliva <aoliva@redhat.com>
3855
3856 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
3857 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
3858 Moved from...
3859 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
3860 * config/mn10300/mn10300.h: GTY-declare it.
3861 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
3862 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
3863 prototype. Use incoming RTL argument.
3864 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
3865 * config/mn10300/mn10300.md (int_label): Move C statements...
3866 (GOTaddr2picreg): ... here.
3867 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3868 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
3869 * config/mn10300/mn10300.c (mn10300_encode_section_info):
3870 ... here. New function.
3871 (TARGET_ENCODE_SECTION_INFO): Define to it.
3872 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
3873 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
3874 pattern name.
3875 (mn10300_loadPC): Define as insn splittable after reload.
3876 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
3877 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
3878 be defined in .rodata even in PIC, now that the assembler
3879 supports that.
3880 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
3881 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
3882 symbol take an underscore prefix.
3883 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
3884 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
3885 legitimize_pic_address): Declare.
3886 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
3887 the PIC register as fixed.
3888 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
3889 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
3890 PIC.
3891 (LEGITIMATE_PIC_OPERAND_P): Define.
3892 (PIC_OFFSET_TABLE_REGNUM): Define.
3893 (GOT_SYMBOL_NAME): Define.
3894 (SYMBOLIC_CONST_P): Define.
3895 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
3896 symbols.
3897 (MN10300_GLOBAL_P): Test it.
3898 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
3899 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
3900 * config/mn10300/mn10300.c (print_operand): Handle unspec.
3901 (expand_prologue): Set PIC register.
3902 (call_address_operand): Don't match SYMBOL_REFs in PIC.
3903 (legitimize_address): Call legitimize_pic_address.
3904 (legitimize_pic_address): New fn.
3905 (legitimate_pic_operand_p): New fn.
3906 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
3907 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
3908 UNSPEC_PLT): New constants.
3909 (pop_pic_reg): New insn.
3910 (movsi): Adjust non-PIC addresses.
3911 (builtin_setjmp_receiver): Restore the PIC register.
3912 (casesi): New insn.
3913 (call): Adjust non-PIC addresses.
3914 (int_label, GOTaddr2picreg): New expands.
3915 (am33_loadPC): New insn.
3916 (mn10300_loadPC): New expand.
3917 (call_next_insn): New insn.
3918 (add_GOT_to_pic_reg): New expand.
3919 (symGOT2reg, symGOT2reg_i): New expands.
3920 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
3921 (sym2PIC, sym2PLT): New expands.
3922
18e9d2f9
AO
39232003-07-09 Alexandre Oliva <aoliva@redhat.com>
3924
3925 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
3926 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
3927 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
3928 to flag_unsafe_math_optimizations.
3929 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
3930 * config/mn10300/mn10300.c (expand_prologue): Mark
3931 FP-register-saving insns as frame-related.
3932 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
3933 * config/mn10300/mn10300.c
3934 (mn10300_get_live_callee_saved_regs): Don't search past
3935 LAST_EXTENDED_REGNUM.
3936 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
3937 * config/mn10300/mn10300.md: Remove excessive line breaks from
3938 `@' output patterns that were accounted as additional
3939 alternatives.
3940 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
3941 Re-introduce changes accidentally removed in Richard Sandiford's
3942 2000-12-05's patch.
3943 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
3944 Re-instate am33-2 lost in merge from net GCC.
3945 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
3946 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
3947 floating-point registers.
3948 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
3949 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
3950 pessimizations that had gone in on 2000-05-08.
3951 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
3952 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
3953 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
3954 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
3955 operand 0.
3956 * (movhi): Likewise.
3957 * (movsi): Likewise.
3958 * (movsf): Likewise.
3959 * (movdi): Likewise.
3960 * (movdf): Likewise.
3961 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
3962 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
3963 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
3964 (expand_prologue, expand_epilogue): Save and restore FP regs.
3965 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
3966 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
3967 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
3968 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
3969 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
3970 Do not clobber cc0.
3971 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
3972 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
3973 Discourage the two-argument, longer opcodes.
3974 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
3975 ones.
3976 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
3977 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
3978 * config/mn10300/mn10300.md (cmpsf): New pattern.
3979 (branch): Test mdep.fpCC and output fbCC.
3980 * config/mn10300/mn10300.c (print_operand): Output conditions.
3981 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
3982 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
3983 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
3984 mulsf3, divsf3): Use the `F' constraint for FP values.
3985 * config/mn10300/mn10300.c (const_1f_operand): New function.
3986 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
3987 * config/mn10300/mn10300.md (sqrtsf2): New expand.
3988 (rsqrtsf2): New insn.
3989 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
3990 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
3991 previous check-in.
3992 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
3993 * config/mn10300/mn10300.md (abssf2, negdf2): On
3994 TARGET_AM33_2, expand to...
3995 (abssf2_am33_2, negdf2_am33_2): New insns.
3996 (addsf3, subsf3, mulsf3, divsf3): Likewise.
3997 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
3998 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
3999 movdi, movdf): Added FP regs.
4000 * invoke.texi (-mam33-2, -mno-am33-2): Document.
4001 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
4002 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
4003 New macros.
4004 (REGNO_AM33_2_FP_P): Renamed to...
4005 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
4006 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
4007 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
4008 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
4009 regs from GENERAL_REGS.
4010 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
4011 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
4012 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
4013 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
4014 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
4015 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
4016 as FP_REGS.
4017 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
4018 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
4019 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
4020 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
4021 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
4022 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
4023 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
4024 AM33/2.0 floating-point registers.
4025 (CONDITIONAL_REGISTER_USAGE): Adjust.
4026 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
4027 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
4028 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
4029 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
4030 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
4031 (MULTILIB_DIRNAMES): Likewise.
4032 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
4033 `__AM33_2__' when `-mam33-2' is given.
4034 (TARGET_AM33_2): Define.
4035 (TARGET_SWITCHES): Adjust.
4036 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
4037 when appropriate.
4038
2ff16718
MK
40392003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
4040
4041 * doc/install.texi: Add missing @.
4042
a7bda3d5
BW
40432003-07-09 Bob Wilson <bob.wilson@acm.org>
4044
4045 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
4046
bb498ea3
AH
40472003-07-09 Aldy Hernandez <aldyh@redhat.com>
4048
4049 PR/11144
4050 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
4051
a401fd60
NN
40522003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
4053
21f3dbfc 4054 PR bootstrap/11043
6b88314c 4055 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
21f3dbfc
NN
4056 "x-crtfini.o" with "crtinit.o", "crtfini.o".
4057
15e4ea18
NN
4058 * fixinc/inclhack.def (limits_ifndefs): Add select test.
4059 * fixinc/fixincl.x: Rebuild.
4060
a401fd60
NN
4061 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
4062 * fixinc/fixincl.x: Rebuild.
4063
c2f82a84
HPN
40642003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
4065
4066 * doc/install.texi (Configuration): Document the valgrind option
4067 to --enable-checking.
4068
1f66e2a0
JH
4069Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
4070
4071 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
4072
d0974745
RO
40732003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4074
4075 * c-lex.c (cb_ident): Cast cstr.text to const char *.
4076
160e2e4f
NS
40772003-07-09 Nathan Sidwell <nathan@codesourcery.com>
4078
4079 * gcov-io.h: Update documentation.
4080 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
4081 GCOV_NOTE_MAGIC.
4082 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
4083 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
4084 (struct gcov_var): Change buffer's type. Add endian flag.
4085 (gcov_open): Remove mode in libgcov.
4086 (gcov_magic): Prototype.
4087 * gcov-io.c (from_file): New.
4088 (gcov_open): Clear endian flag.
4089 (gcov_magic): New.
4090 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
4091 pointers.
4092 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
4093 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
4094 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
4095 * gcov-iov.c (main): Correct cast.
4096 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
4097 conversion.
4098 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
4099 (coverage_init): Use GCOV_NOTE_SUFFIX.
4100 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
4101 Rename to gcov_version, and return flag.
4102 (gcov_exit): Use gcov_version.
4103 (__gcov_init): Use gcov_version.
4104 * Makefile.in (coverageexts): Update.
4105 * gcov.c (print_version): Remove endianness conversion.
4106 (create_file_names): Use GCOV_NOTE_SUFFIX.
4107 (read_graph_file): Use gcov_magic.
4108 (read_count_file): Likewise.
4109 * gcov-dump.c (dump_file): Remove endianness conversion, use
4110 gcov_magic.
4111
83599948
NS
41122003-07-09 Nathan Sidwell <nathan@codesourcery.com>
4113
4114 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
4115 coverage is on.
4116 * configure: Regenerated.
4117 * Makefile.in (ALL_CFLAGS): Correct its comment.
4118
d17811fd
MM
41192003-07-08 Mark Mitchell <mark@codesourcery.com>
4120
4121 * fold-const.c (make_range): Do not access operand 1 for a
4122 zero-operand operator.
4123
28786366
NB
41242003-07-09 Neil Booth <neil@daikokuya.co.uk>
4125
4126 * toplev.c (warn_dummy, W_options): Die.
4127 (display_help): Don't print W_options.
4128 * common.opt: Add W_options help from toplev.c.
4129
fbdb0453
AJ
41302003-07-09 Andreas Jaeger <aj@suse.de>
4131
4132 * opts.c (wrap_help): Only pass int arguments as arguments to
4133 printf's '*' modifier. Change argument of function.
4134
c80e4c17
MK
41352003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
4136
4137 * doc/invoke.texi: Fix misspelling of "@item".
4138
2c5a64c6
KH
41392003-07-08 Kazu Hirata <kazu@cs.umass.edu>
4140
4141 * config/i386/i386.md: Remove an old comment about
4142 NOTICE_UPDATE_CC.
4143
a194aa56
JH
4144Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
4145
4146 * cgraph.c (cgraph_node_name): New function.
4147 (dump_cgraph): Use it.
4148 * cgraph.h (cgraph_dump_file): Declare.
4149 (cgraph_node_name): Declare.
4150 * cgraphunit.c: Include timevar.h
4151 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
4152 (cgraph_optimize_function): Use TV_INTEGRATION.
4153 (cgraph_mark_local_functions): reorganize dumps.
4154 (cgraph_mark_functions_to_inline_once): Likewise.
4155 (cgraph_optimize): Likewise; use timevar.
4156 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
4157 * toplev.c (dump_file_index): Add DFI_cgraph.
4158 (dump_file_info): Likewise.
4159 (cgraph_dump_file): New global variable.
4160 (do_compile): Open and close cgraph dump.
4161 * invoke.texi (-d): Document new flag; renumber.
4162
8af61113
RS
41632003-07-08 Roger Sayle <roger@eyesopen.com>
4164
4165 PR c/11370
4166 * calls.c (emit_call_1): Don't bother popping the arguments off of
4167 the stack after a noreturn function call; The adjustment is dead.
4168 (expand_call): Likewise.
4169
436bcda1
GK
41702003-07-08 Geoffrey Keating <geoffk@apple.com>
4171
4172 * expr.c (MOVE_MAX_PIECES): Move from here...
4173 * defaults.h (MOVE_MAX_PIECES): ... to here.
4174
6f3fcc0b
MK
41752003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
4176
4177 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
4178
ec049fdb
KG
41792003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4180
4181 * genattr.c (internal_dfa_insn_code): Don't prototype.
4182 * genattrtab.c (attr_desc): Add `static_p' field.
4183 (expand_units): Make blockage range and ready cost functions
4184 static.
4185 (write_attr_get): Don't add extern prototypes in C file. Mark
4186 static functions as appropriate.
4187 (find_attr, make_internal_attr): Initialize static_p.
4188 * genattrtab.h (ATTR_STATIC): New macro.
4189 * genautomata.c (output_internal_reset_func): Mark output function
4190 as inline.
4191 (make_internal_dfa_insn_code_attr): Mark output function as static.
4192
11597bc9
KG
41932003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4194
4195 * genattrtab.h: Add new macros for attr `special' flags.
4196 * genattrtab.c (attr_desc): Reorder/resize fields better.
4197 Use attr `special' macros in all calls to make_internal_attr.
4198 * genautomata.c: Likewise.
4199
084c1779
JH
4200Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
4201
4202 * c-common.c (c_estimate_num_insns_1): New static function.
4203 (c_estimate_num_insns): New global function.
4204 * c-common.h (DECL_NUM_STMTS): Rename to...
4205 (DECL_ESTIMATED_INSNS): ... this.
4206 (c_estimate_num_insns): Declare.
4207 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
4208 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
4209 * c-semantics.c (add_stmt): Do not account statements.
4210 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
4211 New.
4212 * langhooks.h (lang_hooks_for_tree_inlining): Add
4213 estimate_num_insns
4214 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
4215 to 100.
4216 (max-inline-insns): set to 300.
4217 (min-inline-insns): set to 10.
4218 * tree-inline.c (struct inline_data): Rename inlined_stmts to
4219 inlined-insns.
4220 (INSNS_PER_STMT): Kill.
4221 (inlinable_function_p): Compute and store body size.
4222 (expand_call_inline): Likewise.
4223 (optimize_inline_calls): Likewise.
4224
1b1838b6
JW
42252003-07-08 James E Wilson <wilson@tuliptree.org>
4226
4227 PR target/10021
4228 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
4229 loop over new variable t2 instead of t.
4230
81a6341d
DS
42312003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
4232
4233 PR bootstrap/11455
4234 * config/i386/winnt.c: Replace use of error(), warning() with
4235 error_with_decl(), warning_with_decl(), throughout.
4236
21789816
NB
42372003-07-08 Neil Booth <neil@daikokuya.co.uk>
4238
4239 * opts.c (wrap_help): Use unsigned int, not size_t.
4240
f6423302
SC
42412003-07-08 Stephane Carrez <stcarrez@nerim.fr>
4242
4243 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
4244 as .file/.loc directives are incompatible with linker relaxation.
4245
ab747408
ZW
42462003-07-08 Zack Weinberg <zack@codesourcery.com>
4247
4248 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
4249 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
4250 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
4251 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
4252 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
4253 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
4254 Escape { and } characters which are not part of range expressions.
4255 * fixinc/fixincl.x: Regenerate.
a27531fb 4256 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
ab747408 4257
51657442
SB
42582003-07-08 Steven Bosscher <steven@gcc.gnu.org>
4259
4260 PR c/1687
4261 * tree-inline.c (find_alloca_call): Use
4262 walk_tree_without_duplicates, instead of walk_tree.
4263 (find_builtin_longjmp_call): Likewise.
4264 * c-objc-common.c (c_cannot_inline_fn): Likewise.
4265 * c-semantics.c (find_reachable_label): Likewise.
4266
7e6dc358
JJ
42672003-07-08 Jakub Jelinek <jakub@redhat.com>
4268
4269 PR c/11420
4270 * config/i386/i386.c (ix86_check_movabs): New function.
4271 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
4272 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
4273 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
4274
318b7749
CD
42752003-07-08 Chris Demetriou <cgd@broadcom.com>
4276
4277 * Makefile.in (install-po): Cope with empty CATALOGS.
4278
b8898790
RS
42792003-07-08 Richard Sandiford <rsandifo@redhat.com>
4280
4281 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4282 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
4283 (SECTION_FUNCTION_TEMPLATE): Delete.
4284 * config/mips/elf.h: As for elf64.h.
4285 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
4286 * config/mips/linux.h: As for elf.h
4287 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4288 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
4289 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
4290 of in_sdata from current_section_name and current_section_flags.
4291 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4292 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
4293 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
4294 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
4295 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
4296 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4297 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
4298 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
4299 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
4300 (override_options): Remove setting of MASK_GPOPT.
4301 (mips_output_external): Use mips_in_small_data_p to check whether a
4302 symbol needs an .extern directive. Don't emit such directives for
4303 TARGET_EXPLICIT_RELOCS.
4304 (mips_declare_object): Update accordingly.
4305 (mips_select_rtx_section): Call named_section rather than
4306 SMALL_DATA_SECTION.
4307 (mips_select_section): Use default_elf_section_section for everything
4308 except .text string constants.
4309 (mips_in_small_data_p): New function.
4310 (mips_encode_section_info): Remove small data handling.
4311 (mips_unique_section): Delete.
4312 (iris6_section_type_flags): New function.
4313 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
4314
f5d1c3de
JDA
43152003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4316
4317 PR Target/11453
4318 * pa.md: Disparage all mtsar constraints.
4319 (extzv, extv, insv): Don't fail on length of {32|64}.
4320
ce1bb65b
ZW
43212003-07-08 Zack Weinberg <zack@codesourcery.com>
4322
4323 * system.h: Poison MAP_CHARACTER.
4324 * config/i370/i370-protos.h (mvs_map_char): Delete.
4325 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
4326 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
4327 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
4328
c163ddca
DS
43292003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
4330
4331 * toplev.c (randomize): Correct call to time().
4332
8df63efa
JJ
43332003-07-08 Jakub Jelinek <jakub@redhat.com>
4334
4335 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
4336 REG_EQUIV notes as well.
4337
4b5cc2b3
KH
43382003-07-08 Kazu Hirata <kazu@cs.umass.edu>
4339
4340 * doc/md.texi: Fix the description of addmodecc.
4341
56694dd9
ZW
43422003-07-07 Zack Weinberg <zack@codesourcery.com>
4343
4344 * Makefile.in (top_builddir): Set to "..", not ".".
4345 (INTLLIBS, INTLDEPS): Delete.
4346 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
4347 (LIBDEPS): Add $(LIBICONV_DEP).
4348 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
4349 (INCLUDES): Replace -I../intl with @INCINTL@.
4350 ($(top_builddir)/intl/libintl.a): Delete rule.
4351 (stage2-start, stage3-start, stage4-start, stageprofile-start,
4352 stagefeedback-start): Use $$ for variable to be evaluated by
4353 shell, not make.
4354 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
4355 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
4356 * aclocal.m4: sinclude ../config/progtest.m4. Add
4357 contents of lcmessage.m4 from gettext distro.
4358 * configure.in: Check for wchar.h and setlocale. Set
4359 LIBICONV_DEP to the empty string and substitute it.
4360 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
4361 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
4362 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
4363 in $LIBINTL, to avoid linking it twice.
4364 * configure, config.in: Regenerate.
4365
a294c4cf
NN
43662003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
4367
4368 * fixinc/mkfixinc.sh: Remove winnt support.
4369 * fixinc/fixinc.winnt: Delete with extreme prejudice.
4370
979312a4
NB
43712003-07-08 Neil Booth <neil@daikokuya.co.uk>
4372
4373 * Makefile.in: Update.
4374 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
4375 * c.opt: Update documentation.
4376 * common.opt: Add some help text.
4377 * opts.c: Include intl.h.
4378 (wrap_help, print_help): New.
4379 (find_opt, handle_option, common_handle_option): opt_text now
4380 contains the '-'. Use print_help to output help.
4381 * opts.h (struct cl_option): New member "help".
4382 * opts.sh: Update to handle help text output and to prepend
4383 options with '-'.
4384 * toplev.c (display_help): Remove some help text.
4385
2c4a9cff
DE
43862003-07-07 David Edelsohn <edelsohn@gnu.org>
4387 Fariborz Jahanian <fjahanian@apple.com>
4388
4389 * configure.in: Test for PowerPC mfcr field support in assembler.
4390 * config.in, configure: Regenderated.
4391
4392 * config/rs6000/power4.md: Add mfcrf reservation.
4393 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
4394 * config/rs6000/rs6000.c (mfcr_operation): Define.
4395 (print_operand): Add 'Q' case for mfcrf.
4396 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
4397 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
4398 (movcc_internal1): Emit optional field operand for mfcr and set
4399 "type" attribute appropriately.
4400 (mfcr SCC): Likewise.
4401 (movesi_from_cr_one): New.
4402
923c4cf2
RS
44032003-07-07 Roger Sayle <roger@eyesopen.com>
4404
4405 * config/i386/i386.md: Correct check-in of incorrect version.
4406
75b6f3fd
KG
44072003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4408
4409 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
4410 adjacent stdio calls.
4411 * c-decl.c (c_print_identifier): Likewise.
4412 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
4413 * print-rtl.c (print_rtx): Likewise.
4414 * print-tree.c (print_node_brief, print_node): Likewise.
4415 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
56694dd9 4416
75b6f3fd
KG
4417 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
4418 * config.in, configure: Regenerated.
4419
afeeac3f
RS
44202003-07-07 Roger Sayle <roger@eyesopen.com>
4421
4422 PR target/10979
4423 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
4424 Changed to define_expand patterns that copy operand[1] to prevent
4425 it from being clobbered before emitting an atan2?f3_1 insn.
4426 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
4427 patterns that actually specify the behaviour of x87's FPATAN.
4428
eeff9307
JJ
44292003-07-07 Jakub Jelinek <jakub@redhat.com>
4430
4431 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
4432 clearing of SYMBOL_FLAG_LOCAL bit.
4433 If vcall_offset fits into signed 16-bit immediate, use
4434 one instruction for both addition and load.
4435
0fcd5dda
NB
44362003-07-07 Neil Booth <neil@daikokuya.co.uk>
4437
4438 * opts.c (common_handle_option): Correct handling of the
4439 -falign- switches that do and don't take an argument.
4440
b275810a
KH
44412003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4442
4443 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
4444 today.
4445 (pushhi1_h8300hs): Likewise.
4446
5671bf27
AJ
44472003-07-07 Andreas Jaeger <aj@suse.de>
4448
4449 * genextract.c: Convert remaining prototypes to ISO C90.
4450
4451 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
4452 * fold-const.c (fold_single_bit_test): Likewise.
4453 * diagnostic.c (default_diagnostic_finalizer): Likewise.
4454 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
4455
4456 * gengtype.c (write_array): Generate ISO C90 prototypes.
4457
4458 * genflags.c (gen_proto): Generate ISO C90 prototypes.
4459
2c430630
RS
44602003-07-07 Roger Sayle <roger@eyesopen.com>
4461
4462 PR optimization/11059
4463 * expr.c (can_store_by_pieces): Return true if length is zero.
4464 (store_by_pieces): If length is zero and endp is two, abort,
4465 othwerise, if length is zero and endp is not two, return "to".
4466 (clear_by_pieces): Do nothing if length is zero.
4467 (clear_storage): Do nothing if length is zero.
4468 (store_constructor): Simplify code when size is zero, or the
4469 target has already been cleared. This avoids emitting a
4470 blockage instruction when initializing empty structures.
4471
cf633f5b
AJ
44722003-07-07 Andreas Jaeger <aj@suse.de>
4473
4474 * mips-tfile.c: Convert prototypes to ISO C90.
4475 * mips-tdump.c: Convert prototypes to ISO C90.
4476
0cea056b
NS
44772003-07-07 Nathan Sidwell <nathan@codesourcery.com>
4478
4479 * rtl.h (emit_line_note): Take a location_t.
4480 (emit_line_note_force): Remove.
4481 (set_file_and_line_for_statement): Take a location_t.
4482 * tree.g (emit_line_note): Take a location_t.
4483 * emit-rtl.c (emit_line_note): Take a location_t.
4484 (emit_line_note_force): Remove.
4485 * function.c (init_function_start): Adjust emit_line_note call.
4486 (expand_function_end): Use force_next_line_note, not
4487 emit_line_note_force.
4488 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
4489 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
4490 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
4491 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
4492 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
4493 genrtl_continue_stmt, genrtl_switch_stmt,
4494 genrtl_asm_stmt): Likewise.
4495 * expr.c (expand_expr): Likewise.
4496 * integrate.c (expand_inline_function): Likewise.
4497 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
4498 (expand_decl_init): Adjust emit_line_note call.
4499
8eb910fc
DJ
45002003-07-07 Dale Johannesen <dalej@apple.com>
4501
56694dd9 4502 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
8eb910fc 4503
b96a374d
AJ
45042003-07-07 Andreas Jaeger <aj@suse.de>
4505
4506 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
4507 * config/i386/i386.c: Likewise.
4508
273fc01e
KH
45092003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4510
4511 * config/h8300/h8300.md: Use gen_int_mode instead of
4512 GEN_INT (trunc_int_for_mode (...)).
4513
fb7d7712
KH
45142003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4515
4516 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
4517 2 bytes and then subtract 2 from the stack pointer.
4518 (pushhi1_h8300hs): Likewise.
4519
e61a2eb7
NS
45202003-07-07 Nathan Sidwell <nathan@codesourcery.com>
4521
4522 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
4523 -frandom-seed.
4524 * configure: Regenerated.
4525 * Makefile.in: Remove extraneous comment.
4526 * toplev.c (randomize): Protect against potential multiple calls.
4527 * doc/invoke.texi (-frandom-seed): Document use for in coverage
4528 files.
4529
82d610ec 45302003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
56694dd9 4531 Eric Botcazou <ebotcazou@libertysurf.fr>
82d610ec
RK
4532
4533 PR optimization/11198
4534 * alias.c (objects_must_conflict_p): Return 1 if the types have
4535 the same alias set, not if the alias sets only conflict.
4536
5beadb33
AP
45372003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
4538
4539 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
4540 (convert_cset): Change inbuf to type ICONV_CONST char.
4541 * Makefile.in (LIBS): Add LIBICONV.
4542
9bb34f3c
AJ
4543 * doc/invoke.texi (-falign-functions): Document that
4544 when n is zero then a machine-dependent default is used.
4545 (-falign-labels): Document that when n is zero then a
4546 machine-dependent default is used and that -falign-labels =1
4547 is equivalent to -fno-align-labels.
4548 (-falign-loops): Likewise.
4549 (-falign-jumps): Likewise.
4550
1dbb6ce8
AH
45512003-07-06 Art Haas <ahaas@airmail.net>
4552
4553 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
4554 initializer syntax.
4555
8338d44d
JW
45562003-07-06 James E Wilson <wilson@tuliptree.org>
4557
4558 PR optimization/9812
4559 * rtl.h (mem_for_const_double): Delete prototype.
4560 * varasm.c (mem_for_const_double): Delete function.
4561 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
4562 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
4563 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
4564 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
4565 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
4566 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
4567 comment about confused support for XFmode constants.
4568
9efd34a5
JH
4569Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
4570
4571 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
4572
2a43945f
KH
45732003-07-06 Kazu Hirata <kazu@cs.umass.edu>
4574
4575 * config/h8300/h8300.c: Fix comment typos.
4576 * config/h8300/h8300.md: Likewise.
4577 * config/i386/athlon.md: Likewise.
4578 * config/i386/i386.c: Likewise.
4579 * config/i386/pentium.md: Likewise.
4580 * config/ia64/ia64.c: Likewise.
4581 * config/ia64/itanium1.md: Likewise.
4582 * config/ia64/itanium2.md: Likewise.
4583 * config/m32r/m32r.md: Likewise.
4584 * config/m68hc11/m68hc11.c: Likewise.
4585 * config/mcore/mcore.c: Likewise.
4586 * config/mips/sr71k.md: Likewise.
4587 * config/mips/t-iris5-as: Likewise.
4588 * config/mmix/mmix.h: Likewise.
4589 * config/ns32k/ns32k.h: Likewise.
4590 * config/ns32k/NOTES: Fix a typo.
4591
ceee09f7
AJ
45922003-07-06 Andreas Jaeger <aj@suse.de>
4593
7e51717c
AJ
4594 * stmt.c: Convert remaining prototypes to ISO C90.
4595 * cfglayout.c: Likewise.
4596 * dbxout.c: Likewise.
4597 * gcc.c: Likewise.
4598 * genemit.c: Likewise.
4599
ceee09f7
AJ
4600 * basic-block.h: Convert prototypes to ISO C90.
4601 * c-parse.in: Likewise.
4602 * c-pragma.h: Likewise.
4603 * c-typeck.c: Likewise.
4604 * cfghooks.h: Likewise.
4605 * cfgloopanal.c: Likewise.
4606 * dbxout.h: Likewise.
4607 * debug.h: Likewise.
4608 * dwarf2asm.h: Likewise.
4609 * gcov.c: Likewise.
4610 * gengtype-lex.l: Likewise.
4611 * sched-int.h: Likewise.
4612 * timevar.c: Likewise.
4613
cb66e385
NB
46142003-07-06 Neil Booth <neil@daikokuya.co.uk>
4615
4616 * c-common.h (c_comon_handle_filename,
4617 c_common_missing_arguement): New.
4618 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4619 LANG_HOOKS_MISSING_ARGUMENT): New.
4620 * c-opts.c (missing_arg): Rename c_common_missing_argument,
4621 update to be an appropriate langhook.
4622 (c_common_handle_option): Don't handle filenames.
4623 (c_common_handle_filename): New.
4624 * hooks.c (hook_void_constcharptr,
4625 hook_bool_constcharptr_size_t_false): New.
4626 * hooks.h (hook_void_constcharptr,
4627 hook_bool_constcharptr_size_t_false): New.
4628 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
4629 LANG_HOOKS_MISSING_ARGUMENT): New.
4630 (LANG_HOOKS_INITIALIZER): Update.
4631 * langhooks.h (struct lang_hooks): Add handle_filename and
4632 missing_argument.
4633 * opts.c (handle_option): Don't handle filenames here, but ...
4634 (handle_options): ... here.
4635 (common_handle_option): Don't handle missing arguments here.
4636 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4637 LANG_HOOKS_MISSING_ARGUMENT): New.
4638
ade4289c
NB
46392003-07-06 Neil Booth <neil@daikokuya.co.uk>
4640
4641 * Makfile.in: Remove traces of mbchar.
4642 * c-parse.in (MULTIBYTE_CHARS): Remove.
4643 * config.in (MULTIBYTE_CHARS): Remove.
4644 * configure: Remove --enable-mbchar.
4645 * configure.in: Remove --enable-mbchar.
4646 * mbchar.c, mbchar.h: Remove.
4647 * system.h: Poison MULTIBYTE_CHARS.
4648 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
4649 * config/linux.h (MULTIBYTE_CHARS): Remove.
4650 * config/svr4.h (MULTIBYTE_CHARS): Remove.
4651 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
4652
2e1eedd6
AJ
46532003-07-06 Andreas Jaeger <aj@suse.de>
4654
11dc5cc6
AJ
4655 * varray.c (varray_check_failed): Fix typo.
4656
4657 * unroll.c: Convert prototypes to ISO C90.
2e1eedd6
AJ
4658 * varasm.c: Likewise.
4659 * varray.c: Likewise.
4660 * varray.h: Likewise.
4661 * vmsdbgout.c: Likewise.
4662 * xcoffout.c: Likewise.
4663 * xcoffout.h: Likewise.
4664
dd486eb2
NS
46652003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4666
4667 * gcov-io.h: Add a local time stamp.
4668 (struct gcov_info): Add stamp field.
4669 (gcov_truncate): New.
4670 * coverage.c (read_counts_file): Skip the stamp.
4671 (coverage_begin_output): Write the stamp.
4672 (build_gcov_info): Declare and init the stamp.
4673 (coverage_finish): Only unlink data file, if stamp is zero.
4674 * gcov-dump.c (dump_file): Dump the stamp.
4675 * gcov.c (bbg_stamp): New.
4676 (release_structures): Clear bbg_stamp.
4677 (read_graph_file): Read stamp.
4678 (read_count_file): Check stamp.
4679 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
4680
c07e5477
NS
46812003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4682
4683 * tree.h (default_flag_random_seed): Remove.
4684 * toplev.h (local_tick): Declare.
4685 * tree.c (flag_random_seed, default_flag_random_seed): Move to
4686 toplev.c.
4687 (append_random_chars): Don't call default_flag_random_seed.
4688 * toplev.c (flag_random_seed): Define here. Set local_tick.
4689 (local_tick): Define.
4690 (randomize): New, moved from tree.c.
4691 (print_switch_values): Adjust.
4692 (toplev_main): Call randomize.
4693
2aab7ceb
NS
46942003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4695
4696 * tree.h (crc32_string): Declare.
4697 * tree.c (append_random_chars): Remove.
4698 (crc32_string): New.
4699 (get_file_function_name_long): Use crc32_string here.
4700
1d088dee
AJ
47012003-07-06 Andreas Jaeger <aj@suse.de>
4702
4703 * gcc.c: Convert prototypes to ISO C90.
4704 * gcc.h: Likewise.
4705 * gcov-dump.c: Likewise.
4706 * gcov-iov.c: Likewise.
4707 * gcse.c: Likewise.
4708 * genattrtab.h: Likewise.
4709 * ggc.h: Likewise.
4710 * global.c: Likewise.
4711 * graph.c: Likewise.
4712 * graph.h: Likewise.
4713 * hosthooks.h: Likewise.
4714 * hooks.h: Likewise.
4715 * hooks.c: Likewise.
4716 * hashtable.h: Likewise.
4717 * hashtable.c: Likewise.
4718 * haifa-sched.c: Likewise.
4719 * integrate.h: Likewise.
4720 * integrate.c: Likewise.
4721 * input.h: Likewise.
4722 * ifcvt.c: Likewise.
f8ec47c7 4723 * jump.c: Likewise.
0c20a65f
AJ
4724 * langhooks-def.h: Likewise. Add extern to prototypes.
4725 * langhooks.c: Likewise.
4726 * langhooks.h: Likewise.
4727 * lcm.c: Likewise.
4728 * local-alloc.c: Likewise.
4729 * loop-init.c: Likewise.
4730 * loop-unroll.c: Likewise.
4731 * loop-unswitch.c: Likewise.
4732 * loop.c: Likewise.
4733 * loop.h: Likewise. Add extern to prototypes.
4734 * machmode.h: Likewise.
4735 * main.c: Likewise.
4736 * mbchar.c: Likewise.
4737 * mbchar.h: Likewise.
4738 * mkdeps.c: Likewise.
4739 * mkdeps.h: Likewise.
4740 * optabs.c: Likewise.
4741 * optabs.h: Likewise.
4742 * output.h: Likewise.
4743 * gccspec.c: Likwise.
4744 * postreload.c: Likewise.
4745 * prefix.c: Likewise.
4746 * prefix.h: Likewise.
4747 * print-rtl.c: Likewise.
4748 * print-tree.c: Likewise.
4749 * profile.c: Likewise.
4750 * read-rtl.c: Likewise.
4751 * real.c: Likewise.
4752 * real.h: Likewise.
4753 * recog.c: Likewise.
4754 * recog.h: Likewise.
4755 * reg-stack.c: Likewise.
4756 * regclass.c: Likewise.
4757 * regmove.c: Likewise.
4758 * regrename.c: Likewise.
4759 * regs.h: Likewise.
4760 * reload.c: Likewise.
4761 * reload.h: Likewise.
4762 * reload1.c: Likewise.
4763 * reorg.c: Likewise.
4764 * resource.c: Likewise.
4765 * resource.h: Likewise.
4766 * rtl-error.c: Likewise.
4767 * rtl.c: Likewise.
4768 * rtl.h: Likewise.
4769 * rtlanal.c: Likewise.
46c5ad27
AJ
4770 * sbitmap.c: Likewise.
4771 * sbitmap.h: Likewise.
4772 * scan-decls.c: Likewise.
4773 * scan.c: Likewise.
4774 * sched-deps.c: Likewise.
4775 * sched-ebb.c: Likewise.
4776 * sched-int.h: Likewise.
4777 * sched-rgn.c: Likewise.
4778 * sched-vis.c: Likewise.
4779 * sibcall.c: Likewise.
4780 * simplify-rtx.c: Likewise.
4781 * sreal.c: Likewise.
4782 * sreal.h: Likewise.
4783 * ssa-ccp.c: Likewise.
4784 * ssa-dce.c: Likewise.
4785 * ssa.c: Likewise.
4786 * ssa.h: Likewise.
4787 * stack.h: Likewise.
4788 * stmt.c: Likewise.
4789 * stor-layout.c: Likewise.
4790 * stringpool.c: Likewise.
4791 * target.h: Likewise.
4792 * timevar.c: Likewise.
4793 * timevar.h: Likewise.
4794 * tlink.c: Likewise.
4795 * tracer.c: Likewise.
4796 * tree-inline.c: Likewise.
4797 * tree-inline.h: Likewise.
4798 * tree.c: Likewise.
4799 * tree.h: Likewise.
1d088dee 4800
4f649bc1
KH
48012003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4802
4803 * combine.c (nonzero_bits1): Fix a warning.
4804
48052003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2c4a71b3
KH
4806
4807 * config/h8300/h8300.c (compute_mov_length): Correct the
4808 length of loading CONST0_RTX (SFmode).
4809
f5924ac1
NS
48102003-07-05 Nathan Sidwell <nathan@codesourcery.com>
4811
4812 * toplev.c (output_clean_symbol_name): Remove.
4813 * toplev.h (output_clean_symbol_name): Remove.
4814 * config/alpha/alpha.c (unicosmk_output_module_name): Use
4815 lbasename & clean_symbol_name.
4816
39e3f58c
KH
48172003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4818
4819 * ggc.h: Follow spelling conventions.
4820 * config/i386/i386.c: Likewise.
4821 * config/i386/winnt.c: Likewise.
4822 * config/rs6000/rs6000.c: Likewise.
4823
4d6922ee
KH
48242003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4825
4826 * bt-load.c: Fix comment typos.
4827 * c-incpath.c: Likewise.
4828 * cfg.c: Likewise.
4829 * cfgcleanup.c: Likewise.
4830 * cfgloop.h: Likewise.
4831 * cfgloopmanip.c: Likewise.
4832 * cfgrtl.c: Likewise.
4833 * diagnostic.h: Likewise.
4834 * dwarfout.c: Likewise.
4835 * emit-rtl.c: Likewise.
4836 * et-forest.c: Likewise.
4837 * et-forest.h: Likewise.
4838 * expr.c: Likewise.
4839 * gcse.c: Likewise.
4840 * genattr.c: Likewise.
4841 * jump.c: Likewise.
4842 * langhooks.h: Likewise.
4843 * local-alloc.c: Likewise.
4844 * loop-unroll.c: Likewise.
4845 * loop-unswitch.c: Likewise.
4846 * ra-build.c: Likewise.
4847 * regclass.c: Likewise.
4848 * regmove.c: Likewise.
4849 * rtl.def: Likewise.
4850 * rtlanal.c: Likewise.
4851 * sched-ebb.c: Likewise.
4852 * sched-rgn.c: Likewise.
4853 * simplify-rtx.c: Likewise.
4854 * ssa.c: Likewise.
4855 * tracer.c: Likewise.
4856 * tree.c: Likewise.
4857
f1c4bc4f
ZW
48582003-07-05 Zack Weinberg <zack@codesourcery.com>
4859
4860 * cppcharset.c: Use the correct return type for the fallback iconv
4861 macro.
4862
65c6f1b4
ZD
4863Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4864
4865 Blame to Jan Hubicka <jh@suse.cz>
4866 * cfglayout.c (record_effective_endpoints): Split insns before
4867 first basic block correctly.
4868
a8f3bf52
RK
48692003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4870
f1c4bc4f 4871 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
a8f3bf52
RK
4872 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
4873 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
4874
0641776c
AJ
48752003-07-05 Andreas Jaeger <aj@suse.de>
4876
4877 * genattrtab.c (write_attr_get): Revert part of last patch to
4878 always write out a prototype.
4879
4880 * genemit.c (gen_split): Readd lost unused attributes in last
4881 patch.
4882
977129f6
ZD
48832003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4884
4885 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
4886 different from header.
4887
5ee084df
AS
48882003-07-05 Andreas Schwab <schwab@suse.de>
4889
4890 * config/m68k/m68k.c: Remove code protected by CRDS.
4891 * config/m68k/m68k.md: Likewise.
4892
33de9573
NB
48932003-07-05 Neil Booth <neil@daikokuya.co.uk>
4894
4895 PR driver/11417
4896 * c-opts.c (permit_fortran_options): New.
4897 (c_common_init_options): Accept fortran front end options if
4898 it looks like we might be preprocessing Fortran.
4899 (c_common_handle_option): Don't reject switch if permit_fotran_options.
4900
6906ba40
KG
49012003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4902
4903 * genattr.c (internal_dfa_insn_code): Output prototype.
4904 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
4905 * genautomata.c: Likewise.
4906 * genconditions.c: Likewise.
4907 * genemit.c: Likewise.
4908 * genextract.c: Likewise.
4909 * gengenrtl.c: Likewise.
4910 * gengtype.c: Likewise.
4911 * genopinit.c: Likewise.
4912 * genoutput.c: Likewise.
4913 * genpeep.c: Likewise.
4914 * genrecog.c: Likewise.
4915
e6cc3a24
ZW
49162003-07-04 Zack Weinberg <zack@codesourcery.com>
4917
4918 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
4919 (struct cpp_options): Add narrow_charset, wide_charset,
4920 bytes_big_endian fields. Remove EBCDIC field.
4921 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
4922
4923 * cpphash.h: Include <iconv.h> if we have it, otherwise
4924 provide a dummy definition of iconv_t.
4925 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
4926 (_cpp_valid_ucn): Update prototype.
4927 (_cpp_destroy_iconv): New prototype.
4928
4929 * doc/cpp.texi: Document character set handling.
4930 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
4931 * doc/extend.texi: Delete entire section on multiline strings.
4932 Rewrite section on __FUNCTION__ etc now that these are
4933 variables in C.
4934
4935 * cppucnid.tab, cppucnid.pl: New files.
4936 * cppucnid.h: New generated file.
4937 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
4938 (iconv_open, iconv, iconv_close): Provide dummy definitions
4939 if !HAVE_ICONV.
4940 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
4941 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
4942 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
4943 cpp_interpret_string, narrow_str_to_charconst,
4944 wide_str_to_charconst): New.
4945 (ucn_valid_in_identifier): Use a binary search through the
4946 ucnranges table defined in cppucnid.h, not a long chain of if
4947 statements.
4948 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
4949 character names are only valid in C++ and C99" to a warning.
4950 Issue the "meaning of \[uU] is different in traditional C"
4951 warning here. Take care not to let iconv see an invalid UCS
4952 value if we get a malformed UCN. Issue an error if we don't
4953 have iconv.
4954 (cpp_interpret_charconst): Moved here from cpplex.c. Use
4955 cpp_interpret_string to do the heavy lifting.
4956
4957 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
4958 narrow_charset, wide_charset fields of options structure.
4959 (cpp_destroy): Call _cpp_destroy_iconv.
4960 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
4961 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
4962 (cpp_interpret_charconst): Moved to cppcharset.c.
4963 * cpplib.c (dequote_string): Delete.
4964 (interpret_string_notranslate): New.
4965 (do_line, do_linemarker): Use interpret_string_notranslate.
4966
4967 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
4968
4969 * c-common.c (fname_string, combine_strings): Delete.
4970 * c-common.h (fname_string, combine_strings): Delete prototypes.
4971 * c-lex.c (ignore_escape_flag): Delete.
4972 (cb_ident): Use cpp_interpret_string, not lex_string.
4973 (get_nonpadding_token): New function.
4974 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
4975 Adjust calls to lex_string. Don't write *value twice.
4976 (lex_string): Now handles string constant concatenation.
4977 Most of the work handed off to cpp_interpret_string.
4978 Call fix_string_type here.
4979 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
4980 FUNC_NAME, throughout.
4981 (OBJC_STRING): New token type.
4982 (primary:STRING): No need to call fix_string_type here.
4983 (primary:objc_string): Make that OBJC_STRING.
4984 (objc_string nonterminal): Delete.
4985 (yylexname): Delete code to handle fake string constants.
4986 (yylexstring): Delete entirely.
4987 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
4988 to handle CPP_ATSIGN.
4989
4990 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
4991 * c-opts.c (missing_arg, c_common_handle_option): Handle
4992 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
4993 (c_common_init): Set cpp_opts->bytes_big_endian, not
4994 cpp_opts->EBCDIC. Call cpp_init_iconv.
4995 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
4996 (TARGET_EBCDIC): Delete default definition.
4997
4998 * objc/objc-act.c (build_objc_string_object): No need to
4999 handle string constant concatenation.
5000
61aeb06f
KH
50012003-07-04 Kazu Hirata <kazu@cs.umass.edu>
5002
5003 * doc/install.texi: Fix typos.
5004 * doc/invoke.texi: Likewise.
5005 * doc/tm.texi: Likewise.
5006
c1207243
KH
50072003-07-04 Kazu Hirata <kazu@cs.umass.edu>
5008
5009 * config/pa/fptr.c: Fix comment typos.
5010 * config/pa/pa-64.h: Likewise.
5011 * config/pa/pa.c: Likewise.
5012 * config/pa/pa.h: Likewise.
5013 * config/rs6000/603.md: Likewise.
5014 * config/rs6000/7xx.md: Likewise.
5015 * config/rs6000/darwin.h: Likewise.
5016 * config/rs6000/freebsd.h: Likewise.
5017 * config/rs6000/rs6000.c: Likewise.
5018 * config/rs6000/rs6000.md: Likewise.
5019 * config/rs6000/spe.h: Likewise.
5020
58add37a
UW
50212003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
5022
5023 * config/s390/2064.md: Change GNU CC to GCC.
5024 * config/s390/2084.md: Likewise.
5025 * config/s390/fixdfdi.h: Likewise.
5026 * config/s390/linux.h: Likewise.
5027 * config/s390/s390-modes.def: Likewise.
5028 * config/s390/s390-protos.h: Likewise.
5029 * config/s390/s390.c: Likewise.
5030 * config/s390/s390.h: Likewise.
5031 * config/s390/s390.md: Likewise.
5032 * config/s390/s390x.h: Likewise.
5033
60cd4dae
JL
50342003-07-04 Jeff Law <law@redhat.com>
5035
a38825d2 5036 PR c/11428
60cd4dae
JL
5037 * expr.c (do_store_flag): Pass in the correct result type
5038 when calling fold_single_bit_test.
5039 * fold-const.c (fold_single_bit_test): Use result_type for the
5040 result when folding a sign bit test.
5041
5e14ae7e
NB
50422003-07-04 Neil Booth <neil@daikokuya.co.uk>
5043
5044 * opts.c (common_handle_options): Negate sense of -falign- switches.
5045
8c90b13a
L
50462003-07-04 H.J. Lu <hongjiu.lu@intel.com>
5047
c3b3975a 5048 * Makefile.in: Replace PWD with PWD_COMMAND.
8c90b13a 5049
72d4a2ad
ZD
50502003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5051
5052 * cfgloopanal.c (count_strange_loop_iterations): New static function.
5053 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
5054 Handle strange loops.
5055
8e9a4a45
TM
50562003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
5057
5058 * install.texi: Even the g77 manpage is derived from
5059 the full g77 manual.
5060
6eb95e99
ZW
50612003-07-04 Zack Weinberg <zack@codesourcery.com>
5062
5063 * ABOUT-NLS: Delete.
5064 * intl: Delete entire directory.
5065 * aclocal.m4: Include ../config/gettext.m4. Delete
5066 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
5067 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
5068 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
5069 Remove intl/Makefile from all_outputs.
5070 * configure, config.in: Regenerate.
5071 * Makefile.in: Expunge all references to intl subdirectory.
5072 Add -I../intl to INCLUDES.
5073 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
5074
bcd5d841
RS
50752003-07-04 Roger Sayle <roger@eyesopen.com>
5076
5077 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
5078 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
5079
6b6cb52e
DS
50802003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
5081
5082 PR c++/5287, PR c++/7910, PR c++/11021
5083 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
5084 dllimport attribute if function is defined at declaration, but
5085 report error instead. Likewise for dllimport'd variable
5086 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
5087 declared within functions, Report error if dllimport or dllexport
5088 symbol is not global.
5089 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
5090 if defined after declaration or if inlined. Don't allow definition
5091 of static data members of C++ classes. Don't dllimport virtual
5092 methods.
5093 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
5094 (i386_pe_mark_dllimport): Remove unnecessary checks.
5095 (i386_pe_encode_section_info): Warn if the dllimport attribute
5096 and symbol prefix have been instantiated and then overridden.
5097
5098 * doc/extend.texi: Document dllimport and dllexport attributes.
5099
5100 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
5101
cc2f5d34
US
51022003-07-03 Uwe Stieber <uwe@kaos-group.de>
5103
5104 * config/kaos.h (CPP_PREDEFINES): Delete.
5105 (TARGET_OS_CPP_BUILTINS): New.
5106
5f1989e6
KG
51072003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5108
5109 * c-aux-info.c: Include toplev.h after c-tree.h.
5110 * c-common.c: Likewise.
5111 (GCC_DIAG_STYLE): Undef.
5112 * c-semantics.c (GCC_DIAG_STYLE): Define.
5113 * c-tree.h (GCC_DIAG_STYLE): Likewise.
5114 * diagnostic.h (inform): Move prototype to toplev.h.
5115 * jump.c: Include diagnostic.h before toplev.h.
5116 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
5117 (warning, error, fatal_error, pedwarn, sorry, inform,
5118 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
5119
8d28e87d
ZD
51202003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5121
5122 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
5123 at all if edge is not specified.
5124 (can_copy_bbs_p, copy_bbs): New.
5125 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
5126 * cfgloop.c (get_loop_body): Comment more precisely.
5127 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
5128 (scale_bbs_frequencies): Fix comment typo.
5129 (can_duplicate_loop_p): Use can_copy_bbs_p.
5130 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
5131
694abeb6
DP
51322003-07-03 Devang Patel <dpatel@apple.com>
5133
5134 * c-opts.c (c_common_parse_file): Remove extra
5135 debug_hooks->start_source_file call.
6eb95e99 5136
0a9530a9
RS
51372003-07-03 Roger Sayle <roger@eyesopen.com>
5138
5139 * real.c (real_trunc, real_floor, real_ceil): New functions
5140 to implement trunc, floor and ceil respectively.
5141 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
5142 * builtins.c (integer_valued_real_p): New function to test if
5143 a floating point expression has an integer valued result.
5144 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
5145 foo(x) where foo is an integer rounding function. Similarly,
5146 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
5147 (double)(int)x when both foo and bar are integer rounding
5148 functions and we don't need to honor errno.
5149 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
5150 New functions to fold trunc, floor and ceil.
5151 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
5152 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
5153 to fold BUILT_IN_CEIL*.
5154 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
5155 the remaining integer rounding functions.
5156
c3427c7d
EB
51572003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5158
5159 * config/sparc/sparc.c (function_arg_partial_nregs): Use
5160 SPARC_INT_ARG_MAX to determine where to split unnamed
5161 complex FP arguments.
5162
bc35512f
JH
5163Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
5164
5165 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
5166 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
5167 (merge_blocks_move_predecessor_nojumps,
5168 merge_blocks_move_successor_nojumps): Use merge_blocks.
5169 (try_optimize_cfg): Use merge_blocks_move.
5170 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
5171 (merge_blocks_nomove): Rename to rtl_merge_blocks.
5172 (cfg_layout_create_basic_block): New.
5173 (rtl_can_merge_blocks): New.
5174 (cfg_layout_split_block): Do not alloc aux by hand.
5175 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
5176 merge_blocks.
5177 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
5178 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
5179 * cfgloopmanip.c (loop_split_edge_with): Likewise.
5180 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
5181
5182 * basic-block.h (basic_block_def): Add field 'rbi'.
5183 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
5184 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
5185 * cfg.c (entry_exit_blocks): Add new field.
5186 * cfglayout.c: Include alloc-pool.h;
5187 (cfg_layout_pool): New.
5188 (record_effective_endpoints, fixup_reorder_chain,
5189 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
5190 of rbi.
5191 (cfg_layout_initialize_rbi): New function.
5192 (cfg_layout_initialize): Use it.
5193 (cfg_layout_finalize): Clear rbi fields.
5194 * cfglayout.h (RBI): Kill.
5195 (cfg_layout_initialize_rbi): Declare.
5196 * cfgloopmanip.c (copy_bbs): Use rbi.
5197 (record_exit_edges): Likewise.
5198 (duplicate_loop_to_header_edge): Likewise.
5199 * cfgrtl.c (cfg_layout_create_basic_block): Use
5200 cfg_layout_initialize_rbi.
5201 (cfg_layout_split_block): Use rbi.
5202 (cfg_layout_delete_block): Likewise.
5203 * loop-init.c (loop_optimizer_finalize): Likewise.
5204 * loop-unswitch.c (unswitch_loop): Likewise.
5205 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
5206
5207 * cfgrtl.c: Update comments.
5208 (try_redirect_by_replacing_jump): New argument.
5209 (redirect_branch_edge): Break out from ...
5210 (rtl_redirect_edge_and_branch): ... this one.
5211 (update_cfg_after_block_merging): Break out from ...
5212 (rtl_merge_blocks): ... this one.
5213 (cfg_layout_split_edge): New.
5214 (cfg_layout_merge_blocks): New.
5215 (cfg_layout_can_merge_blocks_p): New.
5216 (cfg_layout_redirect_edge_and_branch): Reorganize.
5217 (cfg_layout_rtl_cfg_hooks): Fill in.
5218 (cfg_layout_delete_block): Kill barriers.
5219 * cfganal.c (can_fallthru): Deal with exit blocks
5220 * cfglayout.c (cfg_layout_function_header): New function
5221 (record_effective_endpoints): Record function header.
5222 (fixup_reorder_chain): Fixup dead jumptables; place header
5223
5224 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
5225 * bb-reorder.c (cfg_layout_initialize): Update call.
5226 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
5227 edges in cfglayout mode.
5228 * cfglayout.c (cleanup_unconditional_jumps): Kill.
5229 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
5230 * cfglayout.h (cfg_layout_initialize): Update prototype.
5231 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
5232 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
5233 * flow.c (propagate_block): Do not crash when basic block ends
5234 by first insn in the chain.
5235 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
5236 do loop discovery.
5237 * tracer.c (tracer): Update call of cfg_layout_initialize.
5238
dd220c49
KG
52392003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5240
5241 * Makefile.in: Use dependency variables in lieu of explicit
5242 files throughout.
5243
fa5b060f
SB
52442003-07-03 Steven Bosscher <steven@gcc.gnu.org>
5245
5246 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
5247 * tree.h: ...to here.
5248
fae778eb
KH
52492003-07-03 Kazu Hirata <kazu@cs.umass.edu>
5250
5251 * config/s390/2064.md: Fix comment typos.
5252 * config/s390/2084.md: Likewise.
5253 * config/s390/s390.c: Likewise.
5254 * config/s390/s390.md: Likewise.
5255 * config/sh/sh.c: Likewise.
5256 * config/sh/sh.h: Likewise.
5257 * config/sh/sh.md: Likewise.
5258 * config/sparc/sparc.c: Likewise.
5259 * config/sparc/sparc.h: Likewise.
5260 * config/sparc/sparc.md: Likewise.
5261 * config/stormy16/stormy16.c: Likewise.
5262 * config/stormy16/stormy16.h: Likewise.
5263 * config/stormy16/stormy-abi: Fix a typo.
5264
58eabcb1
KC
52652003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
5266
5267 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
5268
af261903
KG
52692003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5270
5271 * config/mips/mips.h (save_argv): Delete.
5272
a11c61d2
RS
52732003-07-03 Roger Sayle <roger@eyesopen.com>
5274
5275 PR target/10700
5276 * fold-const.c (extract_muldiv_1): There's nothing that can be done
5277 if the expression is a SAVE_EXPR.
5278
dab66575
KH
52792003-07-03 Kazu Hirata <kazu@cs.umass.edu>
5280
5281 * config/m32r/m32r.c: Fix comment typos.
5282 * config/m68hc11/m68hc11.c: Likewise.
5283 * config/m68hc11/m68hc11.h: Likewise.
5284 * config/m68k/m68k.c: Likewise.
5285 * config/mcore/mcore.c: Likewise.
5286 * config/mcore/mcore.h: Likewise.
5287 * config/mcore/mcore.md: Likewise.
5288 * config/mips/mips.c: Likewise.
5289 * config/mips/mips.h: Likewise.
5290 * config/mips/mips.md: Likewise.
5291 * config/mips/netbsd.h: Likewise.
5292 * config/mn10300/mn10300.c: Likewise.
5293
8837d828
AS
52942003-07-03 Andreas Schwab <schwab@suse.de>
5295
5296 * dbxout.c (pending_bincls): Move decl down inside
5297 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
5298
dd107e66
NS
52992003-07-02 Nathan Sidwell <nathan@codesourcery.com>
5300
5301 * rtl.h (NOTE_DATA): Refer to whole union.
5302 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
5303
8821d091
EB
53042003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5305
5306 PR optimization/11381
5307 * simplify-rtx.c (simplify_relational_operation): Check that
5308 two equal operands have no side-effects before simplifying
5309 the comparison.
5310
7960bf22
JL
53112003-07-02 Jeff Law <law@redhat.com>
5312
5313 * expr.c (do_store_flag): Remove special case folding for
5314 single bit tests. Instead call back into the commonized folder
5315 routine.
5316 * fold-const.c (fold_single_bit_test): New function, mostly
5317 extracted from do_store_flag, with an additional case extracted
5318 from fold.
5319 (fold): Call fold_single_bit_test appropriately.
5320 * tree.h (fold_single_bit_test): Prototype.
5321
3dce1408
ZW
53222003-07-02 Zack Weinberg <zack@codesourcery.com>
5323
5324 * system.h: Include filenames.h.
5325 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
5326 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
5327 define based on HAVE_DOS_BASED_FILE_SYSTEM.
5328 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
5329 * config/i386/xm-mingw32.h: Don't define
5330 HAVE_DOS_BASED_FILE_SYSTEM,
5331 DIR_SEPARATOR, or DIR_SEPARATOR_2.
5332 * doc/hostconfig.texi: Update to match.
5333
5334 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
5335 config/i386/cygwin.h:
5336 Use IS_ABSOLUTE_PATH throughout.
5337 * gcc.c (DIR_UP): Delete, unused.
5338 * protoize.c (IS_SAME_PATH): Define in terms of
5339 FILENAME_CMP.
5340 (is_abspath): Delete.
5341
c51e6d85
KH
53422003-07-02 Kazu Hirata <kazu@cs.umass.edu>
5343
5344 * config/i386/emmintrin.h: Fix comment typos.
5345 * config/i386/i386.c: Likewise.
5346 * config/i386/i386.h: Likewise.
5347 * config/i386/sco5.h: Likewise.
5348 * config/ia64/ia64.c: Likewise.
5349 * config/ia64/itanium2.md: Likewise.
5350
5ec3a5a7
L
53512003-07-02 H.J. Lu <hongjiu.lu@intel.com>
5352
5353 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
5354 DBX_USE_BINCL.
5355 (emit_bincl_stab): Same.
5356 (emit_pending_bincls): Same.
5357
fad37371
KH
53582003-07-02 Kazu Hirata <kazu@cs.umass.edu>
5359
5360 * config/h8300/h8300.c (compute_mov_length): Fix the length of
5361 loading CONST0_RTX (SFmode).
5362 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
5363 'G' to CONST0_RTX (SFmode).
5364 * config/h8300/h8300.md (movsf_h8300): Change the first
5365 constraint to 'G'.
5366 (movsf_h8300h): Likewise.
5367
b86f6cd9
NB
53682003-07-02 Neil Booth <neil@daikokuya.co.uk>
5369
5370 * c-common.h (c_common_init_options): New prototype.
5371 * c-opts.c (deferred_size): Remove.
5372 (defer_opt): Array is now pre-allocated.
5373 (c_common_init_options): Pre-allocate deferred_opts. Make
5374 lang_flags unsigned.
5375 (push_command_line_options): Free deferred_opts.
5376 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
5377 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
5378 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
5379 * langhooks.h (struct lang_hooks): New prototype for init_options.
5380 * main.c (main): Cast argv.
5381 * opts.c (handle_option, handle_options): Update prototypes.
5382 (decode_options): save_argc, save_argv are not global. Constify.
5383 * opts.h (decode_options): New prototype.
5384 * toplev.c (general_init): New protoype.
5385 (save_argv): Make static.
5386 (save_argc): Remove.
5387 (print_switch_values, general_init): Constify.
5388 (toplev_main): Save argv.
5389 * toplev.h (toplev_main): Update prototype.
5390 (save_argc, save_argv): Remove.
5391
f23b9d52
DE
53922003-07-02 David Edelsohn <edelsohn@gnu.org>
5393
5394 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
5395 (emit_bincl_stab): Same.
5396 (emit_pending_bincls): Same.
5397
300e89a2
NS
53982003-07-02 Nathan Sidwell <nathan@codesourcery.com>
5399
5400 PR c++/11072
5401 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
5402
eaac6968
AS
54032003-07-02 Andreas Schwab <schwab@suse.de>
5404
5405 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
5406
1a8c4ca6
EB
54072003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
5408
5409 PR optimization/11210
5410 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
5411 about the behaviour with regard to bitfields.
5412 * fold-const (decode_field_reference): Record outermost type in
5413 case the expression is a NOP. Strip all NOPs. Set the signedness
5414 to that of the outermost type (if any) when the bitsize is equal
5415 to the size of the type.
5416
23cdfcf7
RS
54172003-07-02 Richard Sandiford <rsandifo@redhat.com>
5418
5419 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
5420 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
5421 (adddi3_internal_3, addsi3_internal_2): Likewise.
5422
6f2993e5
RS
54232003-07-02 Richard Sandiford <rsandifo@redhat.com>
5424
5425 * config/mips/mips.c (machine_function): Add new fields:
5426 ignore_hazard_length_p and all_noreorder_p.
5427 (mips_flag_delayed_branch): New variable.
5428 (override_options): Treat '/' as an operand punctuation character.
5429 Set up mips_flag_delayed_branch.
5430 (print_operand): Handle '/'.
5431 (mips_output_function_prologue): Put the whole function in
5432 .set noreorder and .set nomacro if all_noreorder_p is true.
5433 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
5434 (mips16_optimize_gp): Remove "first insn" parameter.
5435 (mips16_lay_out_constants): New function, split out from mips_reorg.
5436 (mips_avoid_hazard, mips_avoid_hazards): New functions.
5437 (mips_reorg): For mips16 code, call mips16_lay_out_constant
5438 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
5439 do delayed-branch scheduling followed by hazard detection.
5440 (mips_adjust_insn_length): Only account for hazards if
5441 !ignore_hazard_length_p.
5442 (mips_output_load_label): Add a nop to the o32 sequence if
5443 the target suffers from load delays.
5444 (mips_output_conditional_branch): Add %/ to the end of branches.
5445 (mips_output_division): Fill the branch delay slot with %#.
5446 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
5447 instructions. End all other %* branches with %/.
5448 (ffssi2, ffsdi2): Fix lengths.
5449 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
5450 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
5451 (fix_truncsfsi2_macro): Likewise.
5452 (mov_lwl): Set hazard to "none".
5453 (ashldi3_internal): Fill the branch delay slot with %#.
5454 (ashrdi3_internal, lshrdi3_internal): Likewise.
5455 (exception_receiver): Explicitly set $28.
5456 (hazard_nop): New pattern.
5457
0184bd46
JH
5458Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
5459
5460 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
5461 before calling tree_inlinable_function_p.
5462
1a78e5a7
RO
54632003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5464
5465 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
5466 <internal/stdio_core.h> too.
5467 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
5468 <internal/wchar_core.h> too.
5469 Substitute va_list uses in inline definition.
5470 * fixinc/fixincl.x: Regenerate.
5471
4c82f12b
RO
54722003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5473
5474 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
5475 Undef before redefinition.
5476 (LABEL_AFTER_LOC): Likewise.
5477 (DEFAULT_SIGNED_CHAR): Likewise.
5478 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
5479 Fix IRIX spelling.
3dce1408 5480
4c82f12b
RO
5481 * config/mips/iris3.h: Remove, unused.
5482 * config/mips/iris4.h: Likewise.
5483
5484 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
5485
5486 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
5487 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
5488 target_cpu_default.
5489
5490 * config/mips/iris5.h: Move explicit includes ...
5491 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
3dce1408 5492
4c82f12b
RO
5493 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
5494 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
5495 tm_defines.
5496
5497 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
5498 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
5499 target_cpu_default.
5500
5501 * config/mips/iris6.h: Fix IRIX spelling.
5502 (MULTILIB_DEFAULTS): Undef before redefinition.
3dce1408 5503
4c82f12b
RO
5504 * config/mips/iris6.h: Move explicit includes ...
5505 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
5506
8bd87c4e
JH
5507Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
5508
5509 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
5510 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
5511 Use next_needed field instead of aux to maintain the queue.
5512 * cgraph.h (cgraph_node): Add next_needed.
5513 (cgraph_varpool_node): Add next_needed; remove aux.
5514 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
5515
f6981e16
JH
5516Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
5517
5518 * cgraphunit.c (cgraph_finalize_function): Set finalized.
5519 (cgraph_finalize_function): Do not examine inlinablility.
5520 (cgraph_finalize_compilation_unit): Do it here.
5521 * cgraph.h (cgraph_local_info): Add finalized field.
5522
d1c60855
RO
55232003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5524
5525 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
5526 (gt_pch_restore): Likewise.
5527
093354e0
KH
55282003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5529
5530 * config/alpha/alpha.c: Fix comment typos.
5531 * config/alpha/elf.h: Likewise.
5532 * config/arm/arm.c: Likewise.
5533 * config/arm/arm.h: Likewise.
5534 * config/arm/arm.md: Likewise.
5535 * config/arm/t-arm-coff: Likewise.
5536 * config/arm/t-strongarm-pe: Likewise.
5537 * config/arm/xscale-elf.h: Likewise.
5538 * config/avr/avr.h: Likewise.
5539
ce47ca44
JL
55402003-07-01 Jeff Law <law@redhat.com>
5541
5542 * stmt.c (any_pending_cleanups): Remove another redundant test.
5543
43b68ce5
DE
55442003-07-01 David Edelsohn <edelsohn@gnu.org>
5545 J"orn Rennecke <joern.rennecke@superh.com>
5546
5547 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
5548 for MEM case.
5549
33e9d2aa
DP
55502003-07-01 Devang Patel <dpatel@apple.com>
5551
5552 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
5553 (binclstatus): New.
3dce1408 5554 (struct dbx_file): New members - bincl_status, pending_bincl_name and
33e9d2aa
DP
5555 prev.
5556 (pending_bincls): New.
5557 (dbxout_init): Initialize new dbx_file members.
5558 (dbxout_start_source_file): Same.
5559 (emit_bincl_stab): New function.
5560 (emit_pending_bincls): Same.
5561 (emit_pending_bincls_if_required): Same.
3dce1408 5562 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
33e9d2aa
DP
5563 processed.
5564 (dbxout_begin_block): Emit pending BINCL stabs.
5565 (dbxout_end_block): Same.
5566 (dbxout_function_decl): Same.
5567 (dbxout_continue): Same.
5568 (dbxout_type): Same.
5569 (dbxout_class_name_qualifiers): Same.
5570 (dbxout_symbol): Same.
5571 (dbxout_symbol_location): Same.
5572 (dbxout_parms): Same.
3dce1408 5573
0108ae51
KG
55742003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5575
5576 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
5577 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
5578
54ced33d
AJ
55792003-07-01 Andreas Jaeger <aj@suse.de>
5580
5581 * fold-const.c: Convert prototypes to ISO C90.
5582 * function.c: Likewise.
5583 * function.h: Likewise.
5584
c0cbdbd9
KH
55852003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5586
5587 * doc/contrib.texi: Fix typos.
5588 * doc/invoke.texi: Likewise.
5589 * doc/passes.texi: Likewise.
5590 * doc/sourcebuild.texi: Likewise.
5591 * doc/tm.texi: Likewise.
5592
e0bb17a8
KH
55932003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5594
5595 * basic-block.h: Fix comment typos.
5596 * bb-reorder.c: Likewise.
5597 * c-format.c: Likewise.
5598 * cfgcleanup.c: Likewise.
5599 * cfghooks.h: Likewise.
5600 * cfgloop.c: Likewise.
5601 * cfgloopmanip.c: Likewise.
5602 * cfgrtl.c: Likewise.
5603 * cgraph.h: Likewise.
5604 * cgraphunit.c: Likewise.
5605 * combine.c: Likewise.
5606 * convert.c: Likewise.
5607 * dbxout.c: Likewise.
5608 * df.c: Likewise.
5609 * df.h: Likewise.
5610 * diagnostic.c: Likewise.
5611 * dwarf2out.c: Likewise.
5612 * et-forest.h: Likewise.
5613 * flow.c: Likewise.
5614 * fold-const.c: Likewise.
5615 * function.h: Likewise.
5616 * gcov-io.h: Likewise.
5617 * gcov.c: Likewise.
5618 * gcse.c: Likewise.
5619 * genautomata.c: Likewise.
5620 * ggc-common.c: Likewise.
5621 * ggc-page.c: Likewise.
5622 * loop-unroll.c: Likewise.
5623 * loop-unswitch.c: Likewise.
5624 * loop.c: Likewise.
5625 * mips-tfile.c: Likewise.
5626 * optabs.c: Likewise.
5627 * ra-build.c: Likewise.
5628 * ra-colorize.c: Likewise.
5629 * ra-rewrite.c: Likewise.
5630 * ra.h: Likewise.
5631 * regmove.c: Likewise.
5632 * reload.c: Likewise.
5633 * rtlanal.c: Likewise.
5634 * sched-ebb.c: Likewise.
5635 * sched-int.h: Likewise.
5636 * sched-vis.c: Likewise.
5637 * sreal.c: Likewise.
5638 * ssa-ccp.c: Likewise.
5639 * ssa.c: Likewise.
5640 * toplev.c: Likewise.
5641 * tree-inline.c: Likewise.
5642 * value-prof.c: Likewise.
5643 * value-prof.h: Likewise.
5644
5f2fc772
NS
56452003-07-01 Nathan Sidwell <nathan@codesourcery.com>
5646
5647 * rtl.h (emit_line_note_after): Remove.
5648 (emit_note_copy_after, emit_note_copy): New.
5649 * emit-rtl.c (reorder_insns_with_line_notes): Replace
5650 emit_line_note_after with emit_note_copy_after.
5651 (emit_insn_after_with_line_notes): Likewise.
5652 (emit_line_note_after): Kill.
5653 (emit_note_copy_after): New.
5654 (emit_note_copy): New.
5655 * function.c (emit_return_into_block): Use emit_note_copy_after.
5656 (thread_prologue_and_epilogue_insns): Likewise.
5657 * integrate.c (expand_inline_function): Use emit_note_copy.
5658 (copy_insn_list): Likewise.
5659 * unroll.c (copy_loop_body): Likewise.
5660 * cfglayout.c (duplicate_insn_chain): Likewise.
5661
5b030314
NS
56622003-07-01 Nathan Sidwell <nathan@codesourcery.com>
5663
5664 * c-tree.h (define_label): Replace filename and lineno arguments
5665 with a location_t.
5666 * c-decl.c (poplevel): Adjust define_label call.
5667 (pop_label_level): Likewise.
5668 (define_label): Replace filename and lineno arguments with a
5669 location_t.
5670 (store_parm_decls): Use DECL_SOURCE_LOCATION.
5671 * c-parse.in (label): Adjust define_label call.
5672
04df6730
NB
56732003-07-01 Neil Booth <neil@daikokuya.co.uk>
5674
5675 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
5676 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
5677 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
5678 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
5679 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
5680
6cf9ac28
AJ
56812003-07-01 Andreas Jaeger <aj@suse.de>
5682
5683 * final.c: Convert prototypes to ISO C90.
5684 * flow.c: Likewise.
5685 * flags.h: Likewise.
5686 * gcov-io.c: Likewise.
5687 * gcov-io.h: Likewise.
5688
2a868fac 5689See ChangeLog.9 for earlier changes.
This page took 0.859708 seconds and 5 git commands to generate.