summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-08 12:54:53 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-08 12:54:53 +0000
commitc818ef5a01ad350163add3324905fe7c334761b6 (patch)
tree6e6c41a66a7717ee71e1a684bb8ced0c9f769712 /gcc/testsuite
parentcd752d0f9532585238abf94be72d26d0a5cad34d (diff)
downloadppe42-gcc-c818ef5a01ad350163add3324905fe7c334761b6.tar.gz
ppe42-gcc-c818ef5a01ad350163add3324905fe7c334761b6.zip
PR target/16199
* config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When 'temp' is zero, generate new pseudos as needed and emit the sequence of insns in single-assignment form. Resync comments with code. (sparc_emit_set_const64): Pass zero as 'temp' argument to above function before reload. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84285 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20040708-1.c68
2 files changed, 72 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1a3e2c09e71..8c6514a918f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
+
+ * gcc.c-torture/compile/20040708-1.c: New test.
+
2004-07-08 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/16169
diff --git a/gcc/testsuite/gcc.c-torture/compile/20040708-1.c b/gcc/testsuite/gcc.c-torture/compile/20040708-1.c
new file mode 100644
index 00000000000..4a553917e44
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20040708-1.c
@@ -0,0 +1,68 @@
+/* PR rtl-optimization/16199 */
+/* Origin: Olaf Klein <oklein@smallo.ruhr.de> */
+
+typedef enum {
+ APR_LOCK_FCNTL,
+ APR_LOCK_FLOCK,
+ APR_LOCK_SYSVSEM,
+ APR_LOCK_PROC_PTHREAD,
+ APR_LOCK_POSIXSEM,
+ APR_LOCK_DEFAULT
+} apr_lockmech_e;
+
+struct apr_proc_mutex_unix_lock_methods_t {
+ unsigned int flags;
+ const char *name;
+};
+
+typedef struct apr_proc_mutex_unix_lock_methods_t apr_proc_mutex_unix_lock_methods_t;
+
+extern const apr_proc_mutex_unix_lock_methods_t apr_proc_mutex_unix_sysv_methods;
+
+struct apr_proc_mutex_t {
+ const apr_proc_mutex_unix_lock_methods_t *inter_meth;
+ int curr_locked;
+ char *fname;
+};
+
+typedef struct apr_proc_mutex_t apr_proc_mutex_t;
+
+extern const apr_proc_mutex_unix_lock_methods_t apr_proc_mutex_unix_proc_pthread_methods;
+
+extern const apr_proc_mutex_unix_lock_methods_t apr_proc_mutex_unix_fcntl_methods;
+
+static int proc_mutex_choose_method(apr_proc_mutex_t *new_mutex, apr_lockmech_e mech)
+{
+ switch (mech) {
+ case APR_LOCK_FCNTL:
+ new_mutex->inter_meth = &apr_proc_mutex_unix_fcntl_methods;
+ break;
+ case APR_LOCK_FLOCK:
+ return ((20000 + 50000) + 23);
+ break;
+ case APR_LOCK_SYSVSEM:
+ new_mutex->inter_meth = &apr_proc_mutex_unix_sysv_methods;
+ break;
+ case APR_LOCK_POSIXSEM:
+ return ((20000 + 50000) + 23);
+ break;
+ case APR_LOCK_PROC_PTHREAD:
+ new_mutex->inter_meth = &apr_proc_mutex_unix_proc_pthread_methods;
+ break;
+ case APR_LOCK_DEFAULT:
+ new_mutex->inter_meth = &apr_proc_mutex_unix_proc_pthread_methods;
+ break;
+ default:
+ return ((20000 + 50000) + 23);
+ }
+ return 0;
+}
+
+const char* apr_proc_mutex_defname(void)
+{
+ apr_proc_mutex_t mutex;
+
+ if (proc_mutex_choose_method(&mutex, APR_LOCK_DEFAULT) != 0) {
+ return "unknown";
+ }
+}
OpenPOWER on IntegriCloud