Обсуждение: Bug #576: Can not compile IRIX + GCC

Поиск
Список
Период
Сортировка

Bug #576: Can not compile IRIX + GCC

От
pgsql-bugs@postgresql.org
Дата:
oota toshiya (oota@mspd.mt.nec.co.jp) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
Can not compile IRIX + GCC

Long Description
/src/backend/storage/lmgr/s_lock.c line 173

.global tas                                             \n\

is incorrect (TYPO).  MIPS assembler syntax require " .globl" .


Sample Code


No file was uploaded with this report

Re: Bug #576: Can not compile IRIX + GCC

От
Bruce Momjian
Дата:
pgsql-bugs@postgresql.org wrote:
> oota toshiya (oota@mspd.mt.nec.co.jp) reports a bug with a severity of 3
> The lower the number the more severe it is.
>
> Short Description
> Can not compile IRIX + GCC
>
> Long Description
> /src/backend/storage/lmgr/s_lock.c line 173
>
> .global tas                                             \n\
>
> is incorrect (TYPO).  MIPS assembler syntax require " .globl" .

In 7.2 I see:

    #if defined(__mips__) && !defined(__sgi)
    static void
    tas_dummy()
    {
        __asm__     __volatile__(
                                             "\
    .global tas                     \n\
    tas:                            \n\
                .frame  $sp, 0, $31 \n\

Can you tell us what OS, OS version, and assembler you are using?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Re: Bug #576: Can not compile IRIX + GCC

От
Luis Amigo
Дата:
pgsql-bugs@postgresql.org wrote:

> oota toshiya (oota@mspd.mt.nec.co.jp) reports a bug with a severity of 3
> The lower the number the more severe it is.
>
> Short Description
> Can not compile IRIX + GCC
>
> Long Description
> /src/backend/storage/lmgr/s_lock.c line 173
>
> .global tas                                             \n\
>
> is incorrect (TYPO).  MIPS assembler syntax require " .globl" .
>
> Sample Code
>
> No file was uploaded with this report
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

The problem is gcc not postgres, read FAQ-IRIX.
If you use MIPSPro compilers u will have no problems

I'm not sure, I don't remember if I had to do modifications, but 7.2 was
compiled with gcc 3.0


Вложения