public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] -finline-stringops: avoid too-wide smallest_int_mode_for_size [PR112784]
@ 2023-12-11 16:09 Alexandre Oliva
0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-12-11 16:09 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:98d208cbe6be1d5bbf2d20189dde46df982a6c97
commit 98d208cbe6be1d5bbf2d20189dde46df982a6c97
Author: Alexandre Oliva <oliva@adacore.com>
Date: Fri Dec 8 21:41:56 2023 -0300
-finline-stringops: avoid too-wide smallest_int_mode_for_size [PR112784]
smallest_int_mode_for_size may abort when the requested mode is not
available. Call int_mode_for_size instead, that signals the
unsatisfiable request in a more graceful way.
for gcc/ChangeLog
PR middle-end/112784
* expr.cc (emit_block_move_via_loop): Call int_mode_for_size
for maybe-too-wide sizes.
(emit_block_cmp_via_loop): Likewise.
for gcc/testsuite/ChangeLog
PR middle-end/112784
* gcc.target/i386/avx512cd-inline-stringops-pr112784.c: New.
Diff:
---
gcc/expr.cc | 22 +++++++++++++---------
.../i386/avx512cd-inline-stringops-pr112784.c | 12 ++++++++++++
2 files changed, 25 insertions(+), 9 deletions(-)
diff --git a/gcc/expr.cc b/gcc/expr.cc
index 6da51f2aca2..178b3ec6d5a 100644
--- a/gcc/expr.cc
+++ b/gcc/expr.cc
@@ -2449,15 +2449,17 @@ emit_block_move_via_loop (rtx x, rtx y, rtx size,
}
emit_move_insn (iter, iter_init);
- scalar_int_mode int_move_mode
- = smallest_int_mode_for_size (incr * BITS_PER_UNIT);
- if (GET_MODE_BITSIZE (int_move_mode) != incr * BITS_PER_UNIT)
+ opt_scalar_int_mode int_move_mode
+ = int_mode_for_size (incr * BITS_PER_UNIT, 1);
+ if (!int_move_mode.exists ()
+ || (GET_MODE_BITSIZE (as_a <scalar_int_mode> (int_move_mode))
+ != incr * BITS_PER_UNIT))
{
move_mode = BLKmode;
gcc_checking_assert (can_move_by_pieces (incr, align));
}
else
- move_mode = int_move_mode;
+ move_mode = as_a <scalar_int_mode> (int_move_mode);
x_addr = force_operand (XEXP (x, 0), NULL_RTX);
y_addr = force_operand (XEXP (y, 0), NULL_RTX);
@@ -2701,16 +2703,18 @@ emit_block_cmp_via_loop (rtx x, rtx y, rtx len, tree len_type, rtx target,
iter = gen_reg_rtx (iter_mode);
emit_move_insn (iter, iter_init);
- scalar_int_mode int_cmp_mode
- = smallest_int_mode_for_size (incr * BITS_PER_UNIT);
- if (GET_MODE_BITSIZE (int_cmp_mode) != incr * BITS_PER_UNIT
- || !can_compare_p (NE, int_cmp_mode, ccp_jump))
+ opt_scalar_int_mode int_cmp_mode
+ = int_mode_for_size (incr * BITS_PER_UNIT, 1);
+ if (!int_cmp_mode.exists ()
+ || (GET_MODE_BITSIZE (as_a <scalar_int_mode> (int_cmp_mode))
+ != incr * BITS_PER_UNIT)
+ || !can_compare_p (NE, as_a <scalar_int_mode> (int_cmp_mode), ccp_jump))
{
cmp_mode = BLKmode;
gcc_checking_assert (incr != 1);
}
else
- cmp_mode = int_cmp_mode;
+ cmp_mode = as_a <scalar_int_mode> (int_cmp_mode);
/* Save the base addresses. */
x_addr = force_operand (XEXP (x, 0), NULL_RTX);
diff --git a/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c b/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c
new file mode 100644
index 00000000000..c81f99c693c
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+/* { dg-options "-mavx512cd -finline-stringops" } */
+
+struct S {
+ int e;
+} __attribute__((aligned(128)));
+
+int main() {
+ struct S s1;
+ struct S s2;
+ int v = __builtin_memcmp(&s1, &s2, sizeof(s1));
+}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] -finline-stringops: avoid too-wide smallest_int_mode_for_size [PR112784]
@ 2023-12-09 1:37 Alexandre Oliva
0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-12-09 1:37 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:8c37a0b79799b084b0d81e62fea64892cee53e16
commit 8c37a0b79799b084b0d81e62fea64892cee53e16
Author: Alexandre Oliva <oliva@adacore.com>
Date: Fri Dec 8 21:41:56 2023 -0300
-finline-stringops: avoid too-wide smallest_int_mode_for_size [PR112784]
smallest_int_mode_for_size may abort when the requested mode is not
available. Call int_mode_for_size instead, that signals the
unsatisfiable request in a more graceful way.
for gcc/ChangeLog
PR middle-end/112784
* expr.cc (emit_block_move_via_loop): Call int_mode_for_size
for maybe-too-wide sizes.
(emit_block_cmp_via_loop): Likewise.
for gcc/testsuite/ChangeLog
PR middle-end/112784
* gcc.target/i386/avx512cd-inline-stringops-pr112784.c: New.
Diff:
---
gcc/expr.cc | 22 +++++++++++++---------
.../i386/avx512cd-inline-stringops-pr112784.c | 12 ++++++++++++
2 files changed, 25 insertions(+), 9 deletions(-)
diff --git a/gcc/expr.cc b/gcc/expr.cc
index 6da51f2aca2..178b3ec6d5a 100644
--- a/gcc/expr.cc
+++ b/gcc/expr.cc
@@ -2449,15 +2449,17 @@ emit_block_move_via_loop (rtx x, rtx y, rtx size,
}
emit_move_insn (iter, iter_init);
- scalar_int_mode int_move_mode
- = smallest_int_mode_for_size (incr * BITS_PER_UNIT);
- if (GET_MODE_BITSIZE (int_move_mode) != incr * BITS_PER_UNIT)
+ opt_scalar_int_mode int_move_mode
+ = int_mode_for_size (incr * BITS_PER_UNIT, 1);
+ if (!int_move_mode.exists ()
+ || (GET_MODE_BITSIZE (as_a <scalar_int_mode> (int_move_mode))
+ != incr * BITS_PER_UNIT))
{
move_mode = BLKmode;
gcc_checking_assert (can_move_by_pieces (incr, align));
}
else
- move_mode = int_move_mode;
+ move_mode = as_a <scalar_int_mode> (int_move_mode);
x_addr = force_operand (XEXP (x, 0), NULL_RTX);
y_addr = force_operand (XEXP (y, 0), NULL_RTX);
@@ -2701,16 +2703,18 @@ emit_block_cmp_via_loop (rtx x, rtx y, rtx len, tree len_type, rtx target,
iter = gen_reg_rtx (iter_mode);
emit_move_insn (iter, iter_init);
- scalar_int_mode int_cmp_mode
- = smallest_int_mode_for_size (incr * BITS_PER_UNIT);
- if (GET_MODE_BITSIZE (int_cmp_mode) != incr * BITS_PER_UNIT
- || !can_compare_p (NE, int_cmp_mode, ccp_jump))
+ opt_scalar_int_mode int_cmp_mode
+ = int_mode_for_size (incr * BITS_PER_UNIT, 1);
+ if (!int_cmp_mode.exists ()
+ || (GET_MODE_BITSIZE (as_a <scalar_int_mode> (int_cmp_mode))
+ != incr * BITS_PER_UNIT)
+ || !can_compare_p (NE, as_a <scalar_int_mode> (int_cmp_mode), ccp_jump))
{
cmp_mode = BLKmode;
gcc_checking_assert (incr != 1);
}
else
- cmp_mode = int_cmp_mode;
+ cmp_mode = as_a <scalar_int_mode> (int_cmp_mode);
/* Save the base addresses. */
x_addr = force_operand (XEXP (x, 0), NULL_RTX);
diff --git a/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c b/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c
new file mode 100644
index 00000000000..c81f99c693c
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+/* { dg-options "-mavx512cd -finline-stringops" } */
+
+struct S {
+ int e;
+} __attribute__((aligned(128)));
+
+int main() {
+ struct S s1;
+ struct S s2;
+ int v = __builtin_memcmp(&s1, &s2, sizeof(s1));
+}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] -finline-stringops: avoid too-wide smallest_int_mode_for_size [PR112784]
@ 2023-12-08 1:16 Alexandre Oliva
0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-12-08 1:16 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:a2c8c843f2626093017b0865a143ec23bfe4712b
commit a2c8c843f2626093017b0865a143ec23bfe4712b
Author: Alexandre Oliva <oliva@gnu.org>
Date: Thu Dec 7 19:33:01 2023 -0300
-finline-stringops: avoid too-wide smallest_int_mode_for_size [PR112784]
Diff:
---
gcc/expr.cc | 22 +++++++++++++---------
.../i386/avx512cd-inline-stringops-pr112784.c | 12 ++++++++++++
2 files changed, 25 insertions(+), 9 deletions(-)
diff --git a/gcc/expr.cc b/gcc/expr.cc
index 6da51f2aca2..178b3ec6d5a 100644
--- a/gcc/expr.cc
+++ b/gcc/expr.cc
@@ -2449,15 +2449,17 @@ emit_block_move_via_loop (rtx x, rtx y, rtx size,
}
emit_move_insn (iter, iter_init);
- scalar_int_mode int_move_mode
- = smallest_int_mode_for_size (incr * BITS_PER_UNIT);
- if (GET_MODE_BITSIZE (int_move_mode) != incr * BITS_PER_UNIT)
+ opt_scalar_int_mode int_move_mode
+ = int_mode_for_size (incr * BITS_PER_UNIT, 1);
+ if (!int_move_mode.exists ()
+ || (GET_MODE_BITSIZE (as_a <scalar_int_mode> (int_move_mode))
+ != incr * BITS_PER_UNIT))
{
move_mode = BLKmode;
gcc_checking_assert (can_move_by_pieces (incr, align));
}
else
- move_mode = int_move_mode;
+ move_mode = as_a <scalar_int_mode> (int_move_mode);
x_addr = force_operand (XEXP (x, 0), NULL_RTX);
y_addr = force_operand (XEXP (y, 0), NULL_RTX);
@@ -2701,16 +2703,18 @@ emit_block_cmp_via_loop (rtx x, rtx y, rtx len, tree len_type, rtx target,
iter = gen_reg_rtx (iter_mode);
emit_move_insn (iter, iter_init);
- scalar_int_mode int_cmp_mode
- = smallest_int_mode_for_size (incr * BITS_PER_UNIT);
- if (GET_MODE_BITSIZE (int_cmp_mode) != incr * BITS_PER_UNIT
- || !can_compare_p (NE, int_cmp_mode, ccp_jump))
+ opt_scalar_int_mode int_cmp_mode
+ = int_mode_for_size (incr * BITS_PER_UNIT, 1);
+ if (!int_cmp_mode.exists ()
+ || (GET_MODE_BITSIZE (as_a <scalar_int_mode> (int_cmp_mode))
+ != incr * BITS_PER_UNIT)
+ || !can_compare_p (NE, as_a <scalar_int_mode> (int_cmp_mode), ccp_jump))
{
cmp_mode = BLKmode;
gcc_checking_assert (incr != 1);
}
else
- cmp_mode = int_cmp_mode;
+ cmp_mode = as_a <scalar_int_mode> (int_cmp_mode);
/* Save the base addresses. */
x_addr = force_operand (XEXP (x, 0), NULL_RTX);
diff --git a/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c b/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c
new file mode 100644
index 00000000000..c81f99c693c
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+/* { dg-options "-mavx512cd -finline-stringops" } */
+
+struct S {
+ int e;
+} __attribute__((aligned(128)));
+
+int main() {
+ struct S s1;
+ struct S s2;
+ int v = __builtin_memcmp(&s1, &s2, sizeof(s1));
+}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] -finline-stringops: avoid too-wide smallest_int_mode_for_size [PR112784]
@ 2023-12-08 1:13 Alexandre Oliva
0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-12-08 1:13 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1e27d38889122d6a89a6eb85618d700dd5085dbd
commit 1e27d38889122d6a89a6eb85618d700dd5085dbd
Author: Alexandre Oliva <oliva@gnu.org>
Date: Thu Dec 7 19:33:01 2023 -0300
-finline-stringops: avoid too-wide smallest_int_mode_for_size [PR112784]
Diff:
---
gcc/expr.cc | 18 +++++++++++-------
.../i386/avx512cd-inline-stringops-pr112784.c | 12 ++++++++++++
2 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/gcc/expr.cc b/gcc/expr.cc
index 6da51f2aca2..4cda514cdf2 100644
--- a/gcc/expr.cc
+++ b/gcc/expr.cc
@@ -2449,9 +2449,11 @@ emit_block_move_via_loop (rtx x, rtx y, rtx size,
}
emit_move_insn (iter, iter_init);
- scalar_int_mode int_move_mode
- = smallest_int_mode_for_size (incr * BITS_PER_UNIT);
- if (GET_MODE_BITSIZE (int_move_mode) != incr * BITS_PER_UNIT)
+ opt_scalar_int_mode int_move_mode
+ = int_mode_for_size (incr * BITS_PER_UNIT, 1);
+ if (!int_move_mode.exists ()
+ || (GET_MODE_BITSIZE (as_a <scalar_int_mode> (int_move_mode))
+ != incr * BITS_PER_UNIT))
{
move_mode = BLKmode;
gcc_checking_assert (can_move_by_pieces (incr, align));
@@ -2701,10 +2703,12 @@ emit_block_cmp_via_loop (rtx x, rtx y, rtx len, tree len_type, rtx target,
iter = gen_reg_rtx (iter_mode);
emit_move_insn (iter, iter_init);
- scalar_int_mode int_cmp_mode
- = smallest_int_mode_for_size (incr * BITS_PER_UNIT);
- if (GET_MODE_BITSIZE (int_cmp_mode) != incr * BITS_PER_UNIT
- || !can_compare_p (NE, int_cmp_mode, ccp_jump))
+ opt_scalar_int_mode int_cmp_mode
+ = int_mode_for_size (incr * BITS_PER_UNIT, 1);
+ if (!int_cmp_mode.exists ()
+ || (GET_MODE_BITSIZE (as_a <scalar_int_mode> (int_cmp_mode))
+ != incr * BITS_PER_UNIT)
+ || !can_compare_p (NE, as_a <scalar_int_mode> (int_cmp_mode), ccp_jump))
{
cmp_mode = BLKmode;
gcc_checking_assert (incr != 1);
diff --git a/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c b/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c
new file mode 100644
index 00000000000..c81f99c693c
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+/* { dg-options "-mavx512cd -finline-stringops" } */
+
+struct S {
+ int e;
+} __attribute__((aligned(128)));
+
+int main() {
+ struct S s1;
+ struct S s2;
+ int v = __builtin_memcmp(&s1, &s2, sizeof(s1));
+}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] -finline-stringops: avoid too-wide smallest_int_mode_for_size [PR112784]
@ 2023-12-08 1:06 Alexandre Oliva
0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-12-08 1:06 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:bf0aa514769cc175d3c3f011ec6a1095b83dec38
commit bf0aa514769cc175d3c3f011ec6a1095b83dec38
Author: Alexandre Oliva <oliva@gnu.org>
Date: Thu Dec 7 19:33:01 2023 -0300
-finline-stringops: avoid too-wide smallest_int_mode_for_size [PR112784]
Diff:
---
gcc/expr.cc | 14 ++++++++------
.../gcc.target/i386/avx512cd-inline-stringops-pr112784.c | 12 ++++++++++++
2 files changed, 20 insertions(+), 6 deletions(-)
diff --git a/gcc/expr.cc b/gcc/expr.cc
index 6da51f2aca2..42db75e2131 100644
--- a/gcc/expr.cc
+++ b/gcc/expr.cc
@@ -2449,9 +2449,10 @@ emit_block_move_via_loop (rtx x, rtx y, rtx size,
}
emit_move_insn (iter, iter_init);
- scalar_int_mode int_move_mode
- = smallest_int_mode_for_size (incr * BITS_PER_UNIT);
- if (GET_MODE_BITSIZE (int_move_mode) != incr * BITS_PER_UNIT)
+ opt_scalar_int_mode int_move_mode
+ = int_mode_for_size (incr * BITS_PER_UNIT, 1);
+ if (!int_move_mode.exists ()
+ || GET_MODE_BITSIZE (int_move_mode) != incr * BITS_PER_UNIT)
{
move_mode = BLKmode;
gcc_checking_assert (can_move_by_pieces (incr, align));
@@ -2701,9 +2702,10 @@ emit_block_cmp_via_loop (rtx x, rtx y, rtx len, tree len_type, rtx target,
iter = gen_reg_rtx (iter_mode);
emit_move_insn (iter, iter_init);
- scalar_int_mode int_cmp_mode
- = smallest_int_mode_for_size (incr * BITS_PER_UNIT);
- if (GET_MODE_BITSIZE (int_cmp_mode) != incr * BITS_PER_UNIT
+ opt_scalar_int_mode int_cmp_mode
+ = int_mode_for_size (incr * BITS_PER_UNIT, 1);
+ if (!int_cmp_mode.exists ()
+ || GET_MODE_BITSIZE (int_cmp_mode) != incr * BITS_PER_UNIT
|| !can_compare_p (NE, int_cmp_mode, ccp_jump))
{
cmp_mode = BLKmode;
diff --git a/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c b/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c
new file mode 100644
index 00000000000..c81f99c693c
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+/* { dg-options "-mavx512cd -finline-stringops" } */
+
+struct S {
+ int e;
+} __attribute__((aligned(128)));
+
+int main() {
+ struct S s1;
+ struct S s2;
+ int v = __builtin_memcmp(&s1, &s2, sizeof(s1));
+}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] -finline-stringops: avoid too-wide smallest_int_mode_for_size [PR112784]
@ 2023-12-08 0:51 Alexandre Oliva
0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-12-08 0:51 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:39468b6bec7266c7477e7d45da57df9fa76007a2
commit 39468b6bec7266c7477e7d45da57df9fa76007a2
Author: Alexandre Oliva <oliva@gnu.org>
Date: Thu Dec 7 19:33:01 2023 -0300
-finline-stringops: avoid too-wide smallest_int_mode_for_size [PR112784]
Diff:
---
gcc/expr.cc | 4 ++--
.../gcc.target/i386/avx512cd-inline-stringops-pr112784.c | 12 ++++++++++++
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/gcc/expr.cc b/gcc/expr.cc
index 6da51f2aca2..80ab002745d 100644
--- a/gcc/expr.cc
+++ b/gcc/expr.cc
@@ -2450,7 +2450,7 @@ emit_block_move_via_loop (rtx x, rtx y, rtx size,
emit_move_insn (iter, iter_init);
scalar_int_mode int_move_mode
- = smallest_int_mode_for_size (incr * BITS_PER_UNIT);
+ = int_mode_for_size (incr * BITS_PER_UNIT, 1);
if (GET_MODE_BITSIZE (int_move_mode) != incr * BITS_PER_UNIT)
{
move_mode = BLKmode;
@@ -2702,7 +2702,7 @@ emit_block_cmp_via_loop (rtx x, rtx y, rtx len, tree len_type, rtx target,
emit_move_insn (iter, iter_init);
scalar_int_mode int_cmp_mode
- = smallest_int_mode_for_size (incr * BITS_PER_UNIT);
+ = int_mode_for_size (incr * BITS_PER_UNIT, 1);
if (GET_MODE_BITSIZE (int_cmp_mode) != incr * BITS_PER_UNIT
|| !can_compare_p (NE, int_cmp_mode, ccp_jump))
{
diff --git a/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c b/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c
new file mode 100644
index 00000000000..c81f99c693c
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/avx512cd-inline-stringops-pr112784.c
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+/* { dg-options "-mavx512cd -finline-stringops" } */
+
+struct S {
+ int e;
+} __attribute__((aligned(128)));
+
+int main() {
+ struct S s1;
+ struct S s2;
+ int v = __builtin_memcmp(&s1, &s2, sizeof(s1));
+}
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-12-11 16:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-11 16:09 [gcc(refs/users/aoliva/heads/testme)] -finline-stringops: avoid too-wide smallest_int_mode_for_size [PR112784] Alexandre Oliva
-- strict thread matches above, loose matches on Subject: below --
2023-12-09 1:37 Alexandre Oliva
2023-12-08 1:16 Alexandre Oliva
2023-12-08 1:13 Alexandre Oliva
2023-12-08 1:06 Alexandre Oliva
2023-12-08 0:51 Alexandre Oliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).