OSDN Git Service

* builtins.def (DEF_C99_BUILTIN): Fix.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Nov 2002 13:49:33 +0000 (13:49 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Nov 2002 13:49:33 +0000 (13:49 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59571 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/builtins.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20021127-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/20021127-1.x [new file with mode: 0644]

index f140cea..26b4919 100644 (file)
@@ -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
index 8c6a68e..c214128 100644 (file)
@@ -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.  */
index d9a69fc..6b48f1f 100644 (file)
@@ -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 (file)
index 0000000..0b3ff9a
--- /dev/null
@@ -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 (file)
index 0000000..efd854a
--- /dev/null
@@ -0,0 +1,2 @@
+set additional_flags "-std=c99"
+return 0