Bug 109510 - [patch] gcc(1): mcpu flags break buildworld in Sparc64 line
Summary: [patch] gcc(1): mcpu flags break buildworld in Sparc64 line
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: gnu (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Marius Strobl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-25 02:00 UTC by Steven Hillis
Modified: 2008-03-09 14:21 UTC (History)
0 users

See Also:


Attachments
file.diff (1.03 KB, patch)
2007-02-25 02:00 UTC, Steven Hillis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Hillis 2007-02-25 02:00:12 UTC
Setting -mcpu=ultrasparc or -mcpu=v9 in /etc/make.conf causes "unknown
architecture" errors on world or kernel builds.

Setting the flags overwrites the CPU_SPEC that's normally set to __sparc64__.

Fix: Apply the attached patch which adds the following to
/usr/src/contrib/gcc/config/sparc/freebsd.h:

builtin_define ("__sparc64__");
builtin_define ("__sparc_v9__");
builtin_define ("__sparcv9");
builtin_define ("__arch64__");


Patch attached with submission follows:
How-To-Repeat: Add -mcpu=ultrasparc to you CFLAGS= configuration in /etc/make.conf, then
try to compile world or any kernel.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2007-04-22 10:53:13 UTC
Responsible Changed
From-To: freebsd-sparc64->kan

kan, can you take a look at this?  If not, assign back to gnu@.  Thanks.
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2007-11-20 15:33:48 UTC
Responsible Changed
From-To: kan->obrien

maybe I can get this submittable.
Comment 3 dfilter service freebsd_committer freebsd_triage 2007-12-09 17:41:55 UTC
marius      2007-12-09 17:41:47 UTC

  FreeBSD src repository

  Modified files:
    contrib/gcc/config/sparc freebsd.h 
  Log:
  Allow the targeted CPU type to be set via -mcpu instead of
  limiting to the hardcoded equivalent of -mcpu=ultrasparc.
  
  PR:             109510
  MFC after:      3 months
  
  Revision  Changes    Path
  1.11      +8 -6      src/contrib/gcc/config/sparc/freebsd.h
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2008-01-27 09:29:32 UTC
State Changed
From-To: open->patched

Over to committer of the patch, as an MFC reminder. 


Comment 5 Mark Linimon freebsd_committer freebsd_triage 2008-01-27 09:29:32 UTC
Responsible Changed
From-To: obrien->marius
Comment 6 dfilter service freebsd_committer freebsd_triage 2008-03-08 19:33:43 UTC
marius      2008-03-08 19:33:35 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    contrib/gcc/config/sparc freebsd.h 
  Log:
  MFC: 1.11
  
  Allow the targeted CPU type to be set via -mcpu instead of
  limiting to the hardcoded equivalent of -mcpu=ultrasparc.
  
  PR:             109510
  
  Revision  Changes    Path
  1.10.2.1  +8 -6      src/contrib/gcc/config/sparc/freebsd.h
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 7 dfilter service freebsd_committer freebsd_triage 2008-03-09 14:10:31 UTC
marius      2008-03-09 14:10:23 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    contrib/gcc/config/sparc freebsd.h 
  Log:
  MFC: 1.11
  
  Allow the targeted CPU type to be set via -mcpu instead of
  limiting to the hardcoded equivalent of -mcpu=ultrasparc.
  
  PR:             109510
  
  Revision  Changes    Path
  1.9.8.1   +8 -6      src/contrib/gcc/config/sparc/freebsd.h
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 8 Marius Strobl freebsd_committer freebsd_triage 2008-03-09 14:20:36 UTC
State Changed
From-To: patched->closed

close