This is the mail archive of the
mailing list for the GCC project.
RE: Problem with gcc 2.95.3 under HP-UX - missing asm directive
- To: "'MARINIER,JEAN-PAUL (HP-France,ex2)'" <jean-paul_marinier at hp dot com>
- Subject: RE: Problem with gcc 2.95.3 under HP-UX - missing asm directive
- From: Rupert Wood <Rupert dot Wood at softwire dot co dot uk>
- Date: Tue, 22 May 2001 21:14:00 +0100
- Cc: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
> this email goes to email@example.com as this is the email referenced
> by the http://hpux.cs.utah.edu web site, from which I have
> downloaded binary distributions of binutils (2.11) and gcc (2.95.3)
> for HP-UX 11.00.
> The "level" directive is missing in the generated .s file; so a
> default level of 1 is assumed by gas, but the code contains some
> level 2 machine code, because this is what we've asked. So the
> assembler balks.
gcc 2.95.x doesn't officially support HP/UX 11. If they built it 'out of the
box', it would assume it's compiling for HP/UX 9 and gcc 2.95.x only emits
level for HP/UX 10. Looking at their source distribution, they've made a few
changes but they didn't fix this.
You can hack in rough HP/UX 11 support by duplicating the "hpux10" case in
gcc/configure and creating config/pa/pa-hpux11.h by appending:
/* Make GCC agree with types.h. */
#define SIZE_TYPE "long unsigned int"
#define PTRDIFF_TYPE "long int"
(stolen from the gcc 3.0 branch) to pa-hpux10.h. I tried this a while ago
and it bootstrapped OK, I think, but I didn't run the testsuite for reasons
that escape me now.
To do a proper job, though, you probably need to edit the threads fragment
for the specs file and half a dozen other things I'm not aware of. You may
well do better to build and use a gcc 3.0 snapshot since I think that's in
pretty good shape for HP/UX 11 now.