Skip to contentSkip to conversation

package/libxslt: fix bfin compile

PATCH Superseded Jörg Krause 2 participants 4 messages Sep 21, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libxslt: fix bfin compile

A GCC bug is triggered when the compiler is run with an optimization level '-Os/-O2/-O3' for the Blackfin architecture:

```
error: unable to find a register to spill in class 'CCREGS'
```

Workaround this bug by forcing an optimization level of '-O1' when building libxslt for the Blackfin architecture.

See GCC bug report:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77311

---
 package/libxslt/libxslt.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/libxslt/libxslt.mk +6 -0
index 868ba6a..4253a60 100644
@@ -19,6 +19,12 @@ LIBXSLT_CONF_OPTS = \
 LIBXSLT_CONFIG_SCRIPTS = xslt-config
 LIBXSLT_DEPENDENCIES = libxml2
 
+# GCC bug with Os/O2/O3, PR77311
+# error: unable to find a register to spill in class 'CCREGS'
+ifeq ($(BR2_bfin),y)
+LIBXSLT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O1"
+endif
+
 # If we have enabled libgcrypt then use it, else disable crypto support.
 ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
 LIBXSLT_DEPENDENCIES += libgcrypt
Signature · 1 line
2.10.0
#1 lore raw

PATCH 1/1 package/libxslt: fix bfin compile

Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"J?rg" == J?rg Krause <[email protected]> writes:

A GCC bug is triggered when the compiler is run with an optimization level '-Os/-O2/-O3' for the Blackfin architecture:

```
error: unable to find a register to spill in class 'CCREGS'
```
Quoted 7 lines

Workaround this bug by forcing an optimization level of '-O1' when building libxslt for the Blackfin architecture.

See GCC bug report:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77311

Committed after adding references to the autobuilder failures, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 package/libxslt: fix bfin compile

Quoted 19 lines · Peter Korsgaard
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

"J?rg" == J?rg Krause <[email protected]> writes:

?> A GCC bug is triggered when the compiler is run with an optimization level
?> '-Os/-O2/-O3' for the Blackfin architecture:

?> ```
?> error: unable to find a register to spill in class 'CCREGS' ?> ```

?> Workaround this bug by forcing an optimization level of '-O1' when building
?> libxslt for the Blackfin architecture.

Quoted 7 lines

?> See GCC bug report:
?> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77311

?> Signed-off-by: J?rg Krause <[email protected]>

Committed after adding references to the autobuilder failures, thanks.

Oh, I did it in v2, too. Thanks!

#3 lore raw

PATCH 1/1 package/libxslt: fix bfin compile

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"J?rg" == J?rg Krause <[email protected]> writes:

Hi,

Quoted 4 lines
Quoted 2 lines

Committed after adding references to the autobuilder failures, thanks.

Oh, I did it in v2, too. Thanks!

Sorry, I hadn't noticed your v2 yet.

Signature · 2 lines
Venlig hilsen,
Peter Korsgaard