Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure: gcc.dg/debug/dwarf2/pr88635.c #72

Open
fxcoudert opened this issue Dec 22, 2021 · 1 comment
Open

Test failure: gcc.dg/debug/dwarf2/pr88635.c #72

fxcoudert opened this issue Dec 22, 2021 · 1 comment

Comments

@fxcoudert
Copy link
Contributor

$ cat gcc.dg/debug/dwarf2/pr88635.c              
/* PR debug/88635 */
/* { dg-do assemble } */
/* { dg-options "-g -O2" } */
/* { dg-additional-options "-fpie" { target pie } } */

static void
foo (char *b)
{
  unsigned c = 0;
  --c;
  do
    if (++*b++ == 0)
      break;
  while (--c);
  if (c == 0)
    while (*b++)
      ;
}

void
bar (void)
{
  foo ("");
}
$ gcc gcc.dg/debug/dwarf2/pr88635.c -g -O2
/var/folders/h8/9hx_fyj91053ksgdzb2w03vw0000gp/T//ccE6AL5A.s:76:29: error: unexpected token in '.section' directive
        .section .data.rel.ro.local
                                   ^
@Nicholaswogan
Copy link

Nicholaswogan commented Apr 14, 2023

Is there any progress on this issue? I've seen a very similar error (see below) when compiling a close-source fortran code on Mac ARM, which I unfortunately can not share.

(base) nicholas@Nicholass-MacBook-Air-8 smart % gfortran -cpp -c -g -O3 gasptau.f
/var/folders/sf/43vm953d201c4jw4yg22hnhc0000gn/T//cc4jouC2.s:2993:29: error: unexpected token in '.section' directive
        .section .data.rel.ro.local

Gfortran version GNU Fortran (Homebrew GCC 12.2.0) 12.2.0 on MacOS Big Sur version 11.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants