summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-27 13:49:33 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-27 13:49:33 +0000
commitff666e6ca394f7a635a6c51e0045fc91c9dddd7e (patch)
tree200a6e76ad836452f4bb2010b7ed355dda5cf134
parent41acc81bf834423f73bf99ecf5232c1b76d88dd6 (diff)
downloadgcc-ff666e6ca394f7a635a6c51e0045fc91c9dddd7e.tar.gz
* builtins.def (DEF_C99_BUILTIN): Fix.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59571 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/builtins.def2
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20021127-1.c14
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20021127-1.x2
5 files changed, 25 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f140ceaf629..26b49191a48 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Wed Nov 27 14:45:46 CET 2002 Jan Hubicka <jh@suse.cz>
+
+ * builtins.def (DEF_C99_BUILTIN): Fix.
+
2002-11-26 Andrew Haley <aph@redhat.com>
* unwind-sjlj.c (_Unwind_FindEnclosingFunction): Rename
diff --git a/gcc/builtins.def b/gcc/builtins.def
index 8c6a68e1ce0..c214128efe7 100644
--- a/gcc/builtins.def
+++ b/gcc/builtins.def
@@ -114,7 +114,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#undef DEF_C99_BUILTIN
#define DEF_C99_BUILTIN(ENUM, NAME, TYPE) \
DEF_BUILTIN (ENUM, NAME, BUILT_IN_NORMAL, TYPE, TYPE, \
- true, !flag_isoc99, true, ATTR_NOTHROW_LIST)
+ true, true, !flag_isoc99, ATTR_NOTHROW_LIST)
/* Like DEF_LIB_BUILTIN, except that the function is expanded in the
front-end. */
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d9a69fcedc5..6b48f1f6afa 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+Wed Nov 27 14:37:34 CET 2002 Jan Hubicka <jh@suse.cz>
+
+ * gcc.c-torture/execute/20021127.[cx]: New test.
+
2002-11-26 Geoffrey Keating <geoffk@apple.com>
* g++.dg/init/brace2.C: New test.
diff --git a/gcc/testsuite/gcc.c-torture/execute/20021127-1.c b/gcc/testsuite/gcc.c-torture/execute/20021127-1.c
new file mode 100644
index 00000000000..0b3ff9ac850
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/20021127-1.c
@@ -0,0 +1,14 @@
+long long a = -1;
+long long llabs (long long);
+void abort (void);
+int
+main()
+{
+ if (llabs (a) != 1)
+ abort ();
+ return 0;
+}
+long long llabs (long long b)
+{
+ abort ();
+}
diff --git a/gcc/testsuite/gcc.c-torture/execute/20021127-1.x b/gcc/testsuite/gcc.c-torture/execute/20021127-1.x
new file mode 100644
index 00000000000..efd854a050e
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/20021127-1.x
@@ -0,0 +1,2 @@
+set additional_flags "-std=c99"
+return 0