This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/63691] GCC 4.9.x fails to build GLIBC 2.20 on HPPA
- From: "aaro.koskinen at iki dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 04 Nov 2014 19:36:00 +0000
- Subject: [Bug target/63691] GCC 4.9.x fails to build GLIBC 2.20 on HPPA
- Auto-submitted: auto-generated
- References: <bug-63691-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63691
--- Comment #13 from Aaro Koskinen <aaro.koskinen at iki dot fi> ---
Created attachment 33884
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33884&action=edit
Preprocessed dl-conflict
Here's the preprocessed dl-conflict.c. In elf_machine_rela(), the sym_map gets
always assigned to 0, and in the following switch cases it's dereferenced
without any checks. Those are where the compiler will add abort refs.
When compiled with -fno-delete-null-pointer-checks GCC won't do that, but it's
not really related to any null pointer checks, instead the switch has also
other meanings, i.e. it's also telling the compiler that NULL deref is not
erroneous so it cannot make program fail on those. Or at least that's how I
understand it.