source: patches/gcc-4.1.2-sparc_tls-1.patch@ ee09899c

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since ee09899c was 2c79b57, checked in by Jim Gifford <clfs@…>, 18 years ago

Updated to GCC 4.1.2

  • Property mode set to 100644
File size: 931 bytes
  • gcc/config/sparc/sparc.c

    Submitted By: Ryan Oliver <ryan at pha dot com dot au>
    Date: 2007-02-14
    Initial Package Version: 4.1.2
    Origin: Jakub
    Upstream Status: In GCC Trunk
    Description: Fixed in GCC SVN Revision #110522
    	* config/sparc/sparc.c (sparc_output_scratch_registers): Use
    	#ignore instead of #scratch for %g7 .register directive.
    
    diff -Naur gcc-4.1.2.orig/gcc/config/sparc/sparc.c gcc-4.1.2/gcc/config/sparc/sparc.c
    old new  
    37093709          && ! sparc_hard_reg_printed [i])
    37103710        {
    37113711          sparc_hard_reg_printed [i] = 1;
    3712           fprintf (file, "\t.register\t%%g%d, #scratch\n", i);
     3712          /* %g7 is used as TLS base register, use #ignore
     3713             for it instead of #scratch.  */
     3714          fprintf (file, "\t.register\t%%g%d, #%s\n", i,
     3715                   i == 7 ? "ignore" : "scratch");
    37133716        }
    37143717      if (i == 3) i = 5;
    37153718    }
Note: See TracBrowser for help on using the repository browser.