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
+2007-05-04 Dirk Mueller <dmueller@suse.de>
+
+ * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
+
2007-05-03 Jan Hubicka <jh@suse.cz>
* fold-const.c (fold_unary): Convert (T1)(X op Y) into ((T1)X op (T1)Y),
Do not warn about using \"long long\" when -pedantic
Wmain
-C ObjC Warning
+C ObjC C++ ObjC++ Warning
Warn about suspicious declarations of \"main\"
Wmissing-braces
Scope of for-init-statement variables is local to the loop
ffreestanding
-C ObjC
+C ObjC C++ ObjC++
Do not assume that standard C libraries and \"main\" exist
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>
PR c++/31663
#define DECL_MAIN_P(NODE) \
(DECL_EXTERN_C_FUNCTION_P (NODE) \
&& DECL_NAME (NODE) != NULL_TREE \
- && MAIN_NAME_P (DECL_NAME (NODE)))
+ && MAIN_NAME_P (DECL_NAME (NODE))) \
+ && flag_hosted
/* The overloaded FUNCTION_DECL. */
#define OVL_FUNCTION(NODE) \