public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "malitzke at metronets dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/27528] compiling linux kernels 2.6.16.14/15 2.6.17-rc3 on powerpc (7450) get error on long exixting code
Date: Thu, 15 Jun 2006 03:26:00 -0000	[thread overview]
Message-ID: <20060615030352.20364.qmail@sourceware.org> (raw)
In-Reply-To: <bug-27528-11706@http.gcc.gnu.org/bugzilla/>



------- Comment #11 from malitzke at metronets dot com  2006-06-15 03:03 -------
Hans-Peter!

Thanks for shedding _some_ light on this murky corner. Perhaps, the "i"
constraint is now really inapropriate. 

First of all, a kernel header appropriately replaces __FUNCTION__ with
__func__. Therefore the leftover __FUNCTION__ (probably from non GCC compilers)
is not an issue.
Second, __LINE__, __FILE__, and __func__ are all known to the compiler, because
the compiler definitely knows what __FILE__ it is compiling and just emits the
appropriate string. Same argument line pertains to the __LINE__ in the __FILE__
and the name of the __func__ (function) it is trying to compile. The whole idea
is akin to an "assert". Therefore it is not up to the linker or assembler.
Third, if putting __FILE__ in place of the of either __FUNCTION__ or __func__
it works fine as can be seen in the "-S option" output (e.g. file.s).
Fourth, and this might be mine and others misunderstanding, I had thought that
"i" really referred to the assembly file address of the string. This address,
naturally is an address subject to relocation by the linker.
To an _old_ assembly language programmer this appears just like a storm in a
waterglass. This particular __asm construct is only used for powerpc (and
perhaps ppc) It must be left as a holdover for the original AIX compiler or AIX
binutils.

In my bugzilla PR to kernel.org I pointed out that knowing the __FILE__ and
__LINE__ is really quite sufficient and that perhaps, according to my patch to  
asm-powerpc/bug.h the particular item could be dropped. See bugzilla.kernel.org
PR 6533. They have not taken it up as it only pertains to gcc-4.2.0
(experimental) 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27528


  parent reply	other threads:[~2006-06-15  3:04 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-10  2:44 [Bug c/27528] New: " malitzke at metronets dot com
2006-05-10  3:05 ` [Bug c/27528] " malitzke at metronets dot com
2006-05-10  4:04 ` [Bug middle-end/27528] " pinskia at gcc dot gnu dot org
2006-05-10  5:24 ` pinskia at gcc dot gnu dot org
2006-05-10  5:30 ` pinskia at gcc dot gnu dot org
2006-05-10 14:44 ` malitzke at metronets dot com
2006-05-10 14:56 ` dje at gcc dot gnu dot org
2006-05-10 15:06 ` pinskia at gcc dot gnu dot org
2006-05-10 20:17 ` malitzke at metronets dot com
2006-05-10 20:41 ` pinskia at gcc dot gnu dot org
2006-06-14 15:09 ` hp at gcc dot gnu dot org
2006-06-14 15:09 ` hp at gcc dot gnu dot org
2006-06-15  3:26 ` malitzke at metronets dot com [this message]
2006-06-15 17:15 ` hp at gcc dot gnu dot org
2006-06-15 23:03 ` malitzke at metronets dot com
2006-06-15 23:03   ` Andrew Pinski
2006-06-15 23:07 ` pinskia at physics dot uc dot edu
2006-10-27  5:24 ` pinskia at gcc dot gnu dot org
2006-11-03 13:23 ` rsandifo at gcc dot gnu dot org
2006-11-03 13:27 ` hp at gcc dot gnu dot org
2006-11-03 13:30 ` rsandifo at gcc dot gnu dot org
2006-11-09  9:34 ` rsandifo at gcc dot gnu dot org
2006-11-11  9:47 ` rsandifo at gcc dot gnu dot org
2006-11-11  9:53 ` rsandifo at gcc dot gnu dot org
2006-11-11  9:54 ` rsandifo at gcc dot gnu dot org
2006-12-01  1:07 ` chaoyingfu at gcc dot gnu dot org
2007-01-10 19:14 ` [Bug middle-end/27528] [4.2/4.3 Regression] " pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060615030352.20364.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).