Skip to contentSkip to conversation

gcc-4.5: Fix segfault in dwarf2out

PATCH In review Khem Raj 2 participants 2 messages Mar 16, 2011 – Mar 17, 2011

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 gcc-4.5: Fix segfault in dwarf2out

Currently following fails

rm-oe-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi -DHAVE_CONFIG_H -I. -I.. -DASN1_BUILDING -I./../gl -I./../gl -I./.. -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os
-pipe -g -MT coding.lo -MD -MP -MF .deps/coding.Tpo -c coding.c -o
coding.o

coding.c: In function 'asn1_length_der':
coding.c:101:1: internal compiler error: in dwarf2out_frame_debug_expr, at dwarf2out.c:2221 Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions. {standard input}: Assembler messages:

---
 recipes/gcc/gcc-4.5.inc                            |    7 +-
 .../gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99486.patch |  230 ++++++++++++++++++++
 .../gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99487.patch |   42 ++++
 .../gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99488.patch |   22 ++
 .../gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99489.patch |   61 +++++
 recipes/gcc/gcc-4.5/more-epilogues.patch           |   83 -------
 6 files changed, 360 insertions(+), 85 deletions(-)
 create mode 100644 recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99486.patch
 create mode 100644 recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99487.patch
 create mode 100644 recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99488.patch
 create mode 100644 recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99489.patch
 delete mode 100644 recipes/gcc/gcc-4.5/more-epilogues.patch
recipes/gcc/gcc-4.5.inc +5 -2
index a3a44a2..5ea0f48 100644
@@ -8,7 +8,7 @@ DEPENDS = "mpfr gmp libmpc libelf"
 NATIVEDEPS = "mpfr-native gmp-native libmpc-native"
 
 
-INC_PR = "r33"
+INC_PR = "r34"
 
 SRCREV = "170880"
 PV = "4.5"
@@ -173,7 +173,10 @@ SRC_URI = "svn://gcc.gnu.org/svn/gcc/branches;module=${BRANCH} \
 	   file://linaro/gcc-4.5-linaro-r99481.patch \
 	   file://linaro/gcc-4.5-linaro-r99482.patch \
 	   file://linaro/gcc-4.5-linaro-r99483.patch \
-	   file://more-epilogues.patch \
+	   file://linaro/gcc-4.5-linaro-r99486.patch \
+	   file://linaro/gcc-4.5-linaro-r99487.patch \
+	   file://linaro/gcc-4.5-linaro-r99488.patch \
+	   file://linaro/gcc-4.5-linaro-r99489.patch \
 	   file://gcc-scalar-widening-pr45847.patch \
 	   file://gcc-arm-volatile-bitfield-fix.patch \
 	  "
recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99486.patch new file +230 -0

230 lines not on this page · raw message

recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99487.patch new file +42 -0

42 lines not on this page · raw message

recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99488.patch new file +22 -0
new file mode 100644
index 0000000..2f41a0a
@@ -0,0 +1,22 @@
+2011-03-03  Richard Sandiford  <[email protected]>
+
+	gcc/
+	* ee.c (reg_use_p): Handle subregs of promoted vars.
+
+=== modified file 'gcc/ee.c'
+--- old/gcc/ee.c	2010-12-10 15:33:37 +0000
++++ new/gcc/ee.c	2011-03-03 17:08:58 +0000
+@@ -209,7 +209,11 @@
+ 
+       *regno = REGNO (reg);
+ 
+-      if (paradoxical_subreg_p (use))
++      /* Non-paradoxical SUBREGs of promoted vars guarantee that the
++	 upper (elided) bits of the inner register have a particular value.
++	 For our purposes, such SUBREGs act as a full reference to the
++	 inner register.  */
++      if (paradoxical_subreg_p (use) || SUBREG_PROMOTED_VAR_P (use))
+         *size = GET_MODE_BITSIZE (GET_MODE (reg));
+       else
+         *size = subreg_lsb (use) + GET_MODE_BITSIZE (GET_MODE (use));
+
recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99489.patch new file +61 -0

61 lines not on this page · raw message

recipes/gcc/gcc-4.5/more-epilogues.patch deleted +0 -83

83 lines not on this page · raw message

Signature · 1 line
1.7.4.1
#1 lore raw

2011/3/16 Khem Raj <[email protected]>:

Quoted 10 lines

Currently following fails

rm-oe-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon

(quoted diff) +0 -5
-mfloat-abi=softfp -mthumb-interwork -mno-thumb
--sysroot=/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi
-DHAVE_CONFIG_H -I. -I.. -DASN1_BUILDING -I./../gl -I./../gl -I./..
-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os
-pipe -g -MT coding.lo -MD -MP -MF .deps/coding.Tpo -c coding.c -o

coding.o

Quoted 7 lines

coding.c: In function 'asn1_length_der':
coding.c:101:1: internal compiler error: in dwarf2out_frame_debug_expr, at dwarf2out.c:2221 Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions. {standard input}: Assembler messages:

My tonights build still have alike error but for akita and libgcrypt_1.4.1.

Build Configuration:
BB_VERSION = "1.13.0"
METADATA_BRANCH = "master"
METADATA_REVISION = "103126a"

TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "akita"
DISTRO            = "angstrom"
DISTRO_VERSION    = "v20110317"
TARGET_FPU        = "soft"

| sexp.c: In function '_gcry_sexp_length':
| sexp.c:492:1: internal compiler error: in
dwarf2out_frame_debug_expr, at dwarf2out.c:2221

| Please submit a full bug report,
| with preprocessed source if appropriate.
| See <http://gcc.gnu.org/bugs.html> for instructions.
| make[2]: *** [libgcrypt_la-sexp.lo] Error 1

NOTE: package libgcrypt-1.4.1-r0: task do_compile: Failed

Full build log is available here:
http://jay-home.ath.cx/testbuilder/logs/B.master.angstrom-2010.x.akita.c.log

Signature · 1 line
Yury Bushmelev