Skip site navigation (1) Skip section navigation (2)

Re: Solaris cc compiler on amd: PostgreSQL does not have native

From: Pierre Girard <pierre(dot)girard(at)gerad(dot)ca>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Solaris cc compiler on amd: PostgreSQL does not have native
Date: 2005-12-16 21:35:57
Message-ID: 43A3333D.7050503@gerad.ca (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-hackerspgsql-patches
Tom Lane wrote:

>You'd need to do something about adapting src/backend/port/tas/solaris_i386.s
>
>It's possible that the assembly code would work as-is on amd, in which
>case you'd just need a one-liner change in s_lock.h and maybe some
>adjustment of the template file.
>  
>
It doesn't compile with the options to create amd code.
cc -Xa -xtarget=opteron -xarch=amd64 -c solaris_i386.s
Assembler: tas.s
        "solaris_i386.s", line 12 : Illegal mnemonic
        "solaris_i386.s", line 14 : Illegal mnemonic
        "solaris_i386.s", line 15 : Syntax error
        "solaris_i386.s", line 17 : Syntax error
        "solaris_i386.s", line 26 : Illegal mnemonic
        "solaris_i386.s", line 28 : Illegal mnemonic
cc: assembler failed for solaris_i386.s

The same file compiles without those options:
cc -Xa -c solaris_i386.s

>Please send a patch if you fix this.
>  
>
Unfortunately i won't be able to help unless you have some code for me 
to try out.



In response to

Responses

pgsql-hackers by date

Next:From: Alvaro HerreraDate: 2005-12-16 22:00:48
Subject: Re: Self-modifying code
Previous:From: Jim C. NasbyDate: 2005-12-16 21:34:56
Subject: Re: Web archive issue?

pgsql-bugs by date

Next:From: Tom LaneDate: 2005-12-16 22:10:11
Subject: Re: [GENERAL] PL/pgSQL Function Help
Previous:From: Michael FuhrDate: 2005-12-16 20:42:31
Subject: Re: PL/pgSQL Function Help

pgsql-patches by date

Next:From: Alvaro HerreraDate: 2005-12-16 21:56:00
Subject: Re: Win32 gettimeofday() comment patch
Previous:From: Mark KirkwoodDate: 2005-12-16 21:17:54
Subject: Re: TODO Item - Add system view to show free space map

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group