Jan Hubicka
764c441479
* c-decl.c (c_expand_body_1): Fix.
...
From-SVN: r63283
2003-02-22 11:42:58 +00:00
Jan Hubicka
1c4a429ab0
expmed.c (expand_divmod): Undo sign extensions for unsigned operands
...
* expmed.c (expand_divmod): Undo sign extensions for unsigned operands
* cfgcleanup.c (try_forward_edges): Don't check loop structures
when not optimizing.
(cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
when not expensive.
* toplev.c (rest_of_compilation): Duplicate loop headers only when
optimizing; Delete trivially dead insns early; fix optimize check.
* Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
dependency on cgraph.h
* c-decl.c: Include cgraph.h
(finish_function): Update call of tree_inlinable_function_p.
* c-objc-common.c: Include cgraph.h
* cgraph.h: New file.
* cgraphunit.c: New file.
* cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
(cgraph_nodes, cgraph_n_nodes): Globalize.
(cgraph_finalize_function, cgraph_finalize_compilation_unit
cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
Move into cgraphunit.c
* tree-inline.c: Include cgraph.h
* tree-inline.c: Include cgraph.h
From-SVN: r63281
2003-02-22 10:02:31 +00:00
Josef Zlomek
1e2115dcc0
i386.md: Use gen_lowpart instead of gen_rtx_REG for copying a register.
...
* config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
for copying a register.
From-SVN: r63280
2003-02-22 05:52:11 +00:00
Steven Bosscher
b65538149b
re PR c/8828 (gcc reports some code is unreachable when it is not)
...
2003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
PR c/8828
* jump.c (never_reached_warning): Don't fall through BARRRIER
insns. Update comments to reflect what the function really does.
From-SVN: r63275
2003-02-22 06:35:28 +01:00
Steven Bosscher
26182e150e
re PR c++/3782 (-quiet -fstats produces a segmentation fault in cc1plus)
...
2003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
PR other/3782
* toplev.c (process_options): If flag_detailed_statistics is set,
then set time_report as well.
From-SVN: r63274
2003-02-22 06:34:23 +01:00
Roger Sayle
c0a47a6126
fold-const.c (omit_one_operand): No longer static.
...
* fold-const.c (omit_one_operand): No longer static.
* tree.h (omit_one_operand): Prototype here.
(div_and_round_double): Keep fold-const.c prototypes together.
* builtins.c (builtin_mathfn_code): Handle binary built-in
funtions, such as "pow" and "atan2".
(fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
Simplify optimizations using "type" the builtin's return type.
* gcc.dg/builtins-5.c: New test case.
From-SVN: r63273
2003-02-22 04:16:18 +00:00
Hans-Peter Nilsson
5b296d9340
cris.c (cris_rtx_costs): Blockify dangling else.
...
* config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
Fix functionalization typo.
From-SVN: r63272
2003-02-22 03:45:48 +00:00
Hans-Peter Nilsson
182c2078bc
* gcc.dg/asmreg-1.c: New test.
...
From-SVN: r63271
2003-02-22 03:21:27 +00:00
Hans-Peter Nilsson
5192890754
regmove.c (optimize_reg_copy_1): Do not replace a hard register in an asm.
...
* regmove.c (optimize_reg_copy_1): Do not replace a hard register
in an asm.
From-SVN: r63270
2003-02-22 03:17:24 +00:00
Kaveh R. Ghazi
9ac121af2a
Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
...
* Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
* doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
documentation.
* ggc-common.c: Include params.h
(ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
init_ggc_heuristics): New functions.
* ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
init_ggc_heuristics): Prototype.
* toplev.c (print_version): Output GGC heuristics.
(parse_options_and_default_flags): Call init_ggc_heuristics.
From-SVN: r63268
2003-02-22 03:08:47 +00:00
Jan Hubicka
453ee2313a
i386.c (def_builtin): Special case 64bit builtins.
...
* i386.c (def_builtin): Special case 64bit builtins.
(MASK_SSE164, MASK_SSE264): New constants.
(builtin_description): Add 64bit builtins.
(ix86_init_mmx_sse_builtins): Likewise.
* i386.h (enum ix86_builtins): Likewise.
* i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
(sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
* mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
* xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
_mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
_mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
From-SVN: r63267
2003-02-22 02:09:06 +00:00
Jan Hubicka
d50672efa7
i386.c (builtin_description): Add __builtin_ia32_paddq and __builtin_ia32_psubq.
...
* i386.c (builtin_description): Add __builtin_ia32_paddq and
__builtin_ia32_psubq. Fix __builtin_ia32_paddq128
and __builtin_ia32_psubq128.
* i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
* i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
(mmx_adddi3, mmx_subdi3): New.
* mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
* xmmintrin.h (_mm_movepi64_pi64): New.
(_mm_add_epi64, _mm_sub_epi64): fix.
(_mm_mul_pu16): Rename to...
(_mm_mul_su32): ... this one.
* builtins.c (expand_builtin_expect): Do not predict
flag_guess_branch_prob is not set.
* c-semantics.c (expand_stmt): Likewise.
* predict.c (predict_insn): Likewise.
* stmt.c (expand_continue_loop): Likewise.
* toplev.c (rest_of_compilation): Do not call
note_prediction_to_br_prob and note_prediction_to_br_prob
when not optimizing.
From-SVN: r63263
2003-02-22 00:32:09 +00:00
GCC Administrator
6a6d417ebd
Daily bump.
...
From-SVN: r63262
2003-02-22 00:17:07 +00:00
James E Wilson
ff00c8a2df
Update my email address.
...
From-SVN: r63254
2003-02-21 16:04:11 -08:00
Zack Weinberg
abb2db7ad1
* MAINTAINERS: Add self to blanket write privs. section.
...
From-SVN: r63253
2003-02-21 23:50:38 +00:00
Mark Mitchell
2fff6d712a
re PR c++/9749 (ICE in write_expression on invalid function prototype)
...
PR c++/9749
* decl.c (grokdeclarator): Do not allow parameters with variably
modified types.
PR c++/9749
* g++.dg/parse/varmod1.C: New test.
From-SVN: r63250
2003-02-21 22:56:06 +00:00
Jan Hubicka
9809a3624d
cfgrtl.c (commit_edge_insertions): Call find_many_sub_basic_block only when some code has been emitted.
...
* cfgrtl.c (commit_edge_insertions): Call
find_many_sub_basic_block only when some code has been emitted.
(commit_edge_insertions_watch_calls): Bring into sync with
commit_edge_insertions
From-SVN: r63248
2003-02-21 22:14:23 +00:00
Mark Mitchell
19df1edfbe
re PR c++/9727 (ICE in pushclass() with template and conversion operator)
...
PR c++/9727
* g++.dg/template/op1.C: New test.
From-SVN: r63245
2003-02-21 21:48:09 +00:00
J"orn Rennecke
a93d1ba239
sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
...
* sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
* sh.md (binary_sf_op): Use extra constant operand instead of
negating constant operand 4.
* sh.c (sh_expand_binop_v2sf): Supply it.
From-SVN: r63243
2003-02-21 20:51:33 +00:00
Rainer Orth
4a06f7f2ec
physmem.c (physmem_total): Use getsysinfo on Tru64 UNIX.
...
* physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
Tru64 UNIX.
(physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
Tru64 UNIX.
* configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
machine/hal_sysinfo.h, sys/table.h.
(checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
* configure, config.in: Regenerate.
From-SVN: r63241
2003-02-21 20:33:50 +00:00
Mark Mitchell
5dc3a78ce0
re PR c++/8906 (segmentation fault when parsing nested-class definition)
...
PR c++/8906
* g++.dg/template/nested2.C: New test.
From-SVN: r63240
2003-02-21 20:22:47 +00:00
Kaveh R. Ghazi
64c7e556ab
configure.in: Check for sys/sysmp.h and sysmp.
...
* configure.in: Check for sys/sysmp.h and sysmp.
* physmem.c: Pull upstream copy, add support for irix6.
* config.in, configure: Regenerated.
From-SVN: r63237
2003-02-21 20:15:39 +00:00
Mark Mitchell
934b8c40fe
Fix typo
...
From-SVN: r63236
2003-02-21 19:15:47 +00:00
Mark Mitchell
692bb58aae
re PR c++/8724 (explicit destructor call for incomplete class allowed)
...
PR c++/8724
* g++.dg/expr/dtor1.C: New test.
From-SVN: r63232
2003-02-21 18:08:14 +00:00
Zack Weinberg
a8d0ddaf4c
cpphash.h (struct lexer_state): Add directive_wants_padding.
...
* cpphash.h (struct lexer_state): Add directive_wants_padding.
* cpplib.c (_cpp_handle_directive): Set directive_wants_padding
for directives of type INCL.
(glue_header_name, parse_include): Use get_token_no_padding.
* cppmacro.c (replace_args): If directive_wants_padding,
provide padding tokens.
* testsuite/gcc.dg/cpp/include3.c: New test.
* testsuite/gcc.dg/cpp/inc/foo.h: New file.
From-SVN: r63231
2003-02-21 18:06:30 +00:00
Mark Wielaard
3a3f137e0d
ZipEntry.java (setComment): Don't check length when argument is null.
...
* java/util/zip/ZipEntry.java (setComment): Don't check length when
argument is null.
From-SVN: r63227
2003-02-21 16:56:58 +00:00
Nathan Sidwell
7fb1c86d07
search.c (bfs_walk_grow): Remove.
...
* search.c (bfs_walk_grow): Remove. Fold into ...
(bfs_walk): ... here, fix fencepost error. Fix merge lossage
in previous patch.
From-SVN: r63226
2003-02-21 16:36:41 +00:00
Kazu Hirata
902ac71956
* config/h8300/h8300.md (a peephole2): New.
...
From-SVN: r63224
2003-02-21 14:46:11 +00:00
Mark Wielaard
7b54048202
ZipEntry.java (ZipEntry(String)): When name is bigger then 65535 chars throw IllegalArgumentException.
...
* java/util/zip/ZipEntry.java (ZipEntry(String)): When name is bigger
then 65535 chars throw IllegalArgumentException.
From-SVN: r63222
2003-02-21 14:08:40 +00:00
Mark Wielaard
fefabda543
* java/util/zip/ZipFile.java (finalize): New method.
...
From-SVN: r63218
2003-02-21 12:35:49 +00:00
Jan Hubicka
9dca2ad510
cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
...
* cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
(commit_edge_insertions): Call find_many_sub_basic_blocks
* reg-stack.c (convert_regs): Cleax aux for blocks.
From-SVN: r63216
2003-02-21 10:06:44 +00:00
Jan Hubicka
64465d2735
* toplev.c (parse_options_and_default_flags): Undo accidental commit.
...
From-SVN: r63215
2003-02-21 09:40:25 +00:00
Jerry Quinn
d77478a5e5
locale_facets.tcc (_M_convert_float): Replace numpunct facet accesses with data from __locale_cache.
...
2003-02-21 Jerry Quinn <jlquinn@optonline.net>
* include/bits/locale_facets.tcc (_M_convert_float): Replace
numpunct facet accesses with data from __locale_cache.
From-SVN: r63213
2003-02-21 08:34:18 +00:00
Michael Koch
2d4fad8e02
natSocketChannelImpl.cc: Reverse logic for DISABLE_JAVA_NET.
...
2003-02-21 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/natSocketChannelImpl.cc:
Reverse logic for DISABLE_JAVA_NET. Thanks to Krister Walfridsson
<cato@df.lth.se> for pointing to it.
From-SVN: r63212
2003-02-21 08:19:34 +00:00
Glen Nakamura
9e7d0b92a9
re PR rtl-optimization/8613 (-O2 optimization generates wrong code)
...
PR optimization/8613
* builtins.c (expand_builtin): Emit postincrements before expanding
builtin functions.
From-SVN: r63207
2003-02-21 08:07:25 +00:00
Kaveh R. Ghazi
e9019af616
physmem.c (physmem_total, [...]): De-ANSI-fy.
...
* physmem.c (physmem_total, physmem_available): De-ANSI-fy.
* configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
pstat_getdynamic.
From-SVN: r63203
2003-02-21 05:02:44 +00:00
Ben Elliston
a7582c8ca8
re PR other/5634 (../configure --prefix=~/... doesn't work)
...
2003-02-21 Ben Elliston <bje@redhat.com>
PR other/5634
* doc/install.texi (Configuration): Explain using $HOME instead of
the ~ metacharacter when referring to home directories.
From-SVN: r63201
2003-02-21 14:12:17 +11:00
Sean McNeil
e9f2dc3b46
Makefile.tpl: Add definition of CPPFLAGS to pass into configure-target-* as some target...
...
* Makefile.tpl: Add definition of CPPFLAGS to pass into
configure-target-* as some target builds may require additional
flags for preprocessor tests.
* Makefile.in: Regenerated.
From-SVN: r63200
2003-02-20 20:55:04 -05:00
Kaveh R. Ghazi
a354191ebf
libiberty.h (physmem_total, [...]): Prototype.
...
include:
* libiberty.h (physmem_total, physmem_available): Prototype.
libiberty:
* Makefile.in (CFILES): Add physmem.c.
(REQUIRED_OFILES): Add physmem.o.
* configure.in: Check for sys/pstat.h.
(checkfuncs): Add pstat_getstatic and pstat_getdynamic.
* physmem.c: New file, copied from textutils.
* config.in, configure: Regenerated.
From-SVN: r63198
2003-02-21 00:27:04 +00:00
GCC Administrator
763b929241
Daily bump.
...
From-SVN: r63196
2003-02-21 00:17:07 +00:00
Alexandre Oliva
91710e62e0
configure.in (TARGET_SYSTEM_ROOT): Set default to ${exec_prefix}/${target_alias}/sys-root.
...
* configure.in (TARGET_SYSTEM_ROOT): Set default to
${exec_prefix}/${target_alias}/sys-root. Match explicit
'${exec_prefix}' (in addition to the expansion thereof) as
relocatable.
* configure: Rebuilt.
From-SVN: r63189
2003-02-20 23:38:11 +00:00
Kazu Hirata
d64f6f86e5
h8300.md (addhi3_incdec): Change the name to *addhi3_incdec.
...
* config/h8300/h8300.md (addhi3_incdec): Change the name to
*addhi3_incdec.
(addsi3_incdec): Change the name to *addsi3_incdec.
From-SVN: r63188
2003-02-20 23:11:35 +00:00
Roger Sayle
fd7acc3008
* explow.c (force_reg): Avoid useless REG_EQUAL notes.
...
From-SVN: r63187
2003-02-20 22:29:06 +00:00
Daniel Jacobowitz
4876b2b427
Makefile.in (CFILES): Add lrealpath.c.
...
* Makefile.in (CFILES): Add lrealpath.c.
(REQUIRED_OFILES): Add lrealpath.o.
(lrealpath.o): Add rule.
* aclocal.m4 (libiberty_NEED_DECLARATION): Add.
* configure.in: Add realpath and canonicalize_file_name to
checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
for canonicalize_file_name.
* lrealpath.c: New file.
* make-relative-prefix.c: Update documentation.
(make_relative_prefix): Simplify. Use lbasename and lrealpath.
* config.in: Regenerated.
* configure: Regenerated.
* functions.texi: Regenerated.
From-SVN: r63186
2003-02-20 22:11:13 +00:00
Daniel Jacobowitz
378ca31ee5
* libiberty.h (lrealpath): Add declaration.
...
From-SVN: r63185
2003-02-20 22:10:40 +00:00
Toon Moene
1c2de6423e
re PR fortran/9038 (-ffixed-line-length-none -x f77-cpp-input gives: Warning: unknown register name line-length-none)
...
2003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
PR fortran/9038
* c-opts.c (sanitize_cpp_opts): Add Fortran front end
options to be ignored.
(c_common_decode_option): Ignore them when preprocessing.
From-SVN: r63184
2003-02-20 22:08:45 +00:00
Jan Hubicka
b9422b69c4
toplev.c (flag_sched2_use_superblocks, [...]): New global variables.
...
* toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New global variables.
(lang_independent_options): Add -fsched2-use-superblocks -fsced2-use-traces.
(rest_of_compilation): Deal with it.
* invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare.
* flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces): Declare.
* rtl.h (reg_to_stack): Update prototype.
* reg-stack.c (reg_to_stack): Return when something has changed;
update liveness when executing after superblock scheduling.
* combine.c (simplify_shift_const): Simplify few special cases
into constants.
From-SVN: r63183
2003-02-20 20:56:53 +00:00
jmc
e182f0a397
* cplus_dem.c: Fix typo: intializes -> initializes.
...
From-SVN: r63182
2003-02-20 15:31:18 -05:00
Mark Mitchell
63a3cd3ec3
re PR c++/9729 (ICE in mangle_conv_op_name_for_type, at cp/mangle.c:2612)
...
PR c++/9729
* g++.dg/abi/conv1.C: New test.
PR c++/9729
* mangle.c (mangle_conv_op_name_for_type): Issue an error message
when the G++ 3.2 ABI prevents correct compilation.
From-SVN: r63176
2003-02-20 19:31:38 +00:00
David Edelsohn
a62bfff255
rs6000.md: (attr "type"): Add fast_compare.
...
* config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
(add.,subf.,neg.): Change attribute to fast_compare.
All DFA descriptions updated.
From-SVN: r63175
2003-02-20 14:31:30 -05:00