Nathan Sidwell
f4ed7d2144
re PR c++/18782 (ICE on invalid pointer-to-member declaration)
...
cp:
PR c++/18782
* decl.c (grokdeclarator): Make sure class in pointer to member is
not a namespace.
testsuite:
PR c++/18782
* g++.dg/parse/ptrmem2.C: New.
From-SVN: r91681
2004-12-03 10:51:13 +00:00
Richard Sandiford
bb59c33970
Introduce config/gxx-include-dir.m4.
...
From-SVN: r91680
2004-12-03 10:44:37 +00:00
Richard Sandiford
4982adbebc
config.if: Delete.
...
* config.if: Delete.
* configure.in: Set libstdcxx_incdir directly.
* configure: Regenerate.
From-SVN: r91679
2004-12-03 10:40:18 +00:00
Nathan Sidwell
ad1063d545
re PR c++/18318 (ICE: error: Multiple inline callers)
...
cp:
PR c++/18318
* parser.c (cp_parser_new_type_id): Move array size expression
checks from here ...
* init.c (build_new): ... to here.
testsuite:
PR c++/18318
* g++.dg/template/new1.C: New.
From-SVN: r91678
2004-12-03 09:51:39 +00:00
Kazu Hirata
2085a21fd6
cfgrtl.c (rtl_verify_flow_info_1): Use JUMP_P instead of INSN_P.
...
* cfgrtl.c (rtl_verify_flow_info_1): Use JUMP_P instead of
INSN_P.
From-SVN: r91677
2004-12-03 07:43:39 +00:00
Kazu Hirata
a18428f344
tree-ssa-dom.c (record_equivalences_from_phis): Remove an "if" whose condition is always true.
...
* tree-ssa-dom.c (record_equivalences_from_phis): Remove an
"if" whose condition is always true.
From-SVN: r91676
2004-12-03 07:38:39 +00:00
Stan Shebs
7bd3a49330
rs6000.c (rs6000_override_options): Make 64-bit Darwin default to one-byte bools.
...
* config/rs6000/rs6000.c (rs6000_override_options): Make 64-bit
Darwin default to one-byte bools.
From-SVN: r91675
2004-12-03 06:35:49 +00:00
Richard Henderson
1170a5e1c4
Mark PR for changelog entry.
...
From-SVN: r91673
2004-12-02 19:28:05 -08:00
Richard Henderson
6e4b5aaf4d
re PR target/18774 (mmix-knuth-mmixware testsuite failure: gcc.c-torture/execute/20020227-1.c -Os -O2 compile)
...
PR 18774
* simplify-rtx.c (simplify_immed_subreg): Fail complex modes.
From-SVN: r91672
2004-12-02 19:27:34 -08:00
Ben Elliston
9208393247
cfg.texi (Edges): Update.
...
* doc/cfg.texi (Edges): Update. Document the edge_iterator data
type and its methods.
From-SVN: r91671
2004-12-03 13:01:35 +11:00
GCC Administrator
dda7d95b7d
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r91669.2
2004-12-03 00:16:39 +00:00
GCC Administrator
3b24cac5a8
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r91668.2
2004-12-03 00:16:31 +00:00
Eric Christopher
057506533b
Makefile.tpl (clean-target-libgcc): Make change in correct place.
...
2004-12-02 Eric Christopher <echristo@redhat.com>
* Makefile.tpl (clean-target-libgcc): Make change in correct place.
* Makefile.in: Regenerate.
From-SVN: r91666
2004-12-02 23:45:19 +00:00
Richard Henderson
ddf4e03f48
expr.c (write_complex_part): Use simplify_gen_subreg when the submode is at least as large as a word.
...
* expr.c (write_complex_part): Use simplify_gen_subreg when the
submode is at least as large as a word.
(read_complex_part): Likewise.
From-SVN: r91664
2004-12-02 14:23:08 -08:00
H.J. Lu
0cb4334ee9
re PR bootstrap/18532 (libgcc.mk isn't parallel build safe for multilib)
...
2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/18532
* mklibgcc.in: Build one set of EXTRA_MULTILIB_PARTS for
multilib at a time. Don't build the default set. Don't add
EXTRA_MULTILIB_PARTS to shared libunwind nor libgcc. Remove
filter for shared libunwind and libgcc.
From-SVN: r91663
2004-12-02 13:49:00 -08:00
Roger Sayle
14c473b90e
re PR target/18759 ([x86] using both -fomit-frame-pointer and -momit-leaf-frame-pointer enables frame pointers for non-leaf functions)
...
PR target/18759
* config/i386/i386.c (override_options): If -fomit-frame-pointer has
already been specified, ignore the -momit-leaf-frame-pointer option.
From-SVN: r91662
2004-12-02 21:19:32 +00:00
Tobias Schlüter
79d60e57e9
re PR libfortran/18710 (img part of complex number not written to direct access file)
...
PR fortran/18710
fix previously mistyped ChangeLog entry
From-SVN: r91659
2004-12-02 21:13:53 +01:00
H.J. Lu
0267621529
varasm.c (make_decl_rtl): Add the missing `;'.
...
2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
* varasm.c (make_decl_rtl): Add the missing `;'.
From-SVN: r91658
2004-12-02 11:56:26 -08:00
Tom Tromey
5c5d79d28c
re PR java/16675 (Null parameter values for anonymous constructor invocation require explicit cast)
...
PR java/16675:
* parse.y (craft_constructor): Special case null_pointer_node.
From-SVN: r91657
2004-12-02 19:41:03 +00:00
Tobias Schlüter
abd7fea9f9
re PR libfortran/18710 (img part of complex number not written to direct access file)
...
libgfortran/
PR fortran/18710
* io/transfer.c (unformatted_read, unformatted_write): width of
a COMPLEX is twice its kind.
gcc/testsuite/
PR fortran/18170
* gfortran.dg/direct_io_3.f90: New test.
From-SVN: r91656
2004-12-02 20:39:15 +01:00
Tom Tromey
0396df8ac4
For PR java/16675:
...
* testsuite/libjava.compile/PR16675.java: New file.
From-SVN: r91655
2004-12-02 19:38:49 +00:00
Andrew Pinski
e5410ba71b
tree.c (is_attribute_p): Split out to ..
...
2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
* tree.c (is_attribute_p): Split out to ..
(is_attribute_with_length_p): Here. Use IDENTIFIER_LENGTH instead
of strlen and compare the string lengths before calling strcmp.
(lookup_attribute): Call is_attribute_with_length_p instead of
is_attribute_p.
From-SVN: r91654
2004-12-02 11:25:55 -08:00
Devang Patel
910fbc166c
darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -gfull and -gused.
...
* config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -gfull and -gused.
* config/rs6000/darwin.h (CC1_SPEC): Do not handle -gfull and -gused.
* config/i386/darwin.h (CC1_SPEC): Same.
From-SVN: r91651
2004-12-02 10:42:26 -08:00
Richard Henderson
6b1326732b
optabs.c (lowpart_subreg_maybe_copy): New.
...
* optabs.c (lowpart_subreg_maybe_copy): New.
(expand_unop, expand_abs_nojump): Use it.
From-SVN: r91650
2004-12-02 10:31:26 -08:00
J"orn Rennecke
dea1c1c536
* sh.md (extv, extzv): Add pattern predicate.
...
From-SVN: r91649
2004-12-02 17:03:08 +00:00
Kazu Hirata
29cc871944
* tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
...
From-SVN: r91648
2004-12-02 16:47:16 +00:00
Kazu Hirata
d134295fc5
tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF is not null.
...
* tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
is not null.
From-SVN: r91647
2004-12-02 16:45:26 +00:00
Kazu Hirata
5dd8841aa1
tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF is not null.
...
* tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
is not null.
From-SVN: r91646
2004-12-02 16:43:33 +00:00
Tom Tromey
ea7b59ba69
re PR java/18741 (ICE tree check: expected class 'expression', have 'declaration' (var_decl))
...
PR java/18741:
* java-gimplify.c (java_gimplify_expr): Don't call
SET_EXPR_LOCATION unless wrapped tree is an expression.
From-SVN: r91645
2004-12-02 16:37:41 +00:00
Jeff Law
b28fb6a10c
* tree-eh.c: Revert yesterday's change.
...
From-SVN: r91643
2004-12-02 08:56:29 -07:00
Joseph Myers
45fd5209ae
* es.po: Update.
...
From-SVN: r91640
2004-12-02 14:20:53 +00:00
Richard Sandiford
5fef1dbd6e
configure.in: Clear gcc_version_trigger if the file doesn't exist.
...
* configure.in: Clear gcc_version_trigger if the file doesn't exist.
* configure: Regenerate.
From-SVN: r91639
2004-12-02 14:11:51 +00:00
Andrew Pinski
30513cf6f9
varasm.c (decode_reg_name): Revert change to check for zero length strings.
...
2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
* varasm.c (decode_reg_name): Revert change to check for zero
length strings.
(make_decl_rtl): Make sure that we call decode_reg_name only
when needed.
From-SVN: r91638
2004-12-02 06:05:50 -08:00
Dorit Naishlos
bfe5acd6af
re PR tree-optimization/18716 ([ICE] verify_flow_info failed (loop))
...
PR tree-opt/18716
* tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Properly set
then and else labels.
From-SVN: r91637
2004-12-02 14:00:30 +00:00
Nathan Sidwell
55dcbc1297
re PR c++/18758 (ICE redeclaring struct as template)
...
cp:
PR c++/18758
* parser.c (cp_parser_class_head): Return NULL_TREE when
push_template_decl fails. Update comment.
testsuite:
PR 18758
* g++.dg/parse/crash21.C: New.
From-SVN: r91636
2004-12-02 13:35:15 +00:00
Paolo Carlini
9b8d9ac39f
testsuite_io.h (class sync_buf): New, templatized version of sync_streambuf; add typedefs for streambuf/wstreambuf.
...
2004-12-02 Paolo Carlini <pcarlini@suse.de>
* testsuite/testsuite_io.h (class sync_buf): New, templatized
version of sync_streambuf; add typedefs for streambuf/wstreambuf.
(class fail_buf): Likewise, for fail_streambuf.
(class fail_num_get): Templatize and add char/wchar_t typedefs.
(class fail_num_put): Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/
exceptions_badbit_throw.cc: Use the latter.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/
exceptions_failbit_throw.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_arithmetic/char/
exceptions_badbit_throw.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_arithmetic/char/
exceptions_failbit_throw.cc: Likewise.
From-SVN: r91635
2004-12-02 13:24:46 +00:00
Andreas Schwab
1afffb0073
Makefile.in (WERROR_FLAGS): Renamed from WERROR.
...
* Makefile.in (WERROR_FLAGS): Renamed from WERROR.
(STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR).
(STAGE2_FLAGS_TO_PASS): Likewise.
* config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR.
From-SVN: r91634
2004-12-02 12:12:09 +00:00
Kriang Lerdsuwanakij
28e42b7eac
PR c++/15664, c++/18276
...
PR c++/15664, c++/18276
* pt.c (tsubst_decl) <TEMPLATE_DECL case>: Reorganize. Correctly
tsubst TEMPLATE_DECL that is a TEMPLATE_TEMPLATE_PARM.
* g++.dg/template/ttp13.C: New test.
* g++.dg/template/ttp14.C: Likewise.
From-SVN: r91633
2004-12-02 12:00:43 +00:00
Kriang Lerdsuwanakij
a5e515185a
re PR c++/18123 (ICE on templated enum)
...
PR c++/18123
* parser.c (cp_parser_type_specifier): Catch template declaration
of enum.
* g++.dg/parse/enum2.C: New test.
* g++.old-deja/g++.pt/enum5.C: Adjust error location.
From-SVN: r91630
2004-12-02 11:34:56 +00:00
Nick Clifton
1a06672a3b
xstormy16: New test directory.
...
* gcc.target/xstormy16: New test directory.
* gcc.target/xstormy16/xstormy16.exp: Run the new tests.
* gcc.target/xstormy16/bp.c: Check the generation of bp instructions.
* gcc.target/xstormy16/below_100.c: Check the generation of bp and bn
instructions and the BELOW100 attribute.
From-SVN: r91627
2004-12-02 11:10:38 +00:00
Richard Sandiford
4cf93d7c05
Fix last entry (remove config/ from pathname).
...
From-SVN: r91626
2004-12-02 11:10:30 +00:00
Richard Sandiford
afabd8e62c
Introduce and use config/gcc-version.m4.
...
From-SVN: r91625
2004-12-02 11:05:13 +00:00
Alan Modra
5191f2ba91
re PR target/16952 (GCC for powerpc cross target with -mrelocatable reports error)
...
PR target/16952
* gcc.dg/ppc-eabi.c: New.
From-SVN: r91619
2004-12-02 17:00:42 +10:30
Alan Modra
f4f4921e08
rs6000.c (rs6000_assemble_integer): Put back the #ifdef RELOCATABLE_NEEDS_FIXUP.
...
* config/rs6000/rs6000.c (rs6000_assemble_integer): Put back the
#ifdef RELOCATABLE_NEEDS_FIXUP.
From-SVN: r91617
2004-12-02 16:44:16 +10:30
Roger Sayle
6a46f71d27
re PR target/9908 ([x86] wrong code generated for virtual method call with -masm-intel)
...
PR target/9908
* config/i386/i386.md (*call_value_1, *sibcall_value_1): Correct
Intel assembler syntax by using %A1 instead of %*%1.
From-SVN: r91616
2004-12-02 05:31:06 +00:00
Jeff Law
b6bbede951
Fix typo.
...
From-SVN: r91615
2004-12-01 22:26:50 -07:00
Richard Henderson
0becc98698
expr.c (expand_assignment): Handle CONCAT both as a final destination and as a middle point.
...
* expr.c (expand_assignment): Handle CONCAT both as a final
destination and as a middle point.
From-SVN: r91614
2004-12-01 21:24:11 -08:00
Jeff Law
ca3a791a16
tree.h (save_eptr, save_filt): Now file scoped statics.
...
* tree.h (save_eptr, save_filt): Now file scoped statics.
(honor_protect_cleanup_actions): Only create save_eptr and
save_filt if they do not already exist.
(lower_eh_constructs): Wipe all knowledge of save_eptr and
save_filt before returning.
From-SVN: r91613
2004-12-01 21:56:42 -07:00
Bud Davis
78579b601d
re PR libfortran/18284 (BACKSPACE broken)
...
2004-12-02 Bud Davis <bdavis9659@comcast.net>
PR libfortran/18284
* io/unix.c (fd_alloc_w_at): Update file_length when extending.
* io/backspace.c (formatted_backspace): Reset endfile after backspace.
PR fortran/18284
* gfortran.dg/backspace.f90
From-SVN: r91612
2004-12-02 04:29:00 +00:00
Steven G. Kargl
f177a08700
flush.c: New file.
...
2004-12-02 Steven G. Kargl <kargls@comcast.net>
Paul Brook <paul@codesourcery.com>
libgfortran/
* intrinsics/flush.c: New file.
* intrinsics/fnum.c: ditto
* intrinsics/stat.c: ditto
* io/io.h (unit_to_fd): Add prototype.
* io/unix.c (unit_to_fd): New function.
* configure.ac: Add test for members of struct stat. Check for
sys/types.h and sys/stat.h
* Makefile.am: Add intrinsics/{flush.c,fnum.c,stat.c}
* configure.in: Regenerate.
* config.h.in: Regenerate.
* Makefile.in: Regenerate.
fortran/
* check.c (gfc_check_flush, gfc_check_fnum): New functions.
(gfc_check_fstat, gfc_check_fstat_sub): New functions.
(gfc_check_stat, gfc_check_stat_sub): New functions.
* gfortran.h (GFC_ISYM_FNUM,GFC_ISYM_FSTAT,GFC_ISYM_STAT): New symbols
* intrinsic.c (add_functions,add_subroutines): Add flush, fnum,
fstat, and stat to intrinsics symbol tables.
* intrinsic.h (gfc_check_flush, gfc_resolve_stat_sub): Add prototypes.
(gfc_resolve_fstat_sub, gfc_resolve_stat): Ditto.
* iresolve.c (gfc_resolve_fnum, gfc_resolve_fstat): New functions.
(gfc_resolve_stat, gfc_resolve_flush): New functions.
(gfc_resolve_stat_sub,gfc_resolve_fstat_sub): New functions
* trans-intrinsic.c (gfc_conv_intrinsic_function): Add new intrinsics.
From-SVN: r91611
2004-12-02 04:20:09 +00:00