[llvm-commits] [llvm-gcc-4.2] r64597 - /llvm-gcc-4.2/trunk/gcc/stub-c.c
Anton Korobeynikov
asl at math.spbu.ru
Sun Feb 15 11:40:23 PST 2009
Author: asl
Date: Sun Feb 15 13:40:22 2009
New Revision: 64597
URL: http://llvm.org/viewvc/llvm-project?rev=64597&view=rev
Log:
Provide some default return values for the functions.
This silences the warning and thus unbreaks apple-style build (which is -Werror)
Modified:
llvm-gcc-4.2/trunk/gcc/stub-c.c
Modified: llvm-gcc-4.2/trunk/gcc/stub-c.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/stub-c.c?rev=64597&r1=64596&r2=64597&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/stub-c.c (original)
+++ llvm-gcc-4.2/trunk/gcc/stub-c.c Sun Feb 15 13:40:22 2009
@@ -40,6 +40,7 @@
tree iasm_addr (tree e ATTRIBUTE_UNUSED)
{
gcc_assert(0);
+ return NULL;
}
@@ -49,6 +50,7 @@
tree v2 ATTRIBUTE_UNUSED)
{
gcc_assert(0);
+ return NULL;
}
@@ -80,6 +82,7 @@
bool iasm_is_pseudo (const char *opcode ATTRIBUTE_UNUSED)
{
gcc_assert(0);
+ return false;
}
@@ -105,6 +108,7 @@
tree rhs ATTRIBUTE_UNUSED)
{
gcc_assert(0);
+ return NULL;
}
@@ -113,6 +117,7 @@
tree decl_constant_value (tree decl ATTRIBUTE_UNUSED)
{
gcc_assert(0);
+ return NULL;
}
@@ -122,6 +127,7 @@
tree params ATTRIBUTE_UNUSED)
{
gcc_assert(0);
+ return NULL;
}
@@ -130,6 +136,7 @@
tree build_stmt (enum tree_code code ATTRIBUTE_UNUSED, ...)
{
gcc_assert(0);
+ return NULL;
}
@@ -138,6 +145,7 @@
tree lookup_name (tree name ATTRIBUTE_UNUSED)
{
gcc_assert(0);
+ return NULL;
}
@@ -148,6 +156,7 @@
tree intop ATTRIBUTE_UNUSED)
{
gcc_assert(0);
+ return NULL;
}
@@ -168,6 +177,7 @@
size_t * numUniChars ATTRIBUTE_UNUSED)
{
gcc_assert(0);
+ return false;
}
tree create_init_utf16_var (const unsigned char *, size_t,
@@ -179,4 +189,5 @@
size_t * numUniChars ATTRIBUTE_UNUSED)
{
gcc_assert(0);
+ return NULL;
}
More information about the llvm-commits
mailing list