public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2022-10-04 13:01 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-10-04 13:01 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5e8b8f00c39e60ea1a2f123aca30b3010d59446e

commit 5e8b8f00c39e60ea1a2f123aca30b3010d59446e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 8cf3dc6738..37e4d7b632 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2024-04-17 20:09 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2024-04-17 20:09 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b9801c945a677496d583bb76efa896bb954ca410

commit b9801c945a677496d583bb76efa896bb954ca410
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 3b283f49a6..1ac3c2e751 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2024-04-02 15:56 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2024-04-02 15:56 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c02a630852c5a043ef1dbe1ae6e70dceeb26ea8e

commit c02a630852c5a043ef1dbe1ae6e70dceeb26ea8e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 3b283f49a6..1ac3c2e751 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2024-02-09 17:34 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2024-02-09 17:34 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=550ea862accc27e43eaafa072e5a21cce7f51bbe

commit 550ea862accc27e43eaafa072e5a21cce7f51bbe
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 3b283f49a6..1ac3c2e751 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2024-02-07 14:09 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2024-02-07 14:09 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=97154629280c0346421e81e15a8af18ac34e4a4d

commit 97154629280c0346421e81e15a8af18ac34e4a4d
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 3b283f49a6..1ac3c2e751 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2024-01-29 17:59 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2024-01-29 17:59 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=842e1e9765a9751e735530b652b87cc88f47879c

commit 842e1e9765a9751e735530b652b87cc88f47879c
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 3b283f49a6..1ac3c2e751 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2023-12-21 18:56 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2023-12-21 18:56 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5fd7e89b4eb2f9fb96e6d2b38b01d4bf4a3a0573

commit 5fd7e89b4eb2f9fb96e6d2b38b01d4bf4a3a0573
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index db6ced5e2f..b8f16c052d 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2023-09-28 17:54 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2023-09-28 17:54 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9c5cc9756f9ce9d1352f3702716a47359c8fd95c

commit 9c5cc9756f9ce9d1352f3702716a47359c8fd95c
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index db6ced5e2f..b8f16c052d 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2023-08-30 12:38 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2023-08-30 12:38 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8ecb044799977a18ffe60482798d5d263d90fccb

commit 8ecb044799977a18ffe60482798d5d263d90fccb
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index db6ced5e2f..b8f16c052d 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2023-02-09 19:50 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2023-02-09 19:50 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9ced4a3e500887873177bc5870b87071d6709c9e

commit 9ced4a3e500887873177bc5870b87071d6709c9e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index db6ced5e2f..b8f16c052d 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2022-10-28 17:44 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-10-28 17:44 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8c5bc925a54eb1e59fab634c7df03630527ca716

commit 8c5bc925a54eb1e59fab634c7df03630527ca716
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 8cf3dc6738..37e4d7b632 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2022-06-09 21:22 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 21:22 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a9ae131d1a39f3beaa677472f01e168f55249844

commit a9ae131d1a39f3beaa677472f01e168f55249844
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 8cf3dc6738..37e4d7b632 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2022-06-09 13:19 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 13:19 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a9ae131d1a39f3beaa677472f01e168f55249844

commit a9ae131d1a39f3beaa677472f01e168f55249844
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 8cf3dc6738..37e4d7b632 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2022-06-03 14:08 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-06-03 14:08 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=83776306ae5ae16635fd7dba0e76916183292c7a

commit 83776306ae5ae16635fd7dba0e76916183292c7a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 8cf3dc6738..37e4d7b632 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2022-05-13 14:22 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-05-13 14:22 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f921c006e7971e16c40d38481c968bbdf8e55d28

commit f921c006e7971e16c40d38481c968bbdf8e55d28
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 8cf3dc6738..37e4d7b632 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2022-05-12 19:36 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-05-12 19:36 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d833195c1332861746da44b08991c95dd00c3ab6

commit d833195c1332861746da44b08991c95dd00c3ab6
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 8cf3dc6738..37e4d7b632 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2022-05-10 18:26 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-05-10 18:26 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9ae218b0f1f0da691c2c1a580ad244cf4a3f45e7

commit 9ae218b0f1f0da691c2c1a580ad244cf4a3f45e7
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 8cf3dc6738..37e4d7b632 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2022-04-29 14:06 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-04-29 14:06 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=22886464ba9ece07c45f299e43f5861b5a6790a3

commit 22886464ba9ece07c45f299e43f5861b5a6790a3
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 8cf3dc6738..37e4d7b632 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2022-04-04 12:56 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-04-04 12:56 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b9b24069597d3f7e9347696bed8ab113dff58a5a

commit b9b24069597d3f7e9347696bed8ab113dff58a5a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 8cf3dc6738..37e4d7b632 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2022-03-31 19:09 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-03-31 19:09 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b3a4ff37dd8f500a38eb549780dac6370b9c49f9

commit b3a4ff37dd8f500a38eb549780dac6370b9c49f9
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 8cf3dc6738..37e4d7b632 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it
@ 2022-03-29 20:32 Adhemerval Zanella
  0 siblings, 0 replies; 21+ messages in thread
From: Adhemerval Zanella @ 2022-03-29 20:32 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6bd74530e8d27a7f71b1b97c303310c8bb0beb29

commit 6bd74530e8d27a7f71b1b97c303310c8bb0beb29
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:54:10 2022 -0300

    stdio: Disable attribute (optimize) if compiler does not support it

Diff:
---
 stdio-common/tst-printf-bz18872.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 8cf3dc6738..37e4d7b632 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -31,7 +31,13 @@ cat <<'EOF'
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
 
-__attribute__ ((optimize ("-O0")))
+#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__)
+# define attribute_optimize(level) __attribute__ ((optimize (level)))
+#else
+# define attribute_optimize(level)
+#endif
+
+attribute_optimize ("-O0")
 int do_test (void)
 {
     mtrace ();


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2024-04-17 20:09 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 13:01 [glibc/azanella/clang] stdio: Disable attribute (optimize) if compiler does not support it Adhemerval Zanella
  -- strict thread matches above, loose matches on Subject: below --
2024-04-17 20:09 Adhemerval Zanella
2024-04-02 15:56 Adhemerval Zanella
2024-02-09 17:34 Adhemerval Zanella
2024-02-07 14:09 Adhemerval Zanella
2024-01-29 17:59 Adhemerval Zanella
2023-12-21 18:56 Adhemerval Zanella
2023-09-28 17:54 Adhemerval Zanella
2023-08-30 12:38 Adhemerval Zanella
2023-02-09 19:50 Adhemerval Zanella
2022-10-28 17:44 Adhemerval Zanella
2022-06-09 21:22 Adhemerval Zanella
2022-06-09 13:19 Adhemerval Zanella
2022-06-03 14:08 Adhemerval Zanella
2022-05-13 14:22 Adhemerval Zanella
2022-05-12 19:36 Adhemerval Zanella
2022-05-10 18:26 Adhemerval Zanella
2022-04-29 14:06 Adhemerval Zanella
2022-04-04 12:56 Adhemerval Zanella
2022-03-31 19:09 Adhemerval Zanella
2022-03-29 20:32 Adhemerval Zanella

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).