Commit 820b51ae by Dirk Mueller Committed by Dirk Mueller

c.opt (Wmain,ffreestanding): Enable for C++,ObjC++.

2007-05-04  Dirk Mueller  <dmueller@suse.de>

        * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.

        * cp-tree.h (DECL_MAIN_P): only if -ffreestanding is
        not in effect.

From-SVN: r124404
parent ac5a28a6
2007-05-04 Dirk Mueller <dmueller@suse.de>
* c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
2007-05-03 Jan Hubicka <jh@suse.cz> 2007-05-03 Jan Hubicka <jh@suse.cz>
* fold-const.c (fold_unary): Convert (T1)(X op Y) into ((T1)X op (T1)Y), * fold-const.c (fold_unary): Convert (T1)(X op Y) into ((T1)X op (T1)Y),
......
...@@ -271,7 +271,7 @@ C ObjC C++ ObjC++ Var(warn_long_long) Init(1) Warning ...@@ -271,7 +271,7 @@ C ObjC C++ ObjC++ Var(warn_long_long) Init(1) Warning
Do not warn about using \"long long\" when -pedantic Do not warn about using \"long long\" when -pedantic
Wmain Wmain
C ObjC Warning C ObjC C++ ObjC++ Warning
Warn about suspicious declarations of \"main\" Warn about suspicious declarations of \"main\"
Wmissing-braces Wmissing-braces
...@@ -551,7 +551,7 @@ C++ ObjC++ ...@@ -551,7 +551,7 @@ C++ ObjC++
Scope of for-init-statement variables is local to the loop Scope of for-init-statement variables is local to the loop
ffreestanding ffreestanding
C ObjC C ObjC C++ ObjC++
Do not assume that standard C libraries and \"main\" exist Do not assume that standard C libraries and \"main\" exist
fgnu-keywords fgnu-keywords
......
2007-05-04 Dirk Mueller <dmueller@suse.de>
* cp-tree.h (DECL_MAIN_P): only if -ffreestanding is
not in effect.
2007-05-02 Seongbae Park <seongbae.park@gmail.com> 2007-05-02 Seongbae Park <seongbae.park@gmail.com>
PR c++/31663 PR c++/31663
......
...@@ -303,7 +303,8 @@ typedef struct ptrmem_cst * ptrmem_cst_t; ...@@ -303,7 +303,8 @@ typedef struct ptrmem_cst * ptrmem_cst_t;
#define DECL_MAIN_P(NODE) \ #define DECL_MAIN_P(NODE) \
(DECL_EXTERN_C_FUNCTION_P (NODE) \ (DECL_EXTERN_C_FUNCTION_P (NODE) \
&& DECL_NAME (NODE) != NULL_TREE \ && DECL_NAME (NODE) != NULL_TREE \
&& MAIN_NAME_P (DECL_NAME (NODE))) && MAIN_NAME_P (DECL_NAME (NODE))) \
&& flag_hosted
/* The overloaded FUNCTION_DECL. */ /* The overloaded FUNCTION_DECL. */
#define OVL_FUNCTION(NODE) \ #define OVL_FUNCTION(NODE) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment