diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-08-25 07:28:36 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-08-25 07:28:36 +0000 |
commit | f22967f31a37794d2c0cd754c7ec2437530217d2 (patch) | |
tree | deb6a046862e3bde00e49c3080c4a067b0da1f75 /gcc/cp/mangle.c | |
parent | 036cfb361a57d202ca5ea95d9551a20d1e1b5e91 (diff) | |
download | gcc-f22967f31a37794d2c0cd754c7ec2437530217d2.zip gcc-f22967f31a37794d2c0cd754c7ec2437530217d2.tar.gz gcc-f22967f31a37794d2c0cd754c7ec2437530217d2.tar.bz2 |
decl.c (grokfndecl): Require that `main' return an `int'.
* decl.c (grokfndecl): Require that `main' return an `int'.
* mangle.c (write_encoding): Don't mangle return types for
conversion functions.
From-SVN: r35972
Diffstat (limited to 'gcc/cp/mangle.c')
-rw-r--r-- | gcc/cp/mangle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c index 9ca7178..0747ebc 100644 --- a/gcc/cp/mangle.c +++ b/gcc/cp/mangle.c @@ -643,6 +643,7 @@ write_encoding (decl) write_bare_function_type (fn_type, (!DECL_CONSTRUCTOR_P (decl) && !DECL_DESTRUCTOR_P (decl) + && !DECL_CONV_FN_P (decl) && decl_is_template_id (decl, NULL))); } } |